tailwindcss
Version:
A utility-first CSS framework for rapidly building custom user interfaces.
12 lines • 287 kB
JavaScript
"use strict";var In=Object.defineProperty;var Dn=(e,i)=>{for(var r in i)In(e,r,{get:i[r],enumerable:!0})};var Bt={};Dn(Bt,{Features:()=>Le,Polyfills:()=>St,__unstable__loadDesignSystem:()=>Va,compile:()=>Ta,compileAst:()=>_n,default:()=>mt});var Rr="4.3.3";function Ln(e){return{kind:"combinator",value:e}}function qt(e){return{kind:"complex",nodes:e}}function Pr(e){return{kind:"compound",nodes:e}}function Kn(e,i){return{kind:"function",value:e,nodes:i}}function zn(e){return{kind:"list",nodes:e}}function xe(e){return{kind:"selector",value:e}}function Or(e){return{kind:"value",value:e}}function Xe(e){return e.kind==="selector"&&e.value.charCodeAt(0)===Xt}function gt(e){if(e.kind!=="selector")return!1;switch(e.value.charCodeAt(0)){case Xt:case Fr:case Mr:case jr:case Qt:case Jt:return!1;default:return!0}}function ae(e,i=!1){let r="";for(let t of e)switch(t.kind){case"selector":case"value":{r+=t.value;break}case"combinator":{i||t.value===" "?r+=t.value:r+=` ${t.value} `;break}case"function":{r+=`${t.value}(${ae(t.nodes,i)})`;break}case"complex":case"compound":{r+=ae(t.nodes,i);break}case"list":{r+=t.nodes.map(n=>ae([n],i)).join(i?",":", ");break}}return r}var _r=92,Mn=93,Ir=41,Qt=58,Dr=44,jn=34,Mr=46,Ur=62,Gt=10,jr=35,Jt=91,Lr=40,Kr=43,Fn=39,Ht=32,Zt=9,zr=126,Fr=38,Xt=42;function fe(e){e=e.replaceAll(`\r
`,`
`);let i=[],r=i,t=!1,n=[],s=null,l="",f;function u(d=r){return d.length===1?d[0]:t?qt(d):Pr(d)}function p(d){let m=r[r.length-1];m?.kind==="compound"?m.nodes.push(d):m&&m.kind!=="list"&&m.kind!=="combinator"?r[r.length-1]=Pr([m,d]):r.push(d)}for(let d=0;d<e.length;d++){let m=e.charCodeAt(d);switch(m){case Dr:{for(l.length>0&&(p(xe(l)),l="");d+1<e.length&&(f=e.charCodeAt(d+1),!(f!==Gt&&f!==Ht&&f!==Zt));d++);if(s)s.nodes.push(u()),r=[],t=!1;else{let c=r.splice(0),v=u(c),h=zn([v]);r.push(h),s=h,r=[],t=!1}break}case Ur:case Gt:case Ht:case Kr:case Zt:case zr:{l.length>0&&(p(xe(l)),l="");let c=d,v=d+1;for(;v<e.length&&(f=e.charCodeAt(v),!(f!==Ur&&f!==Gt&&f!==Ht&&f!==Kr&&f!==Zt&&f!==zr));v++);d=v-1;let h=e.slice(c,v).trim();if(h===""&&(r.length===0||v>=e.length||e.charCodeAt(v)===Dr))break;r.push(Ln(h===""?" ":h)),t=!0;break}case Lr:{let c=Kn(l,[]);if(l="",c.value!==":not"&&c.value!==":where"&&c.value!==":has"&&c.value!==":is"){let v=d+1,h=0;for(let S=d+1;S<e.length;S++){if(f=e.charCodeAt(S),f===Lr){h++;continue}if(f===Ir){if(h===0){d=S;break}h--}}let b=d,y=e.slice(v,b);if(c.value===":nth-child"||c.value===":nth-last-child"){let S=y.indexOf("of ");if(S!==-1){c.nodes.push(Or(y.slice(0,S+3)),...fe(y.slice(S+3))),l="",d=b,p(c);break}}c.nodes.push(Or(y)),l="",d=b,p(c);break}p(c),n.push({target:r,currentList:s,containsCombinator:t}),r=c.nodes,t=!1,s=null;break}case Ir:{l.length>0&&(p(xe(l)),l=""),s?s.nodes.push(u()):t&&r.splice(0,r.length,qt(r.splice(0)));let c=n.pop();r=c?.target??i,s=c?.currentList??null,t=c?.containsCombinator??!1;break}case Mr:case Qt:case jr:{if(m===Qt&&l===":"){l+=e[d];break}l.length>0&&p(xe(l)),l=e[d];break}case Jt:{l.length>0&&(p(xe(l)),l="");let c=d,v=0;for(let h=d+1;h<e.length;h++){if(f=e.charCodeAt(h),f===Jt){v++;continue}if(f===Mn){if(v===0){d=h;break}v--}}p(xe(e.slice(c,d+1)));break}case Fn:case jn:{let c=d;for(let v=d+1;v<e.length;v++)if(f=e.charCodeAt(v),f===_r)v+=1;else if(f===m){d=v;break}l+=e.slice(c,d+1);break}case Fr:case Xt:{l.length>0&&(p(xe(l)),l=""),p(xe(e[d]));break}case _r:{l+=e[d]+e[d+1],d+=1;break}default:l+=e[d]}}return l.length>0&&p(xe(l)),s?s.nodes.push(u()):t&&r.splice(0,r.length,qt(r.splice(0))),i}function ht(e){let i=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&i.push(n+1);function r(n){let s=0,l=i.length;for(;l>0;){let u=(l|0)>>1,p=s+u;i[p]<=n?(s=p+1,l=l-u-1):l=u}s-=1;let f=n-i[s];return{line:s+1,column:f}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),i.length-1);let l=i[n],f=i[n+1]??l;return Math.min(Math.max(l+s,0),f)}return{find:r,findOffset:t}}var et=92,vt=47,kt=42,Wr=34,Br=39,Wn=58,bt=59,ge=10,wt=13,tt=32,rt=9,Yr=123,tr=125,nr=40,qr=41,Bn=91,Yn=93,Gr=45,rr=64,qn=33,he=class e extends Error{loc;constructor(i,r){if(r){let t=r[0],n=ht(t.code).find(r[1]);i=`${t.file}:${n.line}:${n.column+1}: ${i}`}super(i),this.name="CssSyntaxError",this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Ie(e,i){let r=i?.from?{file:i.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],l=null,f=null,u="",p="",d=0,m;for(let c=0;c<e.length;c++){let v=e.charCodeAt(c);if(!(v===wt&&(m=e.charCodeAt(c+1),m===ge)))if(v===et)u===""&&(d=c),u+=e.slice(c,c+2),c+=1;else if(v===vt&&e.charCodeAt(c+1)===kt){let h=c;for(let y=c+2;y<e.length;y++)if(m=e.charCodeAt(y),m===et)y+=1;else if(m===kt&&e.charCodeAt(y+1)===vt){c=y+1;break}let b=e.slice(h,c+1);if(b.charCodeAt(2)===qn){let y=yt(b.slice(2,-2));n.push(y),r&&(y.src=[r,h,c+1],y.dst=[r,h,c+1])}}else if(v===Br||v===Wr){let h=Hr(e,c,v,r);u+=e.slice(c,h+1),c=h}else{if((v===tt||v===ge||v===rt)&&(m=e.charCodeAt(c+1))&&(m===tt||m===ge||m===rt||m===wt&&(m=e.charCodeAt(c+2))&&m==ge))continue;if(v===ge){if(u.length===0)continue;m=u.charCodeAt(u.length-1),m!==tt&&m!==ge&&m!==rt&&(u+=" ")}else if(v===Gr&&e.charCodeAt(c+1)===Gr&&u.length===0){let h="",b=c,y=-1;for(let x=c+2;x<e.length;x++)if(m=e.charCodeAt(x),m===et)x+=1;else if(m===Br||m===Wr)x=Hr(e,x,m,r);else if(m===vt&&e.charCodeAt(x+1)===kt){for(let w=x+2;w<e.length;w++)if(m=e.charCodeAt(w),m===et)w+=1;else if(m===kt&&e.charCodeAt(w+1)===vt){x=w+1;break}}else if(y===-1&&m===Wn)y=u.length+x-b;else if(m===bt&&h.length===0){u+=e.slice(b,x),c=x;break}else if(m===nr)h+=")";else if(m===Bn)h+="]";else if(m===Yr)h+="}";else if((m===tr||e.length-1===x)&&h.length===0){c=x-1,u+=e.slice(b,x);break}else(m===qr||m===Yn||m===tr)&&h.length>0&&e[x]===h[h.length-1]&&(h=h.slice(0,-1));let S=ir(u,y);if(!S)throw new he("Invalid custom property, expected a value",r?[r,b,c]:null);r&&(S.src=[r,b,c],S.dst=[r,b,c]),l?l.nodes.push(S):t.push(S),u=""}else if(v===bt&&u.charCodeAt(0)===rr)f=it(u),r&&(f.src=[r,d,c],f.dst=[r,d,c]),l?l.nodes.push(f):t.push(f),u="",f=null;else if(v===bt&&p[p.length-1]!==")"){let h=ir(u);if(!h){if(u.length===0)continue;throw new he(`Invalid declaration: \`${u.trim()}\``,r?[r,d,c]:null)}r&&(h.src=[r,d,c],h.dst=[r,d,c]),l?l.nodes.push(h):t.push(h),u=""}else if(v===Yr&&p[p.length-1]!==")")p+="}",f=Z(u.trim()),r&&(f.src=[r,d,c],f.dst=[r,d,c]),l&&l.nodes.push(f),s.push(l),l=f,u="",f=null;else if(v===tr&&p[p.length-1]!==")"){if(p==="")throw new he("Missing opening {",r?[r,c,c]:null);if(p=p.slice(0,-1),u.length>0)if(u.charCodeAt(0)===rr)f=it(u),r&&(f.src=[r,d,c],f.dst=[r,d,c]),l?l.nodes.push(f):t.push(f),u="",f=null;else{let b=u.indexOf(":");if(l){let y=ir(u,b);if(!y)throw new he(`Invalid declaration: \`${u.trim()}\``,r?[r,d,c]:null);r&&(y.src=[r,d,c],y.dst=[r,d,c]),l.nodes.push(y)}}let h=s.pop()??null;h===null&&l&&t.push(l),l=h,u="",f=null}else if(v===nr)p+=")",u+="(";else if(v===qr){if(p[p.length-1]!==")")throw new he("Missing opening (",r?[r,c,c]:null);p=p.slice(0,-1),u+=")"}else{if(u.length===0&&(v===tt||v===ge||v===rt))continue;u===""&&(d=c),u+=String.fromCharCode(v)}}}if(u.charCodeAt(0)===rr){let c=it(u);r&&(c.src=[r,d,e.length],c.dst=[r,d,e.length]),t.push(c)}if(p.length>0&&l){if(l.kind==="rule")throw new he(`Missing closing } at ${l.selector}`,l.src?[l.src[0],l.src[1],l.src[1]]:null);if(l.kind==="at-rule")throw new he(`Missing closing } at ${l.name} ${l.params}`,l.src?[l.src[0],l.src[1],l.src[1]]:null)}return n.length>0?n.concat(t):t}function it(e,i=[]){let r=e,t="";for(let n=5;n<e.length;n++){let s=e.charCodeAt(n);if(s===tt||s===rt||s===nr){r=e.slice(0,n),t=e.slice(n);break}}return B(r.trim(),t.trim(),i)}function ir(e,i=e.indexOf(":")){if(i===-1)return null;let r=e.indexOf("!important",i+1);return o(e.slice(0,i).trim(),e.slice(i+1,r===-1?e.length:r).trim(),r!==-1)}function Hr(e,i,r,t=null){let n;for(let s=i+1;s<e.length;s++)if(n=e.charCodeAt(s),n===et)s+=1;else{if(n===r)return s;if(n===bt&&(e.charCodeAt(s+1)===ge||e.charCodeAt(s+1)===wt&&e.charCodeAt(s+2)===ge))throw new he(`Unterminated string: ${e.slice(i,s+1)+String.fromCharCode(r)}`,t?[t,i,s+1]:null);if(n===ge||n===wt&&e.charCodeAt(s+1)===ge)throw new he(`Unterminated string: ${e.slice(i,s)+String.fromCharCode(r)}`,t?[t,i,s+1]:null)}return i}function Ve(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let i=String(e),r=i.length,t=-1,n,s="",l=i.charCodeAt(0);if(r===1&&l===45)return"\\"+i;for(;++t<r;){if(n=i.charCodeAt(t),n===0){s+="\uFFFD";continue}if(n>=1&&n<=31||n===127||t===0&&n>=48&&n<=57||t===1&&n>=48&&n<=57&&l===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+=i.charAt(t);continue}s+="\\"+i.charAt(t)}return s}function Ae(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,i=>{if(i.length<=2)return i[1];let r=Number.parseInt(i.slice(1).trim(),16);return r===0||r>1114111||r>=55296&&r<=57343?"\uFFFD":String.fromCodePoint(r)})}var Qr=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"]],["--grid-column",["--grid-column-start","--grid-column-end"]],["--grid-row",["--grid-row-start","--grid-row-end"]]]);function Zr(e,i){return(Qr.get(i)??[]).some(r=>e===r||e.startsWith(`${r}-`))}var xt=class{constructor(i=new Map,r=new Set([])){this.values=i;this.keyframes=r}values;keyframes;prefix=null;get size(){return this.values.size}add(i,r,t=0,n){if(i.endsWith("-*")){if(r!=="initial")throw new Error(`Invalid theme value \`${r}\` for namespace \`${i}\``);i==="--*"?this.values.clear():this.clearNamespace(i.slice(0,-2),0)}if(t&4){let s=this.values.get(i);if(s&&!(s.options&4))return}r==="initial"?this.values.delete(i):this.values.set(i,{value:r,options:t,src:n})}keysInNamespaces(i){let r=[];for(let t of i){let n=`${t}-`;for(let s of this.values.keys())s.startsWith(n)&&s.indexOf("--",2)===-1&&(Zr(s,t)||r.push(s.slice(n.length)))}return r}get(i){for(let r of i){let t=this.values.get(r);if(t)return t.value}return null}hasDefault(i){return(this.getOptions(i)&4)===4}getOptions(i){return i=Ae(this.#r(i)),this.values.get(i)?.options??0}entries(){return this.prefix?Array.from(this.values,i=>(i[0]=this.prefixKey(i[0]),i)):this.values.entries()}prefixKey(i){return this.prefix?`--${this.prefix}-${i.slice(2)}`:i}#r(i){return this.prefix?`--${i.slice(3+this.prefix.length)}`:i}clearNamespace(i,r){let t=Qr.get(i)??[];e:for(let n of this.values.keys())if(n.startsWith(i)){if(r!==0&&(this.getOptions(n)&r)!==r)continue;for(let s of t)if(n.startsWith(s))continue e;this.values.delete(n)}}#e(i,r){for(let t of r){let n=i!==null?`${t}-${i}`:t;if(!this.values.has(n))if(i!==null&&i.includes(".")){if(n=`${t}-${i.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!Zr(n,t))return n}return null}#t(i){let r=this.values.get(i);if(!r)return null;let t=null;return r.options&2&&(t=r.value),`var(${Ve(this.prefixKey(i))}${t?`, ${t}`:""})`}markUsedVariable(i){let r=Ae(this.#r(i)),t=this.values.get(r);if(!t)return!1;let n=t.options&16;return t.options|=16,!n}resolve(i,r,t=0){let n=this.#e(i,r);if(!n)return null;let s=this.values.get(n);return(t|s.options)&1?s.value:this.#t(n)}resolveValue(i,r){let t=this.#e(i,r);return t?this.values.get(t).value:null}resolveWith(i,r,t=[]){let n=this.#e(i,r);if(!n)return null;let s={};for(let f of t){let u=`${n}${f}`,p=this.values.get(u);p&&(p.options&1?s[f]=p.value:s[f]=this.#t(u))}let l=this.values.get(n);return l.options&1?[l.value,s]:[this.#t(n),s]}namespace(i){let r=new Map,t=`${i}-`;for(let[n,s]of this.values)n===i?r.set(null,s.value):n.startsWith(`${t}-`)?r.set(n.slice(i.length),s.value):n.startsWith(t)&&r.set(n.slice(t.length),s.value);return r}addKeyframes(i){this.keyframes.add(i)}getKeyframes(){return Array.from(this.keyframes)}};var L=class extends Map{constructor(r){super();this.factory=r}factory;get(r){let t=super.get(r);return t===void 0&&(t=this.factory(r,this),this.set(r,t)),t}};var At=new Uint8Array(256);function K(e,i){let r=0,t=[],n=0,s=e.length,l=i.charCodeAt(0);for(let f=0;f<s;f++){let u=e.charCodeAt(f);if(r===0&&u===l){t.push(e.slice(n,f)),n=f+1;continue}switch(u){case 92:f+=1;break;case 39:case 34:for(;++f<s;){let p=e.charCodeAt(f);if(p===92){f+=1;continue}if(p===u)break}break;case 40:At[r]=41,r++;break;case 91:At[r]=93,r++;break;case 123:At[r]=125,r++;break;case 93:case 125:case 41:r>0&&u===At[r-1]&&r--;break}}return t.push(e.slice(n)),t}function ne(e){return{kind:"word",value:e}}function Gn(e,i){return{kind:"function",value:e,nodes:i}}function Hn(e){return{kind:"separator",value:e}}function F(e){let i="";for(let r of e)switch(r.kind){case"word":case"separator":{i+=r.value;break}case"function":i+=r.value+"("+F(r.nodes)+")"}return i}var Jr=92,Zn=41,Xr=58,ei=44,Qn=34,ti=61,ri=62,ii=60,ni=10,Jn=40,Xn=39,el=47,li=32,oi=9;function j(e){e=e.replaceAll(`\r
`,`
`);let i=[],r=[],t=null,n="",s;for(let l=0;l<e.length;l++){let f=e.charCodeAt(l);switch(f){case Jr:{n+=e[l]+e[l+1],l++;break}case el:{if(n.length>0){let p=ne(n);t?t.nodes.push(p):i.push(p),n=""}let u=ne(e[l]);t?t.nodes.push(u):i.push(u);break}case Xr:case ei:case ti:case ri:case ii:case ni:case li:case oi:{if(n.length>0){let m=ne(n);t?t.nodes.push(m):i.push(m),n=""}let u=l,p=l+1;for(;p<e.length&&(s=e.charCodeAt(p),!(s!==Xr&&s!==ei&&s!==ti&&s!==ri&&s!==ii&&s!==ni&&s!==li&&s!==oi));p++);l=p-1;let d=Hn(e.slice(u,p));t?t.nodes.push(d):i.push(d);break}case Xn:case Qn:{let u=l;for(let p=l+1;p<e.length;p++)if(s=e.charCodeAt(p),s===Jr)p+=1;else if(s===f){l=p;break}n+=e.slice(u,l+1);break}case Jn:{let u=Gn(n,[]);n="",t?t.nodes.push(u):i.push(u),r.push(u),t=u;break}case Zn:{let u=r.pop();if(n.length>0){let p=ne(n);u?.nodes.push(p),n=""}r.length>0?t=r[r.length-1]:t=null;break}default:n+=String.fromCharCode(f)}}return n.length>0&&i.push(ne(n)),i}var or=(l=>(l[l.Continue=0]="Continue",l[l.Skip=1]="Skip",l[l.Stop=2]="Stop",l[l.Replace=3]="Replace",l[l.ReplaceSkip=4]="ReplaceSkip",l[l.ReplaceStop=5]="ReplaceStop",l))(or||{}),$={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function O(e,i){typeof i=="function"?ai(e,i):ai(e,i.enter,i.exit)}function ai(e,i=()=>$.Continue,r=()=>$.Continue){let t={value:[e,0,null],prev:null},n={parent:null,depth:0,index:0,siblings:e,path(){let s=[],l=t;for(;l;){let f=l.value[2];f&&s.push(f),l=l.prev}return s.reverse(),s}};for(;t!==null;){let s=t.value,l=s[0],f=s[1],u=s[2];if(f>=l.length){t=t.prev,n.depth-=1;continue}if(n.parent=u,n.siblings=l,f>=0){n.index=f;let c=l[f],v=i(c,n)??$.Continue;switch(v.kind){case 0:{c.nodes&&c.nodes.length>0&&(n.depth+=1,t={value:[c.nodes,0,c],prev:t}),s[1]=~f;continue}case 2:return;case 1:{s[1]=~f;continue}case 3:{l.splice(f,1,...v.nodes);continue}case 5:{l.splice(f,1,...v.nodes);return}case 4:{l.splice(f,1,...v.nodes),s[1]+=v.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${or[v.kind]??`Unknown(${v.kind})`}\` in enter.`)}}let p=~f;n.index=p;let d=l[p],m=r(d,n)??$.Continue;switch(m.kind){case 0:s[1]=p+1;continue;case 2:return;case 3:{l.splice(p,1,...m.nodes),s[1]=p+m.nodes.length;continue}case 5:{l.splice(p,1,...m.nodes);return}case 4:{l.splice(p,1,...m.nodes),s[1]=p+m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${or[m.kind]??`Unknown(${m.kind})`}\` in exit.`)}}}var tl=new L(e=>{let i=[];return O(j(e),r=>{if(!(r.kind!=="function"||r.value!=="var"))return O(r.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||i.push(t.value)}),$.Skip}),i});function Ct(e){return tl.get(e)}var rl=64,il=124;function H(e,i=[]){return{kind:"rule",selector:e,nodes:i}}function B(e,i="",r=[]){return{kind:"at-rule",name:e,params:i,nodes:r}}function Z(e,i=[]){return e.charCodeAt(0)===rl?it(e,i):H(e,i)}function o(e,i,r=!1){return{kind:"declaration",property:e,value:i,important:r}}function yt(e){return{kind:"comment",value:e}}function be(e,i){return{kind:"context",context:e,nodes:i}}function Y(e){return{kind:"at-root",nodes:e}}function re(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function lt(e){return{depth:e.depth,index:e.index,siblings:e.siblings,get context(){let i={};for(let r of e.path())r.kind==="context"&&Object.assign(i,r.context);return Object.defineProperty(this,"context",{value:i}),i},get parent(){let i=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:i}),i},path(){return e.path().filter(i=>i.kind!=="context")}}}function De(e,i,r=3){let t=[],n=new Set,s=new L(()=>new Set),l=new L(()=>new Set),f=new Set,u=new Set,p=[],d=[],m=new L(()=>new Set);function c(h,b,y={},S=0){if(h.kind==="declaration"){if(h.property==="--tw-sort"||h.value===void 0||h.value===null)return;if(y.theme&&h.property[0]==="-"&&h.property[1]==="-"){if(h.value==="initial"){h.value=void 0;return}y.keyframes||s.get(b).add(h)}if(h.value.includes("var("))if(y.theme&&h.property[0]==="-"&&h.property[1]==="-")for(let x of Ct(h.value))m.get(x).add(h.property);else i.trackUsedVariables(h.value);if(h.property==="animation")for(let x of si(h.value))u.add(x);r&2&&!y.supportsColorMix&&!y.keyframes&&h.value.includes("color-mix(")&&l.get(b).add(h),b.push(h)}else if(h.kind==="rule"){let x=[];for(let w of h.nodes)c(w,x,y,S+1);x.length>0&&b.push({...h,nodes:x})}else if(h.kind==="at-rule"&&h.name==="@property"&&S===0){if(n.has(h.params))return;if(r&1){let w=h.params,I=null,D=!1;for(let z of h.nodes)z.kind==="declaration"&&(z.property==="initial-value"?I=z.value:z.property==="inherits"&&(D=z.value==="true"));let _=o(w,I??"initial");_.src=h.src,D?p.push(_):d.push(_)}n.add(h.params);let x={...h,nodes:[]};for(let w of h.nodes)c(w,x.nodes,y,S+1);b.push(x)}else if(h.kind==="at-rule"){h.name==="@keyframes"?y={...y,keyframes:!0}:h.name==="@supports"&&h.params.includes("color-mix(")&&(y={...y,supportsColorMix:!0});let x={...h,nodes:[]};for(let w of h.nodes)c(w,x.nodes,y,S+1);h.name==="@keyframes"&&y.theme&&f.add(x),(x.nodes.length>0||x.name==="@layer"||x.name==="@charset"||x.name==="@custom-media"||x.name==="@namespace"||x.name==="@import"||x.name==="@apply")&&b.push(x)}else if(h.kind==="at-root")for(let x of h.nodes){let w=[];c(x,w,y,0);for(let I of w)t.push(I)}else if(h.kind==="context"){if(h.context.reference)return;for(let x of h.nodes)c(x,b,{...y,...h.context},S)}else h.kind==="comment"&&b.push(h)}let v=[];for(let h of e)c(h,v,{},0);e:for(let[h,b]of s)for(let y of b){if(ui(y.property,i.theme,m)){if(y.property.startsWith(i.theme.prefixKey("--animate-")))for(let w of si(y.value))u.add(w);continue}let x=h.indexOf(y);if(h.splice(x,1),h.length===0){let w=al(v,I=>I.kind==="rule"&&I.nodes===h);if(!w||w.length===0)continue e;w.unshift({kind:"at-root",nodes:v});do{let I=w.pop();if(!I)break;let D=w[w.length-1];if(!D||D.kind!=="at-root"&&D.kind!=="at-rule")break;let _=D.nodes.indexOf(I);if(_===-1)break;D.nodes.splice(_,1)}while(!0);continue e}}for(let h of f)if(!u.has(h.params)){let b=t.indexOf(h);t.splice(b,1)}if(v=v.concat(t),r&2)for(let[h,b]of l)for(let y of b){let S=h.indexOf(y);if(S===-1||y.value==null)continue;let x=j(y.value),w=!1;if(O(x,_=>{if(_.kind!=="function"||_.value!=="color-mix")return;let z=!1,E=!1;if(O(_.nodes,M=>{if(M.kind=="word"&&M.value.toLowerCase()==="currentcolor"){E=!0,w=!0;return}let G=M,q=null,ee=new Set;do{if(G.kind!=="function"||G.value!=="var")return;let ie=G.nodes[0];if(!ie||ie.kind!=="word")return;let a=ie.value;if(ee.has(a)){z=!0;return}if(ee.add(a),w=!0,q=i.theme.resolveValue(null,[ie.value]),!q){z=!0;return}if(q.toLowerCase()==="currentcolor"){E=!0;return}q.startsWith("var(")?G=j(q)[0]:G=null}while(G);return $.Replace({kind:"word",value:q})}),z||E){let M=_.nodes.findIndex(q=>q.kind==="separator"&&q.value.trim().includes(","));if(M===-1)return;let G=_.nodes.length>M?_.nodes[M+1]:null;return G?$.Replace(G):void 0}else if(w){let M=_.nodes[2];M.kind==="word"&&(M.value==="oklab"||M.value==="oklch"||M.value==="lab"||M.value==="lch")&&(M.value="srgb")}}),!w)continue;let I={...y,value:F(x)},D=Z("@supports (color: color-mix(in lab, red, red))",[y]);D.src=y.src,h.splice(S,1,I,D)}if(r&1){let h=[];if(p.length>0){let b=Z(":root, :host",p);b.src=p[0].src,h.push(b)}if(d.length>0){let b=Z("*, ::before, ::after, ::backdrop",d);b.src=d[0].src,h.push(b)}if(h.length>0){let b=v.findIndex(x=>!(x.kind==="comment"||x.kind==="at-rule"&&(x.name==="@charset"||x.name==="@import"))),y=B("@layer","properties",[]);y.src=h[0].src,v.splice(b<0?v.length:b,0,y);let S=Z("@layer properties",[B("@supports","((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",h)]);S.src=h[0].src,S.nodes[0].src=h[0].src,v.push(S)}}return nl(v)}function nl(e){let i=new L(fe),r=[],t=[],n=null,s=new Set,l=new Set,f=[],u=new Set;O(e,{enter(d){switch(d.kind){case"rule":{if(n=null,r.length===0)if(d.selector.includes("&")){let m=fe(d.selector),c=!1;O(m,v=>{v.kind==="selector"&&v.value==="&"&&(c=!0,v.value=":scope")}),c?r.push([ae(m),d.src,d.dst]):r.push([d.selector,d.src,d.dst])}else r.push([d.selector,d.src,d.dst]);else{if(d.selector==="&"){u.add(d);return}let m=r[r.length-1][0],c=K(d.selector,",").map(v=>{if(!v.includes("&")){let h=i.get(m);return`${h.length===1&&h[0].kind==="list"?`:is(${m})`:m} ${v}`}{let h=fe(v),b=!1;if(O(h,{enter(S,x){if(S.kind!=="selector"||S.value!=="&"||(b=!0,S.value=`:is(${m})`,x.parent===null))return;let w=i.get(m);if(!(w.length===1&&w[0].kind==="list")){if(x.parent.kind==="complex")if(x.index===0){S.value=m;return}else if(x.index===x.siblings.length-1){if(w[0].kind==="complex")return;S.value=m;return}else{if(w[0].kind==="complex")return;S.value=m;return}else if(x.parent.kind==="compound"){if(w[0].kind==="complex"){let I=x.path(),D=I[I.length-2];if(D&&D.kind==="complex"&&D.nodes[0]!==x.parent)return}if(x.siblings.slice(x.index+1).some(I=>Xe(I)||gt(I)))return;if(x.index===0){S.value=m;return}else if(x.index===x.siblings.length-1){if(w[0].kind==="complex"||Xe(w[0])||gt(w[0]))return;S.value=m;return}else{if(w[0].kind==="complex"||Xe(w[0])||gt(w[0]))return;S.value=m;return}}else if(x.parent.kind==="function"){S.value=m;return}}},exit(S,x){if(x.index===0&&x.siblings.length>1&&x.parent?.kind==="compound"&&Xe(S)){let w=x.siblings[1];return w.kind==="selector"&&w.value.charCodeAt(0)===il?void 0:$.ReplaceSkip([])}}}),b)return ae(h);let y=i.get(m);return`${y.length===1&&y[0].kind==="list"?`:is(${m})`:m} ${v}`}}).join(", ");r.push([c,d.src,d.dst])}if(d.nodes.some(m=>m.kind==="declaration")){for(let m of d.nodes)p(m);return $.Skip}break}case"at-rule":{if(n=null,d.nodes.length===0&&!ol.has(d.name))return p(d),u.add(d),$.Skip;if(ll.has(d.name))t.push([d.name,d.params,d.src,d.dst]);else return p(d),u.add(d),$.Skip;break}case"declaration":case"comment":{p(d);break}case"context":case"at-root":break;default:break}},exit(d){if(!u.delete(d))switch(d.kind){case"rule":{n=null,r.pop();break}case"at-rule":{n=null,t.pop();break}case"declaration":case"comment":case"context":case"at-root":break;default:break}}});for(let d of l){let m=new Set;for(let c=d.length-1;c>=0;--c){let v=d[c];if(v.kind!=="declaration")continue;let h=`${v.property}\0${v.value}\0${v.important}`;m.has(h)?d.splice(c,1):m.add(h)}}return f;function p(d){if(n){d.kind==="declaration"&&(s.has(d.property)?l.add(n):s.add(d.property)),n.push(d);return}{if(r.length===0&&t.length===0){let h=f,b=h[h.length-1];if(b&&b.kind==="at-rule"&&d.kind==="at-rule"&&b.nodes.length===0&&d.nodes.length===0&&b.name===d.name&&b.params===d.params)return;f.push(d);return}n=[d],s.clear(),d.kind==="declaration"&&s.add(d.property);let m=null,c=f,v=0;{let h=c[c.length-1];if(h&&h.kind==="at-rule")for(let b=0;b<t.length;b++){let y=t[b];if(!h||h.kind!=="at-rule"||h.name!==y[0]||h.params!==y[1])break;v++,c=h.nodes,h=h.nodes[h.nodes.length-1]}}if(r.length>0){let[h,b,y]=r[r.length-1];if(t.length-v<=0){let S=c[c.length-1];if(S&&S.kind==="rule"&&S.selector===h){S.nodes.push(...n),n=S.nodes,l.add(n);return}}m=Z(h,n),(b||y)&&Object.assign(m,{src:b,dst:y})}for(let h=t.length-1;h>=v;--h){let[b,y,S,x]=t[h];m=B(b,y,m?[m]:n),(S||x)&&Object.assign(m,{src:S,dst:x})}m?c.push(m):c.push(...n)}}}var ll=new Set(["@container","@layer","@media","@page","@starting-style","@supports","@view-transition"]),ol=new Set(["@container","@media","@page","@starting-style","@supports","@view-transition"]);function ue(e,i){let r=0,t={file:null,code:""};function n(l,f=0){let u="",p=" ".repeat(f);if(l.kind==="declaration"){if(u+=`${p}${l.property}: ${l.value}${l.important?" !important":""};
`,i){r+=p.length;let d=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let m=r;r+=2,l.dst=[t,d,m]}}else if(l.kind==="rule"){if(u+=`${p}${l.selector} {
`,i){r+=p.length;let d=r;r+=l.selector.length,r+=1;let m=r;l.dst=[t,d,m],r+=2}for(let d of l.nodes)u+=n(d,f+1);u+=`${p}}
`,i&&(r+=p.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let d=`${p}${l.name} ${l.params};
`;if(i){r+=p.length;let m=r;r+=l.name.length,r+=1,r+=l.params.length;let c=r;r+=2,l.dst=[t,m,c]}return d}if(u+=`${p}${l.name}${l.params?` ${l.params} `:" "}{
`,i){r+=p.length;let d=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let m=r;l.dst=[t,d,m],r+=2}for(let d of l.nodes)u+=n(d,f+1);u+=`${p}}
`,i&&(r+=p.length,r+=2)}else if(l.kind==="comment"){if(u+=`${p}/*${l.value}*/
`,i){r+=p.length;let d=r;r+=2+l.value.length+2;let m=r;l.dst=[t,d,m],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return u}let s="";for(let l of e)s+=n(l,0);return t.code=s,s}function al(e,i){let r=[];return O(e,(t,n)=>{if(i(t))return r=n.path(),r.push(t),$.Stop}),r}function ui(e,i,r,t=new Set){if(t.has(e)||(t.add(e),i.getOptions(e)&24))return!0;{let s=r.get(e)??[];for(let l of s)if(ui(l,i,r,t))return!0}return!1}function si(e){return e.split(/[\s,]+/)}var ar=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function ot(e){return e.indexOf("(")!==-1&&ar.some(i=>e.includes(`${i}(`))}function $t(e){if(!ar.some(s=>e.includes(s)))return e;let i="",r=[],t=null,n=null;for(let s=0;s<e.length;s++){let l=e.charCodeAt(s);if(l>=48&&l<=57||t!==null&&(l===37||l>=97&&l<=122||l>=65&&l<=90)?t=s:(n=t,t=null),l===40){i+=e[s];let f=s;for(let p=s-1;p>=0;p--){let d=e.charCodeAt(p);if(d>=48&&d<=57)f=p;else if(d>=97&&d<=122)f=p;else break}let u=e.slice(f,s);if(ar.includes(u)){r.unshift(!0);continue}else if(r[0]&&u===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(l===41)i+=e[s],r.shift();else if(l===44&&r[0]){i+=", ";continue}else{if(l===32&&r[0]&&i.charCodeAt(i.length-1)===32)continue;if((l===43||l===42||l===47||l===45)&&r[0]){let f=i.trimEnd(),u=f.charCodeAt(f.length-1),p=f.charCodeAt(f.length-2),d=e.charCodeAt(s+1);if((u===101||u===69)&&p>=48&&p<=57){i+=e[s];continue}else if(u===43||u===42||u===47||u===45){i+=e[s];continue}else if(u===40||u===44){i+=e[s];continue}else e.charCodeAt(s-1)===32?i+=`${e[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?i+=` ${e[s]} `:i+=e[s]}else i+=e[s]}}return i}function Ne(e){if(e.indexOf("(")===-1)return Fe(e);let i=j(e);return sr(i),e=F(i),e=$t(e),e}function Fe(e,i=!1){let r="";for(let t=0;t<e.length;t++){let n=e[t];n==="\\"&&e[t+1]==="_"?(r+="_",t+=1):n==="_"&&!i?r+=" ":r+=n}return r}function sr(e){for(let i of e)switch(i.kind){case"function":{if(i.value==="url"||i.value.endsWith("_url")){i.value=Fe(i.value);break}if(i.value==="var"||i.value.endsWith("_var")||i.value==="theme"||i.value.endsWith("_theme")){i.value=Fe(i.value);for(let r=0;r<i.nodes.length;r++){if(r==0&&i.nodes[r].kind==="word"){i.nodes[r].value=Fe(i.nodes[r].value,!0);continue}sr([i.nodes[r]])}break}i.value=Fe(i.value),sr(i.nodes);break}case"separator":case"word":{i.value=Fe(i.value);break}default:sl(i)}}function sl(e){throw new Error(`Unexpected value: ${e}`)}var ur=new Uint8Array(256);function Ce(e){let i=0,r=e.length;for(let t=0;t<r;t++){let n=e.charCodeAt(t);switch(n){case 92:t+=1;break;case 39:case 34:for(;++t<r;){let s=e.charCodeAt(t);if(s===92){t+=1;continue}if(s===n)break}break;case 40:ur[i]=41,i++;break;case 91:ur[i]=93,i++;break;case 123:break;case 93:case 125:case 41:if(i===0)return!1;i>0&&n===ur[i-1]&&i--;break;case 59:if(i===0)return!1;break}}return!0}var ul=58,ci=45,fi=97,pi=122,pr=/^[a-zA-Z0-9_.%-]+$/;function Be(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(We),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(We),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(We),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function We(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:We(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*di(e,i){let r=K(e,":");if(i.theme.prefix){if(r.length===1||r[0]!==i.theme.prefix)return null;r.shift()}let t=r.pop(),n=[];for(let m=r.length-1;m>=0;--m){let c=i.parseVariant(r[m]);if(c===null)return;n.push(c)}let s=!1;t[t.length-1]==="!"?(s=!0,t=t.slice(0,-1)):t[0]==="!"&&(s=!0,t=t.slice(1)),i.utilities.has(t,"static")&&!t.includes("[")&&(yield{kind:"static",root:t,variants:n,important:s,raw:e});let[l,f=null,u]=K(t,"/");if(u)return;let p=f===null?null:cr(f);if(f!==null&&p===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let m=l.charCodeAt(1);if(m!==ci&&!(m>=fi&&m<=pi))return;l=l.slice(1,-1);let c=l.indexOf(":");if(c===-1||c===0||c===l.length-1)return;let v=l.slice(0,c),h=Ne(l.slice(c+1));if(!Ce(h))return;yield{kind:"arbitrary",property:v,value:h,modifier:p,variants:n,important:s,raw:e};return}let d;if(l[l.length-1]==="]"){let m=l.indexOf("-[");if(m===-1)return;let c=l.slice(0,m);if(!i.utilities.has(c,"functional"))return;let v=l.slice(m+1);d=[[c,v]]}else if(l[l.length-1]===")"){let m=l.indexOf("-(");if(m===-1)return;let c=l.slice(0,m);if(!i.utilities.has(c,"functional"))return;let v=l.slice(m+2,-1),h=K(v,":"),b=null;if(h.length===2&&(b=h[0],v=h[1]),v[0]!=="-"||v[1]!=="-"||!Ce(v))return;d=[[c,b===null?`[var(${v})]`:`[${b}:var(${v})]`]]}else d=gi(l,m=>i.utilities.has(m,"functional"));for(let[m,c]of d){let v={kind:"functional",root:m,modifier:p,value:null,variants:n,important:s,raw:e};if(c===null){yield v;continue}{let h=c.indexOf("[");if(h!==-1){if(c[c.length-1]!=="]")return;let y=Ne(c.slice(h+1,-1));if(!Ce(y))continue;let S=null;for(let x=0;x<y.length;x++){let w=y.charCodeAt(x);if(w===ul){S=y.slice(0,x),y=y.slice(x+1);break}if(!(w===ci||w>=fi&&w<=pi))break}if(y.length===0||y.trim().length===0||S==="")continue;v.value={kind:"arbitrary",dataType:S||null,value:y}}else{let y=f===null||v.modifier?.kind==="arbitrary"?null:`${c}/${f}`;if(!pr.test(c))continue;v.value={kind:"named",value:c,fraction:y}}}yield v}}function cr(e){if(e[0]==="["&&e[e.length-1]==="]"){let i=Ne(e.slice(1,-1));return!Ce(i)||i.length===0||i.trim().length===0?null:{kind:"arbitrary",value:i}}return e[0]==="("&&e[e.length-1]===")"?(e=e.slice(1,-1),e[0]!=="-"||e[1]!=="-"||!Ce(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:Ne(e)})):pr.test(e)?{kind:"named",value:e}:null}function mi(e,i){if(e[0]==="["&&e[e.length-1]==="]"){if(e[1]==="@"&&e.includes("&"))return null;let r=Ne(e.slice(1,-1));if(!Ce(r)||r.length===0||r.trim().length===0)return null;let t=r[0]===">"||r[0]==="+"||r[0]==="~";return!t&&r[0]!=="@"&&!r.includes("&")&&(r=`&:is(${r})`),{kind:"arbitrary",selector:r,relative:t}}{let[r,t=null,n]=K(e,"/");if(n)return null;let s=gi(r,l=>i.variants.has(l));for(let[l,f]of s)switch(i.variants.kind(l)){case"static":return f!==null||t!==null?null:{kind:"static",root:l};case"functional":{let u=t===null?null:cr(t);if(t!==null&&u===null)return null;if(f===null)return{kind:"functional",root:l,modifier:u,value:null};if(f[f.length-1]==="]"){if(f[0]!=="[")continue;let p=Ne(f.slice(1,-1));return!Ce(p)||p.length===0||p.trim().length===0?null:{kind:"functional",root:l,modifier:u,value:{kind:"arbitrary",value:p}}}if(f[f.length-1]===")"){if(f[0]!=="(")continue;let p=Ne(f.slice(1,-1));return!Ce(p)||p.length===0||p.trim().length===0||p[0]!=="-"||p[1]!=="-"?null:{kind:"functional",root:l,modifier:u,value:{kind:"arbitrary",value:`var(${p})`}}}if(!pr.test(f))continue;return{kind:"functional",root:l,modifier:u,value:{kind:"named",value:f}}}case"compound":{if(f===null)return null;t&&(l==="not"||l==="has"||l==="in")&&(f=`${f}/${t}`,t=null);let u=i.parseVariant(f);if(u===null||!i.variants.compoundsWith(l,u))return null;let p=t===null?null:cr(t);return t!==null&&p===null?null:{kind:"compound",root:l,modifier:p,variant:u}}}}return null}function*gi(e,i){i(e)&&(yield[e,null]);let r=e.lastIndexOf("-");for(;r>0;){let t=e.slice(0,r);if(i(t)){let n=[t,e.slice(r+1)];if(n[1]===""||n[0]==="@"&&i("@")&&e[r]==="-")break;yield n}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&i("@")&&(yield["@",e.slice(1)])}function hi(e,i){let r=[];for(let n of i.variants)r.unshift(Tt(n));e.theme.prefix&&r.unshift(e.theme.prefix);let t="";if(i.kind==="static"&&(t+=i.root),i.kind==="functional"&&(t+=i.root,i.value))if(i.value.kind==="arbitrary"){if(i.value!==null){let n=dr(i.value.value),s=n?i.value.value.slice(4,-1):i.value.value,[l,f]=n?["(",")"]:["[","]"];i.value.dataType?t+=`-${l}${i.value.dataType}:${Ee(s)}${f}`:t+=`-${l}${Ee(s)}${f}`}}else i.value.kind==="named"&&(t+=`-${i.value.value}`);return i.kind==="arbitrary"&&(t+=`[${i.property}:${Ee(i.value)}]`),(i.kind==="arbitrary"||i.kind==="functional")&&(t+=st(i.modifier)),i.important&&(t+="!"),r.push(t),r.join(":")}function st(e){if(e===null)return"";let i=dr(e.value),r=i?e.value.slice(4,-1):e.value,[t,n]=i?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${t}${Ee(r)}${n}`:e.kind==="named"?`/${e.value}`:""}function Tt(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${Ee(pl(e.selector))}]`;let i="";if(e.kind==="functional"){i+=e.root;let r=e.root!=="@";if(e.value)if(e.value.kind==="arbitrary"){let t=dr(e.value.value),n=t?e.value.value.slice(4,-1):e.value.value,[s,l]=t?["(",")"]:["[","]"];i+=`${r?"-":""}${s}${Ee(n)}${l}`}else e.value.kind==="named"&&(i+=`${r?"-":""}${e.value.value}`)}return e.kind==="compound"&&(i+=e.root,i+="-",i+=Tt(e.variant)),(e.kind==="functional"||e.kind==="compound")&&(i+=st(e.modifier)),i}var cl=new L(e=>{let i=j(e),r=new Set,t=new Set(["~",">","+","-","*","/"]);return O(i,(n,s)=>{if(n.kind==="word"&&t.has(n.value)){let l=s.index;if(l===-1)return;let f=s.siblings[l-1];if(f?.kind!=="separator"||f.value!==" ")return;let u=s.siblings[l+1];if(u?.kind!=="separator"||u.value!==" ")return;let p=s.siblings[l-2];if(p&&t.has(p.value))return;let d=s.siblings[l+2];if(d&&t.has(d.value))return;r.add(f),r.add(u)}else if(n.kind==="separator"&&n.value.length>0&&n.value.trim()==="")(s.siblings[0]===n||s.siblings[s.siblings.length-1]===n)&&r.add(n);else if(n.kind==="separator"&&n.value.trim()===",")n.value=",";else if(n.kind==="function"&&n.value.startsWith("--")){let l=s.index;if(l<=0)return;let f=s.siblings[l-1];if(f?.kind==="separator"&&f.value===",")return;let u=s.siblings[l-2];return u&&!t.has(u.value)?void 0:$.ReplaceSkip({kind:"function",value:"",nodes:[n]})}}),r.size>0&&O(i,n=>{if(r.has(n))return r.delete(n),$.ReplaceSkip([])}),fr(i),F(i)});function Ee(e){return cl.get(e)}var fl=new L(e=>{let i=j(e);return i.length===3&&i[0].kind==="word"&&i[0].value==="&"&&i[1].kind==="separator"&&i[1].value===":"&&i[2].kind==="function"&&i[2].value==="is"?F(i[2].nodes):e});function pl(e){return fl.get(e)}function fr(e){for(let i of e)switch(i.kind){case"function":{if(i.value==="url"||i.value.endsWith("_url")){i.value=at(i.value);break}if(i.value==="var"||i.value.endsWith("_var")||i.value==="theme"||i.value.endsWith("_theme")){i.value=at(i.value);for(let r=0;r<i.nodes.length;r++)fr([i.nodes[r]]);break}i.value=at(i.value),fr(i.nodes);break}case"separator":i.value=at(i.value);break;case"word":{(i.value[0]!=="-"||i.value[1]!=="-")&&(i.value=at(i.value));break}default:ml(i)}}var dl=new L(e=>{let i=j(e);return i.length===1&&i[0].kind==="function"&&i[0].value==="var"});function dr(e){return dl.get(e)}function ml(e){throw new Error(`Unexpected value: ${e}`)}function at(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function Ue(e,i,r){if(e===i)return 0;let t=e.indexOf("("),n=i.indexOf("("),s=t===-1?e.replace(/[\d.]+/g,""):e.slice(0,t),l=n===-1?i.replace(/[\d.]+/g,""):i.slice(0,n),f=(s===l?0:s<l?-1:1)||(r==="asc"?parseInt(e)-parseInt(i):parseInt(i)-parseInt(e));return Number.isNaN(f)?e<i?-1:1:f}var gl=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,le=new L(e=>{let i=gl.exec(e);if(!i)return null;let r=i.groups?.value;if(r===void 0)return null;let t=Number(r);if(Number.isNaN(t))return null;let n=i.groups?.unit;return n===void 0?[t,null]:[t,n]});var vi=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"]),hl=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;function ki(e){return e.charCodeAt(0)===35||hl.test(e)||vi.has(e.toLowerCase())}function bi(e){return vi.has(e.toLowerCase())}var vl={color:ki,length:$e,percentage:mr,ratio:El,number:yi,integer:P,url:wi,position:_l,"bg-size":Il,"line-width":bl,image:xl,"family-name":Cl,"generic-name":Al,"absolute-size":Sl,"relative-size":$l,angle:Ll,vector:zl};function Q(e,i){if(e.startsWith("var("))return null;for(let r of i)if(vl[r]?.(e))return r;return null}var kl=/^url\(.*\)$/;function wi(e){return kl.test(e)}function bl(e){return K(e," ").every(i=>$e(i)||yi(i)||i==="thin"||i==="medium"||i==="thick")}var wl=/^(?:element|image|cross-fade|image-set)\(/,yl=/^(repeating-)?(conic|linear|radial)-gradient\(/;function xl(e){let i=0;for(let r of K(e,","))if(!r.startsWith("var(")){if(wi(r)){i+=1;continue}if(yl.test(r)){i+=1;continue}if(wl.test(r)){i+=1;continue}return!1}return i>0}function Al(e){return e==="serif"||e==="sans-serif"||e==="monospace"||e==="cursive"||e==="fantasy"||e==="system-ui"||e==="ui-serif"||e==="ui-sans-serif"||e==="ui-monospace"||e==="ui-rounded"||e==="math"||e==="emoji"||e==="fangsong"}function Cl(e){let i=0;for(let r of K(e,",")){let t=r.charCodeAt(0);if(t>=48&&t<=57)return!1;r.startsWith("var(")||(i+=1)}return i>0}function Sl(e){return e==="xx-small"||e==="x-small"||e==="small"||e==="medium"||e==="large"||e==="x-large"||e==="xx-large"||e==="xxx-large"}function $l(e){return e==="larger"||e==="smaller"}var Se=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Tl=new RegExp(`^${Se.source}$`);function yi(e){return Tl.test(e)||ot(e)}var Vl=new RegExp(`^${Se.source}%$`);function mr(e){return Vl.test(e)||ot(e)}var Nl=new RegExp(`^${Se.source}\\s*/\\s*${Se.source}$`);function El(e){return Nl.test(e)||ot(e)}var Rl=["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"],Pl=new RegExp(`^${Se.source}(${Rl.join("|")})$`),Ol=/^(--spacing)\(/i;function $e(e){return Pl.test(e)||Ol.test(e)||ot(e)}function _l(e){let i=0;for(let r of K(e," ")){if(r==="center"||r==="top"||r==="right"||r==="bottom"||r==="left"){i+=1;continue}if(!r.startsWith("var(")){if($e(r)||mr(r)){i+=1;continue}return!1}}return i>0}function Il(e){let i=0;for(let r of K(e,",")){if(r==="cover"||r==="contain"){i+=1;continue}let t=K(r," ");if(t.length!==1&&t.length!==2)return!1;if(t.every(n=>n==="auto"||$e(n)||mr(n))){i+=1;continue}}return i>0}var Dl=["deg","rad","grad","turn"],Ul=new RegExp(`^${Se.source}(${Dl.join("|")})$`);function Ll(e){return Ul.test(e)}var Kl=new RegExp(`^${Se.source} +${Se.source} +${Se.source}$`);function zl(e){return Kl.test(e)}function P(e){let i=Number(e);return Number.isInteger(i)&&i>=0&&String(i)===String(e)}function gr(e){let i=Number(e);return Number.isInteger(i)&&i>0&&String(i)===String(e)}function J(e){return xi(e,.25)}function Re(e){return xi(e,.25)}function xi(e,i){let r=Number(e);return r>=0&&r%i===0&&String(r)===String(e)}var Ml=new Set(["inset","inherit","initial","revert","unset"]),jl=new Set(["calc","clamp","max","min","--spacing"]),Fl=new Set(["color","color-mix","contrast-color","device-cmyk","hsl","hsla","hwb","lab","lch","light-dark","oklab","oklch","rgb","rgba","--alpha"]),Wl=/^-?(\d+|\.\d+)(.*?)$/;function ut(e,i){function r(n){let s=F([n]),l=i(s);return j(l)}return K(e,",").map(n=>{n=n.trim();let s=j(n),l=null,f=0,u=0,p=!1;return O(s,d=>{switch(d.kind){case"word":{if(Ml.has(d.value.toLowerCase()))return $.Continue;if(Wl.test(d.value.toLowerCase()))return u++,$.Continue;if(d.value[0]==="#"||bi(d.value))return p=!0,$.ReplaceStop(r(d));l=d,f++;break}case"function":return Fl.has(d.value.toLowerCase())?(p=!0,$.ReplaceStop(r(d))):jl.has(d.value.toLowerCase())?(u++,$.Skip):(l=d,f++,$.Skip);case"separator":return $.Continue;default:}}),p?F(s):u<2?n:f===0?`${n} ${i("currentcolor")}`:(f===1&&O(s,d=>d===l?(p=!0,$.ReplaceStop(r(d))):$.Skip),p?F(s):n)}).join(", ")}var Rt=["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"],hr=class{utilities=new L(()=>[]);completions=new Map;static(i,r){this.utilities.get(i).push({kind:"static",compileFn:r})}functional(i,r,t){this.utilities.get(i).push({kind:"functional",compileFn:r,options:t})}has(i,r){return this.utilities.has(i)&&this.utilities.get(i).some(t=>t.kind===r)}get(i){return this.utilities.has(i)?this.utilities.get(i):[]}getCompletions(i){return this.has(i,"static")?this.completions.get(i)?.()??[{supportsNegative:!1,values:[],modifiers:[]}]:this.completions.get(i)?.()??[]}suggest(i,r){let t=this.completions.get(i);t?this.completions.set(i,()=>[...t?.(),...r?.()]):this.completions.set(i,r)}keys(i){let r=[];for(let[t,n]of this.utilities.entries())for(let s of n)if(s.kind===i){r.push(t);break}return r}};function T(e,i,r){return B("@property",e,[o("syntax",r?`"${r}"`:'"*"'),o("inherits","false"),...i?[o("initial-value",i)]:[]])}function X(e,i){if(i===null)return e;let r=Number(i);return Number.isNaN(r)||(i=`${r*100}%`),i==="100%"?e:`color-mix(in oklab, ${e} ${i}, transparent)`}function Ci(e,i){let r=Number(i);return Number.isNaN(r)||(i=`${r*100}%`),`oklab(from ${e} l a b / ${i})`}function te(e,i,r){if(!i)return e;if(i.kind==="arbitrary")return X(e,i.value);let t=r.resolve(i.value,["--opacity"]);return t?X(e,t):Re(i.value)?X(e,`${i.value}%`):null}function oe(e,i,r){let t=null;switch(e.value.value){case"inherit":{t="inherit";break}case"transparent":{t="transparent";break}case"current":{t="currentcolor";break}default:{t=i.resolve(e.value.value,r);break}}return t?te(t,e.modifier,i):null}var Si=/(\d+)_(\d+)/g;function $i(e){let i=new hr;function r(a,g){function*k(A){for(let V of e.keysInNamespaces(A))yield V.replace(Si,(U,N,R)=>`${N}.${R}`)}let C=["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"];i.suggest(a,()=>{let A=[];for(let V of g()){if(typeof V=="string"){A.push({values:[V],modifiers:[]});continue}let U=[...V.values??[],...k(V.valueThemeKeys??[])],N=[...V.modifiers??[],...k(V.modifierThemeKeys??[])];V.supportsFractions&&U.push(...C),V.hasDefaultValue&&U.unshift(null),A.push({supportsNegative:V.supportsNegative,values:U,modifiers:N})}return A})}function t(a,g){i.static(a,()=>g.map(k=>typeof k=="function"?k():o(k[0],k[1])))}function n(a,g){g.staticValues&&(g.staticValues=Object.assign(Object.create(null),g.staticValues));function k({negative:C}){return A=>{let V=null,U=null;if(A.value)if(A.value.kind==="arbitrary"){if(A.modifier)return;V=A.value.value,U=A.value.dataType}else{if(V=e.resolve(A.value.fraction??A.value.value,g.themeKeys??[]),V===null&&g.supportsFractions&&A.value.fraction){let[N,R]=K(A.value.fraction,"/");if(!P(N)||!P(R))return;V=`calc(${N} / ${R} * 100%)`}if(V===null&&C&&g.handleNegativeBareValue){if(V=g.handleNegativeBareValue(A.value),!V?.includes("/")&&A.modifier)return;if(V!==null)return g.handle(V,null)}if(V===null&&g.handleBareValue&&(V=g.handleBareValue(A.value),!V?.includes("/")&&A.modifier))return;if(V===null&&!C&&g.staticValues&&!A.modifier){let N=g.staticValues[A.value.value];if(N)return N.map(re)}}else{if(A.modifier)return;V=g.defaultValue!==void 0?g.defaultValue:e.resolve(null,g.themeKeys??[])}if(V!==null)return g.handle(C?$t(`calc(${V} * -1)`):V,U)}}if(g.supportsNegative&&i.functional(`-${a}`,k({negative:!0})),i.functional(a,k({negative:!1})),r(a,()=>[{supportsNegative:g.supportsNegative,valueThemeKeys:g.themeKeys??[],hasDefaultValue:g.defaultValue!==void 0&&g.defaultValue!==null,supportsFractions:g.supportsFractions}]),g.staticValues&&Object.keys(g.staticValues).length>0){let C=Object.keys(g.staticValues);r(a,()=>[{values:C}])}}function s(a,g){i.functional(a,k=>{if(!k.value)return;let C=null;if(k.value.kind==="arbitrary"?(C=k.value.value,C=te(C,k.modifier,e)):C=oe(k,e,g.themeKeys),C!==null)return g.handle(C)}),r(a,()=>[{values:["current","inherit","transparent"],valueThemeKeys:g.themeKeys,modifierThemeKeys:["--opacity"],modifiers:Array.from({length:21},(k,C)=>`${C*5}`)}])}function l(a,g,k,{supportsNegative:C=!1,supportsFractions:A=!1,staticValues:V}={}){C&&i.static(`-${a}-px`,()=>k("-1px")),i.static(`${a}-px`,()=>k("1px")),n(a,{themeKeys:g,supportsFractions:A,supportsNegative:C,defaultValue:null,handleBareValue:({value:U})=>!e.resolve(null,["--spacing"])||!J(U)?null:`--spacing(${U})`,handleNegativeBareValue:({value:U})=>!e.resolve(null,["--spacing"])||!J(U)?null:`--spacing(-${U})`,handle:k,staticValues:V}),r(a,()=>[{values:e.get(["--spacing"])?Rt:[],supportsNegative:C,supportsFractions:A,valueThemeKeys:g}])}t("sr-only",[["position","absolute"],["width","1px"],["height","1px"],["padding","0"],["margin","-1px"],["overflow","hidden"],["clip-path","inset(50%)"],["white-space","nowrap"],["border-width","0"]]),t("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip-path","none"],["white-space","normal"]]),t("pointer-events-none",[["pointer-events","none"]]),t("pointer-events-auto",[["pointer-events","auto"]]),t("visible",[["visibility","visible"]]),t("invisible",[["visibility","hidden"]]),t("collapse",[["visibility","collapse"]]),t("static",[["position","static"]]),t("fixed",[["position","fixed"]]),t("absolute",[["position","absolute"]]),t("relative",[["position","relative"]]),t("sticky",[["position","sticky"]]);for(let[a,g]of[["inset","inset"],["inset-x","inset-inline"],["inset-y","inset-block"],["inset-s","inset-inline-start"],["inset-e","inset-inline-end"],["inset-bs","inset-block-sta