tailwindcss
Version:
A utility-first CSS framework for rapidly building custom user interfaces.
10 lines • 231 kB
JavaScript
"use strict";var xi=Object.defineProperty;var Ai=(t,r)=>{for(var i in r)xi(t,i,{get:r[i],enumerable:!0})};var vt={};Ai(vt,{Features:()=>Se,Polyfills:()=>tt,__unstable__loadDesignSystem:()=>uo,compile:()=>so,compileAst:()=>yi,default:()=>We});var Mt="4.1.11";var Pe=92,Be=47,qe=42,Wt=34,Bt=39,Ni=58,Ge=59,ne=10,Ye=13,Oe=32,He=9,qt=123,kt=125,xt=40,Ht=41,$i=91,Vi=93,Gt=45,bt=64,Si=33;function ve(t,r){let i=r?.from?{file:r.from,code:t}:null;t[0]==="\uFEFF"&&(t=" "+t.slice(1));let e=[],n=[],s=[],a=null,f=null,u="",c="",d=0,m;for(let g=0;g<t.length;g++){let w=t.charCodeAt(g);if(!(w===Ye&&(m=t.charCodeAt(g+1),m===ne)))if(w===Pe)u===""&&(d=g),u+=t.slice(g,g+2),g+=1;else if(w===Be&&t.charCodeAt(g+1)===qe){let v=g;for(let y=g+2;y<t.length;y++)if(m=t.charCodeAt(y),m===Pe)y+=1;else if(m===qe&&t.charCodeAt(y+1)===Be){g=y+1;break}let x=t.slice(v,g+1);if(x.charCodeAt(2)===Si){let y=Ze(x.slice(2,-2));n.push(y),i&&(y.src=[i,v,g+1],y.dst=[i,v,g+1])}}else if(w===Bt||w===Wt){let v=Yt(t,g,w);u+=t.slice(g,v+1),g=v}else{if((w===Oe||w===ne||w===He)&&(m=t.charCodeAt(g+1))&&(m===Oe||m===ne||m===He||m===Ye&&(m=t.charCodeAt(g+2))&&m==ne))continue;if(w===ne){if(u.length===0)continue;m=u.charCodeAt(u.length-1),m!==Oe&&m!==ne&&m!==He&&(u+=" ")}else if(w===Gt&&t.charCodeAt(g+1)===Gt&&u.length===0){let v="",x=g,y=-1;for(let b=g+2;b<t.length;b++)if(m=t.charCodeAt(b),m===Pe)b+=1;else if(m===Bt||m===Wt)b=Yt(t,b,m);else if(m===Be&&t.charCodeAt(b+1)===qe){for(let S=b+2;S<t.length;S++)if(m=t.charCodeAt(S),m===Pe)S+=1;else if(m===qe&&t.charCodeAt(S+1)===Be){b=S+1;break}}else if(y===-1&&m===Ni)y=u.length+b-x;else if(m===Ge&&v.length===0){u+=t.slice(x,b),g=b;break}else if(m===xt)v+=")";else if(m===$i)v+="]";else if(m===qt)v+="}";else if((m===kt||t.length-1===b)&&v.length===0){g=b-1,u+=t.slice(x,b);break}else(m===Ht||m===Vi||m===kt)&&v.length>0&&t[b]===v[v.length-1]&&(v=v.slice(0,-1));let V=yt(u,y);if(!V)throw new Error("Invalid custom property, expected a value");i&&(V.src=[i,x,g],V.dst=[i,x,g]),a?a.nodes.push(V):e.push(V),u=""}else if(w===Ge&&u.charCodeAt(0)===bt)f=_e(u),i&&(f.src=[i,d,g],f.dst=[i,d,g]),a?a.nodes.push(f):e.push(f),u="",f=null;else if(w===Ge&&c[c.length-1]!==")"){let v=yt(u);if(!v)throw u.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${u.trim()}\``);i&&(v.src=[i,d,g],v.dst=[i,d,g]),a?a.nodes.push(v):e.push(v),u=""}else if(w===qt&&c[c.length-1]!==")")c+="}",f=G(u.trim()),i&&(f.src=[i,d,g],f.dst=[i,d,g]),a&&a.nodes.push(f),s.push(a),a=f,u="",f=null;else if(w===kt&&c[c.length-1]!==")"){if(c==="")throw new Error("Missing opening {");if(c=c.slice(0,-1),u.length>0)if(u.charCodeAt(0)===bt)f=_e(u),i&&(f.src=[i,d,g],f.dst=[i,d,g]),a?a.nodes.push(f):e.push(f),u="",f=null;else{let x=u.indexOf(":");if(a){let y=yt(u,x);if(!y)throw new Error(`Invalid declaration: \`${u.trim()}\``);i&&(y.src=[i,d,g],y.dst=[i,d,g]),a.nodes.push(y)}}let v=s.pop()??null;v===null&&a&&e.push(a),a=v,u="",f=null}else if(w===xt)c+=")",u+="(";else if(w===Ht){if(c[c.length-1]!==")")throw new Error("Missing opening (");c=c.slice(0,-1),u+=")"}else{if(u.length===0&&(w===Oe||w===ne||w===He))continue;u===""&&(d=g),u+=String.fromCharCode(w)}}}if(u.charCodeAt(0)===bt){let g=_e(u);i&&(g.src=[i,d,t.length],g.dst=[i,d,t.length]),e.push(g)}if(c.length>0&&a){if(a.kind==="rule")throw new Error(`Missing closing } at ${a.selector}`);if(a.kind==="at-rule")throw new Error(`Missing closing } at ${a.name} ${a.params}`)}return n.length>0?n.concat(e):e}function _e(t,r=[]){let i=t,e="";for(let n=5;n<t.length;n++){let s=t.charCodeAt(n);if(s===Oe||s===xt){i=t.slice(0,n),e=t.slice(n);break}}return F(i.trim(),e.trim(),r)}function yt(t,r=t.indexOf(":")){if(r===-1)return null;let i=t.indexOf("!important",r+1);return l(t.slice(0,r).trim(),t.slice(r+1,i===-1?t.length:i).trim(),i!==-1)}function Yt(t,r,i){let e;for(let n=r+1;n<t.length;n++)if(e=t.charCodeAt(n),e===Pe)n+=1;else{if(e===i)return n;if(e===Ge&&(t.charCodeAt(n+1)===ne||t.charCodeAt(n+1)===Ye&&t.charCodeAt(n+2)===ne))throw new Error(`Unterminated string: ${t.slice(r,n+1)+String.fromCharCode(i)}`);if(e===ne||e===Ye&&t.charCodeAt(n+1)===ne)throw new Error(`Unterminated string: ${t.slice(r,n)+String.fromCharCode(i)}`)}return r}function de(t){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(t),i=r.length,e=-1,n,s="",a=r.charCodeAt(0);if(i===1&&a===45)return"\\"+r;for(;++e<i;){if(n=r.charCodeAt(e),n===0){s+="\uFFFD";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&a===45){s+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(e);continue}s+="\\"+r.charAt(e)}return s}function we(t){return t.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var Jt=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]]]);function Zt(t,r){return(Jt.get(r)??[]).some(i=>t===i||t.startsWith(`${i}-`))}var Je=class{constructor(r=new Map,i=new Set([])){this.values=r;this.keyframes=i}prefix=null;get size(){return this.values.size}add(r,i,e=0,n){if(r.endsWith("-*")){if(i!=="initial")throw new Error(`Invalid theme value \`${i}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(e&4){let s=this.values.get(r);if(s&&!(s.options&4))return}i==="initial"?this.values.delete(r):this.values.set(r,{value:i,options:e,src:n})}keysInNamespaces(r){let i=[];for(let e of r){let n=`${e}-`;for(let s of this.values.keys())s.startsWith(n)&&s.indexOf("--",2)===-1&&(Zt(s,e)||i.push(s.slice(n.length)))}return i}get(r){for(let i of r){let e=this.values.get(i);if(e)return e.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=we(this.#r(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.prefixKey(r[0]),r)):this.values.entries()}prefixKey(r){return this.prefix?`--${this.prefix}-${r.slice(2)}`:r}#r(r){return this.prefix?`--${r.slice(3+this.prefix.length)}`:r}clearNamespace(r,i){let e=Jt.get(r)??[];e:for(let n of this.values.keys())if(n.startsWith(r)){if(i!==0&&(this.getOptions(n)&i)!==i)continue;for(let s of e)if(n.startsWith(s))continue e;this.values.delete(n)}}#e(r,i){for(let e of i){let n=r!==null?`${e}-${r}`:e;if(!this.values.has(n))if(r!==null&&r.includes(".")){if(n=`${e}-${r.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!Zt(n,e))return n}return null}#t(r){let i=this.values.get(r);if(!i)return null;let e=null;return i.options&2&&(e=i.value),`var(${de(this.prefixKey(r))}${e?`, ${e}`:""})`}markUsedVariable(r){let i=we(this.#r(r)),e=this.values.get(i);if(!e)return!1;let n=e.options&16;return e.options|=16,!n}resolve(r,i,e=0){let n=this.#e(r,i);if(!n)return null;let s=this.values.get(n);return(e|s.options)&1?s.value:this.#t(n)}resolveValue(r,i){let e=this.#e(r,i);return e?this.values.get(e).value:null}resolveWith(r,i,e=[]){let n=this.#e(r,i);if(!n)return null;let s={};for(let f of e){let u=`${n}${f}`,c=this.values.get(u);c&&(c.options&1?s[f]=c.value:s[f]=this.#t(u))}let a=this.values.get(n);return a.options&1?[a.value,s]:[this.#t(n),s]}namespace(r){let i=new Map,e=`${r}-`;for(let[n,s]of this.values)n===r?i.set(null,s.value):n.startsWith(`${e}-`)?i.set(n.slice(r.length),s.value):n.startsWith(e)&&i.set(n.slice(e.length),s.value);return i}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var B=class extends Map{constructor(i){super();this.factory=i}get(i){let e=super.get(i);return e===void 0&&(e=this.factory(i,this),this.set(i,e)),e}};function Ct(t){return{kind:"word",value:t}}function Ei(t,r){return{kind:"function",value:t,nodes:r}}function Ti(t){return{kind:"separator",value:t}}function ee(t,r,i=null){for(let e=0;e<t.length;e++){let n=t[e],s=!1,a=0,f=r(n,{parent:i,replaceWith(u){s||(s=!0,Array.isArray(u)?u.length===0?(t.splice(e,1),a=0):u.length===1?(t[e]=u[0],a=1):(t.splice(e,1,...u),a=u.length):t[e]=u)}})??0;if(s){f===0?e--:e+=a-1;continue}if(f===2)return 2;if(f!==1&&n.kind==="function"&&ee(n.nodes,r,n)===2)return 2}}function Z(t){let r="";for(let i of t)switch(i.kind){case"word":case"separator":{r+=i.value;break}case"function":r+=i.value+"("+Z(i.nodes)+")"}return r}var Qt=92,Ri=41,Xt=58,er=44,Pi=34,tr=61,rr=62,ir=60,nr=10,Oi=40,_i=39,or=47,lr=32,ar=9;function q(t){t=t.replaceAll(`\r
`,`
`);let r=[],i=[],e=null,n="",s;for(let a=0;a<t.length;a++){let f=t.charCodeAt(a);switch(f){case Qt:{n+=t[a]+t[a+1],a++;break}case Xt:case er:case tr:case rr:case ir:case nr:case or:case lr:case ar:{if(n.length>0){let m=Ct(n);e?e.nodes.push(m):r.push(m),n=""}let u=a,c=a+1;for(;c<t.length&&(s=t.charCodeAt(c),!(s!==Xt&&s!==er&&s!==tr&&s!==rr&&s!==ir&&s!==nr&&s!==or&&s!==lr&&s!==ar));c++);a=c-1;let d=Ti(t.slice(u,c));e?e.nodes.push(d):r.push(d);break}case _i:case Pi:{let u=a;for(let c=a+1;c<t.length;c++)if(s=t.charCodeAt(c),s===Qt)c+=1;else if(s===f){a=c;break}n+=t.slice(u,a+1);break}case Oi:{let u=Ei(n,[]);n="",e?e.nodes.push(u):r.push(u),i.push(u),e=u;break}case Ri:{let u=i.pop();if(n.length>0){let c=Ct(n);u?.nodes.push(c),n=""}i.length>0?e=i[i.length-1]:e=null;break}default:n+=String.fromCharCode(f)}}return n.length>0&&r.push(Ct(n)),r}function Qe(t){let r=[];return ee(q(t),i=>{if(!(i.kind!=="function"||i.value!=="var"))return ee(i.nodes,e=>{e.kind!=="word"||e.value[0]!=="-"||e.value[1]!=="-"||r.push(e.value)}),1}),r}var Ki=64;function M(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function F(t,r="",i=[]){return{kind:"at-rule",name:t,params:r,nodes:i}}function G(t,r=[]){return t.charCodeAt(0)===Ki?_e(t,r):M(t,r)}function l(t,r,i=!1){return{kind:"declaration",property:t,value:r,important:i}}function Ze(t){return{kind:"comment",value:t}}function se(t,r){return{kind:"context",context:t,nodes:r}}function z(t){return{kind:"at-root",nodes:t}}function I(t,r,i=[],e={}){for(let n=0;n<t.length;n++){let s=t[n],a=i[i.length-1]??null;if(s.kind==="context"){if(I(s.nodes,r,i,{...e,...s.context})===2)return 2;continue}i.push(s);let f=!1,u=0,c=r(s,{parent:a,context:e,path:i,replaceWith(d){f||(f=!0,Array.isArray(d)?d.length===0?(t.splice(n,1),u=0):d.length===1?(t[n]=d[0],u=1):(t.splice(n,1,...d),u=d.length):(t[n]=d,u=1))}})??0;if(i.pop(),f){c===0?n--:n+=u-1;continue}if(c===2)return 2;if(c!==1&&"nodes"in s){i.push(s);let d=I(s.nodes,r,i,e);if(i.pop(),d===2)return 2}}}function Xe(t,r,i=[],e={}){for(let n=0;n<t.length;n++){let s=t[n],a=i[i.length-1]??null;if(s.kind==="rule"||s.kind==="at-rule")i.push(s),Xe(s.nodes,r,i,e),i.pop();else if(s.kind==="context"){Xe(s.nodes,r,i,{...e,...s.context});continue}i.push(s),r(s,{parent:a,context:e,path:i,replaceWith(f){Array.isArray(f)?f.length===0?t.splice(n,1):f.length===1?t[n]=f[0]:t.splice(n,1,...f):t[n]=f,n+=f.length-1}}),i.pop()}}function be(t,r,i=3){let e=[],n=new Set,s=new B(()=>new Set),a=new B(()=>new Set),f=new Set,u=new Set,c=[],d=[],m=new B(()=>new Set);function g(v,x,y={},V=0){if(v.kind==="declaration"){if(v.property==="--tw-sort"||v.value===void 0||v.value===null)return;if(y.theme&&v.property[0]==="-"&&v.property[1]==="-"){if(v.value==="initial"){v.value=void 0;return}y.keyframes||s.get(x).add(v)}if(v.value.includes("var("))if(y.theme&&v.property[0]==="-"&&v.property[1]==="-")for(let b of Qe(v.value))m.get(b).add(v.property);else r.trackUsedVariables(v.value);if(v.property==="animation")for(let b of sr(v.value))u.add(b);i&2&&v.value.includes("color-mix(")&&a.get(x).add(v),x.push(v)}else if(v.kind==="rule")if(v.selector==="&")for(let b of v.nodes){let S=[];g(b,S,y,V+1),S.length>0&&x.push(...S)}else{let b={...v,nodes:[]};for(let S of v.nodes)g(S,b.nodes,y,V+1);b.nodes.length>0&&x.push(b)}else if(v.kind==="at-rule"&&v.name==="@property"&&V===0){if(n.has(v.params))return;if(i&1){let S=v.params,R=null,L=!1;for(let K of v.nodes)K.kind==="declaration"&&(K.property==="initial-value"?R=K.value:K.property==="inherits"&&(L=K.value==="true"));let P=l(S,R??"initial");P.src=v.src,L?c.push(P):d.push(P)}n.add(v.params);let b={...v,nodes:[]};for(let S of v.nodes)g(S,b.nodes,y,V+1);x.push(b)}else if(v.kind==="at-rule"){v.name==="@keyframes"&&(y={...y,keyframes:!0});let b={...v,nodes:[]};for(let S of v.nodes)g(S,b.nodes,y,V+1);v.name==="@keyframes"&&y.theme&&f.add(b),(b.nodes.length>0||b.name==="@layer"||b.name==="@charset"||b.name==="@custom-media"||b.name==="@namespace"||b.name==="@import")&&x.push(b)}else if(v.kind==="at-root")for(let b of v.nodes){let S=[];g(b,S,y,0);for(let R of S)e.push(R)}else if(v.kind==="context"){if(v.context.reference)return;for(let b of v.nodes)g(b,x,{...y,...v.context},V)}else v.kind==="comment"&&x.push(v)}let w=[];for(let v of t)g(v,w,{},0);e:for(let[v,x]of s)for(let y of x){if(ur(y.property,r.theme,m)){if(y.property.startsWith(r.theme.prefixKey("--animate-")))for(let S of sr(y.value))u.add(S);continue}let b=v.indexOf(y);if(v.splice(b,1),v.length===0){let S=Ui(w,R=>R.kind==="rule"&&R.nodes===v);if(!S||S.length===0)continue e;S.unshift({kind:"at-root",nodes:w});do{let R=S.pop();if(!R)break;let L=S[S.length-1];if(!L||L.kind!=="at-root"&&L.kind!=="at-rule")break;let P=L.nodes.indexOf(R);if(P===-1)break;L.nodes.splice(P,1)}while(!0);continue e}}for(let v of f)if(!u.has(v.params)){let x=e.indexOf(v);e.splice(x,1)}if(w=w.concat(e),i&2)for(let[v,x]of a)for(let y of x){let V=v.indexOf(y);if(V===-1||y.value==null)continue;let b=q(y.value),S=!1;if(ee(b,(P,{replaceWith:K})=>{if(P.kind!=="function"||P.value!=="color-mix")return;let _=!1,H=!1;if(ee(P.nodes,(j,{replaceWith:W})=>{if(j.kind=="word"&&j.value.toLowerCase()==="currentcolor"){H=!0,S=!0;return}let J=j,ie=null,o=new Set;do{if(J.kind!=="function"||J.value!=="var")return;let p=J.nodes[0];if(!p||p.kind!=="word")return;let h=p.value;if(o.has(h)){_=!0;return}if(o.add(h),S=!0,ie=r.theme.resolveValue(null,[p.value]),!ie){_=!0;return}if(ie.toLowerCase()==="currentcolor"){H=!0;return}ie.startsWith("var(")?J=q(ie)[0]:J=null}while(J);W({kind:"word",value:ie})}),_||H){let j=P.nodes.findIndex(J=>J.kind==="separator"&&J.value.trim().includes(","));if(j===-1)return;let W=P.nodes.length>j?P.nodes[j+1]:null;if(!W)return;K(W)}else if(S){let j=P.nodes[2];j.kind==="word"&&(j.value==="oklab"||j.value==="oklch"||j.value==="lab"||j.value==="lch")&&(j.value="srgb")}}),!S)continue;let R={...y,value:Z(b)},L=G("@supports (color: color-mix(in lab, red, red))",[y]);L.src=y.src,v.splice(V,1,R,L)}if(i&1){let v=[];if(c.length>0){let x=G(":root, :host",c);x.src=c[0].src,v.push(x)}if(d.length>0){let x=G("*, ::before, ::after, ::backdrop",d);x.src=d[0].src,v.push(x)}if(v.length>0){let x=w.findIndex(b=>!(b.kind==="comment"||b.kind==="at-rule"&&(b.name==="@charset"||b.name==="@import"))),y=F("@layer","properties",[]);y.src=v[0].src,w.splice(x<0?w.length:x,0,y);let V=G("@layer properties",[F("@supports","((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",v)]);V.src=v[0].src,V.nodes[0].src=v[0].src,w.push(V)}}return w}function oe(t,r){let i=0,e={file:null,code:""};function n(a,f=0){let u="",c=" ".repeat(f);if(a.kind==="declaration"){if(u+=`${c}${a.property}: ${a.value}${a.important?" !important":""};
`,r){i+=c.length;let d=i;i+=a.property.length,i+=2,i+=a.value?.length??0,a.important&&(i+=11);let m=i;i+=2,a.dst=[e,d,m]}}else if(a.kind==="rule"){if(u+=`${c}${a.selector} {
`,r){i+=c.length;let d=i;i+=a.selector.length,i+=1;let m=i;a.dst=[e,d,m],i+=2}for(let d of a.nodes)u+=n(d,f+1);u+=`${c}}
`,r&&(i+=c.length,i+=2)}else if(a.kind==="at-rule"){if(a.nodes.length===0){let d=`${c}${a.name} ${a.params};
`;if(r){i+=c.length;let m=i;i+=a.name.length,i+=1,i+=a.params.length;let g=i;i+=2,a.dst=[e,m,g]}return d}if(u+=`${c}${a.name}${a.params?` ${a.params} `:" "}{
`,r){i+=c.length;let d=i;i+=a.name.length,a.params&&(i+=1,i+=a.params.length),i+=1;let m=i;a.dst=[e,d,m],i+=2}for(let d of a.nodes)u+=n(d,f+1);u+=`${c}}
`,r&&(i+=c.length,i+=2)}else if(a.kind==="comment"){if(u+=`${c}/*${a.value}*/
`,r){i+=c.length;let d=i;i+=2+a.value.length+2;let m=i;a.dst=[e,d,m],i+=1}}else if(a.kind==="context"||a.kind==="at-root")return"";return u}let s="";for(let a of t)s+=n(a,0);return e.code=s,s}function Ui(t,r){let i=[];return I(t,(e,{path:n})=>{if(r(e))return i=[...n],2}),i}function ur(t,r,i,e=new Set){if(e.has(t)||(e.add(t),r.getOptions(t)&24))return!0;{let s=i.get(t)??[];for(let a of s)if(ur(a,r,i,e))return!0}return!1}function sr(t){return t.split(/[\s,]+/)}var Nt=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function De(t){return t.indexOf("(")!==-1&&Nt.some(r=>t.includes(`${r}(`))}function cr(t){if(!Nt.some(s=>t.includes(s)))return t;let r="",i=[],e=null,n=null;for(let s=0;s<t.length;s++){let a=t.charCodeAt(s);if(a>=48&&a<=57||e!==null&&(a===37||a>=97&&a<=122||a>=65&&a<=90)?e=s:(n=e,e=null),a===40){r+=t[s];let f=s;for(let c=s-1;c>=0;c--){let d=t.charCodeAt(c);if(d>=48&&d<=57)f=c;else if(d>=97&&d<=122)f=c;else break}let u=t.slice(f,s);if(Nt.includes(u)){i.unshift(!0);continue}else if(i[0]&&u===""){i.unshift(!0);continue}i.unshift(!1);continue}else if(a===41)r+=t[s],i.shift();else if(a===44&&i[0]){r+=", ";continue}else{if(a===32&&i[0]&&r.charCodeAt(r.length-1)===32)continue;if((a===43||a===42||a===47||a===45)&&i[0]){let f=r.trimEnd(),u=f.charCodeAt(f.length-1),c=f.charCodeAt(f.length-2),d=t.charCodeAt(s+1);if((u===101||u===69)&&c>=48&&c<=57){r+=t[s];continue}else if(u===43||u===42||u===47||u===45){r+=t[s];continue}else if(u===40||u===44){r+=t[s];continue}else t.charCodeAt(s-1)===32?r+=`${t[s]} `:u>=48&&u<=57||d>=48&&d<=57||u===41||d===40||d===43||d===42||d===47||d===45||n!==null&&n===s-1?r+=` ${t[s]} `:r+=t[s]}else r+=t[s]}}return r}function me(t){if(t.indexOf("(")===-1)return Ne(t);let r=q(t);return $t(r),t=Z(r),t=cr(t),t}function Ne(t,r=!1){let i="";for(let e=0;e<t.length;e++){let n=t[e];n==="\\"&&t[e+1]==="_"?(i+="_",e+=1):n==="_"&&!r?i+=" ":i+=n}return i}function $t(t){for(let r of t)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=Ne(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=Ne(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=Ne(r.nodes[i].value,!0);continue}$t([r.nodes[i]])}break}r.value=Ne(r.value),$t(r.nodes);break}case"separator":case"word":{r.value=Ne(r.value);break}default:Li(r)}}function Li(t){throw new Error(`Unexpected value: ${t}`)}var Vt=new Uint8Array(256);function ce(t){let r=0,i=t.length;for(let e=0;e<i;e++){let n=t.charCodeAt(e);switch(n){case 92:e+=1;break;case 39:case 34:for(;++e<i;){let s=t.charCodeAt(e);if(s===92){e+=1;continue}if(s===n)break}break;case 40:Vt[r]=41,r++;break;case 91:Vt[r]=93,r++;break;case 123:break;case 93:case 125:case 41:if(r===0)return!1;r>0&&n===Vt[r-1]&&r--;break;case 59:if(r===0)return!1;break}}return!0}var rt=new Uint8Array(256);function D(t,r){let i=0,e=[],n=0,s=t.length,a=r.charCodeAt(0);for(let f=0;f<s;f++){let u=t.charCodeAt(f);if(i===0&&u===a){e.push(t.slice(n,f)),n=f+1;continue}switch(u){case 92:f+=1;break;case 39:case 34:for(;++f<s;){let c=t.charCodeAt(f);if(c===92){f+=1;continue}if(c===u)break}break;case 40:rt[i]=41,i++;break;case 91:rt[i]=93,i++;break;case 123:rt[i]=125,i++;break;case 93:case 125:case 41:i>0&&u===rt[i-1]&&i--;break}}return e.push(t.slice(n)),e}var ji=58,fr=45,pr=97,dr=122;function*mr(t,r){let i=D(t,":");if(r.theme.prefix){if(i.length===1||i[0]!==r.theme.prefix)return null;i.shift()}let e=i.pop(),n=[];for(let m=i.length-1;m>=0;--m){let g=r.parseVariant(i[m]);if(g===null)return;n.push(g)}let s=!1;e[e.length-1]==="!"?(s=!0,e=e.slice(0,-1)):e[0]==="!"&&(s=!0,e=e.slice(1)),r.utilities.has(e,"static")&&!e.includes("[")&&(yield{kind:"static",root:e,variants:n,important:s,raw:t});let[a,f=null,u]=D(e,"/");if(u)return;let c=f===null?null:St(f);if(f!==null&&c===null)return;if(a[0]==="["){if(a[a.length-1]!=="]")return;let m=a.charCodeAt(1);if(m!==fr&&!(m>=pr&&m<=dr))return;a=a.slice(1,-1);let g=a.indexOf(":");if(g===-1||g===0||g===a.length-1)return;let w=a.slice(0,g),v=me(a.slice(g+1));if(!ce(v))return;yield{kind:"arbitrary",property:w,value:v,modifier:c,variants:n,important:s,raw:t};return}let d;if(a[a.length-1]==="]"){let m=a.indexOf("-[");if(m===-1)return;let g=a.slice(0,m);if(!r.utilities.has(g,"functional"))return;let w=a.slice(m+1);d=[[g,w]]}else if(a[a.length-1]===")"){let m=a.indexOf("-(");if(m===-1)return;let g=a.slice(0,m);if(!r.utilities.has(g,"functional"))return;let w=a.slice(m+2,-1),v=D(w,":"),x=null;if(v.length===2&&(x=v[0],w=v[1]),w[0]!=="-"||w[1]!=="-"||!ce(w))return;d=[[g,x===null?`[var(${w})]`:`[${x}:var(${w})]`]]}else d=hr(a,m=>r.utilities.has(m,"functional"));for(let[m,g]of d){let w={kind:"functional",root:m,modifier:c,value:null,variants:n,important:s,raw:t};if(g===null){yield w;continue}{let v=g.indexOf("[");if(v!==-1){if(g[g.length-1]!=="]")return;let y=me(g.slice(v+1,-1));if(!ce(y))continue;let V="";for(let b=0;b<y.length;b++){let S=y.charCodeAt(b);if(S===ji){V=y.slice(0,b),y=y.slice(b+1);break}if(!(S===fr||S>=pr&&S<=dr))break}if(y.length===0||y.trim().length===0)continue;w.value={kind:"arbitrary",dataType:V||null,value:y}}else{let y=f===null||w.modifier?.kind==="arbitrary"?null:`${g}/${f}`;w.value={kind:"named",value:g,fraction:y}}}yield w}}function St(t){if(t[0]==="["&&t[t.length-1]==="]"){let r=me(t.slice(1,-1));return!ce(r)||r.length===0||r.trim().length===0?null:{kind:"arbitrary",value:r}}return t[0]==="("&&t[t.length-1]===")"?(t=t.slice(1,-1),t[0]!=="-"||t[1]!=="-"||!ce(t)?null:(t=`var(${t})`,{kind:"arbitrary",value:me(t)})):{kind:"named",value:t}}function gr(t,r){if(t[0]==="["&&t[t.length-1]==="]"){if(t[1]==="@"&&t.includes("&"))return null;let i=me(t.slice(1,-1));if(!ce(i)||i.length===0||i.trim().length===0)return null;let e=i[0]===">"||i[0]==="+"||i[0]==="~";return!e&&i[0]!=="@"&&!i.includes("&")&&(i=`&:is(${i})`),{kind:"arbitrary",selector:i,relative:e}}{let[i,e=null,n]=D(t,"/");if(n)return null;let s=hr(i,a=>r.variants.has(a));for(let[a,f]of s)switch(r.variants.kind(a)){case"static":return f!==null||e!==null?null:{kind:"static",root:a};case"functional":{let u=e===null?null:St(e);if(e!==null&&u===null)return null;if(f===null)return{kind:"functional",root:a,modifier:u,value:null};if(f[f.length-1]==="]"){if(f[0]!=="[")continue;let c=me(f.slice(1,-1));return!ce(c)||c.length===0||c.trim().length===0?null:{kind:"functional",root:a,modifier:u,value:{kind:"arbitrary",value:c}}}if(f[f.length-1]===")"){if(f[0]!=="(")continue;let c=me(f.slice(1,-1));return!ce(c)||c.length===0||c.trim().length===0||c[0]!=="-"||c[1]!=="-"?null:{kind:"functional",root:a,modifier:u,value:{kind:"arbitrary",value:`var(${c})`}}}return{kind:"functional",root:a,modifier:u,value:{kind:"named",value:f}}}case"compound":{if(f===null)return null;let u=r.parseVariant(f);if(u===null||!r.variants.compoundsWith(a,u))return null;let c=e===null?null:St(e);return e!==null&&c===null?null:{kind:"compound",root:a,modifier:c,variant:u}}}}return null}function*hr(t,r){r(t)&&(yield[t,null]);let i=t.lastIndexOf("-");for(;i>0;){let e=t.slice(0,i);if(r(e)){let n=[e,t.slice(i+1)];if(n[1]==="")break;yield n}i=t.lastIndexOf("-",i-1)}t[0]==="@"&&r("@")&&(yield["@",t.slice(1)])}function vr(t,r){let i=[];for(let n of r.variants)i.unshift(it(n));t.theme.prefix&&i.unshift(t.theme.prefix);let e="";if(r.kind==="static"&&(e+=r.root),r.kind==="functional"&&(e+=r.root,r.value))if(r.value.kind==="arbitrary"){if(r.value!==null){let n=Tt(r.value.value),s=n?r.value.value.slice(4,-1):r.value.value,[a,f]=n?["(",")"]:["[","]"];r.value.dataType?e+=`-${a}${r.value.dataType}:${$e(s)}${f}`:e+=`-${a}${$e(s)}${f}`}}else r.value.kind==="named"&&(e+=`-${r.value.value}`);return r.kind==="arbitrary"&&(e+=`[${r.property}:${$e(r.value)}]`),(r.kind==="arbitrary"||r.kind==="functional")&&(e+=wr(r.modifier)),r.important&&(e+="!"),i.push(e),i.join(":")}function wr(t){if(t===null)return"";let r=Tt(t.value),i=r?t.value.slice(4,-1):t.value,[e,n]=r?["(",")"]:["[","]"];return t.kind==="arbitrary"?`/${e}${$e(i)}${n}`:t.kind==="named"?`/${t.value}`:""}function it(t){if(t.kind==="static")return t.root;if(t.kind==="arbitrary")return`[${$e(Fi(t.selector))}]`;let r="";if(t.kind==="functional"){r+=t.root;let i=t.root!=="@";if(t.value)if(t.value.kind==="arbitrary"){let e=Tt(t.value.value),n=e?t.value.value.slice(4,-1):t.value.value,[s,a]=e?["(",")"]:["[","]"];r+=`${i?"-":""}${s}${$e(n)}${a}`}else t.value.kind==="named"&&(r+=`${i?"-":""}${t.value.value}`)}return t.kind==="compound"&&(r+=t.root,r+="-",r+=it(t.variant)),(t.kind==="functional"||t.kind==="compound")&&(r+=wr(t.modifier)),r}var Ii=new B(t=>{let r=q(t),i=new Set;return ee(r,(e,{parent:n})=>{let s=n===null?r:n.nodes??[];if(e.kind==="word"&&(e.value==="+"||e.value==="-"||e.value==="*"||e.value==="/")){let a=s.indexOf(e)??-1;if(a===-1)return;let f=s[a-1];if(f?.kind!=="separator"||f.value!==" ")return;let u=s[a+1];if(u?.kind!=="separator"||u.value!==" ")return;i.add(f),i.add(u)}else e.kind==="separator"&&e.value.trim()==="/"?e.value="/":e.kind==="separator"&&e.value.length>0&&e.value.trim()===""?(s[0]===e||s[s.length-1]===e)&&i.add(e):e.kind==="separator"&&e.value.trim()===","&&(e.value=",")}),i.size>0&&ee(r,(e,{replaceWith:n})=>{i.has(e)&&(i.delete(e),n([]))}),Et(r),Z(r)});function $e(t){return Ii.get(t)}var zi=new B(t=>{let r=q(t);return r.length===3&&r[0].kind==="word"&&r[0].value==="&"&&r[1].kind==="separator"&&r[1].value===":"&&r[2].kind==="function"&&r[2].value==="is"?Z(r[2].nodes):t});function Fi(t){return zi.get(t)}function Et(t){for(let r of t)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=Ke(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=Ke(r.value);for(let i=0;i<r.nodes.length;i++)Et([r.nodes[i]]);break}r.value=Ke(r.value),Et(r.nodes);break}case"separator":r.value=Ke(r.value);break;case"word":{(r.value[0]!=="-"||r.value[1]!=="-")&&(r.value=Ke(r.value));break}default:Wi(r)}}var Mi=new B(t=>{let r=q(t);return r.length===1&&r[0].kind==="function"&&r[0].value==="var"});function Tt(t){return Mi.get(t)}function Wi(t){throw new Error(`Unexpected value: ${t}`)}function Ke(t){return t.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function ye(t,r,i){if(t===r)return 0;let e=t.indexOf("("),n=r.indexOf("("),s=e===-1?t.replace(/[\d.]+/g,""):t.slice(0,e),a=n===-1?r.replace(/[\d.]+/g,""):r.slice(0,n),f=(s===a?0:s<a?-1:1)||(i==="asc"?parseInt(t)-parseInt(r):parseInt(r)-parseInt(t));return Number.isNaN(f)?t<r?-1:1:f}var Bi=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","transparent","currentcolor","canvas","canvastext","linktext","visitedtext","activetext","buttonface","buttontext","buttonborder","field","fieldtext","highlight","highlighttext","selecteditem","selecteditemtext","mark","marktext","graytext","accentcolor","accentcolortext"]),qi=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix)\(/i;function kr(t){return t.charCodeAt(0)===35||qi.test(t)||Bi.has(t.toLowerCase())}var Hi={color:kr,length:nt,percentage:Rt,ratio:an,number:yr,integer:T,url:br,position:cn,"bg-size":fn,"line-width":Yi,image:Qi,"family-name":en,"generic-name":Xi,"absolute-size":tn,"relative-size":rn,angle:mn,vector:hn};function Y(t,r){if(t.startsWith("var("))return null;for(let i of r)if(Hi[i]?.(t))return i;return null}var Gi=/^url\(.*\)$/;function br(t){return Gi.test(t)}function Yi(t){return D(t," ").every(r=>nt(r)||yr(r)||r==="thin"||r==="medium"||r==="thick")}var Zi=/^(?:element|image|cross-fade|image-set)\(/,Ji=/^(repeating-)?(conic|linear|radial)-gradient\(/;function Qi(t){let r=0;for(let i of D(t,","))if(!i.startsWith("var(")){if(br(i)){r+=1;continue}if(Ji.test(i)){r+=1;continue}if(Zi.test(i)){r+=1;continue}return!1}return r>0}function Xi(t){return t==="serif"||t==="sans-serif"||t==="monospace"||t==="cursive"||t==="fantasy"||t==="system-ui"||t==="ui-serif"||t==="ui-sans-serif"||t==="ui-monospace"||t==="ui-rounded"||t==="math"||t==="emoji"||t==="fangsong"}function en(t){let r=0;for(let i of D(t,",")){let e=i.charCodeAt(0);if(e>=48&&e<=57)return!1;i.startsWith("var(")||(r+=1)}return r>0}function tn(t){return t==="xx-small"||t==="x-small"||t==="small"||t==="medium"||t==="large"||t==="x-large"||t==="xx-large"||t==="xxx-large"}function rn(t){return t==="larger"||t==="smaller"}var fe=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,nn=new RegExp(`^${fe.source}$`);function yr(t){return nn.test(t)||De(t)}var on=new RegExp(`^${fe.source}%$`);function Rt(t){return on.test(t)||De(t)}var ln=new RegExp(`^${fe.source}s*/s*${fe.source}$`);function an(t){return ln.test(t)||De(t)}var sn=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],un=new RegExp(`^${fe.source}(${sn.join("|")})$`);function nt(t){return un.test(t)||De(t)}function cn(t){let r=0;for(let i of D(t," ")){if(i==="center"||i==="top"||i==="right"||i==="bottom"||i==="left"){r+=1;continue}if(!i.startsWith("var(")){if(nt(i)||Rt(i)){r+=1;continue}return!1}}return r>0}function fn(t){let r=0;for(let i of D(t,",")){if(i==="cover"||i==="contain"){r+=1;continue}let e=D(i," ");if(e.length!==1&&e.length!==2)return!1;if(e.every(n=>n==="auto"||nt(n)||Rt(n))){r+=1;continue}}return r>0}var pn=["deg","rad","grad","turn"],dn=new RegExp(`^${fe.source}(${pn.join("|")})$`);function mn(t){return dn.test(t)}var gn=new RegExp(`^${fe.source} +${fe.source} +${fe.source}$`);function hn(t){return gn.test(t)}function T(t){let r=Number(t);return Number.isInteger(r)&&r>=0&&String(r)===String(t)}function Pt(t){let r=Number(t);return Number.isInteger(r)&&r>0&&String(r)===String(t)}function xe(t){return xr(t,.25)}function ot(t){return xr(t,.25)}function xr(t,r){let i=Number(t);return i>=0&&i%r===0&&String(i)===String(t)}var vn=new Set(["inset","inherit","initial","revert","unset"]),Ar=/^-?(\d+|\.\d+)(.*?)$/g;function Ue(t,r){return D(t,",").map(e=>{e=e.trim();let n=D(e," ").filter(c=>c.trim()!==""),s=null,a=null,f=null;for(let c of n)vn.has(c)||(Ar.test(c)?(a===null?a=c:f===null&&(f=c),Ar.lastIndex=0):s===null&&(s=c));if(a===null||f===null)return e;let u=r(s??"currentcolor");return s!==null?e.replace(s,u):`${e} ${u}`}).join(", ")}var wn=/^-?[a-z][a-zA-Z0-9/%._-]*$/,kn=/^-?[a-z][a-zA-Z0-9/%._-]*-\*$/,at=["0","0.5","1","1.5","2","2.5","3","3.5","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Ot=class{utilities=new B(()=>[]);completions=new Map;static(r,i){this.utilities.get(r).push({kind:"static",compileFn:i})}functional(r,i,e){this.utilities.get(r).push({kind:"functional",compileFn:i,options:e})}has(r,i){return this.utilities.has(r)&&this.utilities.get(r).some(e=>e.kind===i)}get(r){return this.utilities.has(r)?this.utilities.get(r):[]}getCompletions(r){return this.completions.get(r)?.()??[]}suggest(r,i){this.completions.set(r,i)}keys(r){let i=[];for(let[e,n]of this.utilities.entries())for(let s of n)if(s.kind===r){i.push(e);break}return i}};function N(t,r,i){return F("@property",t,[l("syntax",i?`"${i}"`:'"*"'),l("inherits","false"),...r?[l("initial-value",r)]:[]])}function Q(t,r){if(r===null)return t;let i=Number(r);return Number.isNaN(i)||(r=`${i*100}%`),r==="100%"?t:`color-mix(in oklab, ${t} ${r}, transparent)`}function Nr(t,r){let i=Number(r);return Number.isNaN(i)||(r=`${i*100}%`),`oklab(from ${t} l a b / ${r})`}function X(t,r,i){if(!r)return t;if(r.kind==="arbitrary")return Q(t,r.value);let e=i.resolve(r.value,["--opacity"]);return e?Q(t,e):ot(r.value)?Q(t,`${r.value}%`):null}function te(t,r,i){let e=null;switch(t.value.value){case"inherit":{e="inherit";break}case"transparent":{e="transparent";break}case"current":{e="currentcolor";break}default:{e=r.resolve(t.value.value,i);break}}return e?X(e,t.modifier,r):null}var $r=/(\d+)_(\d+)/g;function Vr(t){let r=new Ot;function i(o,p){function*h(k){for(let C of t.keysInNamespaces(k))yield C.replace($r,(O,$,E)=>`${$}.${E}`)}let A=["1/2","1/3","2/3","1/4","2/4","3/4","1/5","2/5","3/5","4/5","1/6","2/6","3/6","4/6","5/6","1/12","2/12","3/12","4/12","5/12","6/12","7/12","8/12","9/12","10/12","11/12"];r.suggest(o,()=>{let k=[];for(let C of p()){if(typeof C=="string"){k.push({values:[C],modifiers:[]});continue}let O=[...C.values??[],...h(C.valueThemeKeys??[])],$=[...C.modifiers??[],...h(C.modifierThemeKeys??[])];C.supportsFractions&&O.push(...A),C.hasDefaultValue&&O.unshift(null),k.push({supportsNegative:C.supportsNegative,values:O,modifiers:$})}return k})}function e(o,p){r.static(o,()=>p.map(h=>typeof h=="function"?h():l(h[0],h[1])))}function n(o,p){function h({negative:A}){return k=>{let C=null,O=null;if(k.value)if(k.value.kind==="arbitrary"){if(k.modifier)return;C=k.value.value,O=k.value.dataType}else{if(C=t.resolve(k.value.fraction??k.value.value,p.themeKeys??[]),C===null&&p.supportsFractions&&k.value.fraction){let[$,E]=D(k.value.fraction,"/");if(!T($)||!T(E))return;C=`calc(${k.value.fraction} * 100%)`}if(C===null&&A&&p.handleNegativeBareValue){if(C=p.handleNegativeBareValue(k.value),!C?.includes("/")&&k.modifier)return;if(C!==null)return p.handle(C,null)}if(C===null&&p.handleBareValue&&(C=p.handleBareValue(k.value),!C?.includes("/")&&k.modifier))return}else{if(k.modifier)return;C=p.defaultValue!==void 0?p.defaultValue:t.resolve(null,p.themeKeys??[])}if(C!==null)return p.handle(A?`calc(${C} * -1)`:C,O)}}p.supportsNegative&&r.functional(`-${o}`,h({negative:!0})),r.functional(o,h({negative:!1})),i(o,()=>[{supportsNegative:p.supportsNegative,valueThemeKeys:p.themeKeys??[],hasDefaultValue:p.defaultValue!==void 0&&p.defaultValue!==null,supportsFractions:p.supportsFractions}])}function s(o,p){r.functional(o,h=>{if(!h.value)return;let A=null;if(h.value.kind==="arbitrary"?(A=h.value.value,A=X(A,h.modifier,t)):A=te(h,t,p.themeKeys),A!==null)return p.handle(A)}),i(o,()=>[{values:["current","inherit","transparent"],valueThemeKeys:p.themeKeys,modifiers:Array.from({length:21},(h,A)=>`${A*5}`)}])}function a(o,p,h,{supportsNegative:A=!1,supportsFractions:k=!1}={}){A&&r.static(`-${o}-px`,()=>h("-1px")),r.static(`${o}-px`,()=>h("1px")),n(o,{themeKeys:p,supportsFractions:k,supportsNegative:A,defaultValue:null,handleBareValue:({value:C})=>{let O=t.resolve(null,["--spacing"]);return!O||!xe(C)?null:`calc(${O} * ${C})`},handleNegativeBareValue:({value:C})=>{let O=t.resolve(null,["--spacing"]);return!O||!xe(C)?null:`calc(${O} * -${C})`},handle:h}),i(o,()=>[{values:t.get(["--spacing"])?at:[],supportsNegative:A,supportsFractions:k,valueThemeKeys:p}])}e("sr-only",[["position","absolute"],["width","1px"],["height","1px"],["padding","0"],["margin","-1px"],["overflow","hidden"],["clip","rect(0, 0, 0, 0)"],["white-space","nowrap"],["border-width","0"]]),e("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip","auto"],["white-space","normal"]]),e("pointer-events-none",[["pointer-events","none"]]),e("pointer-events-auto",[["pointer-events","auto"]]),e("visible",[["visibility","visible"]]),e("invisible",[["visibility","hidden"]]),e("collapse",[["visibility","collapse"]]),e("static",[["position","static"]]),e("fixed",[["position","fixed"]]),e("absolute",[["position","absolute"]]),e("relative",[["position","relative"]]),e("sticky",[["position","sticky"]]);for(let[o,p]of[["inset","inset"],["inset-x","inset-inline"],["inset-y","inset-block"],["start","inset-inline-start"],["end","inset-inline-end"],["top","top"],["right","right"],["bottom","bottom"],["left","left"]])e(`${o}-auto`,[[p,"auto"]]),e(`${o}-full`,[[p,"100%"]]),e(`-${o}-full`,[[p,"-100%"]]),a(o,["--inset","--spacing"],h=>[l(p,h)],{supportsNegative:!0,supportsFractions:!0});e("isolate",[["isolation","isolate"]]),e("isolation-auto",[["isolation","auto"]]),e("z-auto",[["z-index","auto"]]),n("z",{supportsNegative:!0,handleBareValue:({value:o})=>T(o)?o:null,themeKeys:["--z-index"],handle:o=>[l("z-index",o)]}),i("z",()=>[{supportsNegative:!0,values:["0","10","20","30","40","50"],valueThemeKeys:["--z-index"]}]),e("order-first",[["order","-9999"]]),e("order-last",[["order","9999"]]),n("order",{supportsNegative:!0,handleBareValue:({value:o})=>T(o)?o:null,themeKeys:["--order"],handle:o=>[l("order",o)]}),i("order",()=>[{supportsNegative:!0,values:Array.from({length:12},(o,p)=>`${p+1}`),valueThemeKeys:["--order"]}]),e("col-auto",[["grid-column","auto"]]),n("col",{supportsNegative:!0,handleBareValue:({value:o})=>T(o)?o:null,themeKeys:["--grid-column"],handle:o=>[l("grid-column",o)]}),e("col-span-full",[["grid-column","1 / -1"]]),n("col-span",{handleBareValue:({value:o})=>T(o)?o:null,handle:o=>[l("grid-column",`span ${o} / span ${o}`)]}),e("col-start-auto",[["grid-column-start","auto"]]),n("col-start",{supportsNegative:!0,handleBareValue:({value:o})=>T(o)?o:null,themeKeys:["--grid-column-start"],handle:o=>[l("grid-column-start",o)]}),e("col-end-auto",[["grid-column-end","auto"]]),n("col-end",{supportsNegative:!0,handleBareValue:({value:o})=>T(o)?o:null,themeKeys:["--grid-column-end"],handle:o=>[l("grid-column-end",o)]}),i("col-span",()=>[{values:Array.from({length:12},(o,p)=>`${p+1}`),valueThemeKeys:[]}]),i("col-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,p)=>`${p+1}`),valueThemeKeys:["--grid-column-start"]}]),i("col-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,p)=>`${p+1}`),valueThemeKeys:["--grid-column-end"]}]),e("row-auto",[["grid-row","auto"]]),n("row",{supportsNegative:!0,handleBareValue:({value:o})=>T(o)?o:null,themeKeys:["--grid-row"],handle:o=>[l("grid-row",o)]}),e("row-span-full",[["grid-row","1 / -1"]]),n("row-span",{themeKeys:[],handleBareValue:({value:o})=>T(o)?o:null,handle:o=>[l("grid-row",`span ${o} / span ${o}`)]}),e("row-start-auto",[["grid-row-start","auto"]]),n("row-start",{supportsNegative:!0,handleBareValue:({value:o})=>T(o)?o:null,themeKeys:["--grid-row-start"],handle:o=>[l("grid-row-start",o)]}),e("row-end-auto",[["grid-row-end","auto"]]),n("row-end",{supportsNegative:!0,handleBareValue:({value:o})=>T(o)?o:null,themeKeys:["--grid-row-end"],handle:o=>[l("grid-row-end",o)]}),i("row-span",()=>[{values:Array.from({length:12},(o,p)=>`${p+1}`),valueThemeKeys:[]}]),i("row-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,p)=>`${p+1}`),valueThemeKeys:["--grid-row-start"]}]),i("row-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,p)=>`${p+1}`),valueThemeKeys:["--grid-row-end"]}]),e("float-start",[["float","inline-start"]]),e("float-end",[["float","inline-end"]]),e("float-right",[["float","right"]]),e("float-left",[["float","left"]]),e("float-none",[["float","none"]]),e("clear-start",[["clear","inline-start"]]),e("clear-end",[["clear","inline-end"]]),e("clear-right",[["clear","right"]]),e("clear-left",[["clear","left"]]),e("clear-both",[["clear","both"]]),e("clear-none",[["clear","none"]]);for(let[o,p]of[["m","margin"],["mx","margin-inline"],["my","margin-block"],["ms","margin-inline-start"],["me","margin-inline-end"],["mt","margin-top"],["mr","margin-right"],["mb","margin-bottom"],["ml","margin-left"]])e(`${o}-auto`,[[p,"auto"]]),a(o,["--margin","--spacing"],h=>[l(p,h)],{supportsNegative:!0});e("box-border",[["box-sizing","border-box"]]),e("box-content",[["box-sizing","content-box"]]),e("line-clamp-none",[["overflow","visible"],["display","block"],["-webkit-box-orient","horizontal"],["-webkit-line-clamp","unset"]]),n("line-clamp",{themeKeys:["--line-clamp"],handleBareValue:({value:o})=>T(o)?o:null,handle:o=>[l("overflow","hidden"),l("display","-webkit-box"),l("-webkit-box-orient","vertical"),l("-webkit-line-clamp",o)]}),i("line-clamp",()=>[{values:["1","2","3","4","5","6"],valueThemeKeys:["--line-clamp"]}]),e("block",[["display","block"]]),e("inline-block",[["display","inline-block"]]),e("inline",[["display","inline"]]),e("hidden",[["display","none"]]),e("inline-flex",[["display","inline-flex"]]),e("table",[["display","table"]]),e("inline-table",[["display","inline-table"]]),e("table-caption",[["display","table-caption"]]),e("table-cell",[["display","table-cell"]]),e("table-column",[["display","table-column"]]),e("table-column-group",[["display","table-column-group"]]),e("table-footer-group",[["display","table-footer-group"]]),e("table-header-group",[["display","table-header-group"]]),e("table-row-group",[["display","table-row-group"]]),e("table-row",[["display","table-row"]]),e("flow-root",[["display","flow-root"]]),e("flex",[["display","flex"]]),e("grid",[["display","grid"]]),e("inline-grid",[["display","inline-grid"]]),e("contents",[["display","contents"]]),e("list-item",[["display","list-item"]]),e("field-sizing-content",[["field-sizing","content"]]),e("field-sizing-fixed",[["field-sizing","fixed"]]),e("aspect-auto",[["aspect-ratio","auto"]]),e("aspect-square",[["aspect-ratio","1 / 1"]]),n("aspect",{themeKeys:["--aspect"],handleBareValue:({fraction:o})=>{if(o===null)return null;let[p,h]=D(o,"/");return!T(p)||!T(h)?null:o},handle:o=>[l("aspect-ratio",o)]});for(let[o,p]of[["full","100%"],["svw","100svw"],["lvw","100lvw"],["dvw","100dvw"],["svh","100svh"],["lvh","100lvh"],["dvh","100dvh"],["min","min-content"],["max","max-content"],["fit","fit-content"]])e(`size-${o}`,[["--tw-sort","size"],["width",p],["height",p]]),e(`w-${o}`,[["width",p]]),e(`h-${o}`,[["height",p]]),e(`min-w-${o}`,[["min-width",p]]),e(`min-h-${o}`,[["min-height",p]]),e(`max-w-${o}`,[["max-width",p]]),e(`max-h-${o}`,[["max-height",p]]);e("size-auto",[["--tw-sort","size"],["width","auto"],["height","auto"]]),e("w-auto",[["width","auto"]]),e("h-auto",[["height","auto"]]),e("min-w-auto",[["min-width","auto"]]),e("min-h-auto",[["min-height","auto"]]),e("h-lh",[["height","1lh"]]),e("min-h-lh",[["min-height","1lh"]]),e("max-h-lh",[["max-height","1lh"]]),e("w-screen",[["width","100vw"]]),e("min-w-screen",[["min-width","100vw"]]),e("max-w-screen",[["max-width","100vw"]]),e("h-screen",[["height","100vh"]]),e("min-h-screen",[["min-height","100vh"]]),e("max-h-screen",[["max-height","100vh"]]),e("max-w-none",[["max-width","none"]]),e("max-h-none",[["max-height","none"]]),a("size",["--size","--spacing"],o=>[l("--tw-sort","size"),l("width",o),l("height",o)],{supportsFractions:!0});for(let[o,p,h]of[["w",["--width","--spacing","--container"],"width"],["min-w",["--min-width","--spacing","--container"],"min-width"],["max-w",["--max-width","--spacing","--container"],"max-width"],["h",["--height","--spacing"],"height"],["min-h",["--min-height","--height","--spacing"],"min-height"],["max-h",["--max-height","--height","--spacing"],"max-height"]])a(o,p,A=>[l(h,A)],{supportsFractions:!0});r.static("container",()=>{let o=[...t.namespace("--breakpoint").values()];o.sort((h,A)=>ye(h,A,"asc"));let p=[l("--tw-sort","--tw-container-component"),l("width","100%")];for(let h of o)p.push(F("@media",`(width >= ${h})`,[l("max-width",h)]));return p}),e("flex-auto",[["flex","auto"]]),e("flex-initial",[["flex","0 auto"]]),e("flex-none",[["flex","none"]]),r.functional("flex",o=>{if(o.value){if(o.value.kind==="arbitrary")return o.modifier?void 0:[l("flex",o.value.value)];if(o.value.fraction){let[p,h]=D(o.value.fraction,"/");return!T(p)||!T(h)?void 0:[l("flex",`calc(${o.value.fraction} * 100%)`)]}if(T(o.value.value))return o.modifier?void 0:[l("flex",o.value.value)]}}),i("flex",()=>[{supportsFractions:!0}]),n("shrink",{defaultValue:"1",handleBareValue:({value:o})=>T(o)?o:null,handle:o=>[l("flex-shrink",o)]}),n("grow",{defaultValue:"1",handleBareValue:({value:o})=>T(o)?o:null,handle:o=>[l("flex-grow",o)]}),i("shrink",()=>[{values:["0"],valueThemeKeys:[],hasDefaultValue:!0}]),i("grow",()=>[{values:["0"],valueThemeKeys:[],hasDefaultValue:!0}]),e("basis-auto",[["flex-basis","auto"]]),e("basis-full",[["flex-basis","100%"]]),a("basis",["--flex-basis","--spacing","--container"],o=>[l("flex-basis",o)],{supportsFractions:!0}),e("table-auto",[["table-layout","auto"]]),e("table-fixed",[["table-layout","fixed"]]),e("caption-top",[["caption-side","top"]]),e("caption-bottom",[["caption-side","bottom"]]),e("border-collapse",[["border-collapse","collapse"]]),e("border-separate",[["border-collapse","separate"]]);let f=()=>z([N("--tw-border-spacing-x","0","<length>"),N("--tw-border-spacing-y","0","<length>")]);a("border-spacing",["--border-spacing","--spacing"],o=>[f(),l("--tw-border-spacing-x",o),l("--tw-border-spacing-y",o),l("border-spacing","var(--tw-border-spacing-x) var(--tw-border-spacing-y)")]),a("border-spacing-x",["--border-spacing","--spacing"],o=>[f(),l("--tw-border-spacing-x",o),l("border-spacing","var(--tw-border-spacing-x) var(--tw-border-spacing-y)")]),a("border-spacing-y",["--border-spacing","--spacing"],o=>[f(),l("--tw-border-spacing-y",o),l("border-spacing","var(--tw-border-spacing-x) var(--tw-border-spacing-y)")]),e("origin-center",[["transform-origin","center"]]),e("origin-top",[["transform-origin","top"]]),e("origin-top-right",[["transform-origin","top right"]]),e("origin-right",[["transform-origin","right"]]),e("origin-bottom-right",[["transform-origin","bottom right"]]),e("origin-bottom",[["transform-origin","bottom"]]),e("origin-bottom-left",[["transform-origin","bottom left"]]),e("origin-left",[["transform-origin","left"]]),e("origin-top-left",[["transform-origin","top left"]]),n("origin",{themeKeys:["--transform-origin"],handle:o=>[l("transform-origin",o)]}),e("perspective-origin-center",[["perspective-origin","center"]]),e("perspective-origin-top",[["perspective-origin","top"]]),e("perspective-origin-top-right",[["perspective-origin","top right"]]),e("perspective-origin-right",[["perspective-origin","right"]]),e("perspective-origin-bottom-right",[["perspective-origin","bottom right"]]),e("perspective-origin-bottom",[["perspective-origin","bottom"]]),e("perspective-origin-bottom-left",[["perspective-origin","bottom left"]]),e("perspective-origin-left",[["perspective-origin","left"]]),e("perspective-origin-top-left",[["perspective-origin","top left"]]),n("perspective-origin",{themeKeys:["--perspective-origin"],handle:o=>[l("perspective-origin",o)]}),e("perspective-none",[["perspective","none"]]),n("perspective",{themeKeys:["--perspective"],handle:o=>[l("perspective",o)]});let u=()=>z([N("--tw-translate-x","0"),N("--tw-translate-y","0"),N("--tw-translate-z","0")]);e("translate-none",[["translate","none"]]),e("-translate-full",[u,["--tw-translate-x","-100%"],["--tw-translate-y","-100%"],["translate","var(--tw-translate-x) var(--tw-translate-y)"]]),e("translate-full",[u,["--tw-translate-x","100%"],["--tw-translate-y","100%"],["translate","var(--tw-translate-x) var(--tw-translate-y)"]]),a("translate",["--translate","--spacing"],o=>[u(),l("--tw-translate-x",o),l("--tw-translate-y",o),l("translate","var(--tw-translate-x) var(--tw-translate-y)")],{supportsNegative:!0,supportsFractions:!0});for(let o of["x","y"])e(`-translate-${o}-full`,[u,[`--tw-translate-${o}`,"-100%"],["translate","var(--tw-translate-x) var(--tw-translate-y)"]]),e(`translate-${o}-full`,[u,[`--tw-translate-${o}`,"100%"],["translate","var(--tw-translate-x) var(--tw-translate-y)"]]),a(`translate-${o}`,["--translate","--spacing"],p=>[u(),l(`--tw-translate-${o}`,p),l("translate","var(--tw-translate-x) var(--tw-translate-y)")],{supportsNegative:!0,supportsFractions:!0});a("translate-z",["--translate","--spacing"],o=>[u(),l("--tw-translate-z",o),l("translate","var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)")],{supportsNegative:!0}),e("translate-3d",[u,["translate","var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)"]]);let c=()=>z([N("--tw-scale-x","1"),N("--tw-scale-y","1"),N("--tw-scale-z","1")]);e("scale-none",[["scale","none"]]);function d({negative:o}){return p=>{if(!p.value||p.modifier)return;let h;return p.value.kind==="arbitrary"?(h=p.value.value,h=o?`calc(${h} * -1)`:h,[l("scale",h)]):(h=t.resolve(p.value.value,["--scale"]),!h&&T(p.value.value)&&(h=`${p.value.value}%`),h?(h=o?`calc(${h} * -1)`:h,[c(),l("--tw-scale-x",h),l("--tw-scale-y",h),l("--tw-scale-z",h),l("scale","var(--tw-scale-x) var(-