tailwindcss 0.0.0-insiders.X97cd43b → 0.0.0-insiders.Xc562ea3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.d.mts CHANGED
@@ -104,7 +104,7 @@ declare class Variants {
104
104
  compoundsWith: Compounds;
105
105
  compounds: Compounds;
106
106
  } | undefined;
107
- kind(name: string): "static" | "arbitrary" | "functional" | "compound";
107
+ kind(name: string): "compound" | "arbitrary" | "static" | "functional";
108
108
  compoundsWith(parent: string, child: string | Variant): boolean;
109
109
  suggest(name: string, suggestions: () => string[]): void;
110
110
  getCompletions(name: string): string[];
package/dist/lib.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Ul=Object.defineProperty;var Kl=(e,r)=>{for(var n in r)Ul(e,n,{get:r[n],enumerable:!0})};var cr={};Kl(cr,{Features:()=>Fe,Polyfills:()=>mt,__unstable__loadDesignSystem:()=>xu,compile:()=>yu,compileAst:()=>Ll,default:()=>Tt});var pn="0.0.0-insiders.X97cd43b";function Ml(e){return{kind:"combinator",value:e}}function pr(e){return{kind:"complex",nodes:e}}function dn(e){return{kind:"compound",nodes:e}}function Fl(e,r){return{kind:"function",value:e,nodes:r}}function jl(e){return{kind:"list",nodes:e}}function Ce(e){return{kind:"selector",value:e}}function mn(e){return{kind:"value",value:e}}function at(e){return e.kind==="selector"&&e.value.charCodeAt(0)===kr}var Wl=new Set([":before",":after",":first-line",":first-letter"]);function Vt(e){return e.kind!=="selector"&&e.kind!=="function"?!1:e.value.startsWith("::")||Wl.has(e.value.toLowerCase())}function $t(e){if(e.kind!=="selector")return!1;switch(e.value.charCodeAt(0)){case kr:case Cn:case xn:case An:case hr:case vr:return!1;default:return!0}}function ae(e,r=!1){let n="";for(let t of e)switch(t.kind){case"selector":case"value":{n+=t.value;break}case"combinator":{r||t.value===" "?n+=t.value:n+=` ${t.value} `;break}case"function":{n+=`${t.value}(${ae(t.nodes,r)})`;break}case"complex":case"compound":{n+=ae(t.nodes,r);break}case"list":{n+=t.nodes.map(i=>ae([i],r)).join(r?",":", ");break}}return n}var gn=92,Bl=93,hn=41,hr=58,vn=44,Hl=34,xn=46,kn=62,dr=10,An=35,vr=91,bn=40,wn=43,Yl=39,mr=32,gr=9,yn=126,Cn=38,kr=42;function fe(e){e=e.replaceAll(`\r
1
+ "use strict";var Ul=Object.defineProperty;var Kl=(e,r)=>{for(var n in r)Ul(e,n,{get:r[n],enumerable:!0})};var cr={};Kl(cr,{Features:()=>Fe,Polyfills:()=>mt,__unstable__loadDesignSystem:()=>xu,compile:()=>yu,compileAst:()=>Ll,default:()=>Tt});var pn="0.0.0-insiders.Xc562ea3";function Ml(e){return{kind:"combinator",value:e}}function pr(e){return{kind:"complex",nodes:e}}function dn(e){return{kind:"compound",nodes:e}}function Fl(e,r){return{kind:"function",value:e,nodes:r}}function jl(e){return{kind:"list",nodes:e}}function Ce(e){return{kind:"selector",value:e}}function mn(e){return{kind:"value",value:e}}function at(e){return e.kind==="selector"&&e.value.charCodeAt(0)===kr}var Wl=new Set([":before",":after",":first-line",":first-letter"]);function Vt(e){return e.kind!=="selector"&&e.kind!=="function"?!1:e.value.startsWith("::")||Wl.has(e.value.toLowerCase())}function $t(e){if(e.kind!=="selector")return!1;switch(e.value.charCodeAt(0)){case kr:case Cn:case xn:case An:case hr:case vr:return!1;default:return!0}}function ae(e,r=!1){let n="";for(let t of e)switch(t.kind){case"selector":case"value":{n+=t.value;break}case"combinator":{r||t.value===" "?n+=t.value:n+=` ${t.value} `;break}case"function":{n+=`${t.value}(${ae(t.nodes,r)})`;break}case"complex":case"compound":{n+=ae(t.nodes,r);break}case"list":{n+=t.nodes.map(i=>ae([i],r)).join(r?",":", ");break}}return n}var gn=92,Bl=93,hn=41,hr=58,vn=44,Hl=34,xn=46,kn=62,dr=10,An=35,vr=91,bn=40,wn=43,Yl=39,mr=32,gr=9,yn=126,Cn=38,kr=42;function fe(e){e=e.replaceAll(`\r
2
2
  `,`
3
3
  `);let r=[],n=r,t=!1,i=[],o=null,l="",a;function c(d=n){return d.length===1?d[0]:t?pr(d):dn(d)}function f(d){let m=n[n.length-1];m?.kind==="compound"?m.nodes.push(d):m&&m.kind!=="list"&&m.kind!=="combinator"?n[n.length-1]=dn([m,d]):n.push(d)}for(let d=0;d<e.length;d++){let m=e.charCodeAt(d);switch(m){case vn:{for(l.length>0&&(f(Ce(l)),l="");d+1<e.length&&(a=e.charCodeAt(d+1),!(a!==dr&&a!==mr&&a!==gr));d++);if(o)o.nodes.push(c()),n=[],t=!1;else{let p=n.splice(0),h=c(p),b=jl([h]);n.push(b),o=b,n=[],t=!1}break}case kn:case dr:case mr:case wn:case gr:case yn:{l.length>0&&(f(Ce(l)),l="");let p=d,h=d+1;for(;h<e.length&&(a=e.charCodeAt(h),!(a!==kn&&a!==dr&&a!==mr&&a!==wn&&a!==gr&&a!==yn));h++);d=h-1;let b=e.slice(p,h).trim();if(b===""&&(n.length===0||h>=e.length||e.charCodeAt(h)===vn))break;n.push(Ml(b===""?" ":b)),t=!0;break}case bn:{let p=Fl(l,[]);if(l="",p.value!==":not"&&p.value!==":where"&&p.value!==":has"&&p.value!==":is"&&p.value!==":-moz-any"&&p.value!==":-webkit-any"){let h=d+1,b=0;for(let x=d+1;x<e.length;x++){if(a=e.charCodeAt(x),a===bn){b++;continue}if(a===hn){if(b===0){d=x;break}b--}}let k=d,w=e.slice(h,k);if(p.value===":nth-child"||p.value===":nth-last-child"){let x=w.indexOf("of ");if(x!==-1){p.nodes.push(mn(w.slice(0,x+3)),...fe(w.slice(x+3))),l="",d=k,f(p);break}}p.nodes.push(mn(w)),l="",d=k,f(p);break}f(p),i.push({target:n,currentList:o,containsCombinator:t}),n=p.nodes,t=!1,o=null;break}case hn:{l.length>0&&(f(Ce(l)),l=""),o?o.nodes.push(c()):t&&n.splice(0,n.length,pr(n.splice(0)));let p=i.pop();n=p?.target??r,o=p?.currentList??null,t=p?.containsCombinator??!1;break}case xn:case hr:case An:{if(m===hr&&l===":"){l+=e[d];break}l.length>0&&f(Ce(l)),l=e[d];break}case vr:{l.length>0&&(f(Ce(l)),l="");let p=d,h=0;for(let b=d+1;b<e.length;b++){if(a=e.charCodeAt(b),a===vr){h++;continue}if(a===Bl){if(h===0){d=b;break}h--}}f(Ce(e.slice(p,d+1)));break}case Yl:case Hl:{let p=d;for(let h=d+1;h<e.length;h++)if(a=e.charCodeAt(h),a===gn)h+=1;else if(a===m){d=h;break}l+=e.slice(p,d+1);break}case Cn:case kr:{l.length>0&&(f(Ce(l)),l=""),f(Ce(e[d]));break}case gn:{l+=e[d]+e[d+1],d+=1;break}default:l+=e[d]}}return l.length>0&&f(Ce(l)),o?o.nodes.push(c()):t&&n.splice(0,n.length,pr(n.splice(0))),r}function Rt(e){let r=[0];for(let i=0;i<e.length;i++)e.charCodeAt(i)===10&&r.push(i+1);function n(i){let o=0,l=r.length;for(;l>0;){let c=(l|0)>>1,f=o+c;r[f]<=i?(o=f+1,l=l-c-1):l=c}o-=1;let a=i-r[o];return{line:o+1,column:a}}function t({line:i,column:o}){i-=1,i=Math.min(Math.max(i,0),r.length-1);let l=r[i],a=r[i+1]??l;return Math.min(Math.max(l+o,0),a)}return{find:n,findOffset:t}}var Ke=92,Ot=47,Pt=42,Ar=34,Cr=39,Gl=58,It=59,pe=10,Ue=13,De=32,Le=9,ql=12,Sn=123,wr=125,st=40,Sr=41,Zl=91,Ql=93,Ve=45,Dt=64,En=33,Jl=60,Xl=62,eo=35,to=95,Vn=48,$n=57,Rn=65,ro=90,no=70,On=97,io=102,lo=122,oo=108,ao=114,so=117,uo=128,yr=32,be=class e extends Error{loc;constructor(r,n){if(n){let t=n[0],i=Rt(t.code).find(n[1]);r=`${t.file}:${i.line}:${i.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=n,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function ze(e,r){let n=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],i=[],o=[],l=null,a=null,c="",f="",d=0,m;for(let p=0;p<e.length;p++){let h=e.charCodeAt(p);if(!(h===Ue&&(m=e.charCodeAt(p+1),m===pe)))if(h===Ke)c===""&&(d=p),c+=e.slice(p,p+2),p+=1;else if(h===Ot&&e.charCodeAt(p+1)===Pt){let b=p;for(let w=p+2;w<e.length;w++)if(m=e.charCodeAt(w),m===Pt&&e.charCodeAt(w+1)===Ot){p=w+1;break}let k=e.slice(b,p+1);if(k.charCodeAt(2)===En){let w=Ut(k.slice(2,-2));i.push(w),n&&(w.src=[n,b,p+1],w.dst=[n,b,p+1])}}else if(h===Cr||h===Ar){let b=Tn(e,p,h,n);c+=e.slice(p,b+1),p=b}else{if((h===De||h===pe||h===Le)&&(m=e.charCodeAt(p+1))&&(m===De||m===pe||m===Le||m===Ue&&(m=e.charCodeAt(p+2))&&m==pe))continue;if(h===pe){if(c.length===0)continue;m=c.charCodeAt(c.length-1),m!==De&&m!==pe&&m!==Le&&(c+=" ")}else if(l===null&&c.length===0&&(h===Ve&&e.charCodeAt(p+1)===Ve&&e.charCodeAt(p+2)===Xl||h===Jl&&e.charCodeAt(p+1)===En&&e.charCodeAt(p+2)===Ve&&e.charCodeAt(p+3)===Ve))p+=h===Ve?2:3;else if(h===Ve&&e.charCodeAt(p+1)===Ve&&c.length===0){let b="",k=p,w=-1,x=0,C=-1;for(let E=p+2;E<e.length;E++){if(m=e.charCodeAt(E),m===Ke)E+=1;else if(m===Cr||m===Ar)E=Tn(e,E,m,n);else if(m===Ot&&e.charCodeAt(E+1)===Pt){for(let $=E+2;$<e.length;$++)if(m=e.charCodeAt($),m===Pt&&e.charCodeAt($+1)===Ot){E=$+1;break}continue}else if(w===-1&&m===Gl)w=c.length+E-k;else if(m===It&&b.length===0){c+=e.slice(k,E),p=E;break}else if(m===st&&(C=Nn(e,E))!==-1)E=C;else if(m===st)b+=")";else if(m===Zl)b+="]";else if(m===Sn)b+="}";else if(m===wr&&b.length===0){p=E-1,c+=e.slice(k,E);break}else(m===Sr||m===Ql||m===wr)&&b.length>0&&e[E]===b[b.length-1]&&(b=b.slice(0,-1));m!==De&&m!==Le&&m!==pe&&m!==Ue&&(x=E+1-k)}c.length===0&&(c=e.slice(k),p=e.length);let y=_t(c,w,x);if(!y)throw new be("Invalid custom property, expected a value",n?[n,k,p]:null);n&&(y.src=[n,k,p],y.dst=[n,k,p]),l?l.nodes.push(y):t.push(y),c=""}else if(h===It&&c.charCodeAt(0)===Dt)a=ut(c),n&&(a.src=[n,d,p],a.dst=[n,d,p]),l?l.nodes.push(a):t.push(a),c="",a=null;else if(h===It&&f[f.length-1]!==")"){let b=_t(c);if(!b){if(c.length===0)continue;throw new be(`Invalid declaration: \`${c.trim()}\``,n?[n,d,p]:null)}n&&(b.src=[n,d,p],b.dst=[n,d,p]),l?l.nodes.push(b):t.push(b),c=""}else if(h===Sn&&f[f.length-1]!==")")f+="}",a=J(c.trim()),n&&(a.src=[n,d,p],a.dst=[n,d,p]),l&&l.nodes.push(a),o.push(l),l=a,c="",a=null;else if(h===wr&&f[f.length-1]!==")"){if(f==="")throw new be("Missing opening {",n?[n,p,p]:null);if(f=f.slice(0,-1),c.length>0)if(c.charCodeAt(0)===Dt)a=ut(c),n&&(a.src=[n,d,p],a.dst=[n,d,p]),l?l.nodes.push(a):t.push(a),c="",a=null;else{let k=c.indexOf(":");if(l){let w=_t(c,k);if(!w)throw new be(`Invalid declaration: \`${c.trim()}\``,n?[n,d,p]:null);n&&(w.src=[n,d,p],w.dst=[n,d,p]),l.nodes.push(w)}}let b=o.pop()??null;b===null&&l&&t.push(l),l=b,c="",a=null}else if(h===st){let b=Nn(e,p);b!==-1?(c+=e.slice(p,b+1),p=b):(f+=")",c+="(")}else if(h===Sr){if(f[f.length-1]!==")")throw new be("Missing opening (",n?[n,p,p]:null);f=f.slice(0,-1),c+=")"}else{if(c.length===0&&(h===De||h===pe||h===Le))continue;c===""&&(d=p),c+=String.fromCharCode(h)}}}if(c.charCodeAt(0)===Dt){let p=ut(c);n&&(p.src=[n,d,e.length],p.dst=[n,d,e.length]),t.push(p)}else if(c.length>0&&f.length===0){let p=_t(c);p&&(n&&(p.src=[n,d,e.length],p.dst=[n,d,e.length]),l?l.nodes.push(p):t.push(p))}if(f.length>0&&l){if(l.kind==="rule")throw new be(`Missing closing } at ${l.selector}`,l.src?[l.src[0],l.src[1],l.src[1]]:null);if(l.kind==="at-rule")throw new be(`Missing closing } at ${l.name} ${l.params}`,l.src?[l.src[0],l.src[1],l.src[1]]:null)}return i.length>0?i.concat(t):t}function ut(e,r=[]){let n=e,t="";for(let i=5;i<e.length;i++){let o=e.charCodeAt(i);if(o===De||o===Le||o===st){n=e.slice(0,i),t=e.slice(i);break}}return G(n.trim(),t.trim(),r)}function _t(e,r=e.indexOf(":"),n=e.length){if(r===-1)return null;let t=e.slice(0,r).trim(),i=xr(e.slice(r+1,n)),o=i.length-10;return i.endsWith("!important")&&!Lt(i,o)?u(t,xr(i.slice(0,o)),!0):u(t,xr(e.slice(r+1)),!1)}function xr(e){e=e.trimStart();let r=e.trimEnd();return r.length<e.length&&Lt(e,r.length)?e.slice(0,r.length+1):r}function Lt(e,r){let n=0;for(;e.charCodeAt(r-1-n)===Ke;)n+=1;return n%2===1}function Nn(e,r){if(r<3||(e.charCodeAt(r-3)|yr)!==so||(e.charCodeAt(r-2)|yr)!==ao||(e.charCodeAt(r-1)|yr)!==oo)return-1;let n=e.charCodeAt(r-4);if(n>=On&&n<=lo||n>=Rn&&n<=ro||n>=Vn&&n<=$n||n===Ve||n===to||n>=uo||n===Ke||n===eo||n===Dt||Lt(e,r-4)||co(e,r-4))return-1;for(let t=r+1;t<e.length;t++){let i=e.charCodeAt(t);if(i===Ke)t+=1;else{if(i===Sr)return t;if(i===st||i===Cr||i===Ar)return-1}}return-1}function co(e,r){let n=e.charCodeAt(r);if(n===pe)e.charCodeAt(r-1)===Ue&&(r-=1);else if(n!==De&&n!==Le&&n!==ql&&n!==Ue)return!1;for(let t=r-1;t>=0&&t>=r-7;t--){if(n=e.charCodeAt(t),n===Ke)return t<r-1&&!Lt(e,t);if(!(n>=Vn&&n<=$n||n>=On&&n<=io||n>=Rn&&n<=no))return!1}return!1}function Tn(e,r,n,t=null){let i;for(let o=r+1;o<e.length;o++)if(i=e.charCodeAt(o),i===Ke)o+=1;else{if(i===n)return o;if(i===It&&(e.charCodeAt(o+1)===pe||e.charCodeAt(o+1)===Ue&&e.charCodeAt(o+2)===pe))throw new be(`Unterminated string: ${e.slice(r,o+1)+String.fromCharCode(n)}`,t?[t,r,o+1]:null);if(i===pe||i===Ue&&e.charCodeAt(o+1)===pe)throw new be(`Unterminated string: ${e.slice(r,o)+String.fromCharCode(n)}`,t?[t,r,o+1]:null)}return r}function $e(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),n=r.length,t=-1,i,o="",l=r.charCodeAt(0);if(n===1&&l===45)return"\\"+r;for(;++t<n;){if(i=r.charCodeAt(t),i===0){o+="\uFFFD";continue}if(i>=1&&i<=31||i===127||t===0&&i>=48&&i<=57||t===1&&i>=48&&i<=57&&l===45){o+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){o+=r.charAt(t);continue}o+="\\"+r.charAt(t)}return o}function Se(e){return e.replace(/\\(?:([\dA-Fa-f]{1,6})[\t\n\f\r ]?|([\S\s]))/g,(r,n,t)=>{if(!n)return t;let i=Number.parseInt(n,16);return i===0||i>1114111||i>=55296&&i<=57343?"\uFFFD":String.fromCodePoint(i)})}var _n=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 Pn(e,r){return(_n.get(r)??[]).some(n=>e===n||e.startsWith(`${n}-`))}var Kt=class{constructor(r=new Map,n=new Set([])){this.values=r;this.keyframes=n}values;keyframes;prefix=null;get size(){return this.values.size}add(r,n,t=0,i){if(r.endsWith("-*")){if(n!=="initial")throw new Error(`Invalid theme value \`${n}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(t&4){let o=this.values.get(r);if(o&&!(o.options&4))return}n==="initial"?this.values.delete(r):this.values.set(r,{value:n,options:t,src:i})}keysInNamespaces(r){let n=[];for(let t of r){let i=`${t}-`;for(let o of this.values.keys())o.startsWith(i)&&o.indexOf("--",2)===-1&&(Pn(o,t)||n.push(o.slice(i.length)))}return n}get(r){for(let n of r){let t=this.values.get(n);if(t)return t.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=Se(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,n){let t=_n.get(r)??[];e:for(let i of this.values.keys())if(i.startsWith(r)){if(n!==0&&(this.getOptions(i)&n)!==n)continue;for(let o of t)if(i.startsWith(o))continue e;this.values.delete(i)}}#e(r,n){for(let t of n){let i=r!==null?`${t}-${r}`:t;if(!this.values.has(i))if(r!==null&&r.includes(".")){if(i=`${t}-${r.replaceAll(".","_")}`,!this.values.has(i))continue}else continue;if(!Pn(i,t))return i}return null}#t(r){let n=this.values.get(r);if(!n)return null;let t=null;return n.options&2&&(t=n.value),`var(${$e(this.prefixKey(r))}${t?`, ${t}`:""})`}markUsedVariable(r){let n=Se(this.#r(r)),t=this.values.get(n);if(!t)return!1;let i=t.options&16;return t.options|=16,!i}resolve(r,n,t=0){let i=this.#e(r,n);if(!i)return null;let o=this.values.get(i);return(t|o.options)&1?o.value:this.#t(i)}resolveValue(r,n){let t=this.#e(r,n);return t?this.values.get(t).value:null}resolveWith(r,n,t=[]){let i=this.#e(r,n);if(!i)return null;let o={};for(let a of t){let c=`${i}${a}`,f=this.values.get(c);f&&(f.options&1?o[a]=f.value:o[a]=this.#t(c))}let l=this.values.get(i);return l.options&1?[l.value,o]:[this.#t(i),o]}namespace(r){let n=new Map,t=`${r}-`;for(let[i,o]of this.values)i===r?n.set(null,o.value):i.startsWith(`${t}-`)?n.set(i.slice(r.length),o.value):i.startsWith(t)&&n.set(i.slice(t.length),o.value);return n}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var z=class extends Map{constructor(n){super();this.factory=n}factory;get(n){let t=super.get(n);return t===void 0&&(t=this.factory(n,this),this.set(n,t)),t}};var zt=new Uint8Array(256);function F(e,r){let n=0,t=[],i=0,o=e.length,l=r.charCodeAt(0);for(let a=0;a<o;a++){let c=e.charCodeAt(a);if(n===0&&c===l){t.push(e.slice(i,a)),i=a+1;continue}switch(c){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let f=e.charCodeAt(a);if(f===92){a+=1;continue}if(f===c)break}break;case 40:zt[n]=41,n++;break;case 91:zt[n]=93,n++;break;case 123:zt[n]=125,n++;break;case 93:case 125:case 41:n>0&&c===zt[n-1]&&n--;break}}return t.push(e.slice(i)),t}function re(e){return{kind:"word",value:e}}function fo(e,r){return{kind:"function",value:e,nodes:r}}function po(e){return{kind:"separator",value:e}}function B(e){let r="";for(let n of e)switch(n.kind){case"word":case"separator":{r+=n.value;break}case"function":r+=n.value+"("+B(n.nodes)+")"}return r}var In=92,mo=41,Dn=58,Ln=44,go=34,Un=61,Kn=62,zn=60,Mn=10,ho=40,vo=39,ko=47,Fn=32,jn=9;function H(e){e=e.replaceAll(`\r
4
4
  `,`
@@ -17,7 +17,7 @@
17
17
  Only valid data types are: ${Fr.map(p=>`"${p}"`).join(", ")}.
18
18
  `);let d=l.value.length+1+B(l.nodes.slice(0,c)).length,m=["```css",B([l])," ".repeat(d)+"^".repeat(f.value.length),"```"].join(`
19
19
  `);console.warn(m)}}),i.value=B(o)}),n.utilities.functional(r.slice(0,-2),i=>{let o=le(e),l=i.value,a=i.modifier,c=!1,f=!1,d=!1,m=!1,p=new Map,h=!1;if(D([o],(b,k)=>{let w=k.parent;if(w?.kind!=="rule"&&w?.kind!=="at-rule"||b.kind!=="declaration"||!b.value)return;let x=!1,C=H(b.value);if(D(C,y=>{if(y.kind==="function"){if(y.value==="--value"){c=!0;let E=mi(l,y,n);return E?(f=!0,E.ratio?h=!0:p.set(b,w),V.ReplaceSkip(E.nodes)):(x=!0,V.Stop)}else if(y.value==="--modifier"){d=!0;let E=mi(a,y,n);return E?(m=!0,V.ReplaceSkip(E.nodes)):(x=!0,V.Stop)}}}),x)return V.ReplaceSkip([]);b.value=B(C)}),!c||!f||d&&!m&&a!==null||h&&m||a&&!h&&!m)return null;if(h)for(let[b,k]of p){let w=k.nodes.indexOf(b);w!==-1&&k.nodes.splice(w,1)}return o.nodes}),n.utilities.suggest(r.slice(0,-2),()=>{let i=[],o=[];for(let[l,{literals:a,usedSpacingNumber:c,usedSpacingInteger:f,themeKeys:d}]of[[i,t["--value"]],[o,t["--modifier"]]]){for(let m of a)l.push(m);if(c)l.push(...qt);else if(f)for(let m of qt)L(m)&&l.push(m);for(let m of n.theme.keysInNamespaces(d))l.push(m.replace(hi,(p,h,b)=>`${h}.${b}`))}return[{values:i,modifiers:o}]})}:$a(r)?n=>{n.utilities.static(r,()=>e.nodes.map(le))}:null}function mi(e,r,n){if(e===null){for(let t of r.nodes)if(t.kind==="function"&&t.value==="--default")return{nodes:t.nodes};return}for(let t of r.nodes){if(e.kind==="named"&&t.kind==="word"&&(t.value[0]==="'"||t.value[0]==='"')&&t.value[t.value.length-1]===t.value[0]&&t.value.slice(1,-1)===e.value)return{nodes:H(e.value)};if(e.kind==="named"&&t.kind==="word"&&t.value[0]==="-"&&t.value[1]==="-"){let i=t.value;if(i.endsWith("-*")){i=i.slice(0,-2);let o=n.theme.resolve(e.value,[i]);if(o)return{nodes:H(o)}}else{let o=i.split("-*");if(o.length<=1)continue;let l=[o.shift()],a=n.theme.resolveWith(e.value,l,o);if(a){let[,c={}]=a;{let f=c[o.pop()];if(f)return{nodes:H(f)}}}}}else if(e.kind==="named"&&t.kind==="word"){if(!Fr.includes(t.value))continue;let i=t.value==="ratio"&&"fraction"in e?e.fraction:e.value;if(!i)continue;let o=X(i,[t.value]);if(o===null)continue;if(o==="ratio"){let[l,a]=F(i,"/").map(Number);if(!L(l)||!L(a))continue}else{if(o==="number"&&!te(i))continue;if(o==="percentage"&&!L(i.slice(0,-1)))continue}if(o==="ratio"){let[l,a]=F(i,"/");return{nodes:H(`${l.trim()} / ${a.trim()}`),ratio:!0}}return{nodes:H(i),ratio:!1}}else if(e.kind==="arbitrary"&&t.kind==="word"&&t.value[0]==="["&&t.value[t.value.length-1]==="]"){let i=t.value.slice(1,-1);if(i==="*")return{nodes:H(e.value)};if("dataType"in e&&e.dataType&&e.dataType!==i)continue;if("dataType"in e&&e.dataType)return{nodes:H(e.value)};if(X(e.value,[i])!==null)return{nodes:H(e.value)}}}}function Te(e,r,n,t,i=""){let o=!1,l=bt(r,c=>n==null?t(c):c.startsWith("current")?t(ne(c,n)):((c.startsWith("var(")||n.startsWith("var("))&&(o=!0),t(gi(c,n))));function a(c){return i?F(c,",").map(f=>i.trim()+" "+f.trim()).join(", "):c}return o?[u(e,a(bt(r,t))),J("@supports (color: lab(from red l a b))",[u(e,a(l))])]:[u(e,a(l))]}function Ht(e,r,n,t,i=""){let o=!1,l=F(r,",").map(a=>bt(a,c=>n==null?t(c):c.startsWith("current")?t(ne(c,n)):((c.startsWith("var(")||n.startsWith("var("))&&(o=!0),t(gi(c,n))))).map(a=>`drop-shadow(${a})`).join(" ");return o?[u(e,i+F(r,",").map(a=>`drop-shadow(${bt(a,t)})`).join(" ")),J("@supports (color: lab(from red l a b))",[u(e,i+l)])]:[u(e,i+l)]}var bi=/^-?[a-z][a-zA-Z0-9_-]*/,ya=37,xa=47,Aa=46,Ca=97,Sa=122,Ea=65,Na=90,Yt=48,Gt=57,Ta=95,Va=45;function $a(e){let r=bi.exec(e);if(r===null)return!1;let n=r[0],t=e.slice(n.length);if(t.length===0&&n.endsWith("-"))return!1;if(t.length===0)return!0;let i=!1;for(let o=0;o<t.length;o++){let l=t.charCodeAt(o);switch(l){case ya:{if(o!==t.length-1)return!1;let c=(t[o-1]||n[n.length-1]||"").charCodeAt(0);if(c<Yt||c>Gt)return!1;break}case xa:{if(o===t.length-1||i)return!1;i=!0;break}case Aa:{let c=(t[o-1]||n[n.length-1]||"").charCodeAt(0);if(c<Yt||c>Gt)return!1;let d=(t[o+1]||"").charCodeAt(0);if(d<Yt||d>Gt)return!1;break}case Ta:case Va:continue;default:{if(l>=Ca&&l<=Sa||l>=Ea&&l<=Na||l>=Yt&&l<=Gt)continue;return!1}}}return!0}function Ra(e){if(!e.endsWith("-*"))return!1;e=e.slice(0,-2);let r=bi.exec(e);if(r===null)return!1;let n=r[0];return e.slice(n.length).length===0}var jr={"--alpha":Oa,"--spacing":Pa,"--theme":_a,theme:Ia};function Oa(e,r,n,...t){let[i,o]=F(n,"/").map(l=>l.trim());if(!i||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);if(t.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);return ne(i,o)}function Pa(e,r,n,...t){if(!n)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(t.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${t.length+1}.`);let i=e.theme.resolve(null,["--spacing"]);if(!i)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");let o=oe.get(n);if(o){if(o[0]===0)return"0px";if(o[0]===1)return i}return`calc(${i} * ${n})`}function _a(e,r,n,...t){if(!n.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let i=!1;n.endsWith(" inline")&&(i=!0,n=n.slice(0,-7)),r.kind==="at-rule"&&(i=!0);let o=e.resolveThemeValue(n,i);if(!o){if(t.length>0)return t.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${n})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(t.length===0)return o;let l=t.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let a=H(o);return La(a,l),B(a)}return o}function Ia(e,r,n,...t){n=Da(n);let i=e.resolveThemeValue(n);if(!i&&t.length>0)return t.join(", ");if(!i)throw new Error(`Could not resolve value for theme function: \`theme(${n})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return i}var wi=new RegExp(Object.keys(jr).map(e=>`${e}\\(`).join("|"));function Qe(e,r){let n=0;return D(e,t=>{if(t.kind==="declaration"&&t.value&&wi.test(t.value)){n|=8,t.value=yi(t.value,t,r);return}t.kind==="at-rule"&&(t.name==="@media"||t.name==="@custom-media"||t.name==="@container"||t.name==="@supports")&&wi.test(t.params)&&(n|=8,t.params=yi(t.params,t,r))}),n}function yi(e,r,n){let t=H(e);return D(t,i=>{if(i.kind==="function"&&i.value in jr){let o=F(B(i.nodes).trim(),",").map(a=>a.trim()),l=jr[i.value](n,r,...o);return V.Replace(H(l))}}),B(t)}function Da(e){if(e[0]!=="'"&&e[0]!=='"')return e;let r="",n=e[0];for(let t=1;t<e.length-1;t++){let i=e[t],o=e[t+1];i==="\\"&&(o===n||o==="\\")?(r+=o,t++):r+=i}return r}function La(e,r){D(e,n=>{if(n.kind==="function"&&!(n.value!=="var"&&n.value!=="theme"&&n.value!=="--theme"))if(n.nodes.length===1)n.nodes.push({kind:"word",value:`, ${r}`});else{let t=n.nodes[n.nodes.length-1];t.kind==="word"&&t.value==="initial"&&(t.value=r)}})}function Je(e,r){let n=e.length,t=r.length,i=n<t?n:t;for(let o=0;o<i;o++){let l=e.charCodeAt(o),a=r.charCodeAt(o);if(l>=48&&l<=57&&a>=48&&a<=57){let c=o,f=o+1,d=o,m=o+1;for(l=e.charCodeAt(f);l>=48&&l<=57;)l=e.charCodeAt(++f);for(a=r.charCodeAt(m);a>=48&&a<=57;)a=r.charCodeAt(++m);let p=e.slice(c,f),h=r.slice(d,m),b=Number(p)-Number(h);if(b)return b;if(p<h)return-1;if(p>h)return 1;continue}if(l!==a)return l-a}return e.length-r.length}function et(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let r=1,n=r,t=e.length-1;for(;Xe(e.charCodeAt(r));)r++;{for(n=r;r<t;r++){let d=e.charCodeAt(r);if(d===92){r++;continue}if(!(d>=65&&d<=90)&&!(d>=97&&d<=122)&&!(d>=48&&d<=57)&&!(d===45||d===95)&&!(d>=128))break}if(n===r)return null}let i=e.slice(n,r);for(;Xe(e.charCodeAt(r));)r++;if(r===t)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let o=null,l=e.charCodeAt(r);if(l===61)o="=",r++;else if((l===126||l===124||l===94||l===36||l===42)&&e.charCodeAt(r+1)===61)o=e[r]+"=",r+=2;else return null;for(;Xe(e.charCodeAt(r));)r++;if(r===t)return null;let a="",c=null;if(l=e.charCodeAt(r),l===39||l===34){c=e[r],r++,n=r;for(let d=r;d<t;d++){let m=e.charCodeAt(d);m===l?r=d+1:m===92&&d++}a=e.slice(n,r-1)}else{for(n=r;r<t&&!Xe(e.charCodeAt(r));)r++;a=e.slice(n,r)}for(;Xe(e.charCodeAt(r));)r++;if(r===t)return{attribute:i,operator:o,quote:c,value:a,sensitivity:null};let f=null;switch(e.charCodeAt(r)){case 105:case 73:{f="i",r++;break}case 115:case 83:{f="s",r++;break}default:return null}for(;Xe(e.charCodeAt(r));)r++;return r!==t?null:{attribute:i,operator:o,quote:c,value:a,sensitivity:f}}function Xe(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}function Ai(e){let r=!1;return D(e,{exit(n){if(n.kind!=="function"||n.value!=="calc"&&n.value!==""||n.nodes.length!==5||n.nodes[2].kind!=="word"||n.nodes[2].value!=="*"&&n.nodes[2].value!=="+")return;let t=n.nodes[0],i=n.nodes[4];if(Ua(t,i)){r=!0;let o={kind:"function",value:n.value,nodes:[i,n.nodes[1],n.nodes[2],n.nodes[3],t]};return V.ReplaceSkip(o)}}}),[r,e]}function Ua(e,r){let n=e.kind==="word"?oe.get(e.value):null,t=r.kind==="word"?oe.get(r.value):null;if(n!==null&&t===null)return!0;if(n===null&&t!==null)return!1;if(n!==null&&t!==null){let[i,o]=n,[l,a]=t;if(o===null&&a!==null)return!0;if(o!==null&&a===null)return!1;if(i!==l)return i-l>0;if(o!==a)return(o??"").localeCompare(a??"")>0}return B([e]).localeCompare(B([r]))>0}function tt(e,r=null){return Array.isArray(e)&&e.length===2&&typeof e[1]=="object"&&typeof e[1]!==null?r?e[1][r]??null:e[0]:Array.isArray(e)&&r===null?e.join(", "):typeof e=="string"&&r===null?e:null}function Ci(e,{theme:r},n){for(let t of n){let i=rt([t]);i&&e.theme.clearNamespace(`--${i}`,4)}for(let[t,i]of Ka(r)){if(typeof i!="string"&&typeof i!="number")continue;if(typeof i=="string"&&(i=i.replace(/<alpha-value>/g,"1")),t[0]==="opacity"&&(typeof i=="number"||typeof i=="string")){let l=typeof i=="string"?parseFloat(i):i;l>=0&&l<=1&&(i=l*100+"%")}let o=rt(t);o&&e.theme.add(`--${o}`,""+i,7)}if(Object.hasOwn(r,"fontFamily")){let t=5;{let i=tt(r.fontFamily.sans);i&&e.theme.hasDefault("--font-sans")&&(e.theme.add("--default-font-family",i,t),e.theme.add("--default-font-feature-settings",tt(r.fontFamily.sans,"fontFeatureSettings")??"normal",t),e.theme.add("--default-font-variation-settings",tt(r.fontFamily.sans,"fontVariationSettings")??"normal",t))}{let i=tt(r.fontFamily.mono);i&&e.theme.hasDefault("--font-mono")&&(e.theme.add("--default-mono-font-family",i,t),e.theme.add("--default-mono-font-feature-settings",tt(r.fontFamily.mono,"fontFeatureSettings")??"normal",t),e.theme.add("--default-mono-font-variation-settings",tt(r.fontFamily.mono,"fontVariationSettings")??"normal",t))}}return r}function Ka(e){let r=[];return Si(e,[],(n,t)=>{if(ja(n))return r.push([t,n]),1;if(Wa(n)){r.push([t,n[0]]);for(let i of Reflect.ownKeys(n[1]))r.push([[...t,`-${i}`],n[1][i]]);return 1}if(Array.isArray(n)&&n.every(i=>typeof i=="string"))return t[0]==="fontSize"?(r.push([t,n[0]]),n.length>=2&&r.push([[...t,"-line-height"],n[1]])):r.push([t,n.join(", ")]),1}),r}var za={borderWidth:"border-width",outlineWidth:"outline-width",ringColor:"ring-color",ringWidth:"ring-width",transitionDuration:"transition-duration",transitionTimingFunction:"transition-timing-function"},Ma={animation:"animate",aspectRatio:"aspect",borderRadius:"radius",boxShadow:"shadow",colors:"color",containers:"container",fontFamily:"font",fontSize:"text",letterSpacing:"tracking",lineHeight:"leading",maxWidth:"container",screens:"breakpoint",transitionTimingFunction:"ease"},Fa=/^[a-zA-Z0-9-_%/.]+$/;function rt(e){let r=za[e[0]];if(r&&e[1]==="DEFAULT")return`default-${r}`;if(e[0]==="container")return null;for(let t of e)if(!Fa.test(t))return null;let n=Ma[e[0]];return n&&(e=e.slice(),e[0]=n),e.map((t,i,o)=>t==="1"&&i!==o.length-1?"":t).map((t,i)=>(t=t.replaceAll(".","_"),(i===0||t.startsWith("-")||t==="lineHeight")&&(t=t.replace(/([a-z])([A-Z])/g,(l,a,c)=>`${a}-${c.toLowerCase()}`)),t)).filter((t,i)=>t!=="DEFAULT"||i!==e.length-1).join("-")}function ja(e){return typeof e=="number"||typeof e=="string"}function Wa(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!="string"&&typeof e[0]!="number"||e[1]===void 0||e[1]===null||typeof e[1]!="object")return!1;for(let r of Reflect.ownKeys(e[1]))if(typeof r!="string"||typeof e[1][r]!="string"&&typeof e[1][r]!="number")return!1;return!0}function Si(e,r=[],n){for(let t of Reflect.ownKeys(e)){let i=e[t];if(i==null)continue;let o=[...r,t],l=n(i,o)??0;if(l!==1){if(l===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&Si(i,o,n)===2)return 2}}}function wt(e,r=null,n=!0){let[t,i]=yt(H(e),r,n);return t?B(i):e}function yt(e,r=null,n=!0){let t=!1;return D(e,{exit(i,o){if(i.kind==="word"&&i.value!=="0"){let l=Ei(i.value,r,n);if(l===null||l===i.value)return;if(l==="0"&&o.parent?.kind==="function"){let a=Ei(i.value,r,!1);return a===null?void 0:(t=!0,V.ReplaceSkip(re(a)))}return t=!0,V.ReplaceSkip(re(l))}else if(i.kind==="function"&&(i.value==="calc"||i.value==="")){if(i.nodes.length!==5||i.nodes[2].kind!=="word")return;let l=i.nodes[0],a=i.nodes[2].value,c=i.nodes[4],f=l.kind==="word"?oe.get(l.value):null,d=c.kind==="word"?oe.get(c.value):null;if(a==="*"&&(f?.[0]===0&&f?.[1]===null||d?.[0]===0&&d?.[1]===null))return t=!0,V.ReplaceSkip(re("0"));if(a==="*"&&f?.[0]===0&&f?.[1]!==null&&d?.[1]===null)return t=!0,o.parent?.kind==="function"?V.ReplaceSkip(re(`0${f[1]}`)):V.ReplaceSkip(re("0"));if(a==="*"&&d?.[0]===0&&d?.[1]!==null&&f?.[1]===null)return t=!0,o.parent?.kind==="function"?V.ReplaceSkip(re(`0${d[1]}`)):V.ReplaceSkip(re("0"));if(a==="*"){if(f?.[0]===1&&f?.[1]===null)return t=!0,V.ReplaceSkip(c);if(d?.[0]===1&&d?.[1]===null)return t=!0,V.ReplaceSkip(l)}if(a==="*"||a==="+"){let m=f??d,p=f===null?l:d===null?c:null;if(m!==null&&p!==null&&p.kind==="function"&&(p.value==="calc"||p.value==="")&&p.nodes.length===5&&p.nodes[2].kind==="word"&&p.nodes[2].value===a){let h=p.nodes[0],b=p.nodes[4],k=h.kind==="word"?oe.get(h.value):null,w=b.kind==="word"?oe.get(b.value):null,x=k??w,C=k===null?h:w===null?b:null;if(x!==null&&C!==null){if(a==="*"&&!(m[1]===null&&x[1]===null||m[1]===null&&x[1]!==null||m[1]!==null&&x[1]===null)||a==="+"&&m[1]!==x[1])return;let y;switch(a){case"*":{y=`${m[0]*x[0]}${m[1]??x[1]??""}`;break}case"+":{y=`${m[0]+x[0]}${m[1]??x[1]??""}`;break}default:return}if(t=!0,a==="*"&&y==="1")return V.ReplaceSkip(C);let E={kind:"function",value:i.value,nodes:[re(y),i.nodes[1],i.nodes[2],i.nodes[3],C]};return V.ReplaceSkip(E)}}}if(f===null||d===null)return;switch(a){case"*":{if(f[1]===d[1]||f[1]===null&&d[1]!==null||f[1]!==null&&d[1]===null)return t=!0,V.ReplaceSkip(re(`${f[0]*d[0]}${f[1]??d[1]??""}`));break}case"+":{if(f[1]===d[1])return t=!0,V.ReplaceSkip(re(`${f[0]+d[0]}${f[1]??""}`));break}case"-":{if(f[1]===d[1])return t=!0,V.ReplaceSkip(re(`${f[0]-d[0]}${f[1]??""}`));break}case"/":{if(d[0]!==0&&(f[1]===null&&d[1]===null||f[1]!==null&&d[1]===null)){let m=f[0]/d[0];if(Math.round(m*100)/100!==m)break;return t=!0,V.ReplaceSkip(re(`${m}${f[1]??""}`))}break}}}}}),[t,e]}function Ei(e,r=null,n=!0){let t=oe.get(e);if(t===null)return null;let[i,o]=t;if(o===null)return`${i}`;if(i===0&&Ne(e))return n?"0":`0${o}`;if(!n)return`${e}`;switch(o.toLowerCase()){case"in":return`${i*96}px`;case"cm":return`${i*96/2.54}px`;case"mm":return`${i*96/2.54/10}px`;case"q":return`${i*96/2.54/10/4}px`;case"pc":return`${i*96/6}px`;case"pt":return`${i*96/72}px`;case"rem":return r!==null?`${i*r}px`:null;case"grad":return`${i*.9}deg`;case"rad":return`${i*180/Math.PI}deg`;case"turn":return`${i*360}deg`;case"ms":return`${i/1e3}s`;case"khz":return`${i*1e3}hz`;default:return`${i}${o}`}}function je(e,r="top",n="right",t="bottom",i="left"){return $i(`${e}-${r}`,`${e}-${n}`,`${e}-${t}`,`${e}-${i}`)}function $i(e="top",r="right",n="bottom",t="left"){return{1:[[e,0],[r,0],[n,0],[t,0]],2:[[e,0],[r,1],[n,0],[t,1]],3:[[e,0],[r,1],[n,2],[t,1]],4:[[e,0],[r,1],[n,2],[t,3]]}}function de(e,r){return{1:[[e,0],[r,0]],2:[[e,0],[r,1]]}}var Ni={inset:$i(),margin:je("margin"),padding:je("padding"),"scroll-margin":je("scroll-margin"),"scroll-padding":je("scroll-padding"),"border-width":je("border","top-width","right-width","bottom-width","left-width"),"border-style":je("border","top-style","right-style","bottom-style","left-style"),"border-color":je("border","top-color","right-color","bottom-color","left-color"),gap:de("row-gap","column-gap"),overflow:de("overflow-x","overflow-y"),"overscroll-behavior":de("overscroll-behavior-x","overscroll-behavior-y")},Ti={"inset-block":de("top","bottom"),"inset-inline":de("left","right"),"margin-block":de("margin-top","margin-bottom"),"margin-inline":de("margin-left","margin-right"),"padding-block":de("padding-top","padding-bottom"),"padding-inline":de("padding-left","padding-right"),"scroll-margin-block":de("scroll-margin-top","scroll-margin-bottom"),"scroll-margin-inline":de("scroll-margin-left","scroll-margin-right"),"scroll-padding-block":de("scroll-padding-top","scroll-padding-bottom"),"scroll-padding-inline":de("scroll-padding-left","scroll-padding-right")},Vi={"border-block":["border-bottom","border-top"],"border-block-color":["border-bottom-color","border-top-color"],"border-block-style":["border-bottom-style","border-top-style"],"border-block-width":["border-bottom-width","border-top-width"],"border-inline":["border-left","border-right"],"border-inline-color":["border-left-color","border-right-color"],"border-inline-style":["border-left-style","border-right-style"],"border-inline-width":["border-left-width","border-right-width"]};function Ri(e,r){if(r&2){if(e.property in Ti){let n=F(e.value," ");return Ti[e.property][n.length]?.map(([t,i])=>u(t,n[i],e.important))}if(e.property in Vi)return Vi[e.property]?.map(n=>u(n,e.value,e.important))}if(e.property in Ni){let n=F(e.value," ");return Ni[e.property][n.length]?.map(([t,i])=>u(t,n[i],e.important))}return null}function ve(e,r){for(let n in e)delete e[n];return Object.assign(e,r)}function We(e){let r=[];for(let n of F(e,".")){if(!n.includes("[")){r.push(n);continue}let t=0;for(;;){let i=n.indexOf("[",t),o=n.indexOf("]",i);if(i===-1||o===-1)break;i>t&&r.push(n.slice(t,i)),r.push(n.slice(i+1,o)),t=o+1}t<=n.length-1&&r.push(n.slice(t))}return r}function Hr(e,r){let n=e;return n.storage[Ui]??=Ba(),n.storage[Ki]??=Ga(n),n.storage[zi]??=Ja(),n.storage[ji]??=as(),n.storage[Wi]??=us(),n.storage[Xr]??=gs(n),n.storage[tr]??=ks(n,r),n.storage[xe]??=Ps(n),n.storage[Gi]??=_s(n),n.storage[en]??=Us(),n.storage[xt]??=Ks(n),n.storage[Qi]??=zs(n),n.storage[tn]??=Ms(n),n.storage[nr]??=Fs(n),n.storage[Ji]??=Hs(n),n.storage[At]??=Ha(n),n}var Ui=Symbol();function Ba(){return new z(e=>new z(r=>({rem:e,features:r})))}var At=Symbol();function Ha(e){return new z(r=>{let n=e.storage[xe].get(r);return function(i,o){let l=typeof i=="string"?i:e.printCandidate(i),a=n.get(l);if(typeof a!="string")return!1;let c=typeof o=="string"?o:e.printCandidate(o),f=n.get(c);return typeof f!="string"?!1:a===f}})}function Ya(e,r){let n=0;return r?.collapse&&(n|=1),r?.logicalToPhysical&&(n|=2),Hr(e,r).storage[Ui].get(r?.rem??null).get(n)}var Ki=Symbol();function Ga(e){return new z(r=>new z(n=>({features:n,designSystem:e,signatureOptions:r})))}function qa(e,r,n){let t=0;return n?.collapse&&(t|=1),Hr(e).storage[Ki].get(r).get(t)}function Yr(e,r,n){let t=Ya(e,n),i=qa(e,t,n),o=Hr(e),l=new Set,a=o.storage[zi].get(i);for(let c of r)l.add(a.get(c));return l.size<=1||!(i.features&1)?Array.from(l):Za(i,Array.from(l))}function Za(e,r){let n=e.designSystem,t=new z(a=>new z(c=>new Set)),i=e.designSystem.theme.prefix?`${e.designSystem.theme.prefix}:`:"";for(let a of r){let c=F(a,":"),f=c.pop(),d=f.endsWith("!");d&&(f=f.slice(0,-1));let m=c.length>0?`${c.join(":")}:`:"",p=d?"!":"";t.get(m).get(p).add(`${i}${f}`)}let o=new Set;for(let[a,c]of t.entries())for(let[f,d]of c.entries())for(let m of l(Array.from(d)))i&&m.startsWith(i)&&(m=m.slice(i.length)),o.add(`${a}${m}${f}`);return Array.from(o);function l(a){let c=e.signatureOptions,f=n.storage[xt].get(c),d=n.storage[en].get(c),m=n.storage[Gi].get(c),p=n.storage[Qi].get(c),h=a.map(U=>f.get(U));if(h.some(U=>U.has("line-height"))){let U=n.theme.keysInNamespaces(["--text"]);if(U.length>0){let M=new Set,j=new Set;for(let s of h)if(s.has("line-height"))for(let g of s.get("line-height")){if(j.has(g))continue;j.add(g);let v=n.storage[tr]?.get(g)??null;if(v!==null)if(te(v)){M.add(v);for(let S of U)f.get(`text-${S}/${v}`)}else{M.add(g);for(let S of U)f.get(`text-${S}/[${g}]`)}}let Q=new Set;for(let s of h)if(s.has("font-size")){for(let g of s.get("font-size"))if(!Q.has(g)){Q.add(g);for(let v of M)te(v)?f.get(`text-[${g}]/${v}`):f.get(`text-[${g}]/[${v}]`)}}}}let b=h.map((U,M)=>{let j=null;for(let Q of U.keys()){let s=new Set;for(let g of d.get(Q).values())for(let v of g)s.add(v);for(let g of U.get(Q))for(let v of p.get(a[M]).get(Q).get(g))s.add(v);if(j===null?j=s:j=Li(j,s),j.size===0)return j}return j??new Set}),k=new Set,w=new Set;for(let U of b)for(let M of U)k.has(M)?w.add(M):k.add(M);let x=new z(U=>new Set);for(let[U,M]of b.entries())for(let j of M){if(!w.has(j))continue;let Q=x.get(j);for(let s of h[U].keys())Q.add(s)}let C=new z(U=>{let M=x.get(U);for(let j of f.get(U).keys())if(!M.has(j))return!1;return!0});b=b.map(U=>{let M=new Set;for(let j of U)w.has(j)&&C.get(j)&&M.add(j);return M});let y=new z(U=>new Set([U]));for(let U=0;U<b.length;U++){let M=b[U];for(let j=U+1;j<b.length;j++){let Q=b[j];for(let s of M)if(Q.has(s)){y.get(U).add(j),y.get(j).add(U);break}}}if(y.size===0)return a;let E=new z(U=>U.split(",").map(Number));for(let U of y.values()){let M=Array.from(U).sort((j,Q)=>j-Q);E.get(M.join(","))}let $=[];for(let U of y.keys())try{n.getClassOrder([a[U]]),$.push(a[U])}catch{}let N=new Map(n.getClassOrder($));function O(U,M){return U===M?0:U===null?1:M===null||U<M?-1:1}let _=new Set(a),W=new Set;for(let U of E.values())for(let M of Gs(U)){if(M.some(v=>W.has(a[v])))continue;let j=M.flatMap(v=>b[v]).reduce(Li);if(j.size===0)continue;let Q=M.map(v=>a[v]).sort((v,S)=>v.localeCompare(S)).join(" "),s=n.storage[xe].get(c).get(Q),g=new Set(M.map(v=>a[v]).sort((v,S)=>O(N.get(S)??null,N.get(v)??null)));for(let v of j)g.add(v);for(let v of g)if(n.storage[xe].get(c).get(v)===s&&Qa(m.get(Q),m.get(v))){_.add(v);for(let A of M)a[A]!==v&&W.add(a[A]);break}}for(let U of W)_.delete(U);return Array.from(_)}}function Qa(e,r){return e===null||r===null||e.length!==r.length?!1:e.every((n,t)=>n===""||n===r[t])}var zi=Symbol();function Ja(){return new z(e=>{let r=e.designSystem,n=r.theme.prefix?`${r.theme.prefix}:`:"",t=r.storage[ji].get(e),i=r.storage[Wi].get(e);return new z((o,l)=>{let a=ts(o);if(a!==o&&r.parseCandidate(a).length>0)return l.get(a);for(let c of r.parseCandidate(o)){let f=c.variants.slice().reverse().flatMap(p=>t.get(p)),d=c.important;if(d||f.length>0){let h=l.get(r.printCandidate({...c,variants:[],important:!1}));return r.theme.prefix!==null&&f.length>0&&(h=h.slice(n.length)),f.length>0&&(h=`${f.map(b=>r.printVariant(b)).join(":")}:${h}`),d&&(h+="!"),r.theme.prefix!==null&&f.length>0&&(h=`${n}${h}`),h}let m=i.get(o);if(m!==o)return m}return o})})}var me=92,Oi=91,Xa=93,Ct=40,Gr=41,qr=34,Zr=39,Xt=58,es=33,Qr=62,Wr=95,it=45;function ts(e){if(e.indexOf("\\")===-1||e.indexOf("[")===-1)return e;let r="",n=0,t=[],i=!1,o="",l=-1,a=0;for(;a<e.length;){let c=e.charCodeAt(a);if(n===0){if(c===me){r+=e.slice(a,a+2),a+=2;continue}if(c===Oi){n=1,t=[];let f=e.charCodeAt(a-1),d=e.charCodeAt(a+1);i=(a===0||f===Xt||f===es)&&(d>=97&&d<=122||d===it||d===me)}r+=e[a],a++;continue}if(c===me||Mi(c)){let f=!i&&!t.includes(!0),[d,m]=rs(e,a,f),p=e.slice(a,m);d!==p&&ns(e,r,p,d,m)&&(d=p),m===a&&(d=e[a],m++),r+=d,o=d,l=m,a=m;continue}switch(c){case Zr:case qr:{let f=a+1;for(;f<e.length;){let d=e.charCodeAt(f);if(d===me){f+=2;continue}if(f++,d===c)break}r+=e.slice(a,f),a=f;continue}case Oi:n++;break;case Xa:n--;break;case Xt:i=!1;break;case Ct:t.push(l===a&&Br(o));break;case Gr:t.pop();break}r+=e[a],a++}return r}function rs(e,r,n){let t="",i=-1,o=-1,l=!1,a=r;for(;a<e.length;){let c=e.charCodeAt(a),f=c;if(c===me){let d=a,m=e.charCodeAt(a+1);if(Number.isNaN(m))break;let p=m,h=nt(m),b=!0,k=!0;if(h){let x=a+1;for(;x<a+7&&nt(e.charCodeAt(x));)x++;p=parseInt(e.slice(a+1,x),16),b=x-a-1===6,a=x;let C=e.charCodeAt(a);Jt(C)?(a++,b=!0):C===Wr&&(a++,b=!0,k=n)}else a+=2;let w=k&&Fi(p)&&!(l&&nt(p));if(w)if(i===-1){if(Jr(p))w=!1;else if(p===it){let x=e.charCodeAt(a);w=er(x)||x===it||x===me||x>=128}}else ls(i,o===-1?p:o)||(w=!1);w?(t+=String.fromCharCode(p),f=p,l=!1):(t+=e.slice(d,a),f=me,l=h&&!b)}else if(Mi(c))t+=e[a],l=!1,a++;else break;i===-1?i=f:o===-1&&(o=f)}return[t,a]}function ns(e,r,n,t,i){return!!(t==="--"&&e.charCodeAt(i)===Qr||t.startsWith("--")&&r.endsWith("<!")||e.charCodeAt(i)===Ct&&Br(t)&&!Br(n)&&is(e,i))}function Br(e){return e.endsWith("url")||e.endsWith("var")||e.endsWith("theme")}function is(e,r){let n=0;for(;r<e.length;r++){let t=e.charCodeAt(r);if(t===me)r++;else if(t===Zr||t===qr)for(;++r<e.length;){let i=e.charCodeAt(r);if(i===me)r++;else{if(i===Wr)return!0;if(i===t)break}}else if(t===Ct)n++;else if(t===Gr){if(--n===0)return!1}else if(t===Wr)return!0}return!1}function ls(e,r){return e===it?er(r)||r===it||r===me||r>=128:er(e)||e===me||e>=128}function Mi(e){return Fi(e)||e>=128}function Fi(e){return er(e)||Jr(e)||e===it}function er(e){return e>=97&&e<=122||e>=65&&e<=90}function Jr(e){return e>=48&&e<=57}function nt(e){return Jr(e)||e>=97&&e<=102||e>=65&&e<=70}function Jt(e){return e===32||e===9||e===10||e===12||e===13}var os=[ds,Vs,$s,Es],ji=Symbol();function as(){return new z(e=>new z(r=>{let n=[r];for(let t of os)for(let i of n.splice(0)){let o=t(Ge(i),e);if(Array.isArray(o)){n.push(...o);continue}else n.push(o)}return n}))}var ss=[fs,ps,ms,Rs,bs,ys,Ss,Ns,Ts,Os],Wi=Symbol();function us(){return new z(e=>{let r=e.designSystem;return new z(n=>{for(let t of r.parseCandidate(n)){let i=Ze(t);for(let l of ss)i=l(i,e);let o=r.printCandidate(i);if(n!==o)return o}return n})})}var cs=["t","tr","r","br","b","bl","l","tl"];function fs(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let r=e.root.slice(15);return cs.includes(r)&&(e.root=`bg-linear-to-${r}`),e}return e}function ps(e,r){let n=r.designSystem.storage[Xr];if(e.kind==="arbitrary"){let[t,i]=n(e.value,e.modifier===null?1:0);t!==e.value&&(e.value=t,i!==null&&(e.modifier=i))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[t,i]=n(e.value.value,e.modifier===null?1:0);t!==e.value.value&&(e.value.value=t,i!==null&&(e.modifier=i))}return e}function ds(e,r){let n=r.designSystem.storage[Xr],t=rr(e);for(let[i]of t)if(i.kind==="arbitrary"){let[o]=n(i.selector,2);o!==i.selector&&(i.selector=o)}else if(i.kind==="functional"&&i.value?.kind==="arbitrary"){let[o]=n(i.value.value,2);o!==i.value.value&&(i.value.value=o)}return e}function ms(e,r){return e.kind==="arbitrary"?e.value=Pi(e.value,r.designSystem):e.kind==="functional"&&e.value?.kind==="arbitrary"&&(e.value.value=Pi(e.value.value,r.designSystem)),e}function Pi(e,r){let n=r.theme.prefix?`--${r.theme.prefix}-spacing`:"--spacing",t=H(e);return D(t,i=>{if(!(i.kind!=="function"||i.value!=="calc")&&i.nodes.length===5&&!(i.nodes[2].kind!=="word"||i.nodes[2].value!=="*")&&!(i.nodes[0].kind!=="function"||i.nodes[0].value!=="var"||i.nodes[0].nodes.length!==1||i.nodes[0].nodes[0].kind!=="word"||i.nodes[0].nodes[0].value!==n))return V.Replace(H(`--spacing(${B([i.nodes[4]])})`))}),B(t)}var Xr=Symbol();function gs(e){return r(e);function r(n){function t(f,d=0){let m=H(f);if(d&2)return[Zt(m,c),null];let p=0,h=0;if(D(m,w=>{w.kind==="function"&&w.value==="theme"&&(p+=1,D(w.nodes,x=>x.kind==="separator"&&x.value.includes(",")?V.Stop:x.kind==="word"&&x.value==="/"?(h+=1,V.Stop):V.Skip))}),p===0)return[f,null];if(h===0)return[Zt(m,a),null];if(h>1)return[Zt(m,c),null];let b=null;return[Zt(m,(w,x)=>{let C=F(w,"/").map(y=>y.trim());if(C.length>2)return null;if(m.length===1&&C.length===2&&d&1){let[y,E]=C;/^\d+%$/.test(E)?b=i(Number(E.slice(0,-1))):/^0?\.\d+$/.test(E)?b=i(o(Number(E))):b={kind:"arbitrary",value:E},w=y}return a(w,x)||c(w,x)}),b]}function i(f){if(Number.isInteger(f)){let d=n.theme.resolveValue(`${f}`,["--opacity"]);if(d===null)return{kind:"named",value:`${f}`};if((d.endsWith("%")?Number(d.slice(0,-1)):o(Number(d)))===f)return{kind:"named",value:`${f}`}}return{kind:"arbitrary",value:`${f}%`}}function o(f){return Number((f*100).toFixed(10))}function l(f,d=!0){let m=`--${rt(We(f))}`;return n.theme.get([m])?d&&n.theme.prefix?`--${n.theme.prefix}-${m.slice(2)}`:m:null}function a(f,d){let m=l(f);if(m)return d?`var(${m}, ${d})`:`var(${m})`;let p=We(f);if(p[0]==="spacing"&&n.theme.get(["--spacing"])){let h=p[1];return te(h)?`--spacing(${h})`:null}return null}function c(f,d){let m=F(f,"/").map(b=>b.trim());f=m.shift();let p=l(f,!1);if(!p)return null;let h=m.length>0?`/${m.join("/")}`:"";return d?`--theme(${p}${h}, ${d})`:`--theme(${p}${h})`}return t}}function Zt(e,r){return D(e,(n,t)=>{if(n.kind==="function"&&n.value==="theme"){if(n.nodes.length<1)return;n.nodes[0].kind==="separator"&&n.nodes[0].value.trim()===""&&n.nodes.shift();let i=n.nodes[0];if(i.kind!=="word")return;let o=i.value,l=1;for(let f=l;f<n.nodes.length&&!n.nodes[f].value.includes(",");f++)o+=B([n.nodes[f]]),l=f+1;o=hs(o);let a=n.nodes.slice(l+1),c=a.length>0?r(o,B(a)):r(o);if(c===null)return;{let f=t.index-1;for(;f!==-1;){let d=t.siblings[f];if(d.kind==="separator"&&d.value.trim()===""){f-=1;continue}/^[-+*/]$/.test(d.value.trim())&&(c=`(${c})`);break}}return V.Replace(H(c))}}),B(e)}function hs(e){if(e[0]!=="'"&&e[0]!=='"')return e;let r="",n=e[0];for(let t=1;t<e.length-1;t++){let i=e[t],o=e[t+1];i==="\\"&&(o===n||o==="\\")?(r+=o,t++):r+=i}return r}function*rr(e){function*r(n,t=null){yield[n,t],n.kind==="compound"&&(yield*r(n.variant,n))}yield*r(e,null)}function ke(e,r){return e.parseCandidate(e.theme.prefix&&!r.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${r}`:r)}function Bi(e,r){let n=e.printCandidate(r);return e.theme.prefix&&n.startsWith(`${e.theme.prefix}:`)?n.slice(e.theme.prefix.length+1):n}var tr=Symbol(),Hi=1536,vs=Hi/16;function _i(e,r,n){let t=r.resolveThemeValue("--spacing");if(t===void 0)return!1;let i=oe.get(wt(t,n));if(i===null)return!1;let[o,l]=i,a=e*o;return l==="px"?a<=Hi:l==="rem"?a<=vs:!1}function ks(e,r){let n=e.resolveThemeValue("--spacing");if(n===void 0)return null;n=wt(n,r?.rem??null);let t=oe.get(n);if(!t)return null;let[i,o]=t;return new z(l=>{if(i===0)return null;let a=oe.get(wt(l,r?.rem??null));if(!a)return null;let[c,f]=a;return f!==o?null:c/i})}function bs(e,r){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let n=r.designSystem,t=n.storage[tn].get(r.signatureOptions),i=n.storage[xe].get(r.signatureOptions),o=n.storage[At].get(r.signatureOptions),l=n.printCandidate(e),a=i.get(l);if(typeof a!="string")return e;for(let f of c(a,e))if(o(e,f)&&ws(n,e,f))return f;return e;function*c(f,d){let m=t.get(f);if(m.length>1){let p;for(let h of m)if(h[0]!=="-"){if(p)return;p=h}if(p)for(let h of ke(n,p))yield h;return}if(m.length===0&&d.modifier){let p={...d,modifier:null},h=i.get(n.printCandidate(p));if(typeof h=="string")for(let b of c(h,p))yield Object.assign({},b,{modifier:d.modifier})}if(m.length===1)for(let p of ke(n,m[0]))yield p;else if(m.length===0){let p=d.kind==="arbitrary"?d.value:d.value?.value??null;if(p===null)return;if(r.signatureOptions.rem!==null&&d.kind==="functional"&&d.value?.kind==="arbitrary"){let k=n.storage[tr]?.get(p)??null;k!==null&&te(k)&&_i(k,n,r.signatureOptions.rem)&&(yield Object.assign({},d,{value:{kind:"named",value:k,fraction:null}}))}let h=n.storage[tr]?.get(p)??null,b="";h!==null&&h<0&&(b="-",h=Math.abs(h));for(let k of Array.from(n.utilities.keys("functional")).sort((w,x)=>+(w[0]==="-")-+(x[0]==="-"))){b&&(k=`${b}${k}`);for(let w of ke(n,`${k}-${p}`))yield w;if(d.modifier)for(let w of ke(n,`${k}-${p}${d.modifier}`))yield w;if(h!==null&&te(h)&&_i(h,n,r.signatureOptions.rem)){for(let w of ke(n,`${k}-${h}`))yield w;if(d.modifier)for(let w of ke(n,`${k}-${h}${kt(d.modifier)}`))yield w}for(let w of ke(n,`${k}-[${p}]`))yield w;if(d.modifier)for(let w of ke(n,`${k}-[${p}]${kt(d.modifier)}`))yield w}}}}function ws(e,r,n){let t=null;if(r.kind==="functional"&&r.value?.kind==="arbitrary"&&r.value.value.includes("var(--")?t=r.value.value:r.kind==="arbitrary"&&r.value.includes("var(--")&&(t=r.value),t===null)return!0;let i=e.candidatesToCss([e.printCandidate(n)]).join(`
20
- `),o=!0;return D(H(t),l=>{if(l.kind==="function"&&l.value==="var"){let a=l.nodes[0].value;if(!new RegExp(`var\\(${a}[,)]\\s*`,"g").test(i)||i.includes(`${a}:`))return o=!1,V.Stop}}),o}function ys(e,r){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let n=r.designSystem,t=n.storage[tn].get(r.signatureOptions),i=n.storage[xe].get(r.signatureOptions),o=n.storage[At].get(r.signatureOptions),l=n.printCandidate(e),a=i.get(l);if(typeof a!="string")return e;for(let f of c(a,e))if(o(e,f))return f;return e;function*c(f,d){let m=t.get(f);if(m.length>1){let p;for(let h of m)if(h[0]!=="-"){if(p)return;p=h}if(p)for(let h of ke(n,p))yield h;return}if(m.length===0&&d.modifier){let p={...d,modifier:null},h=i.get(n.printCandidate(p));if(typeof h=="string")for(let b of c(h,p))yield Object.assign({},b,{modifier:d.modifier})}if(m.length===1)for(let p of ke(n,m[0]))yield p}}var xs=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),As=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*Cs(e){let r=xs.get(e);r&&(yield r);for(let[n,t]of As){let i=e.replace(n,t);i!==e&&(yield i)}}function Ss(e,r){let n=r.designSystem,t=n.storage[At].get(r.signatureOptions),i=Bi(n,e);for(let o of Cs(i)){if(!t(e,o))continue;let[l]=ke(n,o);return l}return e}function Es(e,r){let n=r.designSystem,t=n.storage[nr].get(r.signatureOptions.rem),i=n.storage[Ji].get(r.signatureOptions.rem),o=rr(e);for(let[l]of o){if(l.kind==="compound")continue;let a=n.printVariant(l),c=t.get(a);if(typeof c!="string")continue;let f=i.get(c);if(f.length===0||f.includes(a))continue;let d=f[0],m=n.parseVariant(d);m!==null&&ve(l,m)}return e}function Ns(e,r){let n=r.designSystem,t=n.storage[xe].get(r.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let i=n.printCandidate({...e,value:{...e.value,dataType:null}});t.get(n.printCandidate(e))===t.get(i)&&(e.value.dataType=null)}return e}function Ts(e,r){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let n=r.designSystem,t=n.storage[xe].get(r.signatureOptions),i=t.get(n.printCandidate(e));if(i===null)return e;for(let o of Yi(e))if(t.get(n.printCandidate({...e,value:o}))===i)return e.value=o,e;return e}function Vs(e){let r=rr(e);for(let[n]of r)if(n.kind==="functional"&&n.root==="data"&&n.value?.kind==="arbitrary"&&!n.value.value.includes("="))n.value={kind:"named",value:n.value.value};else if(n.kind==="functional"&&n.root==="aria"&&n.value?.kind==="arbitrary"&&(n.value.value.endsWith("=true")||n.value.value.endsWith('="true"')||n.value.value.endsWith("='true'"))){let[t,i]=F(n.value.value,"=");if(t[t.length-1]==="~"||t[t.length-1]==="|"||t[t.length-1]==="^"||t[t.length-1]==="$"||t[t.length-1]==="*")continue;n.value={kind:"named",value:n.value.value.slice(0,n.value.value.indexOf("="))}}else n.kind==="functional"&&n.root==="supports"&&n.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(n.value.value)&&(n.value={kind:"named",value:n.value.value});return e}function*Yi(e,r=e.value?.value??"",n=new Set){if(n.has(r))return;if(n.add(r),yield{kind:"named",value:r,fraction:null},r.endsWith("%")&&te(r.slice(0,-1))&&(yield{kind:"named",value:r.slice(0,-1),fraction:null}),r.includes("/")){let[o,l]=r.split("/");L(o)&&L(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}let t=new Set;for(let o of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))t.add(o[0].trim());let i=Array.from(t).sort((o,l)=>o.length-l.length);for(let o of i)yield*Yi(e,o,n)}function Ii(e){return!(e.length===1&&e[0].kind==="list")}function Qt(e){return e.value[0]==="["&&e.value[e.value.length-1]==="]"}function $s(e,r){let n=[e],t=r.designSystem,i=t.storage[nr].get(r.signatureOptions.rem),o=rr(e);for(let[l,a]of o)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let c=fe(l.selector);if(!Ii(c))continue;if(c.length===1&&c[0].kind==="complex"&&(c=c[0].nodes),a===null&&c.length===3&&c[0].kind==="selector"&&c[0].value==="&"&&c[1].kind==="combinator"&&c[1].value===">"&&c[2].kind==="selector"&&c[2].value==="*"){ve(l,t.parseVariant("*"));continue}if(a===null&&c.length===3&&c[0].kind==="selector"&&c[0].value==="&"&&c[1].kind==="combinator"&&c[1].value===" "&&c[2].kind==="selector"&&c[2].value==="*"){ve(l,t.parseVariant("**"));continue}if(a===null&&c.length===1&&c[0].kind==="compound"&&c[0].nodes.length===2&&c[0].nodes[0].kind==="selector"&&c[0].nodes[0].value==="&"&&c[0].nodes[1].kind==="function"&&c[0].nodes[1].value===":has"&&c[0].nodes[1].nodes.length===1&&c[0].nodes[1].nodes[0].kind==="selector"){ve(l,t.parseVariant(`has-[${ae(c[0].nodes[1].nodes,!0)}]`));continue}if(a===null&&c.length===3&&c[0].kind==="selector"&&c[1].kind==="combinator"&&c[1].value===" "&&c[2].kind==="selector"&&c[2].value==="&"){c.pop(),c.pop(),ve(l,t.parseVariant(`in-[${ae(c,!0)}]`));continue}if(a===null&&c[0].kind==="selector"&&(c[0].value==="@media"||c[0].value==="@supports")){let p=i.get(t.printVariant(l)),h=H(ae(c,!0)),b=!1;if(D(h,k=>{if(k.kind==="word"&&k.value==="not")return b=!0,V.Replace([])}),h=H(B(h)),D(h,k=>{k.kind==="separator"&&k.value!==" "&&k.value.trim()===""&&(k.value=" ")}),b){let k=t.parseVariant(`not-[${B(h)}]`);if(k===null)continue;let w=i.get(t.printVariant(k));if(p===w){ve(l,k);continue}}}let f=null;a===null&&c.length===3&&c[0].kind==="selector"&&c[0].value==="&"&&c[1].kind==="combinator"&&c[1].value===">"&&c[2].kind==="selector"&&(c[2].value[0]===":"||Qt(c[2]))&&(c=[c[2]],f=t.parseVariant("*")),a===null&&c.length===3&&c[0].kind==="selector"&&c[0].value==="&"&&c[1].kind==="combinator"&&c[1].value===" "&&c[2].kind==="selector"&&(c[2].value[0]===":"||Qt(c[2]))&&(c=[c[2]],f=t.parseVariant("**"));let d=c;if(D(d,{enter(p){if(p.kind==="selector"&&p.value==="&")return V.Replace([]);if(p.kind==="function")return V.Skip},exit(p){if(p.kind==="compound"&&p.nodes.length===1)return V.ReplaceSkip(p.nodes)}}),d.length!==1)continue;let m=d[0];if(m.kind==="function"&&m.value===":is"){if(!Ii(m.nodes)||m.nodes.length!==1||m.nodes[0].kind==="selector"&&!Qt(m.nodes[0]))continue;m=m.nodes[0]}if(m.kind==="function"&&m.value[0]===":"||m.kind==="selector"&&m.value[0]===":"){let p=m,h=!1;if(p.kind==="function"&&p.value===":not"){if(h=!0,p.nodes.length!==1||p.nodes[0].kind!=="selector"&&p.nodes[0].kind!=="function"||p.nodes[0].value[0]!==":")continue;p=p.nodes[0]}let b=(w=>{if(w===":nth-child"&&p.kind==="function"&&p.nodes.length===1&&p.nodes[0].kind==="value"&&p.nodes[0].value==="odd")return h?(h=!1,"even"):"odd";if(w===":nth-child"&&p.kind==="function"&&p.nodes.length===1&&p.nodes[0].kind==="value"&&p.nodes[0].value==="even")return h?(h=!1,"odd"):"even";for(let[x,C]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(w===x&&p.kind==="function"&&p.nodes.length===1)return p.nodes.length===1&&p.nodes[0].kind==="value"&&L(p.nodes[0].value)?`${C}-${p.nodes[0].value}`:`${C}-[${ae(p.nodes,!0)}]`;if(h){let x=i.get(t.printVariant(l)),C=i.get(`not-[${w}]`);if(x===C)return`[&${w}]`}return null})(p.value);if(b===null){if(f)return ve(l,{kind:"arbitrary",selector:Vt(m)?`&${m.value}`:m.value,relative:!1}),[f,l];continue}h&&(b=`not-${b}`);let k=t.parseVariant(b);if(k===null)continue;ve(l,k)}else if(m.kind==="selector"&&Qt(m)){let p=et(m.value);if(p===null)continue;if(p.attribute.startsWith("data-")){let h=p.attribute.slice(5);ve(l,{kind:"functional",root:"data",modifier:null,value:p.value===null?{kind:"named",value:h}:{kind:"arbitrary",value:`${h}${p.operator}${p.quote??""}${p.value}${p.quote??""}${p.sensitivity?` ${p.sensitivity}`:""}`}})}else if(p.attribute.startsWith("aria-")){let h=p.attribute.slice(5);ve(l,{kind:"functional",root:"aria",modifier:null,value:p.value===null?{kind:"arbitrary",value:h}:p.operator==="="&&p.value==="true"&&p.sensitivity===null?{kind:"named",value:h}:{kind:"arbitrary",value:`${p.attribute}${p.operator}${p.quote??""}${p.value}${p.quote??""}${p.sensitivity?` ${p.sensitivity}`:""}`}})}else ve(l,{kind:"arbitrary",selector:m.value,relative:!1})}if(f)return[f,l]}return n}function Rs(e,r){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let t=r.designSystem.storage[At].get(r.signatureOptions),i=H(e.value.value);if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let[o,l]=yt(i,null,!1);if(o){let a=Ze(e);a.value.value=B(l),t(e,a)&&(e=a,i=l)}}if(e.root[0]==="-"){if(i.length===1&&i[0].kind==="function"&&i[0].value==="var")return e;let o=H(`calc(${e.value.value} * -1)`),[l,a]=yt(o,null,!1);if(l){let c=Ze(e);c.root=c.root.slice(1),c.value.value=B(a),t(e,c)&&(e=c,i=a)}}if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let o=i[0].nodes;if(o.length===5&&o[1].kind==="separator"&&o[1].value===" "&&o[2].kind==="word"&&o[2].value==="*"&&o[3].kind==="separator"&&o[3].value===" "){let l=o[4].kind==="word"&&o[4].value==="-1"?o[0]:o[0].kind==="word"&&o[0].value==="-1"?o[4]:null;if(l){let a=Ze(e);a.root=`-${e.root}`,a.value.value=B([l]),t(e,a)&&(e=a)}}}return e}function Os(e,r){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let n=r.designSystem,t=n.storage[xe].get(r.signatureOptions),i=t.get(n.printCandidate(e)),o=e.modifier;if(i===t.get(n.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let l={kind:"named",value:o.value.endsWith("%")?o.value.includes(".")?`${Number(o.value.slice(0,-1))}`:o.value.slice(0,-1):o.value,fraction:null};if(i===t.get(n.printCandidate({...e,modifier:l})))return e.modifier=l,e}{let l={kind:"named",value:`${parseFloat(o.value)*100}`,fraction:null};if(i===t.get(n.printCandidate({...e,modifier:l})))return e.modifier=l,e}return e}var xe=Symbol();function Ps(e){return new z(r=>new z(n=>{try{return ue(qi(e,n,r))}catch{return Symbol()}}))}var Gi=Symbol();function _s(e){return new z(r=>new z(n=>{try{let t=new z(()=>new Set),i=qi(e,n,r,t),o=[];return D(i,l=>{l.kind==="declaration"&&o.push(Array.from(t.get(l)).sort().join(" "))}),o}catch{return null}}))}function qi(e,r,n,t){r=e.theme.prefix&&!r.startsWith(e.theme.prefix)?`${e.theme.prefix}:${r}`:r;let i=[Z(".x",[G("@apply",r)])];return Ys(e,()=>{for(let o of e.parseCandidate(r))e.compileAstNodes(o,1);Pe(i,e)}),Zi(e,i,n,t),i}var Di=/#(?:[a-f0-9]{8}|[a-f0-9]{6}|[a-f0-9]{4}|[a-f0-9]{3})/gi,Is={"--tw-duration":"transition-duration","--tw-ease":"transition-timing-function","--tw-tracking":"letter-spacing"};function Zi(e,r,n,t){let{rem:i}=n;return D(r,{enter(o,l){if(o.kind==="declaration"){if(o.value===void 0||o.property==="--tw-sort")return V.Replace([]);if(o.property.startsWith("--tw-")){let p=Is[o.property]??o.property.slice(5);if(l.siblings.some(h=>h.kind==="declaration"&&h.property===p&&o.value===h.value&&o.important===h.important))return V.Replace([])}if(n.features&1){let p=Ri(o,n.features);if(p)return V.Replace(p)}o.value.includes("var(")&&(o.value=Ls(o.value,e,t?.get(o)));let a=H(o.value),[c,f]=yt(a,i),[d,m]=Ai(f);(c||d)&&(o.value=B(m)),o.value=Re(o.value)}else{if(o.kind==="context"||o.kind==="at-root")return V.Replace(o.nodes);if(o.kind==="comment")return V.Replace([]);if(o.kind==="at-rule"&&o.name==="@property")return V.Replace([])}},exit(o){if(o.kind==="rule"||o.kind==="at-rule"){if(o.nodes.length>1){let l=new Set;for(let a=o.nodes.length-1;a>=0;a--){let c=o.nodes[a];c.kind==="declaration"&&c.value!==void 0&&(l.has(c.property)&&o.nodes.splice(a,1),l.add(c.property))}}o.nodes.sort((l,a)=>l.kind!=="declaration"||a.kind!=="declaration"?0:l.property.localeCompare(a.property))}else if(o.kind==="declaration"&&o.value){if(o.property[0]==="-"&&o.property[1]==="-")return;Di.lastIndex=0,o.value=o.value.replace(Di,l=>l.toLowerCase())}}}),r}var Ds=["initial","inherit","revert","revert-layer","revert-rule","unset"];function Ls(e,r,n){let t=!1,i=H(e),o=new Set;return D(i,l=>{if(l.kind!=="function"||l.value!=="var"||l.nodes.length!==1&&l.nodes.length<3)return;let a=l.nodes[0].value;r.theme.prefix&&a.startsWith(`--${r.theme.prefix}-`)&&(a=a.slice(`--${r.theme.prefix}-`.length));let c=r.resolveThemeValue(a);if(!o.has(a)&&(o.add(a),c!==void 0&&!Ds.includes(c.toLowerCase())&&(l.nodes.length===1&&(t=!0,l.nodes.push(...H(`,${c}`))),l.nodes.length>=3))){let f=B(l.nodes),d=`${l.nodes[0].value},${c}`;if(f===d)return t=!0,n?.add(a),V.Replace(H(c))}}),t?B(i):e}var en=Symbol();function Us(){return new z(e=>new z(r=>new z(n=>new Set)))}var xt=Symbol();function Ks(e){return new z(r=>new z(n=>{let t=new z(o=>new Set);e.theme.prefix&&!n.startsWith(e.theme.prefix)&&(n=`${e.theme.prefix}:${n}`);let i=e.parseCandidate(n);if(i.length===0)return t;try{let o=e.compileAstNodes(i[0]).map(l=>le(l.node));D(Zi(e,o,r),l=>{l.kind==="declaration"&&(t.get(l.property).add(l.value),e.storage[en].get(r).get(l.property).get(l.value).add(n))})}catch{}return t}))}var Qi=Symbol();function zs(e){return new z(r=>{let n=e.storage[xt].get(r);return new z(t=>{let i=new z(l=>new z(a=>new Set)),o=new Set(n.get(t).keys());if(o.size===0)return i;for(let l of ke(e,t))if(!(l.kind!=="functional"||l.value===null)){for(let a of e.utilities.keys("functional")){if(a===l.root)continue;let c=Bi(e,{...Ze(l),root:a}),f=n.get(c);for(let[d,m]of f)if(o.has(d))for(let p of m)i.get(d).get(p).add(c)}return i}return i})})}var tn=Symbol();function Ms(e){return new z(r=>{let n=e.storage[xe].get(r),t=new z(()=>[]);for(let[i,o]of e.getClassList()){let l=n.get(i);if(typeof l=="string"){if(i[0]==="-"&&i.endsWith("-0")){let a=n.get(i.slice(1));if(typeof a=="string"&&l===a)continue}t.get(l).push(i),e.storage[xt].get(r).get(i);for(let a of o.modifiers){if(te(a))continue;let c=`${i}/${a}`,f=n.get(c);typeof f=="string"&&(t.get(f).push(c),e.storage[xt].get(r).get(c))}}}return t})}var nr=Symbol();function Fs(e){return new z(r=>new z(n=>{try{n=e.theme.prefix&&!n.startsWith(e.theme.prefix)?`${e.theme.prefix}:${n}`:n;let t=[Z(".x",[G("@apply",`${n}:flex`)])];return Pe(t,e),D(t,o=>{if(o.kind==="context")return V.Replace(o.nodes);if(o.kind==="at-rule")o.params=wt(o.params,r),o.params.includes(" ")&&(o.params=js(o.params,o.name!=="@media"&&o.name!=="@container"));else if(o.kind==="rule"){let l=fe(o.selector),a=!1;D(l,c=>{if(c.kind==="list"||c.kind==="combinator")a=!0;else if(c.kind==="function"&&c.value===":is"){if(c.nodes.length===1)return a=!0,V.Replace(c.nodes);if(c.nodes.length===2&&c.nodes[0].kind==="selector"&&c.nodes[0].value==="*"&&c.nodes[1].kind==="selector"&&c.nodes[1].value[0]===":")return a=!0,V.Replace(c.nodes[1])}else c.kind==="function"&&c.value[0]===":"&&c.nodes[0]?.kind==="selector"&&c.nodes[0]?.value[0]===":"&&(a=!0,c.nodes.unshift({kind:"selector",value:"*"}))}),a&&(o.selector=ae(l,!0))}}),ue(t)}catch{return Symbol()}}))}function js(e,r){let n="",t=!1,i=0,o=!1,l=!1;for(let a=0;a<e.length;a++){let c=e.charCodeAt(a);if(i!==0){n+=e[a],o=!1,c===me&&a+1<e.length?n+=e[++a]:c===i&&(i=0);continue}if(Jt(c)){t=n.length>0;continue}let f=t&&(o||!Ws(n.charCodeAt(n.length-1)))&&!Bs(c)&&!(c===Xt&&(!r||Jt(e.charCodeAt(a+1))));if(t=!1,l&&(f||nt(c))&&(n+=" "),f&&(n+=" "),n+=e[a],o=!1,l=!1,c===me&&a+1<e.length){if(nt(e.charCodeAt(a+1))){let d=a+1;for(;d<a+7&&d<e.length&&nt(e.charCodeAt(d));)d++;n+=e.slice(a+1,d),a=d-1,Jt(e.charCodeAt(a+1))&&(a++,e.charCodeAt(a)===13&&e.charCodeAt(a+1)===10&&a++),l=!0}else n+=e[++a];o=!0}else(c===Zr||c===qr)&&(i=c)}return n}function Ws(e){return e===Ct||e===44||e===Xt||e===60||e===Qr||e===61||e===43||e===126||e===47}function Bs(e){return e===Ct||e===Gr||e===44||e===60||e===Qr||e===61||e===43||e===126||e===47}var Ji=Symbol();function Hs(e){return new z(r=>{let n=e.storage[nr].get(r),t=new z(()=>[]);for(let[i,o]of e.variants.entries())if(o.kind==="static"){let l=n.get(i);if(typeof l!="string")continue;t.get(l).push(i)}else if(o.kind==="functional")for(let l of e.variants.getCompletions(i)){let a=i==="@"?`@${l}`:`${i}-${l}`,c=n.get(a);typeof c=="string"&&t.get(c).push(a)}return t})}function Ys(e,r){let n=e.theme.values.get,t=new Set;e.theme.values.get=i=>{let o=n.call(e.theme.values,i);return o===void 0||o.options&1&&(t.add(o),o.options&=-2),o};try{return r()}finally{e.theme.values.get=n;for(let i of t)i.options|=1}}function*Gs(e){let r=e.length,n=1n<<BigInt(r);for(let t=r;t>=2;t--){let i=(1n<<BigInt(t))-1n;for(;i<n;){let o=[];for(let c=0;c<r;c++)i>>BigInt(c)&1n&&o.push(e[c]);yield o;let l=i&-i,a=i+l;i=((a^i)>>2n)/l|a}}}function Li(e,r){if(typeof e.intersection=="function")return e.intersection(r);if(e.size===0||r.size===0)return new Set;let n=new Set;for(let t of e)r.has(t)&&n.add(t);return n}var qs=/^\d+\/\d+$/;function el(e){let r=new z(i=>({name:i,utility:i,fraction:!1,modifiers:[]}));for(let i of e.utilities.keys("static")){if(e.utilities.getCompletions(i).length===0)continue;let l=r.get(i);l.fraction=!1,l.modifiers=[]}for(let i of e.utilities.keys("functional")){let o=e.utilities.getCompletions(i);for(let l of o)for(let a of l.values){let c=a!==null&&qs.test(a),f=a===null?i:`${i}-${a}`,d=r.get(f);if(d.utility=i,d.fraction||=c,d.modifiers.push(...l.modifiers),l.supportsNegative){let m=r.get(`-${f}`);m.utility=`-${i}`,m.fraction||=c,m.modifiers.push(...l.modifiers)}d.modifiers=Array.from(new Set(d.modifiers))}}if(r.size===0)return[];let n=Array.from(r.values());return n.sort((i,o)=>Je(i.name,o.name)),Zs(n)}function Zs(e){let r=[],n=null,t=new Map,i=new z(()=>[]);for(let l of e){let{utility:a,fraction:c}=l;n||(n={utility:a,items:[]},t.set(a,n)),a!==n.utility&&(r.push(n),n={utility:a,items:[]},t.set(a,n)),c?i.get(a).push(l):n.items.push(l)}n&&r[r.length-1]!==n&&r.push(n);for(let[l,a]of i){let c=t.get(l);c&&c.items.push(...a)}let o=[];for(let l of r)for(let a of l.items)o.push([a.name,{modifiers:a.modifiers}]);return o}function tl(e){let r=[];for(let[t,i]of e.variants.entries()){let a=function({value:c,modifier:f}={}){let d=t;c&&(d+=o?`-${c}`:c),f&&(d+=`/${f}`);let m=e.parseVariant(d);if(!m)return[];let p=Z(".__placeholder__",[]);if(lt(p,m,e.variants)===null)return[];let h=[];return D(p.nodes,{exit(b,k){if(b.kind!=="rule"&&b.kind!=="at-rule"||b.nodes.length>0)return;let w=k.path();w.push(b),w.sort((y,E)=>{let $=y.kind==="at-rule",N=E.kind==="at-rule";return $&&!N?-1:!$&&N?1:0});let x=w.flatMap(y=>y.kind==="rule"?y.selector==="&"?[]:[y.selector]:y.kind==="at-rule"?[`${y.name} ${y.params}`]:[]),C="";for(let y=x.length-1;y>=0;y--)C=C===""?x[y]:`${x[y]} { ${C} }`;h.push(C)}}),h};var n=a;if(i.kind==="arbitrary")continue;let o=t!=="@",l=e.variants.getCompletions(t);switch(i.kind){case"static":{r.push({name:t,values:l,isArbitrary:!1,hasDash:o,selectors:a});break}case"functional":{r.push({name:t,values:l,isArbitrary:!0,hasDash:o,selectors:a});break}case"compound":{r.push({name:t,values:l,isArbitrary:!0,hasDash:o,selectors:a});break}}}return r}function rl(e,r){let{astNodes:n,nodeSorting:t}=_e(Array.from(r),e),i=new Map(r.map(l=>[l,null])),o=0n;for(let l of n){let a=t.get(l)?.candidate;a&&i.set(a,i.get(a)??o++)}return r.map(l=>[l,i.get(l)??null])}var ir=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/;var rn=class{compareFns=new Map;variants=new Map;completions=new Map;groupOrder=null;lastOrder=0;maxNameLength=0;static(r,n,{compounds:t,order:i}={}){this.set(r,{kind:"static",applyFn:n,compoundsWith:0,compounds:t??2,order:i})}fromAst(r,n,t){let i=[],o=!1,l=!1;D(n,a=>{a.kind==="rule"?i.push(a.selector):a.kind==="at-rule"&&a.name==="@variant"?o=!0:a.kind==="at-rule"&&a.name!=="@slot"&&(a.name==="@scope"&&(l=!0),i.push(`${a.name} ${a.params}`))}),this.static(r,a=>{let c=n.map(le);o&&Et(c,t),l?(St(c,[ee({source:"user"},a.nodes)]),a.nodes=[ee({source:"variant"},c)]):(St(c,a.nodes),a.nodes=c)},{compounds:Be(i)})}functional(r,n,{compounds:t,order:i}={}){this.set(r,{kind:"functional",applyFn:n,compoundsWith:0,compounds:t??2,order:i})}compound(r,n,t,{compounds:i,order:o}={}){this.set(r,{kind:"compound",applyFn:t,compoundsWith:n,compounds:i??2,order:o})}group(r,n){this.groupOrder=this.nextOrder(),n&&this.compareFns.set(this.groupOrder,n),r(),this.groupOrder=null}has(r){return this.variants.has(r)}get(r){return this.variants.get(r)}kind(r){return this.variants.get(r)?.kind}compoundsWith(r,n){let t=this.variants.get(r),i=typeof n=="string"?this.variants.get(n):n.kind==="arbitrary"?{compounds:Be([n.selector])}:this.variants.get(n.root);return!(!t||!i||t.kind!=="compound"||i.compounds===0||t.compoundsWith===0||(t.compoundsWith&i.compounds)===0)}suggest(r,n){this.completions.set(r,n)}getCompletions(r){return this.completions.get(r)?.()??[]}compare(r,n){if(r===n)return 0;if(r===null)return-1;if(n===null)return 1;if(r.kind==="arbitrary"&&n.kind==="arbitrary")return r.selector<n.selector?-1:1;if(r.kind==="arbitrary")return 1;if(n.kind==="arbitrary")return-1;let t=this.variants.get(r.root).order,i=this.variants.get(n.root).order,o=t-i;if(o!==0)return o;if(r.kind==="compound"&&n.kind==="compound"){let f=this.compare(r.variant,n.variant);return f!==0?f:r.modifier&&n.modifier?r.modifier.value<n.modifier.value?-1:1:r.modifier?1:n.modifier?-1:0}let l=this.compareFns.get(t);if(l!==void 0)return l(r,n);if(r.root!==n.root)return r.root<n.root?-1:1;let a=r.value,c=n.value;return a===null?-1:c===null||a.kind==="arbitrary"&&c.kind!=="arbitrary"?1:a.kind!=="arbitrary"&&c.kind==="arbitrary"||a.value<c.value?-1:1}keys(){return this.variants.keys()}entries(){return this.variants.entries()}set(r,{kind:n,applyFn:t,compounds:i,compoundsWith:o,order:l}){let a=this.variants.get(r);a?Object.assign(a,{kind:n,applyFn:t,compounds:i}):(l===void 0&&(this.lastOrder=this.nextOrder(),l=this.lastOrder),this.variants.set(r,{kind:n,applyFn:t,order:l,compoundsWith:o,compounds:i}),this.maxNameLength=Math.max(this.maxNameLength,r.length))}nextOrder(){return this.groupOrder??this.lastOrder+1}};function Be(e){let r=0;for(let n of e){if(n[0]==="@"){if(!n.startsWith("@media")&&!n.startsWith("@supports")&&!n.startsWith("@container"))return 0;r|=1;continue}if(n.includes("::"))return 0;r|=2}return r}function il(e){let r=new rn;function n(f,d,{compounds:m}={}){m=m??Be(d),r.static(f,p=>{p.nodes=d.map(h=>J(h,p.nodes))},{compounds:m})}n("*",[":is(& > *)"],{compounds:0}),n("**",[":is(& *)"],{compounds:0});function t(f,d){return d.map(m=>{if(f==="@container"){let p=H(m.trim());return p.length>=1&&p[0].kind==="function"?`not ${m}`:p.length>=3&&p[0].kind==="word"&&p[0].value==="not"&&p[2].kind==="function"?(p.splice(0,2),B(p)):p.length>=5&&p[0].kind==="word"&&p[2].kind==="word"&&p[2].value==="not"&&p[4].kind==="function"?(p.splice(2,2),B(p)):p.length>=3&&p[0].kind==="word"&&p[0].value!=="not"&&p[2].kind==="function"?(p.splice(1,0,{kind:"separator",value:" "},{kind:"word",value:"not"}),B(p)):`not ${m}`}else{m=m.trim();let p=F(m," ");return p[0]==="not"?p.slice(1).join(" "):`not ${m}`}})}let i=["@media","@supports","@container"];function o(f){for(let d of i){if(d!==f.name)continue;let m=F(f.params,",");return m.length>1?null:(m=t(f.name,m),G(f.name,m.join(", ")))}return null}function l(f){return f.includes("::")?null:`&:not(${F(f,",").map(m=>(m=m.replaceAll("&","*"),m)).join(", ")})`}r.compound("not",3,(f,d)=>{if(d.variant.kind==="arbitrary"&&d.variant.relative||d.modifier)return null;let m=!1;if(D([f],(p,h)=>{if(p.kind!=="rule"&&p.kind!=="at-rule")return V.Continue;if(p.nodes.length>0)return V.Continue;let b=[],k=[],w=h.path();w.push(p);for(let C of w)C.kind==="at-rule"?b.push(C):C.kind==="rule"&&k.push(C);if(b.length>1)return V.Stop;if(k.length>1)return V.Stop;let x=[];for(let C of k){let y=l(C.selector);if(!y)return m=!1,V.Stop;x.push(Z(y,[]))}for(let C of b){let y=o(C);if(!y)return m=!1,V.Stop;x.push(y)}return Object.assign(f,Z("&",x)),m=!0,V.Skip}),f.kind==="rule"&&f.selector==="&"&&f.nodes.length===1&&Object.assign(f,f.nodes[0]),!m)return null}),r.suggest("not",()=>Array.from(r.keys()).filter(f=>r.compoundsWith("not",f))),r.compound("group",2,(f,d)=>{if(d.variant.kind==="arbitrary"&&d.variant.relative)return null;let m=d.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:""}group\\/${d.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:""}group)`,p=!1;if(D([f],(h,b)=>{if(h.kind!=="rule")return V.Continue;for(let w of b.path())if(w.kind==="rule")return p=!1,V.Stop;let k=h.selector.replaceAll("&",m);F(k,",").length>1&&(k=`:is(${k})`),h.selector=`:is(${k} &)`,p=!0}),!p)return null}),r.suggest("group",()=>Array.from(r.keys()).filter(f=>r.compoundsWith("group",f))),r.compound("peer",2,(f,d)=>{if(d.variant.kind==="arbitrary"&&d.variant.relative)return null;let m=d.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:""}peer\\/${d.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:""}peer)`,p=!1;if(D([f],(h,b)=>{if(h.kind!=="rule")return V.Continue;for(let w of b.path())if(w.kind==="rule")return p=!1,V.Stop;let k=h.selector.replaceAll("&",m);F(k,",").length>1&&(k=`:is(${k})`),h.selector=`:is(${k} ~ &)`,p=!0}),!p)return null}),r.suggest("peer",()=>Array.from(r.keys()).filter(f=>r.compoundsWith("peer",f))),n("first-letter",["&::first-letter"]),n("first-line",["&::first-line"]),n("marker",["& *::marker","&::marker","& *::-webkit-details-marker","&::-webkit-details-marker"]),n("selection",["& *::selection","&::selection"]),n("file",["&::file-selector-button"]),n("placeholder",["&::placeholder"]),n("backdrop",["&::backdrop"]),n("details-content",["&::details-content"]);{let f=function(){return q([G("@property","--tw-content",[u("syntax",'"*"'),u("initial-value",'""'),u("inherits","false")])])};var a=f;r.static("before",d=>{d.nodes=[Z("&::before",[f(),u("content","var(--tw-content)"),...d.nodes])]},{compounds:0}),r.static("after",d=>{d.nodes=[Z("&::after",[f(),u("content","var(--tw-content)"),...d.nodes])]},{compounds:0})}n("first",["&:first-child"]),n("last",["&:last-child"]),n("only",["&:only-child"]),n("odd",["&:nth-child(odd)"]),n("even",["&:nth-child(even)"]),n("first-of-type",["&:first-of-type"]),n("last-of-type",["&:last-of-type"]),n("only-of-type",["&:only-of-type"]),n("visited",["&:visited"]),n("target",["&:target"]),n("open",["&:is([open], :popover-open, :open)"]),n("default",["&:default"]),n("checked",["&:checked"]),n("indeterminate",["&:indeterminate"]),n("placeholder-shown",["&:placeholder-shown"]),n("autofill",["&:autofill"]),n("optional",["&:optional"]),n("required",["&:required"]),n("valid",["&:valid"]),n("invalid",["&:invalid"]),n("user-valid",["&:user-valid"]),n("user-invalid",["&:user-invalid"]),n("in-range",["&:in-range"]),n("out-of-range",["&:out-of-range"]),n("read-only",["&:read-only"]),n("empty",["&:empty"]),n("focus-within",["&:focus-within"]),r.static("hover",f=>{f.nodes=[Z("&:hover",[G("@media","(hover: hover)",f.nodes)])]}),n("focus",["&:focus"]),n("focus-visible",["&:focus-visible"]),n("active",["&:active"]),n("enabled",["&:enabled"]),n("disabled",["&:disabled"]),n("inert",["&:is([inert], [inert] *)"]),r.compound("in",2,(f,d)=>{if(d.modifier)return null;let m=!1;if(D([f],(p,h)=>{if(p.kind!=="rule")return V.Continue;for(let b of h.path())if(b.kind==="rule")return m=!1,V.Stop;p.selector=`:where(${p.selector.replaceAll("&","*")}) &`,m=!0}),!m)return null}),r.suggest("in",()=>Array.from(r.keys()).filter(f=>r.compoundsWith("in",f))),r.compound("has",2,(f,d)=>{if(d.modifier)return null;let m=!1;if(D([f],(p,h)=>{if(p.kind!=="rule")return V.Continue;for(let b of h.path())if(b.kind==="rule")return m=!1,V.Stop;p.selector=`&:has(${p.selector.replaceAll("&","*")})`,m=!0}),!m)return null}),r.suggest("has",()=>Array.from(r.keys()).filter(f=>r.compoundsWith("has",f))),r.functional("aria",(f,d)=>{if(!d.value||d.modifier)return null;if(d.value.kind==="arbitrary"){let m=`[aria-${nl(d.value.value)}]`;if(et(m)===null)return null;f.nodes=[Z(`&${m}`,f.nodes)]}else{let m=`[aria-${d.value.value}="true"]`;if(et(m)===null)return null;f.nodes=[Z(`&${m}`,f.nodes)]}}),r.suggest("aria",()=>["busy","checked","disabled","expanded","hidden","pressed","readonly","required","selected"]),r.functional("data",(f,d)=>{if(!d.value||d.modifier)return null;let m=`[data-${nl(d.value.value)}]`;if(et(m)===null)return null;f.nodes=[Z(`&${m}`,f.nodes)]}),r.functional("nth",(f,d)=>{if(!d.value||d.modifier||d.value.kind==="named"&&!L(d.value.value))return null;f.nodes=[Z(`&:nth-child(${d.value.value})`,f.nodes)]}),r.functional("nth-last",(f,d)=>{if(!d.value||d.modifier||d.value.kind==="named"&&!L(d.value.value))return null;f.nodes=[Z(`&:nth-last-child(${d.value.value})`,f.nodes)]}),r.functional("nth-of-type",(f,d)=>{if(!d.value||d.modifier||d.value.kind==="named"&&!L(d.value.value))return null;f.nodes=[Z(`&:nth-of-type(${d.value.value})`,f.nodes)]}),r.functional("nth-last-of-type",(f,d)=>{if(!d.value||d.modifier||d.value.kind==="named"&&!L(d.value.value))return null;f.nodes=[Z(`&:nth-last-of-type(${d.value.value})`,f.nodes)]}),r.functional("supports",(f,d)=>{if(!d.value||d.modifier)return null;let m=d.value.value;if(m===null)return null;if(/^[\w-]*\s*\(/.test(m)){let p=!1,h=H(m);D(h,k=>{if(k.kind==="function"){if(k.value==="selector")return V.Skip;(k.value==="and"||k.value==="or"||k.value==="not")&&(p=!0,k.value=` ${k.value} `)}});let b=p?B(h):m;f.nodes=[G("@supports",b,f.nodes)];return}m.includes(":")||(m=`${m}: var(--tw)`),(m[0]!=="("||m[m.length-1]!==")")&&(m=`(${m})`),f.nodes=[G("@supports",m,f.nodes)]},{compounds:1}),n("motion-safe",["@media (prefers-reduced-motion: no-preference)"]),n("motion-reduce",["@media (prefers-reduced-motion: reduce)"]),n("contrast-more",["@media (prefers-contrast: more)"]),n("contrast-less",["@media (prefers-contrast: less)"]);{let f=function(d,m,p,h){if(d===m)return 0;let b=h.get(d);if(b===null)return p==="asc"?-1:1;let k=h.get(m);return k===null?p==="asc"?1:-1:Me(b,k,p)};var c=f;{let d=e.namespace("--breakpoint"),m=new z(p=>{switch(p.kind){case"static":return e.resolveValue(p.root,["--breakpoint"])??null;case"functional":{if(!p.value||p.modifier)return null;let h=null;return p.value.kind==="arbitrary"?h=p.value.value:p.value.kind==="named"&&(h=e.resolveValue(p.value.value,["--breakpoint"])),!h||h.includes("var(")?null:h}case"arbitrary":case"compound":return null}});r.group(()=>{r.functional("max",(p,h)=>{if(h.modifier)return null;let b=m.get(h);if(b===null)return null;p.nodes=[G("@media",`(width < ${b})`,p.nodes)]},{compounds:1})},(p,h)=>f(p,h,"desc",m)),r.suggest("max",()=>Array.from(d.keys()).filter(p=>p!==null)),r.group(()=>{for(let[p,h]of e.namespace("--breakpoint"))p!==null&&r.static(p,b=>{b.nodes=[G("@media",`(width >= ${h})`,b.nodes)]},{compounds:1});r.functional("min",(p,h)=>{if(h.modifier)return null;let b=m.get(h);if(b===null)return null;p.nodes=[G("@media",`(width >= ${b})`,p.nodes)]},{compounds:1})},(p,h)=>f(p,h,"asc",m)),r.suggest("min",()=>Array.from(d.keys()).filter(p=>p!==null))}{let d=e.namespace("--container"),m=new z(p=>{switch(p.kind){case"functional":{if(p.value===null)return null;let h=null;return p.value.kind==="arbitrary"?h=p.value.value:p.value.kind==="named"&&(h=e.resolveValue(p.value.value,["--container"])),!h||h.includes("var(")?null:h}case"static":case"arbitrary":case"compound":return null}});r.group(()=>{r.functional("@max",(p,h)=>{let b=m.get(h);if(b===null)return null;p.nodes=[G("@container",h.modifier?`${h.modifier.value} (width < ${b})`:`(width < ${b})`,p.nodes)]},{compounds:1})},(p,h)=>f(p,h,"desc",m)),r.suggest("@max",()=>Array.from(d.keys()).filter(p=>p!==null)),r.group(()=>{r.functional("@",(p,h)=>{let b=m.get(h);if(b===null)return null;p.nodes=[G("@container",h.modifier?`${h.modifier.value} (width >= ${b})`:`(width >= ${b})`,p.nodes)]},{compounds:1}),r.functional("@min",(p,h)=>{let b=m.get(h);if(b===null)return null;p.nodes=[G("@container",h.modifier?`${h.modifier.value} (width >= ${b})`:`(width >= ${b})`,p.nodes)]},{compounds:1})},(p,h)=>f(p,h,"asc",m)),r.suggest("@min",()=>Array.from(d.keys()).filter(p=>p!==null)),r.suggest("@",()=>Array.from(d.keys()).filter(p=>p!==null))}}return n("portrait",["@media (orientation: portrait)"]),n("landscape",["@media (orientation: landscape)"]),n("ltr",['&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)']),n("rtl",['&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)']),n("dark",["@media (prefers-color-scheme: dark)"]),n("starting",["@starting-style"]),n("print",["@media print"]),n("forced-colors",["@media (forced-colors: active)"]),n("inverted-colors",["@media (inverted-colors: inverted)"]),n("pointer-none",["@media (pointer: none)"]),n("pointer-coarse",["@media (pointer: coarse)"]),n("pointer-fine",["@media (pointer: fine)"]),n("any-pointer-none",["@media (any-pointer: none)"]),n("any-pointer-coarse",["@media (any-pointer: coarse)"]),n("any-pointer-fine",["@media (any-pointer: fine)"]),n("noscript",["@media (scripting: none)"]),r}function nl(e){if(e.includes("=")){let[r,...n]=F(e,"="),t=n.join("=").trim();if(t[0]==="'"||t[0]==='"')return e;if(t.length>1){let i=t[t.length-1];if(t[t.length-2]===" "&&(i==="i"||i==="I"||i==="s"||i==="S"))return`${r}="${t.slice(0,-2)}" ${i}`}return`${r}="${t}"`}return e}function St(e,r){D(e,n=>{if(n.kind==="at-rule"&&n.name==="@slot")return V.ReplaceSkip(r);if(n.kind==="at-rule"&&(n.name==="@keyframes"||n.name==="@property"))return Object.assign(n,q([G(n.name,n.params,n.nodes)])),V.Skip})}function Et(e,r){let n=0;return D(e,t=>{if(t.kind!=="at-rule"||t.name!=="@variant")return;let i=[],o=F(t.params,",");for(let[l,a]of o.entries()){let c=Z("&",l===o.length-1?t.nodes:t.nodes.map(le)),f=F(a,":");for(let d=f.length-1;d>=0;--d){let m=f[d].trim();if(!m)throw new Error("Cannot use `@variant` with empty variant");let p=r.parseVariant(m);if(p===null)throw new Error(`Cannot use \`@variant\` with unknown variant: ${m}`);if(lt(c,p,r.variants)===null)throw new Error(`Cannot use \`@variant\` with variant: ${m}`)}c.selector==="&"?i.push(...c.nodes):i.push(c)}return n|=32,V.Replace(i)}),n}function ll(e,r){let n=vi(e),t=il(e),i=new z(h=>li(h,p)),o=null,l=-1,a=new z(h=>Array.from(ii(h,p))),c=new z(h=>new z(b=>{let k=ol(b,p,h);try{let w=k.map(x=>x.node);Qe(w,p),Et(w,p)}catch{return[]}return k})),f=new z(h=>{for(let b of Mt(h))e.markUsedVariable(b)});function d(h){let b=[];for(let k of h){let w=!0,{astNodes:x}=_e([k],p,{onInvalidCandidate(){w=!1}});r&&D(x,C=>(C.src??=r,V.Continue)),x=we(x,p,0),b.push(w?x:[])}return b}function m(h){return d(h).map(b=>b.length>0?ue(b):null)}let p={theme:e,utilities:n,variants:t,invalidCandidates:new Set,important:!1,candidatesToCss:m,candidatesToAst:d,getClassOrder(h){return rl(this,h)},getClassList(){return el(this)},getVariants(){return tl(this)},parseCandidate(h){return a.get(h)},parseVariant(h){return i.get(h)},compileAstNodes(h,b=1){return c.get(b).get(h)},printCandidate(h){return ai(p,h)},printVariant(h){return Bt(h)},getVariantOrder(){if(o!==null&&l===i.size)return o;let h=Array.from(i.values());h.sort((x,C)=>this.variants.compare(x,C));let b=new Map,k,w=0;for(let x of h)x!==null&&(k!==void 0&&this.variants.compare(k,x)!==0&&w++,b.set(x,w),k=x);return o=b,l=i.size,b},resolveThemeValue(h,b=!0){let k=h.lastIndexOf("/"),w=null;k!==-1&&(w=h.slice(k+1).trim(),h=h.slice(0,k).trim());let x=e.resolve(null,[h],b?1:0)??void 0;return w&&x?ne(x,w):x},trackUsedVariables(h){f.get(h)},canonicalizeCandidates(h,b){return Yr(this,h,b)},storage:{}};return p}var nn=["container-type","pointer-events","visibility","position","inset","inset-inline","inset-block","inset-inline-start","inset-inline-end","inset-block-start","inset-block-end","top","right","bottom","left","isolation","z-index","order","grid-column","grid-column-start","grid-column-end","grid-row","grid-row-start","grid-row-end","float","clear","--tw-container-component","margin","margin-inline","margin-block","margin-inline-start","margin-inline-end","margin-block-start","margin-block-end","margin-top","margin-right","margin-bottom","margin-left","box-sizing","display","field-sizing","aspect-ratio","height","max-height","min-height","width","max-width","min-width","flex","flex-shrink","flex-grow","flex-basis","table-layout","caption-side","border-collapse","border-spacing","transform-origin","translate","--tw-translate-x","--tw-translate-y","--tw-translate-z","scale","--tw-scale-x","--tw-scale-y","--tw-scale-z","rotate","--tw-rotate-x","--tw-rotate-y","--tw-rotate-z","--tw-skew-x","--tw-skew-y","transform","zoom","animation","cursor","touch-action","--tw-pan-x","--tw-pan-y","--tw-pinch-zoom","resize","scroll-snap-type","--tw-scroll-snap-strictness","scroll-snap-align","scroll-snap-stop","scroll-margin","scroll-margin-inline","scroll-margin-block","scroll-margin-inline-start","scroll-margin-inline-end","scroll-margin-block-start","scroll-margin-block-end","scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left","scroll-padding","scroll-padding-inline","scroll-padding-block","scroll-padding-inline-start","scroll-padding-inline-end","scroll-padding-block-start","scroll-padding-block-end","scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left","scrollbar-width","scrollbar-color","scrollbar-gutter","list-style-position","list-style-type","list-style-image","appearance","columns","break-before","break-inside","break-after","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-template-columns","grid-template-rows","flex-direction","flex-wrap","place-content","place-items","align-content","align-items","justify-content","justify-items","gap","column-gap","row-gap","--tw-space-x-reverse","--tw-space-y-reverse","divide-x-width","divide-y-width","--tw-divide-y-reverse","divide-style","divide-color","place-self","align-self","justify-self","overflow","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-x","overscroll-behavior-y","scroll-behavior","border-radius","border-start-radius","border-end-radius","border-top-radius","border-right-radius","border-bottom-radius","border-left-radius","border-start-start-radius","border-start-end-radius","border-end-end-radius","border-end-start-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-width","border-inline-width","border-block-width","border-inline-start-width","border-inline-end-width","border-block-start-width","border-block-end-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-style","border-inline-style","border-block-style","border-inline-start-style","border-inline-end-style","border-block-start-style","border-block-end-style","border-top-style","border-right-style","border-bottom-style","border-left-style","border-color","border-inline-color","border-block-color","border-inline-start-color","border-inline-end-color","border-block-start-color","border-block-end-color","border-top-color","border-right-color","border-bottom-color","border-left-color","background-color","background-image","--tw-gradient-position","--tw-gradient-stops","--tw-gradient-via-stops","--tw-gradient-from","--tw-gradient-from-position","--tw-gradient-via","--tw-gradient-via-position","--tw-gradient-to","--tw-gradient-to-position","mask-image","--tw-mask-top","--tw-mask-top-from-color","--tw-mask-top-from-position","--tw-mask-top-to-color","--tw-mask-top-to-position","--tw-mask-right","--tw-mask-right-from-color","--tw-mask-right-from-position","--tw-mask-right-to-color","--tw-mask-right-to-position","--tw-mask-bottom","--tw-mask-bottom-from-color","--tw-mask-bottom-from-position","--tw-mask-bottom-to-color","--tw-mask-bottom-to-position","--tw-mask-left","--tw-mask-left-from-color","--tw-mask-left-from-position","--tw-mask-left-to-color","--tw-mask-left-to-position","--tw-mask-linear","--tw-mask-linear-position","--tw-mask-linear-from-color","--tw-mask-linear-from-position","--tw-mask-linear-to-color","--tw-mask-linear-to-position","--tw-mask-radial","--tw-mask-radial-shape","--tw-mask-radial-size","--tw-mask-radial-position","--tw-mask-radial-from-color","--tw-mask-radial-from-position","--tw-mask-radial-to-color","--tw-mask-radial-to-position","--tw-mask-conic","--tw-mask-conic-position","--tw-mask-conic-from-color","--tw-mask-conic-from-position","--tw-mask-conic-to-color","--tw-mask-conic-to-position","box-decoration-break","background-size","background-attachment","background-clip","background-position","background-repeat","background-origin","mask-composite","mask-mode","mask-type","mask-size","mask-clip","mask-position","mask-repeat","mask-origin","fill","stroke","stroke-width","object-fit","object-position","padding","padding-inline","padding-block","padding-inline-start","padding-inline-end","padding-block-start","padding-block-end","padding-top","padding-right","padding-bottom","padding-left","text-align","text-indent","vertical-align","font-family","font-feature-settings","font-size","line-height","font-weight","letter-spacing","text-wrap","overflow-wrap","word-break","text-overflow","hyphens","white-space","tab-size","color","text-transform","font-style","font-stretch","font-variant-numeric","text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","-webkit-font-smoothing","placeholder-color","caret-color","accent-color","color-scheme","opacity","background-blend-mode","mix-blend-mode","box-shadow","--tw-shadow","--tw-shadow-color","--tw-ring-shadow","--tw-ring-color","--tw-inset-shadow","--tw-inset-shadow-color","--tw-inset-ring-shadow","--tw-inset-ring-color","--tw-ring-offset-width","--tw-ring-offset-color","outline","outline-width","outline-offset","outline-color","--tw-blur","--tw-brightness","--tw-contrast","--tw-drop-shadow","--tw-grayscale","--tw-hue-rotate","--tw-invert","--tw-saturate","--tw-sepia","filter","--tw-backdrop-blur","--tw-backdrop-brightness","--tw-backdrop-contrast","--tw-backdrop-grayscale","--tw-backdrop-hue-rotate","--tw-backdrop-invert","--tw-backdrop-opacity","--tw-backdrop-saturate","--tw-backdrop-sepia","backdrop-filter","transition-property","transition-behavior","transition-delay","transition-duration","transition-timing-function","will-change","contain","content","forced-color-adjust"];function _e(e,r,{onInvalidCandidate:n,respectImportant:t}={}){let i=new Map,o=[],l=new Map;for(let f of e){if(r.invalidCandidates.has(f)){n?.(f);continue}let d=r.parseCandidate(f);if(d.length===0){n?.(f);continue}l.set(f,d)}let a=0;(t??!0)&&(a|=1);let c=l.size>1?r.getVariantOrder():null;for(let[f,d]of l){let m=!1;for(let p of d){let h=r.compileAstNodes(p,a);if(h.length!==0){m=!0;for(let{node:b,propertySort:k}of h){let w=0n;if(c!==null)for(let x of p.variants)w|=1n<<BigInt(c.get(x));i.set(b,{properties:k,variants:w,candidate:f}),o.push(b)}}}m||n?.(f)}return o.sort((f,d)=>{let m=i.get(f),p=i.get(d);if(m.variants-p.variants!==0n)return Number(m.variants-p.variants);let h=0;for(;h<m.properties.order.length&&h<p.properties.order.length&&m.properties.order[h]===p.properties.order[h];)h+=1;return(m.properties.order[h]??1/0)-(p.properties.order[h]??1/0)||p.properties.count-m.properties.count||Je(m.candidate,p.candidate)}),{astNodes:o,nodeSorting:i}}function ol(e,r,n){let t=Xs(e,r);if(t.length===0)return[];let i=r.important&&!!(n&1),o=[],l=`.${$e(e.raw)}`;for(let a of t){let c=eu(a);(e.important||i)&&cl(a);let f={kind:"rule",selector:l,nodes:a};for(let d of e.variants)if(lt(f,d,r.variants)===null)return[];if(Js(f)>Qs)return[];o.push({node:f,propertySort:c})}return o}function lt(e,r,n,t=0){if(r.kind==="arbitrary"){if(r.relative&&t===0)return null;let l=J(r.selector,e.nodes);l.kind==="at-rule"&&l.name==="@scope"&&(l.nodes=[ee({source:"user"},e.nodes)],l=ee({source:"variant"},[l])),e.nodes=[l];return}let{applyFn:i}=n.get(r.root);if(r.kind==="compound"){let l=G("@slot");if(lt(l,r.variant,n,t+1)===null||r.root==="not"&&l.nodes.length>1)return null;for(let c of l.nodes)if(c.kind!=="rule"&&c.kind!=="at-rule"||i(c,r)===null)return null;D(l.nodes,c=>{if((c.kind==="rule"||c.kind==="at-rule")&&c.nodes.length<=0)return c.nodes=e.nodes,V.Skip}),e.nodes=l.nodes;return}if(i(e,r)===null)return null}var Qs=1e6;function Js(e){return ul(e,new Map)[1]}function ul(e,r){let n=r.get(e);if(n!==void 0)return n;let t=0,i=0,o=!1;for(let a of e.nodes)if(a.kind==="declaration")o=!0;else if(a.kind!=="comment"){let c=ul(a,r);t+=c[0],i+=c[1]}o&&(t+=1);let l;if(e.kind==="rule"){let a=0,c=0,f=e.selector.includes(",")?F(e.selector,","):[e.selector];for(let d of f){let m=Math.max(1,al(d));a+=m,c+=d.length+m*5}l=[a*t,c*t+i]}else if(e.kind==="at-rule"){let a=al(e.params);l=[t+a,i+e.params.length+a*5]}else e.kind==="at-root"?l=[0,i]:l=[t,i];return r.set(e,l),l}function al(e){let r=0;for(let n=e.indexOf("&");n!==-1;n=e.indexOf("&",n+1))r+=1;return r}function sl(e){let r=e.options?.types??[];return r.length>1&&r.includes("any")}function Xs(e,r){if(e.kind==="arbitrary"){let l=e.value;return e.modifier&&(l=ie(l,e.modifier,r.theme)),l===null?[]:[[u(e.property,l)]]}let n=r.utilities.get(e.root)??[],t=[],i=n.filter(l=>!sl(l));for(let l of i){if(l.kind!==e.kind)continue;let a=l.compileFn(e);if(a!==void 0){if(a===null){if(l.options?.types?.length)return t;continue}t.push(a)}}if(t.length>0)return t;let o=n.filter(l=>sl(l));for(let l of o){if(l.kind!==e.kind)continue;let a=l.compileFn(e);if(a!==void 0){if(a===null){if(l.options?.types?.length)return t;continue}t.push(a)}}return t}function cl(e){for(let r of e)r.kind!=="at-root"&&(r.kind==="declaration"?r.important=!0:(r.kind==="rule"||r.kind==="at-rule")&&cl(r.nodes))}function eu(e){let r=new Set,n=0,t=e.slice(),i=!1;for(;t.length>0;){let o=t.shift();if(o.kind==="declaration"){if(o.value===void 0||(n++,i))continue;if(o.property==="--tw-sort"){let a=nn.indexOf(o.value??"");if(a!==-1){r.add(a),i=!0;continue}}let l=nn.indexOf(o.property);l!==-1&&r.add(l)}else if(o.kind==="rule"||o.kind==="at-rule")for(let l of o.nodes)t.push(l)}return{order:Array.from(r).sort((o,l)=>o-l),count:n}}function Pe(e,r){let n=0,t=J("&",e),i=new Set,o=new z(()=>new Set),l=new z(()=>new Set);D([t],(m,p)=>{if(m.kind==="at-rule"){if(m.name==="@keyframes")return D(m.nodes,h=>{if(h.kind==="at-rule"&&h.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),V.Skip;if(m.name==="@utility"){let h=m.params.replace(/-\*$/,"");l.get(h).add(m),D(m.nodes,b=>{if(!(b.kind!=="at-rule"||b.name!=="@apply")){i.add(m);for(let k of fl(b,r))o.get(m).add(k)}});return}if(m.name==="@apply"){if(p.parent===null)return;n|=1,i.add(p.parent);for(let h of fl(m,r))for(let b of p.path())i.has(b)&&o.get(b).add(h)}}});let a=new Set,c=[],f=new Set;function d(m,p=[]){if(!a.has(m)){if(f.has(m)){let h=p[(p.indexOf(m)+1)%p.length];throw m.kind==="at-rule"&&m.name==="@utility"&&h.kind==="at-rule"&&h.name==="@utility"&&D(m.nodes,b=>{if(!(b.kind!=="at-rule"||b.name!=="@apply"))for(let[k]of ln(b.params))for(let w of r.parseCandidate(k))switch(w.kind){case"arbitrary":break;case"static":case"functional":if(h.params.replace(/-\*$/,"")===w.root)throw new Error(`You cannot \`@apply\` the \`${k}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
20
+ `),o=!0;return D(H(t),l=>{if(l.kind==="function"&&l.value==="var"){let a=l.nodes[0].value;if(!new RegExp(`var\\(${a}[,)]\\s*`,"g").test(i)||i.includes(`${a}:`))return o=!1,V.Stop}}),o}function ys(e,r){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let n=r.designSystem,t=n.storage[tn].get(r.signatureOptions),i=n.storage[xe].get(r.signatureOptions),o=n.storage[At].get(r.signatureOptions),l=n.printCandidate(e),a=i.get(l);if(typeof a!="string")return e;for(let f of c(a,e))if(o(e,f))return f;return e;function*c(f,d){let m=t.get(f);if(m.length>1){let p;for(let h of m)if(h[0]!=="-"){if(p)return;p=h}if(p)for(let h of ke(n,p))yield h;return}if(m.length===0&&d.modifier){let p={...d,modifier:null},h=i.get(n.printCandidate(p));if(typeof h=="string")for(let b of c(h,p))yield Object.assign({},b,{modifier:d.modifier})}if(m.length===1)for(let p of ke(n,m[0]))yield p}}var xs=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),As=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*Cs(e){let r=xs.get(e);r&&(yield r);for(let[n,t]of As){let i=e.replace(n,t);i!==e&&(yield i)}}function Ss(e,r){let n=r.designSystem,t=n.storage[At].get(r.signatureOptions),i=Bi(n,e);for(let o of Cs(i)){if(!t(e,o))continue;let[l]=ke(n,o);return l}return e}function Es(e,r){let n=r.designSystem,t=n.storage[nr].get(r.signatureOptions.rem),i=n.storage[Ji].get(r.signatureOptions.rem),o=rr(e);for(let[l,a]of o){if(l.kind==="compound")continue;let c=n.printVariant(l),f=t.get(c);if(typeof f!="string")continue;let d=i.get(f);if(d.length===0||d.includes(c))continue;let m=d[0],p=n.parseVariant(m);p!==null&&(a&&!n.variants.compoundsWith(a.root,p)||ve(l,p))}return e}function Ns(e,r){let n=r.designSystem,t=n.storage[xe].get(r.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let i=n.printCandidate({...e,value:{...e.value,dataType:null}});t.get(n.printCandidate(e))===t.get(i)&&(e.value.dataType=null)}return e}function Ts(e,r){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let n=r.designSystem,t=n.storage[xe].get(r.signatureOptions),i=t.get(n.printCandidate(e));if(i===null)return e;for(let o of Yi(e))if(t.get(n.printCandidate({...e,value:o}))===i)return e.value=o,e;return e}function Vs(e){let r=rr(e);for(let[n]of r)if(n.kind==="functional"&&n.root==="data"&&n.value?.kind==="arbitrary"&&!n.value.value.includes("="))n.value={kind:"named",value:n.value.value};else if(n.kind==="functional"&&n.root==="aria"&&n.value?.kind==="arbitrary"&&(n.value.value.endsWith("=true")||n.value.value.endsWith('="true"')||n.value.value.endsWith("='true'"))){let[t,i]=F(n.value.value,"=");if(t[t.length-1]==="~"||t[t.length-1]==="|"||t[t.length-1]==="^"||t[t.length-1]==="$"||t[t.length-1]==="*")continue;n.value={kind:"named",value:n.value.value.slice(0,n.value.value.indexOf("="))}}else n.kind==="functional"&&n.root==="supports"&&n.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(n.value.value)&&(n.value={kind:"named",value:n.value.value});return e}function*Yi(e,r=e.value?.value??"",n=new Set){if(n.has(r))return;if(n.add(r),yield{kind:"named",value:r,fraction:null},r.endsWith("%")&&te(r.slice(0,-1))&&(yield{kind:"named",value:r.slice(0,-1),fraction:null}),r.includes("/")){let[o,l]=r.split("/");L(o)&&L(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}let t=new Set;for(let o of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))t.add(o[0].trim());let i=Array.from(t).sort((o,l)=>o.length-l.length);for(let o of i)yield*Yi(e,o,n)}function Ii(e){return!(e.length===1&&e[0].kind==="list")}function Qt(e){return e.value[0]==="["&&e.value[e.value.length-1]==="]"}function $s(e,r){let n=[e],t=r.designSystem,i=t.storage[nr].get(r.signatureOptions.rem),o=rr(e);for(let[l,a]of o)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let c=fe(l.selector);if(!Ii(c))continue;if(c.length===1&&c[0].kind==="complex"&&(c=c[0].nodes),a===null&&c.length===3&&c[0].kind==="selector"&&c[0].value==="&"&&c[1].kind==="combinator"&&c[1].value===">"&&c[2].kind==="selector"&&c[2].value==="*"){ve(l,t.parseVariant("*"));continue}if(a===null&&c.length===3&&c[0].kind==="selector"&&c[0].value==="&"&&c[1].kind==="combinator"&&c[1].value===" "&&c[2].kind==="selector"&&c[2].value==="*"){ve(l,t.parseVariant("**"));continue}if(a===null&&c.length===1&&c[0].kind==="compound"&&c[0].nodes.length===2&&c[0].nodes[0].kind==="selector"&&c[0].nodes[0].value==="&"&&c[0].nodes[1].kind==="function"&&c[0].nodes[1].value===":has"&&c[0].nodes[1].nodes.length===1&&c[0].nodes[1].nodes[0].kind==="selector"){ve(l,t.parseVariant(`has-[${ae(c[0].nodes[1].nodes,!0)}]`));continue}if(a===null&&c.length===3&&c[0].kind==="selector"&&c[1].kind==="combinator"&&c[1].value===" "&&c[2].kind==="selector"&&c[2].value==="&"){c.pop(),c.pop(),ve(l,t.parseVariant(`in-[${ae(c,!0)}]`));continue}if(a===null&&c[0].kind==="selector"&&(c[0].value==="@media"||c[0].value==="@supports")){let p=i.get(t.printVariant(l)),h=H(ae(c,!0)),b=!1;if(D(h,k=>{if(k.kind==="word"&&k.value==="not")return b=!0,V.Replace([])}),h=H(B(h)),D(h,k=>{k.kind==="separator"&&k.value!==" "&&k.value.trim()===""&&(k.value=" ")}),b){let k=t.parseVariant(`not-[${B(h)}]`);if(k===null)continue;let w=i.get(t.printVariant(k));if(p===w){ve(l,k);continue}}}let f=null;a===null&&c.length===3&&c[0].kind==="selector"&&c[0].value==="&"&&c[1].kind==="combinator"&&c[1].value===">"&&c[2].kind==="selector"&&(c[2].value[0]===":"||Qt(c[2]))&&(c=[c[2]],f=t.parseVariant("*")),a===null&&c.length===3&&c[0].kind==="selector"&&c[0].value==="&"&&c[1].kind==="combinator"&&c[1].value===" "&&c[2].kind==="selector"&&(c[2].value[0]===":"||Qt(c[2]))&&(c=[c[2]],f=t.parseVariant("**"));let d=c;if(D(d,{enter(p){if(p.kind==="selector"&&p.value==="&")return V.Replace([]);if(p.kind==="function")return V.Skip},exit(p){if(p.kind==="compound"&&p.nodes.length===1)return V.ReplaceSkip(p.nodes)}}),d.length!==1)continue;let m=d[0];if(m.kind==="function"&&m.value===":is"){if(!Ii(m.nodes)||m.nodes.length!==1||m.nodes[0].kind==="selector"&&!Qt(m.nodes[0]))continue;m=m.nodes[0]}if(m.kind==="function"&&m.value[0]===":"||m.kind==="selector"&&m.value[0]===":"){let p=m,h=!1;if(p.kind==="function"&&p.value===":not"){if(h=!0,p.nodes.length!==1||p.nodes[0].kind!=="selector"&&p.nodes[0].kind!=="function"||p.nodes[0].value[0]!==":")continue;p=p.nodes[0]}let b=(w=>{if(w===":nth-child"&&p.kind==="function"&&p.nodes.length===1&&p.nodes[0].kind==="value"&&p.nodes[0].value==="odd")return h?(h=!1,"even"):"odd";if(w===":nth-child"&&p.kind==="function"&&p.nodes.length===1&&p.nodes[0].kind==="value"&&p.nodes[0].value==="even")return h?(h=!1,"odd"):"even";for(let[x,C]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(w===x&&p.kind==="function"&&p.nodes.length===1)return p.nodes.length===1&&p.nodes[0].kind==="value"&&L(p.nodes[0].value)?`${C}-${p.nodes[0].value}`:`${C}-[${ae(p.nodes,!0)}]`;if(h){let x=i.get(t.printVariant(l)),C=i.get(`not-[${w}]`);if(x===C)return`[&${w}]`}return null})(p.value);if(b===null){if(f)return ve(l,{kind:"arbitrary",selector:Vt(m)?`&${m.value}`:m.value,relative:!1}),[f,l];continue}h&&(b=`not-${b}`);let k=t.parseVariant(b);if(k===null)continue;ve(l,k)}else if(m.kind==="selector"&&Qt(m)){let p=et(m.value);if(p===null)continue;if(p.attribute.startsWith("data-")){let h=p.attribute.slice(5);ve(l,{kind:"functional",root:"data",modifier:null,value:p.value===null?{kind:"named",value:h}:{kind:"arbitrary",value:`${h}${p.operator}${p.quote??""}${p.value}${p.quote??""}${p.sensitivity?` ${p.sensitivity}`:""}`}})}else if(p.attribute.startsWith("aria-")){let h=p.attribute.slice(5);ve(l,{kind:"functional",root:"aria",modifier:null,value:p.value===null?{kind:"arbitrary",value:h}:p.operator==="="&&p.value==="true"&&p.sensitivity===null?{kind:"named",value:h}:{kind:"arbitrary",value:`${p.attribute}${p.operator}${p.quote??""}${p.value}${p.quote??""}${p.sensitivity?` ${p.sensitivity}`:""}`}})}else ve(l,{kind:"arbitrary",selector:m.value,relative:!1})}if(f)return[f,l]}return n}function Rs(e,r){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let t=r.designSystem.storage[At].get(r.signatureOptions),i=H(e.value.value);if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let[o,l]=yt(i,null,!1);if(o){let a=Ze(e);a.value.value=B(l),t(e,a)&&(e=a,i=l)}}if(e.root[0]==="-"){if(i.length===1&&i[0].kind==="function"&&i[0].value==="var")return e;let o=H(`calc(${e.value.value} * -1)`),[l,a]=yt(o,null,!1);if(l){let c=Ze(e);c.root=c.root.slice(1),c.value.value=B(a),t(e,c)&&(e=c,i=a)}}if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let o=i[0].nodes;if(o.length===5&&o[1].kind==="separator"&&o[1].value===" "&&o[2].kind==="word"&&o[2].value==="*"&&o[3].kind==="separator"&&o[3].value===" "){let l=o[4].kind==="word"&&o[4].value==="-1"?o[0]:o[0].kind==="word"&&o[0].value==="-1"?o[4]:null;if(l){let a=Ze(e);a.root=`-${e.root}`,a.value.value=B([l]),t(e,a)&&(e=a)}}}return e}function Os(e,r){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let n=r.designSystem,t=n.storage[xe].get(r.signatureOptions),i=t.get(n.printCandidate(e)),o=e.modifier;if(i===t.get(n.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let l={kind:"named",value:o.value.endsWith("%")?o.value.includes(".")?`${Number(o.value.slice(0,-1))}`:o.value.slice(0,-1):o.value,fraction:null};if(i===t.get(n.printCandidate({...e,modifier:l})))return e.modifier=l,e}{let l={kind:"named",value:`${parseFloat(o.value)*100}`,fraction:null};if(i===t.get(n.printCandidate({...e,modifier:l})))return e.modifier=l,e}return e}var xe=Symbol();function Ps(e){return new z(r=>new z(n=>{try{return ue(qi(e,n,r))}catch{return Symbol()}}))}var Gi=Symbol();function _s(e){return new z(r=>new z(n=>{try{let t=new z(()=>new Set),i=qi(e,n,r,t),o=[];return D(i,l=>{l.kind==="declaration"&&o.push(Array.from(t.get(l)).sort().join(" "))}),o}catch{return null}}))}function qi(e,r,n,t){r=e.theme.prefix&&!r.startsWith(e.theme.prefix)?`${e.theme.prefix}:${r}`:r;let i=[Z(".x",[G("@apply",r)])];return Ys(e,()=>{for(let o of e.parseCandidate(r))e.compileAstNodes(o,1);Pe(i,e)}),Zi(e,i,n,t),i}var Di=/#(?:[a-f0-9]{8}|[a-f0-9]{6}|[a-f0-9]{4}|[a-f0-9]{3})/gi,Is={"--tw-duration":"transition-duration","--tw-ease":"transition-timing-function","--tw-tracking":"letter-spacing"};function Zi(e,r,n,t){let{rem:i}=n;return D(r,{enter(o,l){if(o.kind==="declaration"){if(o.value===void 0||o.property==="--tw-sort")return V.Replace([]);if(o.property.startsWith("--tw-")){let p=Is[o.property]??o.property.slice(5);if(l.siblings.some(h=>h.kind==="declaration"&&h.property===p&&o.value===h.value&&o.important===h.important))return V.Replace([])}if(n.features&1){let p=Ri(o,n.features);if(p)return V.Replace(p)}o.value.includes("var(")&&(o.value=Ls(o.value,e,t?.get(o)));let a=H(o.value),[c,f]=yt(a,i),[d,m]=Ai(f);(c||d)&&(o.value=B(m)),o.value=Re(o.value)}else{if(o.kind==="context"||o.kind==="at-root")return V.Replace(o.nodes);if(o.kind==="comment")return V.Replace([]);if(o.kind==="at-rule"&&o.name==="@property")return V.Replace([])}},exit(o){if(o.kind==="rule"||o.kind==="at-rule"){if(o.nodes.length>1){let l=new Set;for(let a=o.nodes.length-1;a>=0;a--){let c=o.nodes[a];c.kind==="declaration"&&c.value!==void 0&&(l.has(c.property)&&o.nodes.splice(a,1),l.add(c.property))}}o.nodes.sort((l,a)=>l.kind!=="declaration"||a.kind!=="declaration"?0:l.property.localeCompare(a.property))}else if(o.kind==="declaration"&&o.value){if(o.property[0]==="-"&&o.property[1]==="-")return;Di.lastIndex=0,o.value=o.value.replace(Di,l=>l.toLowerCase())}}}),r}var Ds=["initial","inherit","revert","revert-layer","revert-rule","unset"];function Ls(e,r,n){let t=!1,i=H(e),o=new Set;return D(i,l=>{if(l.kind!=="function"||l.value!=="var"||l.nodes.length!==1&&l.nodes.length<3)return;let a=l.nodes[0].value;r.theme.prefix&&a.startsWith(`--${r.theme.prefix}-`)&&(a=a.slice(`--${r.theme.prefix}-`.length));let c=r.resolveThemeValue(a);if(!o.has(a)&&(o.add(a),c!==void 0&&!Ds.includes(c.toLowerCase())&&(l.nodes.length===1&&(t=!0,l.nodes.push(...H(`,${c}`))),l.nodes.length>=3))){let f=B(l.nodes),d=`${l.nodes[0].value},${c}`;if(f===d)return t=!0,n?.add(a),V.Replace(H(c))}}),t?B(i):e}var en=Symbol();function Us(){return new z(e=>new z(r=>new z(n=>new Set)))}var xt=Symbol();function Ks(e){return new z(r=>new z(n=>{let t=new z(o=>new Set);e.theme.prefix&&!n.startsWith(e.theme.prefix)&&(n=`${e.theme.prefix}:${n}`);let i=e.parseCandidate(n);if(i.length===0)return t;try{let o=e.compileAstNodes(i[0]).map(l=>le(l.node));D(Zi(e,o,r),l=>{l.kind==="declaration"&&(t.get(l.property).add(l.value),e.storage[en].get(r).get(l.property).get(l.value).add(n))})}catch{}return t}))}var Qi=Symbol();function zs(e){return new z(r=>{let n=e.storage[xt].get(r);return new z(t=>{let i=new z(l=>new z(a=>new Set)),o=new Set(n.get(t).keys());if(o.size===0)return i;for(let l of ke(e,t))if(!(l.kind!=="functional"||l.value===null)){for(let a of e.utilities.keys("functional")){if(a===l.root)continue;let c=Bi(e,{...Ze(l),root:a}),f=n.get(c);for(let[d,m]of f)if(o.has(d))for(let p of m)i.get(d).get(p).add(c)}return i}return i})})}var tn=Symbol();function Ms(e){return new z(r=>{let n=e.storage[xe].get(r),t=new z(()=>[]);for(let[i,o]of e.getClassList()){let l=n.get(i);if(typeof l=="string"){if(i[0]==="-"&&i.endsWith("-0")){let a=n.get(i.slice(1));if(typeof a=="string"&&l===a)continue}t.get(l).push(i),e.storage[xt].get(r).get(i);for(let a of o.modifiers){if(te(a))continue;let c=`${i}/${a}`,f=n.get(c);typeof f=="string"&&(t.get(f).push(c),e.storage[xt].get(r).get(c))}}}return t})}var nr=Symbol();function Fs(e){return new z(r=>new z(n=>{try{n=e.theme.prefix&&!n.startsWith(e.theme.prefix)?`${e.theme.prefix}:${n}`:n;let t=[Z(".x",[G("@apply",`${n}:flex`)])];return Pe(t,e),D(t,o=>{if(o.kind==="context")return V.Replace(o.nodes);if(o.kind==="at-rule")o.params=wt(o.params,r),o.params.includes(" ")&&(o.params=js(o.params,o.name!=="@media"&&o.name!=="@container"));else if(o.kind==="rule"){let l=fe(o.selector),a=!1;D(l,c=>{if(c.kind==="list"||c.kind==="combinator")a=!0;else if(c.kind==="function"&&c.value===":is"){if(c.nodes.length===1)return a=!0,V.Replace(c.nodes);if(c.nodes.length===2&&c.nodes[0].kind==="selector"&&c.nodes[0].value==="*"&&c.nodes[1].kind==="selector"&&c.nodes[1].value[0]===":")return a=!0,V.Replace(c.nodes[1])}else c.kind==="function"&&c.value[0]===":"&&c.nodes[0]?.kind==="selector"&&c.nodes[0]?.value[0]===":"&&(a=!0,c.nodes.unshift({kind:"selector",value:"*"}))}),a&&(o.selector=ae(l,!0))}}),ue(t)}catch{return Symbol()}}))}function js(e,r){let n="",t=!1,i=0,o=!1,l=!1;for(let a=0;a<e.length;a++){let c=e.charCodeAt(a);if(i!==0){n+=e[a],o=!1,c===me&&a+1<e.length?n+=e[++a]:c===i&&(i=0);continue}if(Jt(c)){t=n.length>0;continue}let f=t&&(o||!Ws(n.charCodeAt(n.length-1)))&&!Bs(c)&&!(c===Xt&&(!r||Jt(e.charCodeAt(a+1))));if(t=!1,l&&(f||nt(c))&&(n+=" "),f&&(n+=" "),n+=e[a],o=!1,l=!1,c===me&&a+1<e.length){if(nt(e.charCodeAt(a+1))){let d=a+1;for(;d<a+7&&d<e.length&&nt(e.charCodeAt(d));)d++;n+=e.slice(a+1,d),a=d-1,Jt(e.charCodeAt(a+1))&&(a++,e.charCodeAt(a)===13&&e.charCodeAt(a+1)===10&&a++),l=!0}else n+=e[++a];o=!0}else(c===Zr||c===qr)&&(i=c)}return n}function Ws(e){return e===Ct||e===44||e===Xt||e===60||e===Qr||e===61||e===43||e===126||e===47}function Bs(e){return e===Ct||e===Gr||e===44||e===60||e===Qr||e===61||e===43||e===126||e===47}var Ji=Symbol();function Hs(e){return new z(r=>{let n=e.storage[nr].get(r),t=new z(()=>[]);for(let[i,o]of e.variants.entries())if(o.kind==="static"){let l=n.get(i);if(typeof l!="string")continue;t.get(l).push(i)}else if(o.kind==="functional")for(let l of e.variants.getCompletions(i)){let a=i==="@"?`@${l}`:`${i}-${l}`,c=n.get(a);typeof c=="string"&&t.get(c).push(a)}return t})}function Ys(e,r){let n=e.theme.values.get,t=new Set;e.theme.values.get=i=>{let o=n.call(e.theme.values,i);return o===void 0||o.options&1&&(t.add(o),o.options&=-2),o};try{return r()}finally{e.theme.values.get=n;for(let i of t)i.options|=1}}function*Gs(e){let r=e.length,n=1n<<BigInt(r);for(let t=r;t>=2;t--){let i=(1n<<BigInt(t))-1n;for(;i<n;){let o=[];for(let c=0;c<r;c++)i>>BigInt(c)&1n&&o.push(e[c]);yield o;let l=i&-i,a=i+l;i=((a^i)>>2n)/l|a}}}function Li(e,r){if(typeof e.intersection=="function")return e.intersection(r);if(e.size===0||r.size===0)return new Set;let n=new Set;for(let t of e)r.has(t)&&n.add(t);return n}var qs=/^\d+\/\d+$/;function el(e){let r=new z(i=>({name:i,utility:i,fraction:!1,modifiers:[]}));for(let i of e.utilities.keys("static")){if(e.utilities.getCompletions(i).length===0)continue;let l=r.get(i);l.fraction=!1,l.modifiers=[]}for(let i of e.utilities.keys("functional")){let o=e.utilities.getCompletions(i);for(let l of o)for(let a of l.values){let c=a!==null&&qs.test(a),f=a===null?i:`${i}-${a}`,d=r.get(f);if(d.utility=i,d.fraction||=c,d.modifiers.push(...l.modifiers),l.supportsNegative){let m=r.get(`-${f}`);m.utility=`-${i}`,m.fraction||=c,m.modifiers.push(...l.modifiers)}d.modifiers=Array.from(new Set(d.modifiers))}}if(r.size===0)return[];let n=Array.from(r.values());return n.sort((i,o)=>Je(i.name,o.name)),Zs(n)}function Zs(e){let r=[],n=null,t=new Map,i=new z(()=>[]);for(let l of e){let{utility:a,fraction:c}=l;n||(n={utility:a,items:[]},t.set(a,n)),a!==n.utility&&(r.push(n),n={utility:a,items:[]},t.set(a,n)),c?i.get(a).push(l):n.items.push(l)}n&&r[r.length-1]!==n&&r.push(n);for(let[l,a]of i){let c=t.get(l);c&&c.items.push(...a)}let o=[];for(let l of r)for(let a of l.items)o.push([a.name,{modifiers:a.modifiers}]);return o}function tl(e){let r=[];for(let[t,i]of e.variants.entries()){let a=function({value:c,modifier:f}={}){let d=t;c&&(d+=o?`-${c}`:c),f&&(d+=`/${f}`);let m=e.parseVariant(d);if(!m)return[];let p=Z(".__placeholder__",[]);if(lt(p,m,e.variants)===null)return[];let h=[];return D(p.nodes,{exit(b,k){if(b.kind!=="rule"&&b.kind!=="at-rule"||b.nodes.length>0)return;let w=k.path();w.push(b),w.sort((y,E)=>{let $=y.kind==="at-rule",N=E.kind==="at-rule";return $&&!N?-1:!$&&N?1:0});let x=w.flatMap(y=>y.kind==="rule"?y.selector==="&"?[]:[y.selector]:y.kind==="at-rule"?[`${y.name} ${y.params}`]:[]),C="";for(let y=x.length-1;y>=0;y--)C=C===""?x[y]:`${x[y]} { ${C} }`;h.push(C)}}),h};var n=a;if(i.kind==="arbitrary")continue;let o=t!=="@",l=e.variants.getCompletions(t);switch(i.kind){case"static":{r.push({name:t,values:l,isArbitrary:!1,hasDash:o,selectors:a});break}case"functional":{r.push({name:t,values:l,isArbitrary:!0,hasDash:o,selectors:a});break}case"compound":{r.push({name:t,values:l,isArbitrary:!0,hasDash:o,selectors:a});break}}}return r}function rl(e,r){let{astNodes:n,nodeSorting:t}=_e(Array.from(r),e),i=new Map(r.map(l=>[l,null])),o=0n;for(let l of n){let a=t.get(l)?.candidate;a&&i.set(a,i.get(a)??o++)}return r.map(l=>[l,i.get(l)??null])}var ir=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/;var rn=class{compareFns=new Map;variants=new Map;completions=new Map;groupOrder=null;lastOrder=0;maxNameLength=0;static(r,n,{compounds:t,order:i}={}){this.set(r,{kind:"static",applyFn:n,compoundsWith:0,compounds:t??2,order:i})}fromAst(r,n,t){let i=[],o=!1,l=!1;D(n,a=>{a.kind==="rule"?i.push(a.selector):a.kind==="at-rule"&&a.name==="@variant"?o=!0:a.kind==="at-rule"&&a.name!=="@slot"&&(a.name==="@scope"&&(l=!0),i.push(`${a.name} ${a.params}`))}),this.static(r,a=>{let c=n.map(le);o&&Et(c,t),l?(St(c,[ee({source:"user"},a.nodes)]),a.nodes=[ee({source:"variant"},c)]):(St(c,a.nodes),a.nodes=c)},{compounds:Be(i)})}functional(r,n,{compounds:t,order:i}={}){this.set(r,{kind:"functional",applyFn:n,compoundsWith:0,compounds:t??2,order:i})}compound(r,n,t,{compounds:i,order:o}={}){this.set(r,{kind:"compound",applyFn:t,compoundsWith:n,compounds:i??2,order:o})}group(r,n){this.groupOrder=this.nextOrder(),n&&this.compareFns.set(this.groupOrder,n),r(),this.groupOrder=null}has(r){return this.variants.has(r)}get(r){return this.variants.get(r)}kind(r){return this.variants.get(r)?.kind}compoundsWith(r,n){let t=this.variants.get(r),i=typeof n=="string"?this.variants.get(n):n.kind==="arbitrary"?{compounds:Be([n.selector])}:this.variants.get(n.root);return!(!t||!i||t.kind!=="compound"||i.compounds===0||t.compoundsWith===0||(t.compoundsWith&i.compounds)===0)}suggest(r,n){this.completions.set(r,n)}getCompletions(r){return this.completions.get(r)?.()??[]}compare(r,n){if(r===n)return 0;if(r===null)return-1;if(n===null)return 1;if(r.kind==="arbitrary"&&n.kind==="arbitrary")return r.selector<n.selector?-1:1;if(r.kind==="arbitrary")return 1;if(n.kind==="arbitrary")return-1;let t=this.variants.get(r.root).order,i=this.variants.get(n.root).order,o=t-i;if(o!==0)return o;if(r.kind==="compound"&&n.kind==="compound"){let f=this.compare(r.variant,n.variant);return f!==0?f:r.modifier&&n.modifier?r.modifier.value<n.modifier.value?-1:1:r.modifier?1:n.modifier?-1:0}let l=this.compareFns.get(t);if(l!==void 0)return l(r,n);if(r.root!==n.root)return r.root<n.root?-1:1;let a=r.value,c=n.value;return a===null?-1:c===null||a.kind==="arbitrary"&&c.kind!=="arbitrary"?1:a.kind!=="arbitrary"&&c.kind==="arbitrary"||a.value<c.value?-1:1}keys(){return this.variants.keys()}entries(){return this.variants.entries()}set(r,{kind:n,applyFn:t,compounds:i,compoundsWith:o,order:l}){let a=this.variants.get(r);a?Object.assign(a,{kind:n,applyFn:t,compounds:i}):(l===void 0&&(this.lastOrder=this.nextOrder(),l=this.lastOrder),this.variants.set(r,{kind:n,applyFn:t,order:l,compoundsWith:o,compounds:i}),this.maxNameLength=Math.max(this.maxNameLength,r.length))}nextOrder(){return this.groupOrder??this.lastOrder+1}};function Be(e){let r=0;for(let n of e){if(n[0]==="@"){if(!n.startsWith("@media")&&!n.startsWith("@supports")&&!n.startsWith("@container"))return 0;r|=1;continue}if(n.includes("::"))return 0;r|=2}return r}function il(e){let r=new rn;function n(f,d,{compounds:m}={}){m=m??Be(d),r.static(f,p=>{p.nodes=d.map(h=>J(h,p.nodes))},{compounds:m})}n("*",[":is(& > *)"],{compounds:0}),n("**",[":is(& *)"],{compounds:0});function t(f,d){return d.map(m=>{if(f==="@container"){let p=H(m.trim());return p.length>=1&&p[0].kind==="function"?`not ${m}`:p.length>=3&&p[0].kind==="word"&&p[0].value==="not"&&p[2].kind==="function"?(p.splice(0,2),B(p)):p.length>=5&&p[0].kind==="word"&&p[2].kind==="word"&&p[2].value==="not"&&p[4].kind==="function"?(p.splice(2,2),B(p)):p.length>=3&&p[0].kind==="word"&&p[0].value!=="not"&&p[2].kind==="function"?(p.splice(1,0,{kind:"separator",value:" "},{kind:"word",value:"not"}),B(p)):`not ${m}`}else{m=m.trim();let p=F(m," ");return p[0]==="not"?p.slice(1).join(" "):`not ${m}`}})}let i=["@media","@supports","@container"];function o(f){for(let d of i){if(d!==f.name)continue;let m=F(f.params,",");return m.length>1?null:(m=t(f.name,m),G(f.name,m.join(", ")))}return null}function l(f){return f.includes("::")?null:`&:not(${F(f,",").map(m=>(m=m.replaceAll("&","*"),m)).join(", ")})`}r.compound("not",3,(f,d)=>{if(d.variant.kind==="arbitrary"&&d.variant.relative||d.modifier)return null;let m=!1;if(D([f],(p,h)=>{if(p.kind!=="rule"&&p.kind!=="at-rule")return V.Continue;if(p.nodes.length>0)return V.Continue;let b=[],k=[],w=h.path();w.push(p);for(let C of w)C.kind==="at-rule"?b.push(C):C.kind==="rule"&&k.push(C);if(b.length>1)return V.Stop;if(k.length>1)return V.Stop;let x=[];for(let C of k){let y=l(C.selector);if(!y)return m=!1,V.Stop;x.push(Z(y,[]))}for(let C of b){let y=o(C);if(!y)return m=!1,V.Stop;x.push(y)}return Object.assign(f,Z("&",x)),m=!0,V.Skip}),f.kind==="rule"&&f.selector==="&"&&f.nodes.length===1&&Object.assign(f,f.nodes[0]),!m)return null}),r.suggest("not",()=>Array.from(r.keys()).filter(f=>r.compoundsWith("not",f))),r.compound("group",2,(f,d)=>{if(d.variant.kind==="arbitrary"&&d.variant.relative)return null;let m=d.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:""}group\\/${d.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:""}group)`,p=!1;if(D([f],(h,b)=>{if(h.kind!=="rule")return V.Continue;for(let w of b.path())if(w.kind==="rule")return p=!1,V.Stop;let k=h.selector.replaceAll("&",m);F(k,",").length>1&&(k=`:is(${k})`),h.selector=`:is(${k} &)`,p=!0}),!p)return null}),r.suggest("group",()=>Array.from(r.keys()).filter(f=>r.compoundsWith("group",f))),r.compound("peer",2,(f,d)=>{if(d.variant.kind==="arbitrary"&&d.variant.relative)return null;let m=d.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:""}peer\\/${d.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:""}peer)`,p=!1;if(D([f],(h,b)=>{if(h.kind!=="rule")return V.Continue;for(let w of b.path())if(w.kind==="rule")return p=!1,V.Stop;let k=h.selector.replaceAll("&",m);F(k,",").length>1&&(k=`:is(${k})`),h.selector=`:is(${k} ~ &)`,p=!0}),!p)return null}),r.suggest("peer",()=>Array.from(r.keys()).filter(f=>r.compoundsWith("peer",f))),n("first-letter",["&::first-letter"]),n("first-line",["&::first-line"]),n("marker",["& *::marker","&::marker","& *::-webkit-details-marker","&::-webkit-details-marker"]),n("selection",["& *::selection","&::selection"]),n("file",["&::file-selector-button"]),n("placeholder",["&::placeholder"]),n("backdrop",["&::backdrop"]),n("details-content",["&::details-content"]);{let f=function(){return q([G("@property","--tw-content",[u("syntax",'"*"'),u("initial-value",'""'),u("inherits","false")])])};var a=f;r.static("before",d=>{d.nodes=[Z("&::before",[f(),u("content","var(--tw-content)"),...d.nodes])]},{compounds:0}),r.static("after",d=>{d.nodes=[Z("&::after",[f(),u("content","var(--tw-content)"),...d.nodes])]},{compounds:0})}n("first",["&:first-child"]),n("last",["&:last-child"]),n("only",["&:only-child"]),n("odd",["&:nth-child(odd)"]),n("even",["&:nth-child(even)"]),n("first-of-type",["&:first-of-type"]),n("last-of-type",["&:last-of-type"]),n("only-of-type",["&:only-of-type"]),n("visited",["&:visited"]),n("target",["&:target"]),n("open",["&:is([open], :popover-open, :open)"]),n("default",["&:default"]),n("checked",["&:checked"]),n("indeterminate",["&:indeterminate"]),n("placeholder-shown",["&:placeholder-shown"]),n("autofill",["&:autofill"]),n("optional",["&:optional"]),n("required",["&:required"]),n("valid",["&:valid"]),n("invalid",["&:invalid"]),n("user-valid",["&:user-valid"]),n("user-invalid",["&:user-invalid"]),n("in-range",["&:in-range"]),n("out-of-range",["&:out-of-range"]),n("read-only",["&:read-only"]),n("empty",["&:empty"]),n("focus-within",["&:focus-within"]),r.static("hover",f=>{f.nodes=[Z("&:hover",[G("@media","(hover: hover)",f.nodes)])]}),n("focus",["&:focus"]),n("focus-visible",["&:focus-visible"]),n("active",["&:active"]),n("enabled",["&:enabled"]),n("disabled",["&:disabled"]),n("inert",["&:is([inert], [inert] *)"]),r.compound("in",2,(f,d)=>{if(d.modifier)return null;let m=!1;if(D([f],(p,h)=>{if(p.kind!=="rule")return V.Continue;for(let b of h.path())if(b.kind==="rule")return m=!1,V.Stop;p.selector=`:where(${p.selector.replaceAll("&","*")}) &`,m=!0}),!m)return null}),r.suggest("in",()=>Array.from(r.keys()).filter(f=>r.compoundsWith("in",f))),r.compound("has",2,(f,d)=>{if(d.modifier)return null;let m=!1;if(D([f],(p,h)=>{if(p.kind!=="rule")return V.Continue;for(let b of h.path())if(b.kind==="rule")return m=!1,V.Stop;p.selector=`&:has(${p.selector.replaceAll("&","*")})`,m=!0}),!m)return null}),r.suggest("has",()=>Array.from(r.keys()).filter(f=>r.compoundsWith("has",f))),r.functional("aria",(f,d)=>{if(!d.value||d.modifier)return null;if(d.value.kind==="arbitrary"){let m=`[aria-${nl(d.value.value)}]`;if(et(m)===null)return null;f.nodes=[Z(`&${m}`,f.nodes)]}else{let m=`[aria-${d.value.value}="true"]`;if(et(m)===null)return null;f.nodes=[Z(`&${m}`,f.nodes)]}}),r.suggest("aria",()=>["busy","checked","disabled","expanded","hidden","pressed","readonly","required","selected"]),r.functional("data",(f,d)=>{if(!d.value||d.modifier)return null;let m=`[data-${nl(d.value.value)}]`;if(et(m)===null)return null;f.nodes=[Z(`&${m}`,f.nodes)]}),r.functional("nth",(f,d)=>{if(!d.value||d.modifier||d.value.kind==="named"&&!L(d.value.value))return null;f.nodes=[Z(`&:nth-child(${d.value.value})`,f.nodes)]}),r.functional("nth-last",(f,d)=>{if(!d.value||d.modifier||d.value.kind==="named"&&!L(d.value.value))return null;f.nodes=[Z(`&:nth-last-child(${d.value.value})`,f.nodes)]}),r.functional("nth-of-type",(f,d)=>{if(!d.value||d.modifier||d.value.kind==="named"&&!L(d.value.value))return null;f.nodes=[Z(`&:nth-of-type(${d.value.value})`,f.nodes)]}),r.functional("nth-last-of-type",(f,d)=>{if(!d.value||d.modifier||d.value.kind==="named"&&!L(d.value.value))return null;f.nodes=[Z(`&:nth-last-of-type(${d.value.value})`,f.nodes)]}),r.functional("supports",(f,d)=>{if(!d.value||d.modifier)return null;let m=d.value.value;if(m===null)return null;if(/^[\w-]*\s*\(/.test(m)){let p=!1,h=H(m);D(h,k=>{if(k.kind==="function"){if(k.value==="selector")return V.Skip;(k.value==="and"||k.value==="or"||k.value==="not")&&(p=!0,k.value=` ${k.value} `)}});let b=p?B(h):m;f.nodes=[G("@supports",b,f.nodes)];return}m.includes(":")||(m=`${m}: var(--tw)`),(m[0]!=="("||m[m.length-1]!==")")&&(m=`(${m})`),f.nodes=[G("@supports",m,f.nodes)]},{compounds:1}),n("motion-safe",["@media (prefers-reduced-motion: no-preference)"]),n("motion-reduce",["@media (prefers-reduced-motion: reduce)"]),n("contrast-more",["@media (prefers-contrast: more)"]),n("contrast-less",["@media (prefers-contrast: less)"]);{let f=function(d,m,p,h){if(d===m)return 0;let b=h.get(d);if(b===null)return p==="asc"?-1:1;let k=h.get(m);return k===null?p==="asc"?1:-1:Me(b,k,p)};var c=f;{let d=e.namespace("--breakpoint"),m=new z(p=>{switch(p.kind){case"static":return e.resolveValue(p.root,["--breakpoint"])??null;case"functional":{if(!p.value||p.modifier)return null;let h=null;return p.value.kind==="arbitrary"?h=p.value.value:p.value.kind==="named"&&(h=e.resolveValue(p.value.value,["--breakpoint"])),!h||h.includes("var(")?null:h}case"arbitrary":case"compound":return null}});r.group(()=>{r.functional("max",(p,h)=>{if(h.modifier)return null;let b=m.get(h);if(b===null)return null;p.nodes=[G("@media",`(width < ${b})`,p.nodes)]},{compounds:1})},(p,h)=>f(p,h,"desc",m)),r.suggest("max",()=>Array.from(d.keys()).filter(p=>p!==null)),r.group(()=>{for(let[p,h]of e.namespace("--breakpoint"))p!==null&&r.static(p,b=>{b.nodes=[G("@media",`(width >= ${h})`,b.nodes)]},{compounds:1});r.functional("min",(p,h)=>{if(h.modifier)return null;let b=m.get(h);if(b===null)return null;p.nodes=[G("@media",`(width >= ${b})`,p.nodes)]},{compounds:1})},(p,h)=>f(p,h,"asc",m)),r.suggest("min",()=>Array.from(d.keys()).filter(p=>p!==null))}{let d=e.namespace("--container"),m=new z(p=>{switch(p.kind){case"functional":{if(p.value===null)return null;let h=null;return p.value.kind==="arbitrary"?h=p.value.value:p.value.kind==="named"&&(h=e.resolveValue(p.value.value,["--container"])),!h||h.includes("var(")?null:h}case"static":case"arbitrary":case"compound":return null}});r.group(()=>{r.functional("@max",(p,h)=>{let b=m.get(h);if(b===null)return null;p.nodes=[G("@container",h.modifier?`${h.modifier.value} (width < ${b})`:`(width < ${b})`,p.nodes)]},{compounds:1})},(p,h)=>f(p,h,"desc",m)),r.suggest("@max",()=>Array.from(d.keys()).filter(p=>p!==null)),r.group(()=>{r.functional("@",(p,h)=>{let b=m.get(h);if(b===null)return null;p.nodes=[G("@container",h.modifier?`${h.modifier.value} (width >= ${b})`:`(width >= ${b})`,p.nodes)]},{compounds:1}),r.functional("@min",(p,h)=>{let b=m.get(h);if(b===null)return null;p.nodes=[G("@container",h.modifier?`${h.modifier.value} (width >= ${b})`:`(width >= ${b})`,p.nodes)]},{compounds:1})},(p,h)=>f(p,h,"asc",m)),r.suggest("@min",()=>Array.from(d.keys()).filter(p=>p!==null)),r.suggest("@",()=>Array.from(d.keys()).filter(p=>p!==null))}}return n("portrait",["@media (orientation: portrait)"]),n("landscape",["@media (orientation: landscape)"]),n("ltr",['&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)']),n("rtl",['&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)']),n("dark",["@media (prefers-color-scheme: dark)"]),n("starting",["@starting-style"]),n("print",["@media print"]),n("forced-colors",["@media (forced-colors: active)"]),n("inverted-colors",["@media (inverted-colors: inverted)"]),n("pointer-none",["@media (pointer: none)"]),n("pointer-coarse",["@media (pointer: coarse)"]),n("pointer-fine",["@media (pointer: fine)"]),n("any-pointer-none",["@media (any-pointer: none)"]),n("any-pointer-coarse",["@media (any-pointer: coarse)"]),n("any-pointer-fine",["@media (any-pointer: fine)"]),n("noscript",["@media (scripting: none)"]),r}function nl(e){if(e.includes("=")){let[r,...n]=F(e,"="),t=n.join("=").trim();if(t[0]==="'"||t[0]==='"')return e;if(t.length>1){let i=t[t.length-1];if(t[t.length-2]===" "&&(i==="i"||i==="I"||i==="s"||i==="S"))return`${r}="${t.slice(0,-2)}" ${i}`}return`${r}="${t}"`}return e}function St(e,r){D(e,n=>{if(n.kind==="at-rule"&&n.name==="@slot")return V.ReplaceSkip(r);if(n.kind==="at-rule"&&(n.name==="@keyframes"||n.name==="@property"))return Object.assign(n,q([G(n.name,n.params,n.nodes)])),V.Skip})}function Et(e,r){let n=0;return D(e,t=>{if(t.kind!=="at-rule"||t.name!=="@variant")return;let i=[],o=F(t.params,",");for(let[l,a]of o.entries()){let c=Z("&",l===o.length-1?t.nodes:t.nodes.map(le)),f=F(a,":");for(let d=f.length-1;d>=0;--d){let m=f[d].trim();if(!m)throw new Error("Cannot use `@variant` with empty variant");let p=r.parseVariant(m);if(p===null)throw new Error(`Cannot use \`@variant\` with unknown variant: ${m}`);if(lt(c,p,r.variants)===null)throw new Error(`Cannot use \`@variant\` with variant: ${m}`)}c.selector==="&"?i.push(...c.nodes):i.push(c)}return n|=32,V.Replace(i)}),n}function ll(e,r){let n=vi(e),t=il(e),i=new z(h=>li(h,p)),o=null,l=-1,a=new z(h=>Array.from(ii(h,p))),c=new z(h=>new z(b=>{let k=ol(b,p,h);try{let w=k.map(x=>x.node);Qe(w,p),Et(w,p)}catch{return[]}return k})),f=new z(h=>{for(let b of Mt(h))e.markUsedVariable(b)});function d(h){let b=[];for(let k of h){let w=!0,{astNodes:x}=_e([k],p,{onInvalidCandidate(){w=!1}});r&&D(x,C=>(C.src??=r,V.Continue)),x=we(x,p,0),b.push(w?x:[])}return b}function m(h){return d(h).map(b=>b.length>0?ue(b):null)}let p={theme:e,utilities:n,variants:t,invalidCandidates:new Set,important:!1,candidatesToCss:m,candidatesToAst:d,getClassOrder(h){return rl(this,h)},getClassList(){return el(this)},getVariants(){return tl(this)},parseCandidate(h){return a.get(h)},parseVariant(h){return i.get(h)},compileAstNodes(h,b=1){return c.get(b).get(h)},printCandidate(h){return ai(p,h)},printVariant(h){return Bt(h)},getVariantOrder(){if(o!==null&&l===i.size)return o;let h=Array.from(i.values());h.sort((x,C)=>this.variants.compare(x,C));let b=new Map,k,w=0;for(let x of h)x!==null&&(k!==void 0&&this.variants.compare(k,x)!==0&&w++,b.set(x,w),k=x);return o=b,l=i.size,b},resolveThemeValue(h,b=!0){let k=h.lastIndexOf("/"),w=null;k!==-1&&(w=h.slice(k+1).trim(),h=h.slice(0,k).trim());let x=e.resolve(null,[h],b?1:0)??void 0;return w&&x?ne(x,w):x},trackUsedVariables(h){f.get(h)},canonicalizeCandidates(h,b){return Yr(this,h,b)},storage:{}};return p}var nn=["container-type","pointer-events","visibility","position","inset","inset-inline","inset-block","inset-inline-start","inset-inline-end","inset-block-start","inset-block-end","top","right","bottom","left","isolation","z-index","order","grid-column","grid-column-start","grid-column-end","grid-row","grid-row-start","grid-row-end","float","clear","--tw-container-component","margin","margin-inline","margin-block","margin-inline-start","margin-inline-end","margin-block-start","margin-block-end","margin-top","margin-right","margin-bottom","margin-left","box-sizing","display","field-sizing","aspect-ratio","height","max-height","min-height","width","max-width","min-width","flex","flex-shrink","flex-grow","flex-basis","table-layout","caption-side","border-collapse","border-spacing","transform-origin","translate","--tw-translate-x","--tw-translate-y","--tw-translate-z","scale","--tw-scale-x","--tw-scale-y","--tw-scale-z","rotate","--tw-rotate-x","--tw-rotate-y","--tw-rotate-z","--tw-skew-x","--tw-skew-y","transform","zoom","animation","cursor","touch-action","--tw-pan-x","--tw-pan-y","--tw-pinch-zoom","resize","scroll-snap-type","--tw-scroll-snap-strictness","scroll-snap-align","scroll-snap-stop","scroll-margin","scroll-margin-inline","scroll-margin-block","scroll-margin-inline-start","scroll-margin-inline-end","scroll-margin-block-start","scroll-margin-block-end","scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left","scroll-padding","scroll-padding-inline","scroll-padding-block","scroll-padding-inline-start","scroll-padding-inline-end","scroll-padding-block-start","scroll-padding-block-end","scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left","scrollbar-width","scrollbar-color","scrollbar-gutter","list-style-position","list-style-type","list-style-image","appearance","columns","break-before","break-inside","break-after","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-template-columns","grid-template-rows","flex-direction","flex-wrap","place-content","place-items","align-content","align-items","justify-content","justify-items","gap","column-gap","row-gap","--tw-space-x-reverse","--tw-space-y-reverse","divide-x-width","divide-y-width","--tw-divide-y-reverse","divide-style","divide-color","place-self","align-self","justify-self","overflow","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-x","overscroll-behavior-y","scroll-behavior","border-radius","border-start-radius","border-end-radius","border-top-radius","border-right-radius","border-bottom-radius","border-left-radius","border-start-start-radius","border-start-end-radius","border-end-end-radius","border-end-start-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-width","border-inline-width","border-block-width","border-inline-start-width","border-inline-end-width","border-block-start-width","border-block-end-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-style","border-inline-style","border-block-style","border-inline-start-style","border-inline-end-style","border-block-start-style","border-block-end-style","border-top-style","border-right-style","border-bottom-style","border-left-style","border-color","border-inline-color","border-block-color","border-inline-start-color","border-inline-end-color","border-block-start-color","border-block-end-color","border-top-color","border-right-color","border-bottom-color","border-left-color","background-color","background-image","--tw-gradient-position","--tw-gradient-stops","--tw-gradient-via-stops","--tw-gradient-from","--tw-gradient-from-position","--tw-gradient-via","--tw-gradient-via-position","--tw-gradient-to","--tw-gradient-to-position","mask-image","--tw-mask-top","--tw-mask-top-from-color","--tw-mask-top-from-position","--tw-mask-top-to-color","--tw-mask-top-to-position","--tw-mask-right","--tw-mask-right-from-color","--tw-mask-right-from-position","--tw-mask-right-to-color","--tw-mask-right-to-position","--tw-mask-bottom","--tw-mask-bottom-from-color","--tw-mask-bottom-from-position","--tw-mask-bottom-to-color","--tw-mask-bottom-to-position","--tw-mask-left","--tw-mask-left-from-color","--tw-mask-left-from-position","--tw-mask-left-to-color","--tw-mask-left-to-position","--tw-mask-linear","--tw-mask-linear-position","--tw-mask-linear-from-color","--tw-mask-linear-from-position","--tw-mask-linear-to-color","--tw-mask-linear-to-position","--tw-mask-radial","--tw-mask-radial-shape","--tw-mask-radial-size","--tw-mask-radial-position","--tw-mask-radial-from-color","--tw-mask-radial-from-position","--tw-mask-radial-to-color","--tw-mask-radial-to-position","--tw-mask-conic","--tw-mask-conic-position","--tw-mask-conic-from-color","--tw-mask-conic-from-position","--tw-mask-conic-to-color","--tw-mask-conic-to-position","box-decoration-break","background-size","background-attachment","background-clip","background-position","background-repeat","background-origin","mask-composite","mask-mode","mask-type","mask-size","mask-clip","mask-position","mask-repeat","mask-origin","fill","stroke","stroke-width","object-fit","object-position","padding","padding-inline","padding-block","padding-inline-start","padding-inline-end","padding-block-start","padding-block-end","padding-top","padding-right","padding-bottom","padding-left","text-align","text-indent","vertical-align","font-family","font-feature-settings","font-size","line-height","font-weight","letter-spacing","text-wrap","overflow-wrap","word-break","text-overflow","hyphens","white-space","tab-size","color","text-transform","font-style","font-stretch","font-variant-numeric","text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","-webkit-font-smoothing","placeholder-color","caret-color","accent-color","color-scheme","opacity","background-blend-mode","mix-blend-mode","box-shadow","--tw-shadow","--tw-shadow-color","--tw-ring-shadow","--tw-ring-color","--tw-inset-shadow","--tw-inset-shadow-color","--tw-inset-ring-shadow","--tw-inset-ring-color","--tw-ring-offset-width","--tw-ring-offset-color","outline","outline-width","outline-offset","outline-color","--tw-blur","--tw-brightness","--tw-contrast","--tw-drop-shadow","--tw-grayscale","--tw-hue-rotate","--tw-invert","--tw-saturate","--tw-sepia","filter","--tw-backdrop-blur","--tw-backdrop-brightness","--tw-backdrop-contrast","--tw-backdrop-grayscale","--tw-backdrop-hue-rotate","--tw-backdrop-invert","--tw-backdrop-opacity","--tw-backdrop-saturate","--tw-backdrop-sepia","backdrop-filter","transition-property","transition-behavior","transition-delay","transition-duration","transition-timing-function","will-change","contain","content","forced-color-adjust"];function _e(e,r,{onInvalidCandidate:n,respectImportant:t}={}){let i=new Map,o=[],l=new Map;for(let f of e){if(r.invalidCandidates.has(f)){n?.(f);continue}let d=r.parseCandidate(f);if(d.length===0){n?.(f);continue}l.set(f,d)}let a=0;(t??!0)&&(a|=1);let c=l.size>1?r.getVariantOrder():null;for(let[f,d]of l){let m=!1;for(let p of d){let h=r.compileAstNodes(p,a);if(h.length!==0){m=!0;for(let{node:b,propertySort:k}of h){let w=0n;if(c!==null)for(let x of p.variants)w|=1n<<BigInt(c.get(x));i.set(b,{properties:k,variants:w,candidate:f}),o.push(b)}}}m||n?.(f)}return o.sort((f,d)=>{let m=i.get(f),p=i.get(d);if(m.variants-p.variants!==0n)return Number(m.variants-p.variants);let h=0;for(;h<m.properties.order.length&&h<p.properties.order.length&&m.properties.order[h]===p.properties.order[h];)h+=1;return(m.properties.order[h]??1/0)-(p.properties.order[h]??1/0)||p.properties.count-m.properties.count||Je(m.candidate,p.candidate)}),{astNodes:o,nodeSorting:i}}function ol(e,r,n){let t=Xs(e,r);if(t.length===0)return[];let i=r.important&&!!(n&1),o=[],l=`.${$e(e.raw)}`;for(let a of t){let c=eu(a);(e.important||i)&&cl(a);let f={kind:"rule",selector:l,nodes:a};for(let d of e.variants)if(lt(f,d,r.variants)===null)return[];if(Js(f)>Qs)return[];o.push({node:f,propertySort:c})}return o}function lt(e,r,n,t=0){if(r.kind==="arbitrary"){if(r.relative&&t===0)return null;let l=J(r.selector,e.nodes);l.kind==="at-rule"&&l.name==="@scope"&&(l.nodes=[ee({source:"user"},e.nodes)],l=ee({source:"variant"},[l])),e.nodes=[l];return}let{applyFn:i}=n.get(r.root);if(r.kind==="compound"){let l=G("@slot");if(lt(l,r.variant,n,t+1)===null||r.root==="not"&&l.nodes.length>1)return null;for(let c of l.nodes)if(c.kind!=="rule"&&c.kind!=="at-rule"||i(c,r)===null)return null;D(l.nodes,c=>{if((c.kind==="rule"||c.kind==="at-rule")&&c.nodes.length<=0)return c.nodes=e.nodes,V.Skip}),e.nodes=l.nodes;return}if(i(e,r)===null)return null}var Qs=1e6;function Js(e){return ul(e,new Map)[1]}function ul(e,r){let n=r.get(e);if(n!==void 0)return n;let t=0,i=0,o=!1;for(let a of e.nodes)if(a.kind==="declaration")o=!0;else if(a.kind!=="comment"){let c=ul(a,r);t+=c[0],i+=c[1]}o&&(t+=1);let l;if(e.kind==="rule"){let a=0,c=0,f=e.selector.includes(",")?F(e.selector,","):[e.selector];for(let d of f){let m=Math.max(1,al(d));a+=m,c+=d.length+m*5}l=[a*t,c*t+i]}else if(e.kind==="at-rule"){let a=al(e.params);l=[t+a,i+e.params.length+a*5]}else e.kind==="at-root"?l=[0,i]:l=[t,i];return r.set(e,l),l}function al(e){let r=0;for(let n=e.indexOf("&");n!==-1;n=e.indexOf("&",n+1))r+=1;return r}function sl(e){let r=e.options?.types??[];return r.length>1&&r.includes("any")}function Xs(e,r){if(e.kind==="arbitrary"){let l=e.value;return e.modifier&&(l=ie(l,e.modifier,r.theme)),l===null?[]:[[u(e.property,l)]]}let n=r.utilities.get(e.root)??[],t=[],i=n.filter(l=>!sl(l));for(let l of i){if(l.kind!==e.kind)continue;let a=l.compileFn(e);if(a!==void 0){if(a===null){if(l.options?.types?.length)return t;continue}t.push(a)}}if(t.length>0)return t;let o=n.filter(l=>sl(l));for(let l of o){if(l.kind!==e.kind)continue;let a=l.compileFn(e);if(a!==void 0){if(a===null){if(l.options?.types?.length)return t;continue}t.push(a)}}return t}function cl(e){for(let r of e)r.kind!=="at-root"&&(r.kind==="declaration"?r.important=!0:(r.kind==="rule"||r.kind==="at-rule")&&cl(r.nodes))}function eu(e){let r=new Set,n=0,t=e.slice(),i=!1;for(;t.length>0;){let o=t.shift();if(o.kind==="declaration"){if(o.value===void 0||(n++,i))continue;if(o.property==="--tw-sort"){let a=nn.indexOf(o.value??"");if(a!==-1){r.add(a),i=!0;continue}}let l=nn.indexOf(o.property);l!==-1&&r.add(l)}else if(o.kind==="rule"||o.kind==="at-rule")for(let l of o.nodes)t.push(l)}return{order:Array.from(r).sort((o,l)=>o-l),count:n}}function Pe(e,r){let n=0,t=J("&",e),i=new Set,o=new z(()=>new Set),l=new z(()=>new Set);D([t],(m,p)=>{if(m.kind==="at-rule"){if(m.name==="@keyframes")return D(m.nodes,h=>{if(h.kind==="at-rule"&&h.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),V.Skip;if(m.name==="@utility"){let h=m.params.replace(/-\*$/,"");l.get(h).add(m),D(m.nodes,b=>{if(!(b.kind!=="at-rule"||b.name!=="@apply")){i.add(m);for(let k of fl(b,r))o.get(m).add(k)}});return}if(m.name==="@apply"){if(p.parent===null)return;n|=1,i.add(p.parent);for(let h of fl(m,r))for(let b of p.path())i.has(b)&&o.get(b).add(h)}}});let a=new Set,c=[],f=new Set;function d(m,p=[]){if(!a.has(m)){if(f.has(m)){let h=p[(p.indexOf(m)+1)%p.length];throw m.kind==="at-rule"&&m.name==="@utility"&&h.kind==="at-rule"&&h.name==="@utility"&&D(m.nodes,b=>{if(!(b.kind!=="at-rule"||b.name!=="@apply"))for(let[k]of ln(b.params))for(let w of r.parseCandidate(k))switch(w.kind){case"arbitrary":break;case"static":case"functional":if(h.params.replace(/-\*$/,"")===w.root)throw new Error(`You cannot \`@apply\` the \`${k}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
21
21
 
22
22
  ${ue([m])}
23
23
  Relies on:
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{a as F,b as yt,c as Jr,d as X,e as tt,f as K,g as er,h as te,i as Ce,j as en}from"./chunk-OFWLFL4C.mjs";import{a as Xr}from"./chunk-DCG7AFIE.mjs";import{a as Ue,b as Ke,c as Qr}from"./chunk-3IIMCCN4.mjs";var tn="0.0.0-insiders.X97cd43b";function gl(e){return{kind:"combinator",value:e}}function tr(e){return{kind:"complex",nodes:e}}function rn(e){return{kind:"compound",nodes:e}}function hl(e,n){return{kind:"function",value:e,nodes:n}}function vl(e){return{kind:"list",nodes:e}}function xe(e){return{kind:"selector",value:e}}function nn(e){return{kind:"value",value:e}}function rt(e){return e.kind==="selector"&&e.value.charCodeAt(0)===ar}var wl=new Set([":before",":after",":first-line",":first-letter"]);function xt(e){return e.kind!=="selector"&&e.kind!=="function"?!1:e.value.startsWith("::")||wl.has(e.value.toLowerCase())}function At(e){if(e.kind!=="selector")return!1;switch(e.value.charCodeAt(0)){case ar:case mn:case dn:case pn:case lr:case or:return!1;default:return!0}}function ae(e,n=!1){let r="";for(let t of e)switch(t.kind){case"selector":case"value":{r+=t.value;break}case"combinator":{n||t.value===" "?r+=t.value:r+=` ${t.value} `;break}case"function":{r+=`${t.value}(${ae(t.nodes,n)})`;break}case"complex":case"compound":{r+=ae(t.nodes,n);break}case"list":{r+=t.nodes.map(i=>ae([i],n)).join(n?",":", ");break}}return r}var ln=92,kl=93,on=41,lr=58,an=44,bl=34,dn=46,sn=62,rr=10,pn=35,or=91,un=40,fn=43,yl=39,nr=32,ir=9,cn=126,mn=38,ar=42;function fe(e){e=e.replaceAll(`\r
1
+ import{a as F,b as yt,c as Jr,d as X,e as tt,f as K,g as er,h as te,i as Ce,j as en}from"./chunk-OFWLFL4C.mjs";import{a as Xr}from"./chunk-DCG7AFIE.mjs";import{a as Ue,b as Ke,c as Qr}from"./chunk-3IIMCCN4.mjs";var tn="0.0.0-insiders.Xc562ea3";function gl(e){return{kind:"combinator",value:e}}function tr(e){return{kind:"complex",nodes:e}}function rn(e){return{kind:"compound",nodes:e}}function hl(e,n){return{kind:"function",value:e,nodes:n}}function vl(e){return{kind:"list",nodes:e}}function xe(e){return{kind:"selector",value:e}}function nn(e){return{kind:"value",value:e}}function rt(e){return e.kind==="selector"&&e.value.charCodeAt(0)===ar}var wl=new Set([":before",":after",":first-line",":first-letter"]);function xt(e){return e.kind!=="selector"&&e.kind!=="function"?!1:e.value.startsWith("::")||wl.has(e.value.toLowerCase())}function At(e){if(e.kind!=="selector")return!1;switch(e.value.charCodeAt(0)){case ar:case mn:case dn:case pn:case lr:case or:return!1;default:return!0}}function ae(e,n=!1){let r="";for(let t of e)switch(t.kind){case"selector":case"value":{r+=t.value;break}case"combinator":{n||t.value===" "?r+=t.value:r+=` ${t.value} `;break}case"function":{r+=`${t.value}(${ae(t.nodes,n)})`;break}case"complex":case"compound":{r+=ae(t.nodes,n);break}case"list":{r+=t.nodes.map(i=>ae([i],n)).join(n?",":", ");break}}return r}var ln=92,kl=93,on=41,lr=58,an=44,bl=34,dn=46,sn=62,rr=10,pn=35,or=91,un=40,fn=43,yl=39,nr=32,ir=9,cn=126,mn=38,ar=42;function fe(e){e=e.replaceAll(`\r
2
2
  `,`
3
3
  `);let n=[],r=n,t=!1,i=[],o=null,l="",s;function f(p=r){return p.length===1?p[0]:t?tr(p):rn(p)}function c(p){let m=r[r.length-1];m?.kind==="compound"?m.nodes.push(p):m&&m.kind!=="list"&&m.kind!=="combinator"?r[r.length-1]=rn([m,p]):r.push(p)}for(let p=0;p<e.length;p++){let m=e.charCodeAt(p);switch(m){case an:{for(l.length>0&&(c(xe(l)),l="");p+1<e.length&&(s=e.charCodeAt(p+1),!(s!==rr&&s!==nr&&s!==ir));p++);if(o)o.nodes.push(f()),r=[],t=!1;else{let d=r.splice(0),h=f(d),k=vl([h]);r.push(k),o=k,r=[],t=!1}break}case sn:case rr:case nr:case fn:case ir:case cn:{l.length>0&&(c(xe(l)),l="");let d=p,h=p+1;for(;h<e.length&&(s=e.charCodeAt(h),!(s!==sn&&s!==rr&&s!==nr&&s!==fn&&s!==ir&&s!==cn));h++);p=h-1;let k=e.slice(d,h).trim();if(k===""&&(r.length===0||h>=e.length||e.charCodeAt(h)===an))break;r.push(gl(k===""?" ":k)),t=!0;break}case un:{let d=hl(l,[]);if(l="",d.value!==":not"&&d.value!==":where"&&d.value!==":has"&&d.value!==":is"&&d.value!==":-moz-any"&&d.value!==":-webkit-any"){let h=p+1,k=0;for(let x=p+1;x<e.length;x++){if(s=e.charCodeAt(x),s===un){k++;continue}if(s===on){if(k===0){p=x;break}k--}}let w=p,b=e.slice(h,w);if(d.value===":nth-child"||d.value===":nth-last-child"){let x=b.indexOf("of ");if(x!==-1){d.nodes.push(nn(b.slice(0,x+3)),...fe(b.slice(x+3))),l="",p=w,c(d);break}}d.nodes.push(nn(b)),l="",p=w,c(d);break}c(d),i.push({target:r,currentList:o,containsCombinator:t}),r=d.nodes,t=!1,o=null;break}case on:{l.length>0&&(c(xe(l)),l=""),o?o.nodes.push(f()):t&&r.splice(0,r.length,tr(r.splice(0)));let d=i.pop();r=d?.target??n,o=d?.currentList??null,t=d?.containsCombinator??!1;break}case dn:case lr:case pn:{if(m===lr&&l===":"){l+=e[p];break}l.length>0&&c(xe(l)),l=e[p];break}case or:{l.length>0&&(c(xe(l)),l="");let d=p,h=0;for(let k=p+1;k<e.length;k++){if(s=e.charCodeAt(k),s===or){h++;continue}if(s===kl){if(h===0){p=k;break}h--}}c(xe(e.slice(d,p+1)));break}case yl:case bl:{let d=p;for(let h=p+1;h<e.length;h++)if(s=e.charCodeAt(h),s===ln)h+=1;else if(s===m){p=h;break}l+=e.slice(d,p+1);break}case mn:case ar:{l.length>0&&(c(xe(l)),l=""),c(xe(e[p]));break}case ln:{l+=e[p]+e[p+1],p+=1;break}default:l+=e[p]}}return l.length>0&&c(xe(l)),o?o.nodes.push(f()):t&&r.splice(0,r.length,tr(r.splice(0))),n}function Ct(e){let n=[0];for(let i=0;i<e.length;i++)e.charCodeAt(i)===10&&n.push(i+1);function r(i){let o=0,l=n.length;for(;l>0;){let f=(l|0)>>1,c=o+f;n[c]<=i?(o=c+1,l=l-f-1):l=f}o-=1;let s=i-n[o];return{line:o+1,column:s}}function t({line:i,column:o}){i-=1,i=Math.min(Math.max(i,0),n.length-1);let l=n[i],s=n[i+1]??l;return Math.min(Math.max(l+o,0),s)}return{find:r,findOffset:t}}var Pe=92,St=47,Nt=42,dr=34,pr=39,xl=58,Vt=59,ce=10,Re=13,Te=32,$e=9,Al=12,gn=123,ur=125,nt=40,mr=41,Cl=91,Sl=93,Se=45,Tt=64,hn=33,Nl=60,El=62,Vl=35,Tl=95,kn=48,bn=57,yn=65,$l=90,Rl=70,xn=97,Pl=102,Ol=122,_l=108,Il=114,Dl=117,Ll=128,fr=32,we=class e extends Error{loc;constructor(n,r){if(r){let t=r[0],i=Ct(t.code).find(r[1]);n=`${t.file}:${i.line}:${i.column+1}: ${n}`}super(n),this.name="CssSyntaxError",this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Oe(e,n){let r=n?.from?{file:n.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],i=[],o=[],l=null,s=null,f="",c="",p=0,m;for(let d=0;d<e.length;d++){let h=e.charCodeAt(d);if(!(h===Re&&(m=e.charCodeAt(d+1),m===ce)))if(h===Pe)f===""&&(p=d),f+=e.slice(d,d+2),d+=1;else if(h===St&&e.charCodeAt(d+1)===Nt){let k=d;for(let b=d+2;b<e.length;b++)if(m=e.charCodeAt(b),m===Nt&&e.charCodeAt(b+1)===St){d=b+1;break}let w=e.slice(k,d+1);if(w.charCodeAt(2)===hn){let b=Rt(w.slice(2,-2));i.push(b),r&&(b.src=[r,k,d+1],b.dst=[r,k,d+1])}}else if(h===pr||h===dr){let k=wn(e,d,h,r);f+=e.slice(d,k+1),d=k}else{if((h===Te||h===ce||h===$e)&&(m=e.charCodeAt(d+1))&&(m===Te||m===ce||m===$e||m===Re&&(m=e.charCodeAt(d+2))&&m==ce))continue;if(h===ce){if(f.length===0)continue;m=f.charCodeAt(f.length-1),m!==Te&&m!==ce&&m!==$e&&(f+=" ")}else if(l===null&&f.length===0&&(h===Se&&e.charCodeAt(d+1)===Se&&e.charCodeAt(d+2)===El||h===Nl&&e.charCodeAt(d+1)===hn&&e.charCodeAt(d+2)===Se&&e.charCodeAt(d+3)===Se))d+=h===Se?2:3;else if(h===Se&&e.charCodeAt(d+1)===Se&&f.length===0){let k="",w=d,b=-1,x=0,C=-1;for(let N=d+2;N<e.length;N++){if(m=e.charCodeAt(N),m===Pe)N+=1;else if(m===pr||m===dr)N=wn(e,N,m,r);else if(m===St&&e.charCodeAt(N+1)===Nt){for(let $=N+2;$<e.length;$++)if(m=e.charCodeAt($),m===Nt&&e.charCodeAt($+1)===St){N=$+1;break}continue}else if(b===-1&&m===xl)b=f.length+N-w;else if(m===Vt&&k.length===0){f+=e.slice(w,N),d=N;break}else if(m===nt&&(C=vn(e,N))!==-1)N=C;else if(m===nt)k+=")";else if(m===Cl)k+="]";else if(m===gn)k+="}";else if(m===ur&&k.length===0){d=N-1,f+=e.slice(w,N);break}else(m===mr||m===Sl||m===ur)&&k.length>0&&e[N]===k[k.length-1]&&(k=k.slice(0,-1));m!==Te&&m!==$e&&m!==ce&&m!==Re&&(x=N+1-w)}f.length===0&&(f=e.slice(w),d=e.length);let y=Et(f,b,x);if(!y)throw new we("Invalid custom property, expected a value",r?[r,w,d]:null);r&&(y.src=[r,w,d],y.dst=[r,w,d]),l?l.nodes.push(y):t.push(y),f=""}else if(h===Vt&&f.charCodeAt(0)===Tt)s=it(f),r&&(s.src=[r,p,d],s.dst=[r,p,d]),l?l.nodes.push(s):t.push(s),f="",s=null;else if(h===Vt&&c[c.length-1]!==")"){let k=Et(f);if(!k){if(f.length===0)continue;throw new we(`Invalid declaration: \`${f.trim()}\``,r?[r,p,d]:null)}r&&(k.src=[r,p,d],k.dst=[r,p,d]),l?l.nodes.push(k):t.push(k),f=""}else if(h===gn&&c[c.length-1]!==")")c+="}",s=J(f.trim()),r&&(s.src=[r,p,d],s.dst=[r,p,d]),l&&l.nodes.push(s),o.push(l),l=s,f="",s=null;else if(h===ur&&c[c.length-1]!==")"){if(c==="")throw new we("Missing opening {",r?[r,d,d]:null);if(c=c.slice(0,-1),f.length>0)if(f.charCodeAt(0)===Tt)s=it(f),r&&(s.src=[r,p,d],s.dst=[r,p,d]),l?l.nodes.push(s):t.push(s),f="",s=null;else{let w=f.indexOf(":");if(l){let b=Et(f,w);if(!b)throw new we(`Invalid declaration: \`${f.trim()}\``,r?[r,p,d]:null);r&&(b.src=[r,p,d],b.dst=[r,p,d]),l.nodes.push(b)}}let k=o.pop()??null;k===null&&l&&t.push(l),l=k,f="",s=null}else if(h===nt){let k=vn(e,d);k!==-1?(f+=e.slice(d,k+1),d=k):(c+=")",f+="(")}else if(h===mr){if(c[c.length-1]!==")")throw new we("Missing opening (",r?[r,d,d]:null);c=c.slice(0,-1),f+=")"}else{if(f.length===0&&(h===Te||h===ce||h===$e))continue;f===""&&(p=d),f+=String.fromCharCode(h)}}}if(f.charCodeAt(0)===Tt){let d=it(f);r&&(d.src=[r,p,e.length],d.dst=[r,p,e.length]),t.push(d)}else if(f.length>0&&c.length===0){let d=Et(f);d&&(r&&(d.src=[r,p,e.length],d.dst=[r,p,e.length]),l?l.nodes.push(d):t.push(d))}if(c.length>0&&l){if(l.kind==="rule")throw new we(`Missing closing } at ${l.selector}`,l.src?[l.src[0],l.src[1],l.src[1]]:null);if(l.kind==="at-rule")throw new we(`Missing closing } at ${l.name} ${l.params}`,l.src?[l.src[0],l.src[1],l.src[1]]:null)}return i.length>0?i.concat(t):t}function it(e,n=[]){let r=e,t="";for(let i=5;i<e.length;i++){let o=e.charCodeAt(i);if(o===Te||o===$e||o===nt){r=e.slice(0,i),t=e.slice(i);break}}return G(r.trim(),t.trim(),n)}function Et(e,n=e.indexOf(":"),r=e.length){if(n===-1)return null;let t=e.slice(0,n).trim(),i=cr(e.slice(n+1,r)),o=i.length-10;return i.endsWith("!important")&&!$t(i,o)?u(t,cr(i.slice(0,o)),!0):u(t,cr(e.slice(n+1)),!1)}function cr(e){e=e.trimStart();let n=e.trimEnd();return n.length<e.length&&$t(e,n.length)?e.slice(0,n.length+1):n}function $t(e,n){let r=0;for(;e.charCodeAt(n-1-r)===Pe;)r+=1;return r%2===1}function vn(e,n){if(n<3||(e.charCodeAt(n-3)|fr)!==Dl||(e.charCodeAt(n-2)|fr)!==Il||(e.charCodeAt(n-1)|fr)!==_l)return-1;let r=e.charCodeAt(n-4);if(r>=xn&&r<=Ol||r>=yn&&r<=$l||r>=kn&&r<=bn||r===Se||r===Tl||r>=Ll||r===Pe||r===Vl||r===Tt||$t(e,n-4)||Ul(e,n-4))return-1;for(let t=n+1;t<e.length;t++){let i=e.charCodeAt(t);if(i===Pe)t+=1;else{if(i===mr)return t;if(i===nt||i===pr||i===dr)return-1}}return-1}function Ul(e,n){let r=e.charCodeAt(n);if(r===ce)e.charCodeAt(n-1)===Re&&(n-=1);else if(r!==Te&&r!==$e&&r!==Al&&r!==Re)return!1;for(let t=n-1;t>=0&&t>=n-7;t--){if(r=e.charCodeAt(t),r===Pe)return t<n-1&&!$t(e,t);if(!(r>=kn&&r<=bn||r>=xn&&r<=Pl||r>=yn&&r<=Rl))return!1}return!1}function wn(e,n,r,t=null){let i;for(let o=n+1;o<e.length;o++)if(i=e.charCodeAt(o),i===Pe)o+=1;else{if(i===r)return o;if(i===Vt&&(e.charCodeAt(o+1)===ce||e.charCodeAt(o+1)===Re&&e.charCodeAt(o+2)===ce))throw new we(`Unterminated string: ${e.slice(n,o+1)+String.fromCharCode(r)}`,t?[t,n,o+1]:null);if(i===ce||i===Re&&e.charCodeAt(o+1)===ce)throw new we(`Unterminated string: ${e.slice(n,o)+String.fromCharCode(r)}`,t?[t,n,o+1]:null)}return n}var M=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}};function re(e){return{kind:"word",value:e}}function Kl(e,n){return{kind:"function",value:e,nodes:n}}function Ml(e){return{kind:"separator",value:e}}function B(e){let n="";for(let r of e)switch(r.kind){case"word":case"separator":{n+=r.value;break}case"function":n+=r.value+"("+B(r.nodes)+")"}return n}var An=92,zl=41,Cn=58,Sn=44,jl=34,Nn=61,En=62,Vn=60,Tn=10,Fl=40,Wl=39,Bl=47,$n=32,Rn=9;function Y(e){e=e.replaceAll(`\r
4
4
  `,`
@@ -17,7 +17,7 @@ import{a as F,b as yt,c as Jr,d as X,e as tt,f as K,g as er,h as te,i as Ce,j as
17
17
  Only valid data types are: ${Vr.map(d=>`"${d}"`).join(", ")}.
18
18
  `);let p=l.value.length+1+B(l.nodes.slice(0,f)).length,m=["```css",B([l])," ".repeat(p)+"^".repeat(c.value.length),"```"].join(`
19
19
  `);console.warn(m)}}),i.value=B(o)}),r.utilities.functional(n.slice(0,-2),i=>{let o=le(e),l=i.value,s=i.modifier,f=!1,c=!1,p=!1,m=!1,d=new Map,h=!1;if(D([o],(k,w)=>{let b=w.parent;if(b?.kind!=="rule"&&b?.kind!=="at-rule"||k.kind!=="declaration"||!k.value)return;let x=!1,C=Y(k.value);if(D(C,y=>{if(y.kind==="function"){if(y.value==="--value"){f=!0;let N=Gn(l,y,r);return N?(c=!0,N.ratio?h=!0:d.set(k,b),T.ReplaceSkip(N.nodes)):(x=!0,T.Stop)}else if(y.value==="--modifier"){p=!0;let N=Gn(s,y,r);return N?(m=!0,T.ReplaceSkip(N.nodes)):(x=!0,T.Stop)}}}),x)return T.ReplaceSkip([]);k.value=B(C)}),!f||!c||p&&!m&&s!==null||h&&m||s&&!h&&!m)return null;if(h)for(let[k,w]of d){let b=w.nodes.indexOf(k);b!==-1&&w.nodes.splice(b,1)}return o.nodes}),r.utilities.suggest(n.slice(0,-2),()=>{let i=[],o=[];for(let[l,{literals:s,usedSpacingNumber:f,usedSpacingInteger:c,themeKeys:p}]of[[i,t["--value"]],[o,t["--modifier"]]]){for(let m of s)l.push(m);if(f)l.push(...Mt);else if(c)for(let m of Mt)K(m)&&l.push(m);for(let m of r.theme.keysInNamespaces(p))l.push(m.replace(Zn,(d,h,k)=>`${h}.${k}`))}return[{values:i,modifiers:o}]})}:Po(n)?r=>{r.utilities.static(n,()=>e.nodes.map(le))}:null}function Gn(e,n,r){if(e===null){for(let t of n.nodes)if(t.kind==="function"&&t.value==="--default")return{nodes:t.nodes};return}for(let t of n.nodes){if(e.kind==="named"&&t.kind==="word"&&(t.value[0]==="'"||t.value[0]==='"')&&t.value[t.value.length-1]===t.value[0]&&t.value.slice(1,-1)===e.value)return{nodes:Y(e.value)};if(e.kind==="named"&&t.kind==="word"&&t.value[0]==="-"&&t.value[1]==="-"){let i=t.value;if(i.endsWith("-*")){i=i.slice(0,-2);let o=r.theme.resolve(e.value,[i]);if(o)return{nodes:Y(o)}}else{let o=i.split("-*");if(o.length<=1)continue;let l=[o.shift()],s=r.theme.resolveWith(e.value,l,o);if(s){let[,f={}]=s;{let c=f[o.pop()];if(c)return{nodes:Y(c)}}}}}else if(e.kind==="named"&&t.kind==="word"){if(!Vr.includes(t.value))continue;let i=t.value==="ratio"&&"fraction"in e?e.fraction:e.value;if(!i)continue;let o=X(i,[t.value]);if(o===null)continue;if(o==="ratio"){let[l,s]=F(i,"/").map(Number);if(!K(l)||!K(s))continue}else{if(o==="number"&&!te(i))continue;if(o==="percentage"&&!K(i.slice(0,-1)))continue}if(o==="ratio"){let[l,s]=F(i,"/");return{nodes:Y(`${l.trim()} / ${s.trim()}`),ratio:!0}}return{nodes:Y(i),ratio:!1}}else if(e.kind==="arbitrary"&&t.kind==="word"&&t.value[0]==="["&&t.value[t.value.length-1]==="]"){let i=t.value.slice(1,-1);if(i==="*")return{nodes:Y(e.value)};if("dataType"in e&&e.dataType&&e.dataType!==i)continue;if("dataType"in e&&e.dataType)return{nodes:Y(e.value)};if(X(e.value,[i])!==null)return{nodes:Y(e.value)}}}}function Ae(e,n,r,t,i=""){let o=!1,l=dt(n,f=>r==null?t(f):f.startsWith("current")?t(ne(f,r)):((f.startsWith("var(")||r.startsWith("var("))&&(o=!0),t(qn(f,r))));function s(f){return i?F(f,",").map(c=>i.trim()+" "+c.trim()).join(", "):f}return o?[u(e,s(dt(n,t))),J("@supports (color: lab(from red l a b))",[u(e,s(l))])]:[u(e,s(l))]}function Lt(e,n,r,t,i=""){let o=!1,l=F(n,",").map(s=>dt(s,f=>r==null?t(f):f.startsWith("current")?t(ne(f,r)):((f.startsWith("var(")||r.startsWith("var("))&&(o=!0),t(qn(f,r))))).map(s=>`drop-shadow(${s})`).join(" ");return o?[u(e,i+F(n,",").map(s=>`drop-shadow(${dt(s,t)})`).join(" ")),J("@supports (color: lab(from red l a b))",[u(e,i+l)])]:[u(e,i+l)]}var Xn=/^-?[a-z][a-zA-Z0-9_-]*/,Ao=37,Co=47,So=46,No=97,Eo=122,Vo=65,To=90,Ut=48,Kt=57,$o=95,Ro=45;function Po(e){let n=Xn.exec(e);if(n===null)return!1;let r=n[0],t=e.slice(r.length);if(t.length===0&&r.endsWith("-"))return!1;if(t.length===0)return!0;let i=!1;for(let o=0;o<t.length;o++){let l=t.charCodeAt(o);switch(l){case Ao:{if(o!==t.length-1)return!1;let f=(t[o-1]||r[r.length-1]||"").charCodeAt(0);if(f<Ut||f>Kt)return!1;break}case Co:{if(o===t.length-1||i)return!1;i=!0;break}case So:{let f=(t[o-1]||r[r.length-1]||"").charCodeAt(0);if(f<Ut||f>Kt)return!1;let p=(t[o+1]||"").charCodeAt(0);if(p<Ut||p>Kt)return!1;break}case $o:case Ro:continue;default:{if(l>=No&&l<=Eo||l>=Vo&&l<=To||l>=Ut&&l<=Kt)continue;return!1}}}return!0}function Oo(e){if(!e.endsWith("-*"))return!1;e=e.slice(0,-2);let n=Xn.exec(e);if(n===null)return!1;let r=n[0];return e.slice(r.length).length===0}var Tr={"--alpha":_o,"--spacing":Io,"--theme":Do,theme:Lo};function _o(e,n,r,...t){let[i,o]=F(r,"/").map(l=>l.trim());if(!i||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);if(t.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);return ne(i,o)}function Io(e,n,r,...t){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(t.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${t.length+1}.`);let i=e.theme.resolve(null,["--spacing"]);if(!i)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");let o=oe.get(r);if(o){if(o[0]===0)return"0px";if(o[0]===1)return i}return`calc(${i} * ${r})`}function Do(e,n,r,...t){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let i=!1;r.endsWith(" inline")&&(i=!0,r=r.slice(0,-7)),n.kind==="at-rule"&&(i=!0);let o=e.resolveThemeValue(r,i);if(!o){if(t.length>0)return t.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(t.length===0)return o;let l=t.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let s=Y(o);return Ko(s,l),B(s)}return o}function Lo(e,n,r,...t){r=Uo(r);let i=e.resolveThemeValue(r);if(!i&&t.length>0)return t.join(", ");if(!i)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return i}var ei=new RegExp(Object.keys(Tr).map(e=>`${e}\\(`).join("|"));function We(e,n){let r=0;return D(e,t=>{if(t.kind==="declaration"&&t.value&&ei.test(t.value)){r|=8,t.value=ti(t.value,t,n);return}t.kind==="at-rule"&&(t.name==="@media"||t.name==="@custom-media"||t.name==="@container"||t.name==="@supports")&&ei.test(t.params)&&(r|=8,t.params=ti(t.params,t,n))}),r}function ti(e,n,r){let t=Y(e);return D(t,i=>{if(i.kind==="function"&&i.value in Tr){let o=F(B(i.nodes).trim(),",").map(s=>s.trim()),l=Tr[i.value](r,n,...o);return T.Replace(Y(l))}}),B(t)}function Uo(e){if(e[0]!=="'"&&e[0]!=='"')return e;let n="",r=e[0];for(let t=1;t<e.length-1;t++){let i=e[t],o=e[t+1];i==="\\"&&(o===r||o==="\\")?(n+=o,t++):n+=i}return n}function Ko(e,n){D(e,r=>{if(r.kind==="function"&&!(r.value!=="var"&&r.value!=="theme"&&r.value!=="--theme"))if(r.nodes.length===1)r.nodes.push({kind:"word",value:`, ${n}`});else{let t=r.nodes[r.nodes.length-1];t.kind==="word"&&t.value==="initial"&&(t.value=n)}})}function Ye(e,n){let r=e.length,t=n.length,i=r<t?r:t;for(let o=0;o<i;o++){let l=e.charCodeAt(o),s=n.charCodeAt(o);if(l>=48&&l<=57&&s>=48&&s<=57){let f=o,c=o+1,p=o,m=o+1;for(l=e.charCodeAt(c);l>=48&&l<=57;)l=e.charCodeAt(++c);for(s=n.charCodeAt(m);s>=48&&s<=57;)s=n.charCodeAt(++m);let d=e.slice(f,c),h=n.slice(p,m),k=Number(d)-Number(h);if(k)return k;if(d<h)return-1;if(d>h)return 1;continue}if(l!==s)return l-s}return e.length-n.length}function Ge(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let n=1,r=n,t=e.length-1;for(;He(e.charCodeAt(n));)n++;{for(r=n;n<t;n++){let p=e.charCodeAt(n);if(p===92){n++;continue}if(!(p>=65&&p<=90)&&!(p>=97&&p<=122)&&!(p>=48&&p<=57)&&!(p===45||p===95)&&!(p>=128))break}if(r===n)return null}let i=e.slice(r,n);for(;He(e.charCodeAt(n));)n++;if(n===t)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let o=null,l=e.charCodeAt(n);if(l===61)o="=",n++;else if((l===126||l===124||l===94||l===36||l===42)&&e.charCodeAt(n+1)===61)o=e[n]+"=",n+=2;else return null;for(;He(e.charCodeAt(n));)n++;if(n===t)return null;let s="",f=null;if(l=e.charCodeAt(n),l===39||l===34){f=e[n],n++,r=n;for(let p=n;p<t;p++){let m=e.charCodeAt(p);m===l?n=p+1:m===92&&p++}s=e.slice(r,n-1)}else{for(r=n;n<t&&!He(e.charCodeAt(n));)n++;s=e.slice(r,n)}for(;He(e.charCodeAt(n));)n++;if(n===t)return{attribute:i,operator:o,quote:f,value:s,sensitivity:null};let c=null;switch(e.charCodeAt(n)){case 105:case 73:{c="i",n++;break}case 115:case 83:{c="s",n++;break}default:return null}for(;He(e.charCodeAt(n));)n++;return n!==t?null:{attribute:i,operator:o,quote:f,value:s,sensitivity:c}}function He(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}function ni(e){let n=!1;return D(e,{exit(r){if(r.kind!=="function"||r.value!=="calc"&&r.value!==""||r.nodes.length!==5||r.nodes[2].kind!=="word"||r.nodes[2].value!=="*"&&r.nodes[2].value!=="+")return;let t=r.nodes[0],i=r.nodes[4];if(Mo(t,i)){n=!0;let o={kind:"function",value:r.value,nodes:[i,r.nodes[1],r.nodes[2],r.nodes[3],t]};return T.ReplaceSkip(o)}}}),[n,e]}function Mo(e,n){let r=e.kind==="word"?oe.get(e.value):null,t=n.kind==="word"?oe.get(n.value):null;if(r!==null&&t===null)return!0;if(r===null&&t!==null)return!1;if(r!==null&&t!==null){let[i,o]=r,[l,s]=t;if(o===null&&s!==null)return!0;if(o!==null&&s===null)return!1;if(i!==l)return i-l>0;if(o!==s)return(o??"").localeCompare(s??"")>0}return B([e]).localeCompare(B([n]))>0}function qe(e,n=null){return Array.isArray(e)&&e.length===2&&typeof e[1]=="object"&&typeof e[1]!==null?n?e[1][n]??null:e[0]:Array.isArray(e)&&n===null?e.join(", "):typeof e=="string"&&n===null?e:null}function ii(e,{theme:n},r){for(let t of r){let i=Ze([t]);i&&e.theme.clearNamespace(`--${i}`,4)}for(let[t,i]of zo(n)){if(typeof i!="string"&&typeof i!="number")continue;if(typeof i=="string"&&(i=i.replace(/<alpha-value>/g,"1")),t[0]==="opacity"&&(typeof i=="number"||typeof i=="string")){let l=typeof i=="string"?parseFloat(i):i;l>=0&&l<=1&&(i=l*100+"%")}let o=Ze(t);o&&e.theme.add(`--${o}`,""+i,7)}if(Object.hasOwn(n,"fontFamily")){let t=5;{let i=qe(n.fontFamily.sans);i&&e.theme.hasDefault("--font-sans")&&(e.theme.add("--default-font-family",i,t),e.theme.add("--default-font-feature-settings",qe(n.fontFamily.sans,"fontFeatureSettings")??"normal",t),e.theme.add("--default-font-variation-settings",qe(n.fontFamily.sans,"fontVariationSettings")??"normal",t))}{let i=qe(n.fontFamily.mono);i&&e.theme.hasDefault("--font-mono")&&(e.theme.add("--default-mono-font-family",i,t),e.theme.add("--default-mono-font-feature-settings",qe(n.fontFamily.mono,"fontFeatureSettings")??"normal",t),e.theme.add("--default-mono-font-variation-settings",qe(n.fontFamily.mono,"fontVariationSettings")??"normal",t))}}return n}function zo(e){let n=[];return li(e,[],(r,t)=>{if(Bo(r))return n.push([t,r]),1;if(Yo(r)){n.push([t,r[0]]);for(let i of Reflect.ownKeys(r[1]))n.push([[...t,`-${i}`],r[1][i]]);return 1}if(Array.isArray(r)&&r.every(i=>typeof i=="string"))return t[0]==="fontSize"?(n.push([t,r[0]]),r.length>=2&&n.push([[...t,"-line-height"],r[1]])):n.push([t,r.join(", ")]),1}),n}var jo={borderWidth:"border-width",outlineWidth:"outline-width",ringColor:"ring-color",ringWidth:"ring-width",transitionDuration:"transition-duration",transitionTimingFunction:"transition-timing-function"},Fo={animation:"animate",aspectRatio:"aspect",borderRadius:"radius",boxShadow:"shadow",colors:"color",containers:"container",fontFamily:"font",fontSize:"text",letterSpacing:"tracking",lineHeight:"leading",maxWidth:"container",screens:"breakpoint",transitionTimingFunction:"ease"},Wo=/^[a-zA-Z0-9-_%/.]+$/;function Ze(e){let n=jo[e[0]];if(n&&e[1]==="DEFAULT")return`default-${n}`;if(e[0]==="container")return null;for(let t of e)if(!Wo.test(t))return null;let r=Fo[e[0]];return r&&(e=e.slice(),e[0]=r),e.map((t,i,o)=>t==="1"&&i!==o.length-1?"":t).map((t,i)=>(t=t.replaceAll(".","_"),(i===0||t.startsWith("-")||t==="lineHeight")&&(t=t.replace(/([a-z])([A-Z])/g,(l,s,f)=>`${s}-${f.toLowerCase()}`)),t)).filter((t,i)=>t!=="DEFAULT"||i!==e.length-1).join("-")}function Bo(e){return typeof e=="number"||typeof e=="string"}function Yo(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!="string"&&typeof e[0]!="number"||e[1]===void 0||e[1]===null||typeof e[1]!="object")return!1;for(let n of Reflect.ownKeys(e[1]))if(typeof n!="string"||typeof e[1][n]!="string"&&typeof e[1][n]!="number")return!1;return!0}function li(e,n=[],r){for(let t of Reflect.ownKeys(e)){let i=e[t];if(i==null)continue;let o=[...n,t],l=r(i,o)??0;if(l!==1){if(l===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&li(i,o,r)===2)return 2}}}function pt(e,n=null,r=!0){let[t,i]=mt(Y(e),n,r);return t?B(i):e}function mt(e,n=null,r=!0){let t=!1;return D(e,{exit(i,o){if(i.kind==="word"&&i.value!=="0"){let l=oi(i.value,n,r);if(l===null||l===i.value)return;if(l==="0"&&o.parent?.kind==="function"){let s=oi(i.value,n,!1);return s===null?void 0:(t=!0,T.ReplaceSkip(re(s)))}return t=!0,T.ReplaceSkip(re(l))}else if(i.kind==="function"&&(i.value==="calc"||i.value==="")){if(i.nodes.length!==5||i.nodes[2].kind!=="word")return;let l=i.nodes[0],s=i.nodes[2].value,f=i.nodes[4],c=l.kind==="word"?oe.get(l.value):null,p=f.kind==="word"?oe.get(f.value):null;if(s==="*"&&(c?.[0]===0&&c?.[1]===null||p?.[0]===0&&p?.[1]===null))return t=!0,T.ReplaceSkip(re("0"));if(s==="*"&&c?.[0]===0&&c?.[1]!==null&&p?.[1]===null)return t=!0,o.parent?.kind==="function"?T.ReplaceSkip(re(`0${c[1]}`)):T.ReplaceSkip(re("0"));if(s==="*"&&p?.[0]===0&&p?.[1]!==null&&c?.[1]===null)return t=!0,o.parent?.kind==="function"?T.ReplaceSkip(re(`0${p[1]}`)):T.ReplaceSkip(re("0"));if(s==="*"){if(c?.[0]===1&&c?.[1]===null)return t=!0,T.ReplaceSkip(f);if(p?.[0]===1&&p?.[1]===null)return t=!0,T.ReplaceSkip(l)}if(s==="*"||s==="+"){let m=c??p,d=c===null?l:p===null?f:null;if(m!==null&&d!==null&&d.kind==="function"&&(d.value==="calc"||d.value==="")&&d.nodes.length===5&&d.nodes[2].kind==="word"&&d.nodes[2].value===s){let h=d.nodes[0],k=d.nodes[4],w=h.kind==="word"?oe.get(h.value):null,b=k.kind==="word"?oe.get(k.value):null,x=w??b,C=w===null?h:b===null?k:null;if(x!==null&&C!==null){if(s==="*"&&!(m[1]===null&&x[1]===null||m[1]===null&&x[1]!==null||m[1]!==null&&x[1]===null)||s==="+"&&m[1]!==x[1])return;let y;switch(s){case"*":{y=`${m[0]*x[0]}${m[1]??x[1]??""}`;break}case"+":{y=`${m[0]+x[0]}${m[1]??x[1]??""}`;break}default:return}if(t=!0,s==="*"&&y==="1")return T.ReplaceSkip(C);let N={kind:"function",value:i.value,nodes:[re(y),i.nodes[1],i.nodes[2],i.nodes[3],C]};return T.ReplaceSkip(N)}}}if(c===null||p===null)return;switch(s){case"*":{if(c[1]===p[1]||c[1]===null&&p[1]!==null||c[1]!==null&&p[1]===null)return t=!0,T.ReplaceSkip(re(`${c[0]*p[0]}${c[1]??p[1]??""}`));break}case"+":{if(c[1]===p[1])return t=!0,T.ReplaceSkip(re(`${c[0]+p[0]}${c[1]??""}`));break}case"-":{if(c[1]===p[1])return t=!0,T.ReplaceSkip(re(`${c[0]-p[0]}${c[1]??""}`));break}case"/":{if(p[0]!==0&&(c[1]===null&&p[1]===null||c[1]!==null&&p[1]===null)){let m=c[0]/p[0];if(Math.round(m*100)/100!==m)break;return t=!0,T.ReplaceSkip(re(`${m}${c[1]??""}`))}break}}}}}),[t,e]}function oi(e,n=null,r=!0){let t=oe.get(e);if(t===null)return null;let[i,o]=t;if(o===null)return`${i}`;if(i===0&&tt(e))return r?"0":`0${o}`;if(!r)return`${e}`;switch(o.toLowerCase()){case"in":return`${i*96}px`;case"cm":return`${i*96/2.54}px`;case"mm":return`${i*96/2.54/10}px`;case"q":return`${i*96/2.54/10/4}px`;case"pc":return`${i*96/6}px`;case"pt":return`${i*96/72}px`;case"rem":return n!==null?`${i*n}px`:null;case"grad":return`${i*.9}deg`;case"rad":return`${i*180/Math.PI}deg`;case"turn":return`${i*360}deg`;case"ms":return`${i/1e3}s`;case"khz":return`${i*1e3}hz`;default:return`${i}${o}`}}function Ie(e,n="top",r="right",t="bottom",i="left"){return fi(`${e}-${n}`,`${e}-${r}`,`${e}-${t}`,`${e}-${i}`)}function fi(e="top",n="right",r="bottom",t="left"){return{1:[[e,0],[n,0],[r,0],[t,0]],2:[[e,0],[n,1],[r,0],[t,1]],3:[[e,0],[n,1],[r,2],[t,1]],4:[[e,0],[n,1],[r,2],[t,3]]}}function de(e,n){return{1:[[e,0],[n,0]],2:[[e,0],[n,1]]}}var ai={inset:fi(),margin:Ie("margin"),padding:Ie("padding"),"scroll-margin":Ie("scroll-margin"),"scroll-padding":Ie("scroll-padding"),"border-width":Ie("border","top-width","right-width","bottom-width","left-width"),"border-style":Ie("border","top-style","right-style","bottom-style","left-style"),"border-color":Ie("border","top-color","right-color","bottom-color","left-color"),gap:de("row-gap","column-gap"),overflow:de("overflow-x","overflow-y"),"overscroll-behavior":de("overscroll-behavior-x","overscroll-behavior-y")},si={"inset-block":de("top","bottom"),"inset-inline":de("left","right"),"margin-block":de("margin-top","margin-bottom"),"margin-inline":de("margin-left","margin-right"),"padding-block":de("padding-top","padding-bottom"),"padding-inline":de("padding-left","padding-right"),"scroll-margin-block":de("scroll-margin-top","scroll-margin-bottom"),"scroll-margin-inline":de("scroll-margin-left","scroll-margin-right"),"scroll-padding-block":de("scroll-padding-top","scroll-padding-bottom"),"scroll-padding-inline":de("scroll-padding-left","scroll-padding-right")},ui={"border-block":["border-bottom","border-top"],"border-block-color":["border-bottom-color","border-top-color"],"border-block-style":["border-bottom-style","border-top-style"],"border-block-width":["border-bottom-width","border-top-width"],"border-inline":["border-left","border-right"],"border-inline-color":["border-left-color","border-right-color"],"border-inline-style":["border-left-style","border-right-style"],"border-inline-width":["border-left-width","border-right-width"]};function ci(e,n){if(n&2){if(e.property in si){let r=F(e.value," ");return si[e.property][r.length]?.map(([t,i])=>u(t,r[i],e.important))}if(e.property in ui)return ui[e.property]?.map(r=>u(r,e.value,e.important))}if(e.property in ai){let r=F(e.value," ");return ai[e.property][r.length]?.map(([t,i])=>u(t,r[i],e.important))}return null}function he(e,n){for(let r in e)delete e[r];return Object.assign(e,n)}function De(e){let n=[];for(let r of F(e,".")){if(!r.includes("[")){n.push(r);continue}let t=0;for(;;){let i=r.indexOf("[",t),o=r.indexOf("]",i);if(i===-1||o===-1)break;i>t&&n.push(r.slice(t,i)),n.push(r.slice(i+1,o)),t=o+1}t<=r.length-1&&n.push(r.slice(t))}return n}function Pr(e,n){let r=e;return r.storage[wi]??=Ho(),r.storage[ki]??=Zo(r),r.storage[bi]??=ea(),r.storage[Ai]??=ua(),r.storage[Ci]??=ca(),r.storage[Kr]??=va(r),r.storage[Yt]??=ba(r,n),r.storage[be]??=Ia(r),r.storage[Vi]??=Da(r),r.storage[Mr]??=Ma(),r.storage[gt]??=za(r),r.storage[Ri]??=ja(r),r.storage[zr]??=Fa(r),r.storage[Gt]??=Wa(r),r.storage[Pi]??=Ga(r),r.storage[ht]??=Go(r),r}var wi=Symbol();function Ho(){return new M(e=>new M(n=>({rem:e,features:n})))}var ht=Symbol();function Go(e){return new M(n=>{let r=e.storage[be].get(n);return function(i,o){let l=typeof i=="string"?i:e.printCandidate(i),s=r.get(l);if(typeof s!="string")return!1;let f=typeof o=="string"?o:e.printCandidate(o),c=r.get(f);return typeof c!="string"?!1:s===c}})}function qo(e,n){let r=0;return n?.collapse&&(r|=1),n?.logicalToPhysical&&(r|=2),Pr(e,n).storage[wi].get(n?.rem??null).get(r)}var ki=Symbol();function Zo(e){return new M(n=>new M(r=>({features:r,designSystem:e,signatureOptions:n})))}function Qo(e,n,r){let t=0;return r?.collapse&&(t|=1),Pr(e).storage[ki].get(n).get(t)}function Or(e,n,r){let t=qo(e,r),i=Qo(e,t,r),o=Pr(e),l=new Set,s=o.storage[bi].get(i);for(let f of n)l.add(s.get(f));return l.size<=1||!(i.features&1)?Array.from(l):Jo(i,Array.from(l))}function Jo(e,n){let r=e.designSystem,t=new M(s=>new M(f=>new Set)),i=e.designSystem.theme.prefix?`${e.designSystem.theme.prefix}:`:"";for(let s of n){let f=F(s,":"),c=f.pop(),p=c.endsWith("!");p&&(c=c.slice(0,-1));let m=f.length>0?`${f.join(":")}:`:"",d=p?"!":"";t.get(m).get(d).add(`${i}${c}`)}let o=new Set;for(let[s,f]of t.entries())for(let[c,p]of f.entries())for(let m of l(Array.from(p)))i&&m.startsWith(i)&&(m=m.slice(i.length)),o.add(`${s}${m}${c}`);return Array.from(o);function l(s){let f=e.signatureOptions,c=r.storage[gt].get(f),p=r.storage[Mr].get(f),m=r.storage[Vi].get(f),d=r.storage[Ri].get(f),h=s.map(L=>c.get(L));if(h.some(L=>L.has("line-height"))){let L=r.theme.keysInNamespaces(["--text"]);if(L.length>0){let z=new Set,j=new Set;for(let a of h)if(a.has("line-height"))for(let g of a.get("line-height")){if(j.has(g))continue;j.add(g);let v=r.storage[Yt]?.get(g)??null;if(v!==null)if(te(v)){z.add(v);for(let S of L)c.get(`text-${S}/${v}`)}else{z.add(g);for(let S of L)c.get(`text-${S}/[${g}]`)}}let Q=new Set;for(let a of h)if(a.has("font-size")){for(let g of a.get("font-size"))if(!Q.has(g)){Q.add(g);for(let v of z)te(v)?c.get(`text-[${g}]/${v}`):c.get(`text-[${g}]/[${v}]`)}}}}let k=h.map((L,z)=>{let j=null;for(let Q of L.keys()){let a=new Set;for(let g of p.get(Q).values())for(let v of g)a.add(v);for(let g of L.get(Q))for(let v of d.get(s[z]).get(Q).get(g))a.add(v);if(j===null?j=a:j=vi(j,a),j.size===0)return j}return j??new Set}),w=new Set,b=new Set;for(let L of k)for(let z of L)w.has(z)?b.add(z):w.add(z);let x=new M(L=>new Set);for(let[L,z]of k.entries())for(let j of z){if(!b.has(j))continue;let Q=x.get(j);for(let a of h[L].keys())Q.add(a)}let C=new M(L=>{let z=x.get(L);for(let j of c.get(L).keys())if(!z.has(j))return!1;return!0});k=k.map(L=>{let z=new Set;for(let j of L)b.has(j)&&C.get(j)&&z.add(j);return z});let y=new M(L=>new Set([L]));for(let L=0;L<k.length;L++){let z=k[L];for(let j=L+1;j<k.length;j++){let Q=k[j];for(let a of z)if(Q.has(a)){y.get(L).add(j),y.get(j).add(L);break}}}if(y.size===0)return s;let N=new M(L=>L.split(",").map(Number));for(let L of y.values()){let z=Array.from(L).sort((j,Q)=>j-Q);N.get(z.join(","))}let $=[];for(let L of y.keys())try{r.getClassOrder([s[L]]),$.push(s[L])}catch{}let E=new Map(r.getClassOrder($));function P(L,z){return L===z?0:L===null?1:z===null||L<z?-1:1}let _=new Set(s),W=new Set;for(let L of N.values())for(let z of Za(L)){if(z.some(v=>W.has(s[v])))continue;let j=z.flatMap(v=>k[v]).reduce(vi);if(j.size===0)continue;let Q=z.map(v=>s[v]).sort((v,S)=>v.localeCompare(S)).join(" "),a=r.storage[be].get(f).get(Q),g=new Set(z.map(v=>s[v]).sort((v,S)=>P(E.get(S)??null,E.get(v)??null)));for(let v of j)g.add(v);for(let v of g)if(r.storage[be].get(f).get(v)===a&&Xo(m.get(Q),m.get(v))){_.add(v);for(let A of z)s[A]!==v&&W.add(s[A]);break}}for(let L of W)_.delete(L);return Array.from(_)}}function Xo(e,n){return e===null||n===null||e.length!==n.length?!1:e.every((r,t)=>r===""||r===n[t])}var bi=Symbol();function ea(){return new M(e=>{let n=e.designSystem,r=n.theme.prefix?`${n.theme.prefix}:`:"",t=n.storage[Ai].get(e),i=n.storage[Ci].get(e);return new M((o,l)=>{let s=na(o);if(s!==o&&n.parseCandidate(s).length>0)return l.get(s);for(let f of n.parseCandidate(o)){let c=f.variants.slice().reverse().flatMap(d=>t.get(d)),p=f.important;if(p||c.length>0){let h=l.get(n.printCandidate({...f,variants:[],important:!1}));return n.theme.prefix!==null&&c.length>0&&(h=h.slice(r.length)),c.length>0&&(h=`${c.map(k=>n.printVariant(k)).join(":")}:${h}`),p&&(h+="!"),n.theme.prefix!==null&&c.length>0&&(h=`${r}${h}`),h}let m=i.get(o);if(m!==o)return m}return o})})}var pe=92,di=91,ta=93,vt=40,_r=41,Ir=34,Dr=39,Wt=58,ra=33,Lr=62,$r=95,Je=45;function na(e){if(e.indexOf("\\")===-1||e.indexOf("[")===-1)return e;let n="",r=0,t=[],i=!1,o="",l=-1,s=0;for(;s<e.length;){let f=e.charCodeAt(s);if(r===0){if(f===pe){n+=e.slice(s,s+2),s+=2;continue}if(f===di){r=1,t=[];let c=e.charCodeAt(s-1),p=e.charCodeAt(s+1);i=(s===0||c===Wt||c===ra)&&(p>=97&&p<=122||p===Je||p===pe)}n+=e[s],s++;continue}if(f===pe||yi(f)){let c=!i&&!t.includes(!0),[p,m]=ia(e,s,c),d=e.slice(s,m);p!==d&&la(e,n,d,p,m)&&(p=d),m===s&&(p=e[s],m++),n+=p,o=p,l=m,s=m;continue}switch(f){case Dr:case Ir:{let c=s+1;for(;c<e.length;){let p=e.charCodeAt(c);if(p===pe){c+=2;continue}if(c++,p===f)break}n+=e.slice(s,c),s=c;continue}case di:r++;break;case ta:r--;break;case Wt:i=!1;break;case vt:t.push(l===s&&Rr(o));break;case _r:t.pop();break}n+=e[s],s++}return n}function ia(e,n,r){let t="",i=-1,o=-1,l=!1,s=n;for(;s<e.length;){let f=e.charCodeAt(s),c=f;if(f===pe){let p=s,m=e.charCodeAt(s+1);if(Number.isNaN(m))break;let d=m,h=Qe(m),k=!0,w=!0;if(h){let x=s+1;for(;x<s+7&&Qe(e.charCodeAt(x));)x++;d=parseInt(e.slice(s+1,x),16),k=x-s-1===6,s=x;let C=e.charCodeAt(s);Ft(C)?(s++,k=!0):C===$r&&(s++,k=!0,w=r)}else s+=2;let b=w&&xi(d)&&!(l&&Qe(d));if(b)if(i===-1){if(Ur(d))b=!1;else if(d===Je){let x=e.charCodeAt(s);b=Bt(x)||x===Je||x===pe||x>=128}}else aa(i,o===-1?d:o)||(b=!1);b?(t+=String.fromCharCode(d),c=d,l=!1):(t+=e.slice(p,s),c=pe,l=h&&!k)}else if(yi(f))t+=e[s],l=!1,s++;else break;i===-1?i=c:o===-1&&(o=c)}return[t,s]}function la(e,n,r,t,i){return!!(t==="--"&&e.charCodeAt(i)===Lr||t.startsWith("--")&&n.endsWith("<!")||e.charCodeAt(i)===vt&&Rr(t)&&!Rr(r)&&oa(e,i))}function Rr(e){return e.endsWith("url")||e.endsWith("var")||e.endsWith("theme")}function oa(e,n){let r=0;for(;n<e.length;n++){let t=e.charCodeAt(n);if(t===pe)n++;else if(t===Dr||t===Ir)for(;++n<e.length;){let i=e.charCodeAt(n);if(i===pe)n++;else{if(i===$r)return!0;if(i===t)break}}else if(t===vt)r++;else if(t===_r){if(--r===0)return!1}else if(t===$r)return!0}return!1}function aa(e,n){return e===Je?Bt(n)||n===Je||n===pe||n>=128:Bt(e)||e===pe||e>=128}function yi(e){return xi(e)||e>=128}function xi(e){return Bt(e)||Ur(e)||e===Je}function Bt(e){return e>=97&&e<=122||e>=65&&e<=90}function Ur(e){return e>=48&&e<=57}function Qe(e){return Ur(e)||e>=97&&e<=102||e>=65&&e<=70}function Ft(e){return e===32||e===9||e===10||e===12||e===13}var sa=[ga,Ra,Pa,Va],Ai=Symbol();function ua(){return new M(e=>new M(n=>{let r=[n];for(let t of sa)for(let i of r.splice(0)){let o=t(ze(i),e);if(Array.isArray(o)){r.push(...o);continue}else r.push(o)}return r}))}var fa=[pa,ma,ha,Oa,ya,Aa,Ea,Ta,$a,_a],Ci=Symbol();function ca(){return new M(e=>{let n=e.designSystem;return new M(r=>{for(let t of n.parseCandidate(r)){let i=Fe(t);for(let l of fa)i=l(i,e);let o=n.printCandidate(i);if(r!==o)return o}return r})})}var da=["t","tr","r","br","b","bl","l","tl"];function pa(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let n=e.root.slice(15);return da.includes(n)&&(e.root=`bg-linear-to-${n}`),e}return e}function ma(e,n){let r=n.designSystem.storage[Kr];if(e.kind==="arbitrary"){let[t,i]=r(e.value,e.modifier===null?1:0);t!==e.value&&(e.value=t,i!==null&&(e.modifier=i))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[t,i]=r(e.value.value,e.modifier===null?1:0);t!==e.value.value&&(e.value.value=t,i!==null&&(e.modifier=i))}return e}function ga(e,n){let r=n.designSystem.storage[Kr],t=Ht(e);for(let[i]of t)if(i.kind==="arbitrary"){let[o]=r(i.selector,2);o!==i.selector&&(i.selector=o)}else if(i.kind==="functional"&&i.value?.kind==="arbitrary"){let[o]=r(i.value.value,2);o!==i.value.value&&(i.value.value=o)}return e}function ha(e,n){return e.kind==="arbitrary"?e.value=pi(e.value,n.designSystem):e.kind==="functional"&&e.value?.kind==="arbitrary"&&(e.value.value=pi(e.value.value,n.designSystem)),e}function pi(e,n){let r=n.theme.prefix?`--${n.theme.prefix}-spacing`:"--spacing",t=Y(e);return D(t,i=>{if(!(i.kind!=="function"||i.value!=="calc")&&i.nodes.length===5&&!(i.nodes[2].kind!=="word"||i.nodes[2].value!=="*")&&!(i.nodes[0].kind!=="function"||i.nodes[0].value!=="var"||i.nodes[0].nodes.length!==1||i.nodes[0].nodes[0].kind!=="word"||i.nodes[0].nodes[0].value!==r))return T.Replace(Y(`--spacing(${B([i.nodes[4]])})`))}),B(t)}var Kr=Symbol();function va(e){return n(e);function n(r){function t(c,p=0){let m=Y(c);if(p&2)return[zt(m,f),null];let d=0,h=0;if(D(m,b=>{b.kind==="function"&&b.value==="theme"&&(d+=1,D(b.nodes,x=>x.kind==="separator"&&x.value.includes(",")?T.Stop:x.kind==="word"&&x.value==="/"?(h+=1,T.Stop):T.Skip))}),d===0)return[c,null];if(h===0)return[zt(m,s),null];if(h>1)return[zt(m,f),null];let k=null;return[zt(m,(b,x)=>{let C=F(b,"/").map(y=>y.trim());if(C.length>2)return null;if(m.length===1&&C.length===2&&p&1){let[y,N]=C;/^\d+%$/.test(N)?k=i(Number(N.slice(0,-1))):/^0?\.\d+$/.test(N)?k=i(o(Number(N))):k={kind:"arbitrary",value:N},b=y}return s(b,x)||f(b,x)}),k]}function i(c){if(Number.isInteger(c)){let p=r.theme.resolveValue(`${c}`,["--opacity"]);if(p===null)return{kind:"named",value:`${c}`};if((p.endsWith("%")?Number(p.slice(0,-1)):o(Number(p)))===c)return{kind:"named",value:`${c}`}}return{kind:"arbitrary",value:`${c}%`}}function o(c){return Number((c*100).toFixed(10))}function l(c,p=!0){let m=`--${Ze(De(c))}`;return r.theme.get([m])?p&&r.theme.prefix?`--${r.theme.prefix}-${m.slice(2)}`:m:null}function s(c,p){let m=l(c);if(m)return p?`var(${m}, ${p})`:`var(${m})`;let d=De(c);if(d[0]==="spacing"&&r.theme.get(["--spacing"])){let h=d[1];return te(h)?`--spacing(${h})`:null}return null}function f(c,p){let m=F(c,"/").map(k=>k.trim());c=m.shift();let d=l(c,!1);if(!d)return null;let h=m.length>0?`/${m.join("/")}`:"";return p?`--theme(${d}${h}, ${p})`:`--theme(${d}${h})`}return t}}function zt(e,n){return D(e,(r,t)=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let i=r.nodes[0];if(i.kind!=="word")return;let o=i.value,l=1;for(let c=l;c<r.nodes.length&&!r.nodes[c].value.includes(",");c++)o+=B([r.nodes[c]]),l=c+1;o=wa(o);let s=r.nodes.slice(l+1),f=s.length>0?n(o,B(s)):n(o);if(f===null)return;{let c=t.index-1;for(;c!==-1;){let p=t.siblings[c];if(p.kind==="separator"&&p.value.trim()===""){c-=1;continue}/^[-+*/]$/.test(p.value.trim())&&(f=`(${f})`);break}}return T.Replace(Y(f))}}),B(e)}function wa(e){if(e[0]!=="'"&&e[0]!=='"')return e;let n="",r=e[0];for(let t=1;t<e.length-1;t++){let i=e[t],o=e[t+1];i==="\\"&&(o===r||o==="\\")?(n+=o,t++):n+=i}return n}function*Ht(e){function*n(r,t=null){yield[r,t],r.kind==="compound"&&(yield*n(r.variant,r))}yield*n(e,null)}function ve(e,n){return e.parseCandidate(e.theme.prefix&&!n.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${n}`:n)}function Si(e,n){let r=e.printCandidate(n);return e.theme.prefix&&r.startsWith(`${e.theme.prefix}:`)?r.slice(e.theme.prefix.length+1):r}var Yt=Symbol(),Ni=1536,ka=Ni/16;function mi(e,n,r){let t=n.resolveThemeValue("--spacing");if(t===void 0)return!1;let i=oe.get(pt(t,r));if(i===null)return!1;let[o,l]=i,s=e*o;return l==="px"?s<=Ni:l==="rem"?s<=ka:!1}function ba(e,n){let r=e.resolveThemeValue("--spacing");if(r===void 0)return null;r=pt(r,n?.rem??null);let t=oe.get(r);if(!t)return null;let[i,o]=t;return new M(l=>{if(i===0)return null;let s=oe.get(pt(l,n?.rem??null));if(!s)return null;let[f,c]=s;return c!==o?null:f/i})}function ya(e,n){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let r=n.designSystem,t=r.storage[zr].get(n.signatureOptions),i=r.storage[be].get(n.signatureOptions),o=r.storage[ht].get(n.signatureOptions),l=r.printCandidate(e),s=i.get(l);if(typeof s!="string")return e;for(let c of f(s,e))if(o(e,c)&&xa(r,e,c))return c;return e;function*f(c,p){let m=t.get(c);if(m.length>1){let d;for(let h of m)if(h[0]!=="-"){if(d)return;d=h}if(d)for(let h of ve(r,d))yield h;return}if(m.length===0&&p.modifier){let d={...p,modifier:null},h=i.get(r.printCandidate(d));if(typeof h=="string")for(let k of f(h,d))yield Object.assign({},k,{modifier:p.modifier})}if(m.length===1)for(let d of ve(r,m[0]))yield d;else if(m.length===0){let d=p.kind==="arbitrary"?p.value:p.value?.value??null;if(d===null)return;if(n.signatureOptions.rem!==null&&p.kind==="functional"&&p.value?.kind==="arbitrary"){let w=r.storage[Yt]?.get(d)??null;w!==null&&te(w)&&mi(w,r,n.signatureOptions.rem)&&(yield Object.assign({},p,{value:{kind:"named",value:w,fraction:null}}))}let h=r.storage[Yt]?.get(d)??null,k="";h!==null&&h<0&&(k="-",h=Math.abs(h));for(let w of Array.from(r.utilities.keys("functional")).sort((b,x)=>+(b[0]==="-")-+(x[0]==="-"))){k&&(w=`${k}${w}`);for(let b of ve(r,`${w}-${d}`))yield b;if(p.modifier)for(let b of ve(r,`${w}-${d}${p.modifier}`))yield b;if(h!==null&&te(h)&&mi(h,r,n.signatureOptions.rem)){for(let b of ve(r,`${w}-${h}`))yield b;if(p.modifier)for(let b of ve(r,`${w}-${h}${ct(p.modifier)}`))yield b}for(let b of ve(r,`${w}-[${d}]`))yield b;if(p.modifier)for(let b of ve(r,`${w}-[${d}]${ct(p.modifier)}`))yield b}}}}function xa(e,n,r){let t=null;if(n.kind==="functional"&&n.value?.kind==="arbitrary"&&n.value.value.includes("var(--")?t=n.value.value:n.kind==="arbitrary"&&n.value.includes("var(--")&&(t=n.value),t===null)return!0;let i=e.candidatesToCss([e.printCandidate(r)]).join(`
20
- `),o=!0;return D(Y(t),l=>{if(l.kind==="function"&&l.value==="var"){let s=l.nodes[0].value;if(!new RegExp(`var\\(${s}[,)]\\s*`,"g").test(i)||i.includes(`${s}:`))return o=!1,T.Stop}}),o}function Aa(e,n){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=n.designSystem,t=r.storage[zr].get(n.signatureOptions),i=r.storage[be].get(n.signatureOptions),o=r.storage[ht].get(n.signatureOptions),l=r.printCandidate(e),s=i.get(l);if(typeof s!="string")return e;for(let c of f(s,e))if(o(e,c))return c;return e;function*f(c,p){let m=t.get(c);if(m.length>1){let d;for(let h of m)if(h[0]!=="-"){if(d)return;d=h}if(d)for(let h of ve(r,d))yield h;return}if(m.length===0&&p.modifier){let d={...p,modifier:null},h=i.get(r.printCandidate(d));if(typeof h=="string")for(let k of f(h,d))yield Object.assign({},k,{modifier:p.modifier})}if(m.length===1)for(let d of ve(r,m[0]))yield d}}var Ca=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),Sa=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*Na(e){let n=Ca.get(e);n&&(yield n);for(let[r,t]of Sa){let i=e.replace(r,t);i!==e&&(yield i)}}function Ea(e,n){let r=n.designSystem,t=r.storage[ht].get(n.signatureOptions),i=Si(r,e);for(let o of Na(i)){if(!t(e,o))continue;let[l]=ve(r,o);return l}return e}function Va(e,n){let r=n.designSystem,t=r.storage[Gt].get(n.signatureOptions.rem),i=r.storage[Pi].get(n.signatureOptions.rem),o=Ht(e);for(let[l]of o){if(l.kind==="compound")continue;let s=r.printVariant(l),f=t.get(s);if(typeof f!="string")continue;let c=i.get(f);if(c.length===0||c.includes(s))continue;let p=c[0],m=r.parseVariant(p);m!==null&&he(l,m)}return e}function Ta(e,n){let r=n.designSystem,t=r.storage[be].get(n.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let i=r.printCandidate({...e,value:{...e.value,dataType:null}});t.get(r.printCandidate(e))===t.get(i)&&(e.value.dataType=null)}return e}function $a(e,n){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=n.designSystem,t=r.storage[be].get(n.signatureOptions),i=t.get(r.printCandidate(e));if(i===null)return e;for(let o of Ei(e))if(t.get(r.printCandidate({...e,value:o}))===i)return e.value=o,e;return e}function Ra(e){let n=Ht(e);for(let[r]of n)if(r.kind==="functional"&&r.root==="data"&&r.value?.kind==="arbitrary"&&!r.value.value.includes("="))r.value={kind:"named",value:r.value.value};else if(r.kind==="functional"&&r.root==="aria"&&r.value?.kind==="arbitrary"&&(r.value.value.endsWith("=true")||r.value.value.endsWith('="true"')||r.value.value.endsWith("='true'"))){let[t,i]=F(r.value.value,"=");if(t[t.length-1]==="~"||t[t.length-1]==="|"||t[t.length-1]==="^"||t[t.length-1]==="$"||t[t.length-1]==="*")continue;r.value={kind:"named",value:r.value.value.slice(0,r.value.value.indexOf("="))}}else r.kind==="functional"&&r.root==="supports"&&r.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(r.value.value)&&(r.value={kind:"named",value:r.value.value});return e}function*Ei(e,n=e.value?.value??"",r=new Set){if(r.has(n))return;if(r.add(n),yield{kind:"named",value:n,fraction:null},n.endsWith("%")&&te(n.slice(0,-1))&&(yield{kind:"named",value:n.slice(0,-1),fraction:null}),n.includes("/")){let[o,l]=n.split("/");K(o)&&K(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}let t=new Set;for(let o of n.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))t.add(o[0].trim());let i=Array.from(t).sort((o,l)=>o.length-l.length);for(let o of i)yield*Ei(e,o,r)}function gi(e){return!(e.length===1&&e[0].kind==="list")}function jt(e){return e.value[0]==="["&&e.value[e.value.length-1]==="]"}function Pa(e,n){let r=[e],t=n.designSystem,i=t.storage[Gt].get(n.signatureOptions.rem),o=Ht(e);for(let[l,s]of o)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let f=fe(l.selector);if(!gi(f))continue;if(f.length===1&&f[0].kind==="complex"&&(f=f[0].nodes),s===null&&f.length===3&&f[0].kind==="selector"&&f[0].value==="&"&&f[1].kind==="combinator"&&f[1].value===">"&&f[2].kind==="selector"&&f[2].value==="*"){he(l,t.parseVariant("*"));continue}if(s===null&&f.length===3&&f[0].kind==="selector"&&f[0].value==="&"&&f[1].kind==="combinator"&&f[1].value===" "&&f[2].kind==="selector"&&f[2].value==="*"){he(l,t.parseVariant("**"));continue}if(s===null&&f.length===1&&f[0].kind==="compound"&&f[0].nodes.length===2&&f[0].nodes[0].kind==="selector"&&f[0].nodes[0].value==="&"&&f[0].nodes[1].kind==="function"&&f[0].nodes[1].value===":has"&&f[0].nodes[1].nodes.length===1&&f[0].nodes[1].nodes[0].kind==="selector"){he(l,t.parseVariant(`has-[${ae(f[0].nodes[1].nodes,!0)}]`));continue}if(s===null&&f.length===3&&f[0].kind==="selector"&&f[1].kind==="combinator"&&f[1].value===" "&&f[2].kind==="selector"&&f[2].value==="&"){f.pop(),f.pop(),he(l,t.parseVariant(`in-[${ae(f,!0)}]`));continue}if(s===null&&f[0].kind==="selector"&&(f[0].value==="@media"||f[0].value==="@supports")){let d=i.get(t.printVariant(l)),h=Y(ae(f,!0)),k=!1;if(D(h,w=>{if(w.kind==="word"&&w.value==="not")return k=!0,T.Replace([])}),h=Y(B(h)),D(h,w=>{w.kind==="separator"&&w.value!==" "&&w.value.trim()===""&&(w.value=" ")}),k){let w=t.parseVariant(`not-[${B(h)}]`);if(w===null)continue;let b=i.get(t.printVariant(w));if(d===b){he(l,w);continue}}}let c=null;s===null&&f.length===3&&f[0].kind==="selector"&&f[0].value==="&"&&f[1].kind==="combinator"&&f[1].value===">"&&f[2].kind==="selector"&&(f[2].value[0]===":"||jt(f[2]))&&(f=[f[2]],c=t.parseVariant("*")),s===null&&f.length===3&&f[0].kind==="selector"&&f[0].value==="&"&&f[1].kind==="combinator"&&f[1].value===" "&&f[2].kind==="selector"&&(f[2].value[0]===":"||jt(f[2]))&&(f=[f[2]],c=t.parseVariant("**"));let p=f;if(D(p,{enter(d){if(d.kind==="selector"&&d.value==="&")return T.Replace([]);if(d.kind==="function")return T.Skip},exit(d){if(d.kind==="compound"&&d.nodes.length===1)return T.ReplaceSkip(d.nodes)}}),p.length!==1)continue;let m=p[0];if(m.kind==="function"&&m.value===":is"){if(!gi(m.nodes)||m.nodes.length!==1||m.nodes[0].kind==="selector"&&!jt(m.nodes[0]))continue;m=m.nodes[0]}if(m.kind==="function"&&m.value[0]===":"||m.kind==="selector"&&m.value[0]===":"){let d=m,h=!1;if(d.kind==="function"&&d.value===":not"){if(h=!0,d.nodes.length!==1||d.nodes[0].kind!=="selector"&&d.nodes[0].kind!=="function"||d.nodes[0].value[0]!==":")continue;d=d.nodes[0]}let k=(b=>{if(b===":nth-child"&&d.kind==="function"&&d.nodes.length===1&&d.nodes[0].kind==="value"&&d.nodes[0].value==="odd")return h?(h=!1,"even"):"odd";if(b===":nth-child"&&d.kind==="function"&&d.nodes.length===1&&d.nodes[0].kind==="value"&&d.nodes[0].value==="even")return h?(h=!1,"odd"):"even";for(let[x,C]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(b===x&&d.kind==="function"&&d.nodes.length===1)return d.nodes.length===1&&d.nodes[0].kind==="value"&&K(d.nodes[0].value)?`${C}-${d.nodes[0].value}`:`${C}-[${ae(d.nodes,!0)}]`;if(h){let x=i.get(t.printVariant(l)),C=i.get(`not-[${b}]`);if(x===C)return`[&${b}]`}return null})(d.value);if(k===null){if(c)return he(l,{kind:"arbitrary",selector:xt(m)?`&${m.value}`:m.value,relative:!1}),[c,l];continue}h&&(k=`not-${k}`);let w=t.parseVariant(k);if(w===null)continue;he(l,w)}else if(m.kind==="selector"&&jt(m)){let d=Ge(m.value);if(d===null)continue;if(d.attribute.startsWith("data-")){let h=d.attribute.slice(5);he(l,{kind:"functional",root:"data",modifier:null,value:d.value===null?{kind:"named",value:h}:{kind:"arbitrary",value:`${h}${d.operator}${d.quote??""}${d.value}${d.quote??""}${d.sensitivity?` ${d.sensitivity}`:""}`}})}else if(d.attribute.startsWith("aria-")){let h=d.attribute.slice(5);he(l,{kind:"functional",root:"aria",modifier:null,value:d.value===null?{kind:"arbitrary",value:h}:d.operator==="="&&d.value==="true"&&d.sensitivity===null?{kind:"named",value:h}:{kind:"arbitrary",value:`${d.attribute}${d.operator}${d.quote??""}${d.value}${d.quote??""}${d.sensitivity?` ${d.sensitivity}`:""}`}})}else he(l,{kind:"arbitrary",selector:m.value,relative:!1})}if(c)return[c,l]}return r}function Oa(e,n){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let t=n.designSystem.storage[ht].get(n.signatureOptions),i=Y(e.value.value);if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let[o,l]=mt(i,null,!1);if(o){let s=Fe(e);s.value.value=B(l),t(e,s)&&(e=s,i=l)}}if(e.root[0]==="-"){if(i.length===1&&i[0].kind==="function"&&i[0].value==="var")return e;let o=Y(`calc(${e.value.value} * -1)`),[l,s]=mt(o,null,!1);if(l){let f=Fe(e);f.root=f.root.slice(1),f.value.value=B(s),t(e,f)&&(e=f,i=s)}}if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let o=i[0].nodes;if(o.length===5&&o[1].kind==="separator"&&o[1].value===" "&&o[2].kind==="word"&&o[2].value==="*"&&o[3].kind==="separator"&&o[3].value===" "){let l=o[4].kind==="word"&&o[4].value==="-1"?o[0]:o[0].kind==="word"&&o[0].value==="-1"?o[4]:null;if(l){let s=Fe(e);s.root=`-${e.root}`,s.value.value=B([l]),t(e,s)&&(e=s)}}}return e}function _a(e,n){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=n.designSystem,t=r.storage[be].get(n.signatureOptions),i=t.get(r.printCandidate(e)),o=e.modifier;if(i===t.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let l={kind:"named",value:o.value.endsWith("%")?o.value.includes(".")?`${Number(o.value.slice(0,-1))}`:o.value.slice(0,-1):o.value,fraction:null};if(i===t.get(r.printCandidate({...e,modifier:l})))return e.modifier=l,e}{let l={kind:"named",value:`${parseFloat(o.value)*100}`,fraction:null};if(i===t.get(r.printCandidate({...e,modifier:l})))return e.modifier=l,e}return e}var be=Symbol();function Ia(e){return new M(n=>new M(r=>{try{return ue(Ti(e,r,n))}catch{return Symbol()}}))}var Vi=Symbol();function Da(e){return new M(n=>new M(r=>{try{let t=new M(()=>new Set),i=Ti(e,r,n,t),o=[];return D(i,l=>{l.kind==="declaration"&&o.push(Array.from(t.get(l)).sort().join(" "))}),o}catch{return null}}))}function Ti(e,n,r,t){n=e.theme.prefix&&!n.startsWith(e.theme.prefix)?`${e.theme.prefix}:${n}`:n;let i=[Z(".x",[G("@apply",n)])];return qa(e,()=>{for(let o of e.parseCandidate(n))e.compileAstNodes(o,1);Ee(i,e)}),$i(e,i,r,t),i}var hi=/#(?:[a-f0-9]{8}|[a-f0-9]{6}|[a-f0-9]{4}|[a-f0-9]{3})/gi,La={"--tw-duration":"transition-duration","--tw-ease":"transition-timing-function","--tw-tracking":"letter-spacing"};function $i(e,n,r,t){let{rem:i}=r;return D(n,{enter(o,l){if(o.kind==="declaration"){if(o.value===void 0||o.property==="--tw-sort")return T.Replace([]);if(o.property.startsWith("--tw-")){let d=La[o.property]??o.property.slice(5);if(l.siblings.some(h=>h.kind==="declaration"&&h.property===d&&o.value===h.value&&o.important===h.important))return T.Replace([])}if(r.features&1){let d=ci(o,r.features);if(d)return T.Replace(d)}o.value.includes("var(")&&(o.value=Ka(o.value,e,t?.get(o)));let s=Y(o.value),[f,c]=mt(s,i),[p,m]=ni(c);(f||p)&&(o.value=B(m)),o.value=Ne(o.value)}else{if(o.kind==="context"||o.kind==="at-root")return T.Replace(o.nodes);if(o.kind==="comment")return T.Replace([]);if(o.kind==="at-rule"&&o.name==="@property")return T.Replace([])}},exit(o){if(o.kind==="rule"||o.kind==="at-rule"){if(o.nodes.length>1){let l=new Set;for(let s=o.nodes.length-1;s>=0;s--){let f=o.nodes[s];f.kind==="declaration"&&f.value!==void 0&&(l.has(f.property)&&o.nodes.splice(s,1),l.add(f.property))}}o.nodes.sort((l,s)=>l.kind!=="declaration"||s.kind!=="declaration"?0:l.property.localeCompare(s.property))}else if(o.kind==="declaration"&&o.value){if(o.property[0]==="-"&&o.property[1]==="-")return;hi.lastIndex=0,o.value=o.value.replace(hi,l=>l.toLowerCase())}}}),n}var Ua=["initial","inherit","revert","revert-layer","revert-rule","unset"];function Ka(e,n,r){let t=!1,i=Y(e),o=new Set;return D(i,l=>{if(l.kind!=="function"||l.value!=="var"||l.nodes.length!==1&&l.nodes.length<3)return;let s=l.nodes[0].value;n.theme.prefix&&s.startsWith(`--${n.theme.prefix}-`)&&(s=s.slice(`--${n.theme.prefix}-`.length));let f=n.resolveThemeValue(s);if(!o.has(s)&&(o.add(s),f!==void 0&&!Ua.includes(f.toLowerCase())&&(l.nodes.length===1&&(t=!0,l.nodes.push(...Y(`,${f}`))),l.nodes.length>=3))){let c=B(l.nodes),p=`${l.nodes[0].value},${f}`;if(c===p)return t=!0,r?.add(s),T.Replace(Y(f))}}),t?B(i):e}var Mr=Symbol();function Ma(){return new M(e=>new M(n=>new M(r=>new Set)))}var gt=Symbol();function za(e){return new M(n=>new M(r=>{let t=new M(o=>new Set);e.theme.prefix&&!r.startsWith(e.theme.prefix)&&(r=`${e.theme.prefix}:${r}`);let i=e.parseCandidate(r);if(i.length===0)return t;try{let o=e.compileAstNodes(i[0]).map(l=>le(l.node));D($i(e,o,n),l=>{l.kind==="declaration"&&(t.get(l.property).add(l.value),e.storage[Mr].get(n).get(l.property).get(l.value).add(r))})}catch{}return t}))}var Ri=Symbol();function ja(e){return new M(n=>{let r=e.storage[gt].get(n);return new M(t=>{let i=new M(l=>new M(s=>new Set)),o=new Set(r.get(t).keys());if(o.size===0)return i;for(let l of ve(e,t))if(!(l.kind!=="functional"||l.value===null)){for(let s of e.utilities.keys("functional")){if(s===l.root)continue;let f=Si(e,{...Fe(l),root:s}),c=r.get(f);for(let[p,m]of c)if(o.has(p))for(let d of m)i.get(p).get(d).add(f)}return i}return i})})}var zr=Symbol();function Fa(e){return new M(n=>{let r=e.storage[be].get(n),t=new M(()=>[]);for(let[i,o]of e.getClassList()){let l=r.get(i);if(typeof l=="string"){if(i[0]==="-"&&i.endsWith("-0")){let s=r.get(i.slice(1));if(typeof s=="string"&&l===s)continue}t.get(l).push(i),e.storage[gt].get(n).get(i);for(let s of o.modifiers){if(te(s))continue;let f=`${i}/${s}`,c=r.get(f);typeof c=="string"&&(t.get(c).push(f),e.storage[gt].get(n).get(f))}}}return t})}var Gt=Symbol();function Wa(e){return new M(n=>new M(r=>{try{r=e.theme.prefix&&!r.startsWith(e.theme.prefix)?`${e.theme.prefix}:${r}`:r;let t=[Z(".x",[G("@apply",`${r}:flex`)])];return Ee(t,e),D(t,o=>{if(o.kind==="context")return T.Replace(o.nodes);if(o.kind==="at-rule")o.params=pt(o.params,n),o.params.includes(" ")&&(o.params=Ba(o.params,o.name!=="@media"&&o.name!=="@container"));else if(o.kind==="rule"){let l=fe(o.selector),s=!1;D(l,f=>{if(f.kind==="list"||f.kind==="combinator")s=!0;else if(f.kind==="function"&&f.value===":is"){if(f.nodes.length===1)return s=!0,T.Replace(f.nodes);if(f.nodes.length===2&&f.nodes[0].kind==="selector"&&f.nodes[0].value==="*"&&f.nodes[1].kind==="selector"&&f.nodes[1].value[0]===":")return s=!0,T.Replace(f.nodes[1])}else f.kind==="function"&&f.value[0]===":"&&f.nodes[0]?.kind==="selector"&&f.nodes[0]?.value[0]===":"&&(s=!0,f.nodes.unshift({kind:"selector",value:"*"}))}),s&&(o.selector=ae(l,!0))}}),ue(t)}catch{return Symbol()}}))}function Ba(e,n){let r="",t=!1,i=0,o=!1,l=!1;for(let s=0;s<e.length;s++){let f=e.charCodeAt(s);if(i!==0){r+=e[s],o=!1,f===pe&&s+1<e.length?r+=e[++s]:f===i&&(i=0);continue}if(Ft(f)){t=r.length>0;continue}let c=t&&(o||!Ya(r.charCodeAt(r.length-1)))&&!Ha(f)&&!(f===Wt&&(!n||Ft(e.charCodeAt(s+1))));if(t=!1,l&&(c||Qe(f))&&(r+=" "),c&&(r+=" "),r+=e[s],o=!1,l=!1,f===pe&&s+1<e.length){if(Qe(e.charCodeAt(s+1))){let p=s+1;for(;p<s+7&&p<e.length&&Qe(e.charCodeAt(p));)p++;r+=e.slice(s+1,p),s=p-1,Ft(e.charCodeAt(s+1))&&(s++,e.charCodeAt(s)===13&&e.charCodeAt(s+1)===10&&s++),l=!0}else r+=e[++s];o=!0}else(f===Dr||f===Ir)&&(i=f)}return r}function Ya(e){return e===vt||e===44||e===Wt||e===60||e===Lr||e===61||e===43||e===126||e===47}function Ha(e){return e===vt||e===_r||e===44||e===60||e===Lr||e===61||e===43||e===126||e===47}var Pi=Symbol();function Ga(e){return new M(n=>{let r=e.storage[Gt].get(n),t=new M(()=>[]);for(let[i,o]of e.variants.entries())if(o.kind==="static"){let l=r.get(i);if(typeof l!="string")continue;t.get(l).push(i)}else if(o.kind==="functional")for(let l of e.variants.getCompletions(i)){let s=i==="@"?`@${l}`:`${i}-${l}`,f=r.get(s);typeof f=="string"&&t.get(f).push(s)}return t})}function qa(e,n){let r=e.theme.values.get,t=new Set;e.theme.values.get=i=>{let o=r.call(e.theme.values,i);return o===void 0||o.options&1&&(t.add(o),o.options&=-2),o};try{return n()}finally{e.theme.values.get=r;for(let i of t)i.options|=1}}function*Za(e){let n=e.length,r=1n<<BigInt(n);for(let t=n;t>=2;t--){let i=(1n<<BigInt(t))-1n;for(;i<r;){let o=[];for(let f=0;f<n;f++)i>>BigInt(f)&1n&&o.push(e[f]);yield o;let l=i&-i,s=i+l;i=((s^i)>>2n)/l|s}}}function vi(e,n){if(typeof e.intersection=="function")return e.intersection(n);if(e.size===0||n.size===0)return new Set;let r=new Set;for(let t of e)n.has(t)&&r.add(t);return r}var Qa=/^\d+\/\d+$/;function _i(e){let n=new M(i=>({name:i,utility:i,fraction:!1,modifiers:[]}));for(let i of e.utilities.keys("static")){if(e.utilities.getCompletions(i).length===0)continue;let l=n.get(i);l.fraction=!1,l.modifiers=[]}for(let i of e.utilities.keys("functional")){let o=e.utilities.getCompletions(i);for(let l of o)for(let s of l.values){let f=s!==null&&Qa.test(s),c=s===null?i:`${i}-${s}`,p=n.get(c);if(p.utility=i,p.fraction||=f,p.modifiers.push(...l.modifiers),l.supportsNegative){let m=n.get(`-${c}`);m.utility=`-${i}`,m.fraction||=f,m.modifiers.push(...l.modifiers)}p.modifiers=Array.from(new Set(p.modifiers))}}if(n.size===0)return[];let r=Array.from(n.values());return r.sort((i,o)=>Ye(i.name,o.name)),Ja(r)}function Ja(e){let n=[],r=null,t=new Map,i=new M(()=>[]);for(let l of e){let{utility:s,fraction:f}=l;r||(r={utility:s,items:[]},t.set(s,r)),s!==r.utility&&(n.push(r),r={utility:s,items:[]},t.set(s,r)),f?i.get(s).push(l):r.items.push(l)}r&&n[n.length-1]!==r&&n.push(r);for(let[l,s]of i){let f=t.get(l);f&&f.items.push(...s)}let o=[];for(let l of n)for(let s of l.items)o.push([s.name,{modifiers:s.modifiers}]);return o}function Ii(e){let n=[];for(let[t,i]of e.variants.entries()){let s=function({value:f,modifier:c}={}){let p=t;f&&(p+=o?`-${f}`:f),c&&(p+=`/${c}`);let m=e.parseVariant(p);if(!m)return[];let d=Z(".__placeholder__",[]);if(Xe(d,m,e.variants)===null)return[];let h=[];return D(d.nodes,{exit(k,w){if(k.kind!=="rule"&&k.kind!=="at-rule"||k.nodes.length>0)return;let b=w.path();b.push(k),b.sort((y,N)=>{let $=y.kind==="at-rule",E=N.kind==="at-rule";return $&&!E?-1:!$&&E?1:0});let x=b.flatMap(y=>y.kind==="rule"?y.selector==="&"?[]:[y.selector]:y.kind==="at-rule"?[`${y.name} ${y.params}`]:[]),C="";for(let y=x.length-1;y>=0;y--)C=C===""?x[y]:`${x[y]} { ${C} }`;h.push(C)}}),h};var r=s;if(i.kind==="arbitrary")continue;let o=t!=="@",l=e.variants.getCompletions(t);switch(i.kind){case"static":{n.push({name:t,values:l,isArbitrary:!1,hasDash:o,selectors:s});break}case"functional":{n.push({name:t,values:l,isArbitrary:!0,hasDash:o,selectors:s});break}case"compound":{n.push({name:t,values:l,isArbitrary:!0,hasDash:o,selectors:s});break}}}return n}function Di(e,n){let{astNodes:r,nodeSorting:t}=Ve(Array.from(n),e),i=new Map(n.map(l=>[l,null])),o=0n;for(let l of r){let s=t.get(l)?.candidate;s&&i.set(s,i.get(s)??o++)}return n.map(l=>[l,i.get(l)??null])}var qt=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/;var jr=class{compareFns=new Map;variants=new Map;completions=new Map;groupOrder=null;lastOrder=0;maxNameLength=0;static(n,r,{compounds:t,order:i}={}){this.set(n,{kind:"static",applyFn:r,compoundsWith:0,compounds:t??2,order:i})}fromAst(n,r,t){let i=[],o=!1,l=!1;D(r,s=>{s.kind==="rule"?i.push(s.selector):s.kind==="at-rule"&&s.name==="@variant"?o=!0:s.kind==="at-rule"&&s.name!=="@slot"&&(s.name==="@scope"&&(l=!0),i.push(`${s.name} ${s.params}`))}),this.static(n,s=>{let f=r.map(le);o&&kt(f,t),l?(wt(f,[ee({source:"user"},s.nodes)]),s.nodes=[ee({source:"variant"},f)]):(wt(f,s.nodes),s.nodes=f)},{compounds:Le(i)})}functional(n,r,{compounds:t,order:i}={}){this.set(n,{kind:"functional",applyFn:r,compoundsWith:0,compounds:t??2,order:i})}compound(n,r,t,{compounds:i,order:o}={}){this.set(n,{kind:"compound",applyFn:t,compoundsWith:r,compounds:i??2,order:o})}group(n,r){this.groupOrder=this.nextOrder(),r&&this.compareFns.set(this.groupOrder,r),n(),this.groupOrder=null}has(n){return this.variants.has(n)}get(n){return this.variants.get(n)}kind(n){return this.variants.get(n)?.kind}compoundsWith(n,r){let t=this.variants.get(n),i=typeof r=="string"?this.variants.get(r):r.kind==="arbitrary"?{compounds:Le([r.selector])}:this.variants.get(r.root);return!(!t||!i||t.kind!=="compound"||i.compounds===0||t.compoundsWith===0||(t.compoundsWith&i.compounds)===0)}suggest(n,r){this.completions.set(n,r)}getCompletions(n){return this.completions.get(n)?.()??[]}compare(n,r){if(n===r)return 0;if(n===null)return-1;if(r===null)return 1;if(n.kind==="arbitrary"&&r.kind==="arbitrary")return n.selector<r.selector?-1:1;if(n.kind==="arbitrary")return 1;if(r.kind==="arbitrary")return-1;let t=this.variants.get(n.root).order,i=this.variants.get(r.root).order,o=t-i;if(o!==0)return o;if(n.kind==="compound"&&r.kind==="compound"){let c=this.compare(n.variant,r.variant);return c!==0?c:n.modifier&&r.modifier?n.modifier.value<r.modifier.value?-1:1:n.modifier?1:r.modifier?-1:0}let l=this.compareFns.get(t);if(l!==void 0)return l(n,r);if(n.root!==r.root)return n.root<r.root?-1:1;let s=n.value,f=r.value;return s===null?-1:f===null||s.kind==="arbitrary"&&f.kind!=="arbitrary"?1:s.kind!=="arbitrary"&&f.kind==="arbitrary"||s.value<f.value?-1:1}keys(){return this.variants.keys()}entries(){return this.variants.entries()}set(n,{kind:r,applyFn:t,compounds:i,compoundsWith:o,order:l}){let s=this.variants.get(n);s?Object.assign(s,{kind:r,applyFn:t,compounds:i}):(l===void 0&&(this.lastOrder=this.nextOrder(),l=this.lastOrder),this.variants.set(n,{kind:r,applyFn:t,order:l,compoundsWith:o,compounds:i}),this.maxNameLength=Math.max(this.maxNameLength,n.length))}nextOrder(){return this.groupOrder??this.lastOrder+1}};function Le(e){let n=0;for(let r of e){if(r[0]==="@"){if(!r.startsWith("@media")&&!r.startsWith("@supports")&&!r.startsWith("@container"))return 0;n|=1;continue}if(r.includes("::"))return 0;n|=2}return n}function Ui(e){let n=new jr;function r(c,p,{compounds:m}={}){m=m??Le(p),n.static(c,d=>{d.nodes=p.map(h=>J(h,d.nodes))},{compounds:m})}r("*",[":is(& > *)"],{compounds:0}),r("**",[":is(& *)"],{compounds:0});function t(c,p){return p.map(m=>{if(c==="@container"){let d=Y(m.trim());return d.length>=1&&d[0].kind==="function"?`not ${m}`:d.length>=3&&d[0].kind==="word"&&d[0].value==="not"&&d[2].kind==="function"?(d.splice(0,2),B(d)):d.length>=5&&d[0].kind==="word"&&d[2].kind==="word"&&d[2].value==="not"&&d[4].kind==="function"?(d.splice(2,2),B(d)):d.length>=3&&d[0].kind==="word"&&d[0].value!=="not"&&d[2].kind==="function"?(d.splice(1,0,{kind:"separator",value:" "},{kind:"word",value:"not"}),B(d)):`not ${m}`}else{m=m.trim();let d=F(m," ");return d[0]==="not"?d.slice(1).join(" "):`not ${m}`}})}let i=["@media","@supports","@container"];function o(c){for(let p of i){if(p!==c.name)continue;let m=F(c.params,",");return m.length>1?null:(m=t(c.name,m),G(c.name,m.join(", ")))}return null}function l(c){return c.includes("::")?null:`&:not(${F(c,",").map(m=>(m=m.replaceAll("&","*"),m)).join(", ")})`}n.compound("not",3,(c,p)=>{if(p.variant.kind==="arbitrary"&&p.variant.relative||p.modifier)return null;let m=!1;if(D([c],(d,h)=>{if(d.kind!=="rule"&&d.kind!=="at-rule")return T.Continue;if(d.nodes.length>0)return T.Continue;let k=[],w=[],b=h.path();b.push(d);for(let C of b)C.kind==="at-rule"?k.push(C):C.kind==="rule"&&w.push(C);if(k.length>1)return T.Stop;if(w.length>1)return T.Stop;let x=[];for(let C of w){let y=l(C.selector);if(!y)return m=!1,T.Stop;x.push(Z(y,[]))}for(let C of k){let y=o(C);if(!y)return m=!1,T.Stop;x.push(y)}return Object.assign(c,Z("&",x)),m=!0,T.Skip}),c.kind==="rule"&&c.selector==="&"&&c.nodes.length===1&&Object.assign(c,c.nodes[0]),!m)return null}),n.suggest("not",()=>Array.from(n.keys()).filter(c=>n.compoundsWith("not",c))),n.compound("group",2,(c,p)=>{if(p.variant.kind==="arbitrary"&&p.variant.relative)return null;let m=p.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:""}group\\/${p.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:""}group)`,d=!1;if(D([c],(h,k)=>{if(h.kind!=="rule")return T.Continue;for(let b of k.path())if(b.kind==="rule")return d=!1,T.Stop;let w=h.selector.replaceAll("&",m);F(w,",").length>1&&(w=`:is(${w})`),h.selector=`:is(${w} &)`,d=!0}),!d)return null}),n.suggest("group",()=>Array.from(n.keys()).filter(c=>n.compoundsWith("group",c))),n.compound("peer",2,(c,p)=>{if(p.variant.kind==="arbitrary"&&p.variant.relative)return null;let m=p.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:""}peer\\/${p.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:""}peer)`,d=!1;if(D([c],(h,k)=>{if(h.kind!=="rule")return T.Continue;for(let b of k.path())if(b.kind==="rule")return d=!1,T.Stop;let w=h.selector.replaceAll("&",m);F(w,",").length>1&&(w=`:is(${w})`),h.selector=`:is(${w} ~ &)`,d=!0}),!d)return null}),n.suggest("peer",()=>Array.from(n.keys()).filter(c=>n.compoundsWith("peer",c))),r("first-letter",["&::first-letter"]),r("first-line",["&::first-line"]),r("marker",["& *::marker","&::marker","& *::-webkit-details-marker","&::-webkit-details-marker"]),r("selection",["& *::selection","&::selection"]),r("file",["&::file-selector-button"]),r("placeholder",["&::placeholder"]),r("backdrop",["&::backdrop"]),r("details-content",["&::details-content"]);{let c=function(){return q([G("@property","--tw-content",[u("syntax",'"*"'),u("initial-value",'""'),u("inherits","false")])])};var s=c;n.static("before",p=>{p.nodes=[Z("&::before",[c(),u("content","var(--tw-content)"),...p.nodes])]},{compounds:0}),n.static("after",p=>{p.nodes=[Z("&::after",[c(),u("content","var(--tw-content)"),...p.nodes])]},{compounds:0})}r("first",["&:first-child"]),r("last",["&:last-child"]),r("only",["&:only-child"]),r("odd",["&:nth-child(odd)"]),r("even",["&:nth-child(even)"]),r("first-of-type",["&:first-of-type"]),r("last-of-type",["&:last-of-type"]),r("only-of-type",["&:only-of-type"]),r("visited",["&:visited"]),r("target",["&:target"]),r("open",["&:is([open], :popover-open, :open)"]),r("default",["&:default"]),r("checked",["&:checked"]),r("indeterminate",["&:indeterminate"]),r("placeholder-shown",["&:placeholder-shown"]),r("autofill",["&:autofill"]),r("optional",["&:optional"]),r("required",["&:required"]),r("valid",["&:valid"]),r("invalid",["&:invalid"]),r("user-valid",["&:user-valid"]),r("user-invalid",["&:user-invalid"]),r("in-range",["&:in-range"]),r("out-of-range",["&:out-of-range"]),r("read-only",["&:read-only"]),r("empty",["&:empty"]),r("focus-within",["&:focus-within"]),n.static("hover",c=>{c.nodes=[Z("&:hover",[G("@media","(hover: hover)",c.nodes)])]}),r("focus",["&:focus"]),r("focus-visible",["&:focus-visible"]),r("active",["&:active"]),r("enabled",["&:enabled"]),r("disabled",["&:disabled"]),r("inert",["&:is([inert], [inert] *)"]),n.compound("in",2,(c,p)=>{if(p.modifier)return null;let m=!1;if(D([c],(d,h)=>{if(d.kind!=="rule")return T.Continue;for(let k of h.path())if(k.kind==="rule")return m=!1,T.Stop;d.selector=`:where(${d.selector.replaceAll("&","*")}) &`,m=!0}),!m)return null}),n.suggest("in",()=>Array.from(n.keys()).filter(c=>n.compoundsWith("in",c))),n.compound("has",2,(c,p)=>{if(p.modifier)return null;let m=!1;if(D([c],(d,h)=>{if(d.kind!=="rule")return T.Continue;for(let k of h.path())if(k.kind==="rule")return m=!1,T.Stop;d.selector=`&:has(${d.selector.replaceAll("&","*")})`,m=!0}),!m)return null}),n.suggest("has",()=>Array.from(n.keys()).filter(c=>n.compoundsWith("has",c))),n.functional("aria",(c,p)=>{if(!p.value||p.modifier)return null;if(p.value.kind==="arbitrary"){let m=`[aria-${Li(p.value.value)}]`;if(Ge(m)===null)return null;c.nodes=[Z(`&${m}`,c.nodes)]}else{let m=`[aria-${p.value.value}="true"]`;if(Ge(m)===null)return null;c.nodes=[Z(`&${m}`,c.nodes)]}}),n.suggest("aria",()=>["busy","checked","disabled","expanded","hidden","pressed","readonly","required","selected"]),n.functional("data",(c,p)=>{if(!p.value||p.modifier)return null;let m=`[data-${Li(p.value.value)}]`;if(Ge(m)===null)return null;c.nodes=[Z(`&${m}`,c.nodes)]}),n.functional("nth",(c,p)=>{if(!p.value||p.modifier||p.value.kind==="named"&&!K(p.value.value))return null;c.nodes=[Z(`&:nth-child(${p.value.value})`,c.nodes)]}),n.functional("nth-last",(c,p)=>{if(!p.value||p.modifier||p.value.kind==="named"&&!K(p.value.value))return null;c.nodes=[Z(`&:nth-last-child(${p.value.value})`,c.nodes)]}),n.functional("nth-of-type",(c,p)=>{if(!p.value||p.modifier||p.value.kind==="named"&&!K(p.value.value))return null;c.nodes=[Z(`&:nth-of-type(${p.value.value})`,c.nodes)]}),n.functional("nth-last-of-type",(c,p)=>{if(!p.value||p.modifier||p.value.kind==="named"&&!K(p.value.value))return null;c.nodes=[Z(`&:nth-last-of-type(${p.value.value})`,c.nodes)]}),n.functional("supports",(c,p)=>{if(!p.value||p.modifier)return null;let m=p.value.value;if(m===null)return null;if(/^[\w-]*\s*\(/.test(m)){let d=!1,h=Y(m);D(h,w=>{if(w.kind==="function"){if(w.value==="selector")return T.Skip;(w.value==="and"||w.value==="or"||w.value==="not")&&(d=!0,w.value=` ${w.value} `)}});let k=d?B(h):m;c.nodes=[G("@supports",k,c.nodes)];return}m.includes(":")||(m=`${m}: var(--tw)`),(m[0]!=="("||m[m.length-1]!==")")&&(m=`(${m})`),c.nodes=[G("@supports",m,c.nodes)]},{compounds:1}),r("motion-safe",["@media (prefers-reduced-motion: no-preference)"]),r("motion-reduce",["@media (prefers-reduced-motion: reduce)"]),r("contrast-more",["@media (prefers-contrast: more)"]),r("contrast-less",["@media (prefers-contrast: less)"]);{let c=function(p,m,d,h){if(p===m)return 0;let k=h.get(p);if(k===null)return d==="asc"?-1:1;let w=h.get(m);return w===null?d==="asc"?1:-1:_e(k,w,d)};var f=c;{let p=e.namespace("--breakpoint"),m=new M(d=>{switch(d.kind){case"static":return e.resolveValue(d.root,["--breakpoint"])??null;case"functional":{if(!d.value||d.modifier)return null;let h=null;return d.value.kind==="arbitrary"?h=d.value.value:d.value.kind==="named"&&(h=e.resolveValue(d.value.value,["--breakpoint"])),!h||h.includes("var(")?null:h}case"arbitrary":case"compound":return null}});n.group(()=>{n.functional("max",(d,h)=>{if(h.modifier)return null;let k=m.get(h);if(k===null)return null;d.nodes=[G("@media",`(width < ${k})`,d.nodes)]},{compounds:1})},(d,h)=>c(d,h,"desc",m)),n.suggest("max",()=>Array.from(p.keys()).filter(d=>d!==null)),n.group(()=>{for(let[d,h]of e.namespace("--breakpoint"))d!==null&&n.static(d,k=>{k.nodes=[G("@media",`(width >= ${h})`,k.nodes)]},{compounds:1});n.functional("min",(d,h)=>{if(h.modifier)return null;let k=m.get(h);if(k===null)return null;d.nodes=[G("@media",`(width >= ${k})`,d.nodes)]},{compounds:1})},(d,h)=>c(d,h,"asc",m)),n.suggest("min",()=>Array.from(p.keys()).filter(d=>d!==null))}{let p=e.namespace("--container"),m=new M(d=>{switch(d.kind){case"functional":{if(d.value===null)return null;let h=null;return d.value.kind==="arbitrary"?h=d.value.value:d.value.kind==="named"&&(h=e.resolveValue(d.value.value,["--container"])),!h||h.includes("var(")?null:h}case"static":case"arbitrary":case"compound":return null}});n.group(()=>{n.functional("@max",(d,h)=>{let k=m.get(h);if(k===null)return null;d.nodes=[G("@container",h.modifier?`${h.modifier.value} (width < ${k})`:`(width < ${k})`,d.nodes)]},{compounds:1})},(d,h)=>c(d,h,"desc",m)),n.suggest("@max",()=>Array.from(p.keys()).filter(d=>d!==null)),n.group(()=>{n.functional("@",(d,h)=>{let k=m.get(h);if(k===null)return null;d.nodes=[G("@container",h.modifier?`${h.modifier.value} (width >= ${k})`:`(width >= ${k})`,d.nodes)]},{compounds:1}),n.functional("@min",(d,h)=>{let k=m.get(h);if(k===null)return null;d.nodes=[G("@container",h.modifier?`${h.modifier.value} (width >= ${k})`:`(width >= ${k})`,d.nodes)]},{compounds:1})},(d,h)=>c(d,h,"asc",m)),n.suggest("@min",()=>Array.from(p.keys()).filter(d=>d!==null)),n.suggest("@",()=>Array.from(p.keys()).filter(d=>d!==null))}}return r("portrait",["@media (orientation: portrait)"]),r("landscape",["@media (orientation: landscape)"]),r("ltr",['&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)']),r("rtl",['&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)']),r("dark",["@media (prefers-color-scheme: dark)"]),r("starting",["@starting-style"]),r("print",["@media print"]),r("forced-colors",["@media (forced-colors: active)"]),r("inverted-colors",["@media (inverted-colors: inverted)"]),r("pointer-none",["@media (pointer: none)"]),r("pointer-coarse",["@media (pointer: coarse)"]),r("pointer-fine",["@media (pointer: fine)"]),r("any-pointer-none",["@media (any-pointer: none)"]),r("any-pointer-coarse",["@media (any-pointer: coarse)"]),r("any-pointer-fine",["@media (any-pointer: fine)"]),r("noscript",["@media (scripting: none)"]),n}function Li(e){if(e.includes("=")){let[n,...r]=F(e,"="),t=r.join("=").trim();if(t[0]==="'"||t[0]==='"')return e;if(t.length>1){let i=t[t.length-1];if(t[t.length-2]===" "&&(i==="i"||i==="I"||i==="s"||i==="S"))return`${n}="${t.slice(0,-2)}" ${i}`}return`${n}="${t}"`}return e}function wt(e,n){D(e,r=>{if(r.kind==="at-rule"&&r.name==="@slot")return T.ReplaceSkip(n);if(r.kind==="at-rule"&&(r.name==="@keyframes"||r.name==="@property"))return Object.assign(r,q([G(r.name,r.params,r.nodes)])),T.Skip})}function kt(e,n){let r=0;return D(e,t=>{if(t.kind!=="at-rule"||t.name!=="@variant")return;let i=[],o=F(t.params,",");for(let[l,s]of o.entries()){let f=Z("&",l===o.length-1?t.nodes:t.nodes.map(le)),c=F(s,":");for(let p=c.length-1;p>=0;--p){let m=c[p].trim();if(!m)throw new Error("Cannot use `@variant` with empty variant");let d=n.parseVariant(m);if(d===null)throw new Error(`Cannot use \`@variant\` with unknown variant: ${m}`);if(Xe(f,d,n.variants)===null)throw new Error(`Cannot use \`@variant\` with variant: ${m}`)}f.selector==="&"?i.push(...f.nodes):i.push(f)}return r|=32,T.Replace(i)}),r}function Ki(e,n){let r=Qn(e),t=Ui(e),i=new M(h=>Bn(h,d)),o=null,l=-1,s=new M(h=>Array.from(Wn(h,d))),f=new M(h=>new M(k=>{let w=Mi(k,d,h);try{let b=w.map(x=>x.node);We(b,d),kt(b,d)}catch{return[]}return w})),c=new M(h=>{for(let k of Pt(h))e.markUsedVariable(k)});function p(h){let k=[];for(let w of h){let b=!0,{astNodes:x}=Ve([w],d,{onInvalidCandidate(){b=!1}});n&&D(x,C=>(C.src??=n,T.Continue)),x=ke(x,d,0),k.push(b?x:[])}return k}function m(h){return p(h).map(k=>k.length>0?ue(k):null)}let d={theme:e,utilities:r,variants:t,invalidCandidates:new Set,important:!1,candidatesToCss:m,candidatesToAst:p,getClassOrder(h){return Di(this,h)},getClassList(){return _i(this)},getVariants(){return Ii(this)},parseCandidate(h){return s.get(h)},parseVariant(h){return i.get(h)},compileAstNodes(h,k=1){return f.get(k).get(h)},printCandidate(h){return Hn(d,h)},printVariant(h){return Dt(h)},getVariantOrder(){if(o!==null&&l===i.size)return o;let h=Array.from(i.values());h.sort((x,C)=>this.variants.compare(x,C));let k=new Map,w,b=0;for(let x of h)x!==null&&(w!==void 0&&this.variants.compare(w,x)!==0&&b++,k.set(x,b),w=x);return o=k,l=i.size,k},resolveThemeValue(h,k=!0){let w=h.lastIndexOf("/"),b=null;w!==-1&&(b=h.slice(w+1).trim(),h=h.slice(0,w).trim());let x=e.resolve(null,[h],k?1:0)??void 0;return b&&x?ne(x,b):x},trackUsedVariables(h){c.get(h)},canonicalizeCandidates(h,k){return Or(this,h,k)},storage:{}};return d}var Fr=["container-type","pointer-events","visibility","position","inset","inset-inline","inset-block","inset-inline-start","inset-inline-end","inset-block-start","inset-block-end","top","right","bottom","left","isolation","z-index","order","grid-column","grid-column-start","grid-column-end","grid-row","grid-row-start","grid-row-end","float","clear","--tw-container-component","margin","margin-inline","margin-block","margin-inline-start","margin-inline-end","margin-block-start","margin-block-end","margin-top","margin-right","margin-bottom","margin-left","box-sizing","display","field-sizing","aspect-ratio","height","max-height","min-height","width","max-width","min-width","flex","flex-shrink","flex-grow","flex-basis","table-layout","caption-side","border-collapse","border-spacing","transform-origin","translate","--tw-translate-x","--tw-translate-y","--tw-translate-z","scale","--tw-scale-x","--tw-scale-y","--tw-scale-z","rotate","--tw-rotate-x","--tw-rotate-y","--tw-rotate-z","--tw-skew-x","--tw-skew-y","transform","zoom","animation","cursor","touch-action","--tw-pan-x","--tw-pan-y","--tw-pinch-zoom","resize","scroll-snap-type","--tw-scroll-snap-strictness","scroll-snap-align","scroll-snap-stop","scroll-margin","scroll-margin-inline","scroll-margin-block","scroll-margin-inline-start","scroll-margin-inline-end","scroll-margin-block-start","scroll-margin-block-end","scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left","scroll-padding","scroll-padding-inline","scroll-padding-block","scroll-padding-inline-start","scroll-padding-inline-end","scroll-padding-block-start","scroll-padding-block-end","scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left","scrollbar-width","scrollbar-color","scrollbar-gutter","list-style-position","list-style-type","list-style-image","appearance","columns","break-before","break-inside","break-after","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-template-columns","grid-template-rows","flex-direction","flex-wrap","place-content","place-items","align-content","align-items","justify-content","justify-items","gap","column-gap","row-gap","--tw-space-x-reverse","--tw-space-y-reverse","divide-x-width","divide-y-width","--tw-divide-y-reverse","divide-style","divide-color","place-self","align-self","justify-self","overflow","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-x","overscroll-behavior-y","scroll-behavior","border-radius","border-start-radius","border-end-radius","border-top-radius","border-right-radius","border-bottom-radius","border-left-radius","border-start-start-radius","border-start-end-radius","border-end-end-radius","border-end-start-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-width","border-inline-width","border-block-width","border-inline-start-width","border-inline-end-width","border-block-start-width","border-block-end-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-style","border-inline-style","border-block-style","border-inline-start-style","border-inline-end-style","border-block-start-style","border-block-end-style","border-top-style","border-right-style","border-bottom-style","border-left-style","border-color","border-inline-color","border-block-color","border-inline-start-color","border-inline-end-color","border-block-start-color","border-block-end-color","border-top-color","border-right-color","border-bottom-color","border-left-color","background-color","background-image","--tw-gradient-position","--tw-gradient-stops","--tw-gradient-via-stops","--tw-gradient-from","--tw-gradient-from-position","--tw-gradient-via","--tw-gradient-via-position","--tw-gradient-to","--tw-gradient-to-position","mask-image","--tw-mask-top","--tw-mask-top-from-color","--tw-mask-top-from-position","--tw-mask-top-to-color","--tw-mask-top-to-position","--tw-mask-right","--tw-mask-right-from-color","--tw-mask-right-from-position","--tw-mask-right-to-color","--tw-mask-right-to-position","--tw-mask-bottom","--tw-mask-bottom-from-color","--tw-mask-bottom-from-position","--tw-mask-bottom-to-color","--tw-mask-bottom-to-position","--tw-mask-left","--tw-mask-left-from-color","--tw-mask-left-from-position","--tw-mask-left-to-color","--tw-mask-left-to-position","--tw-mask-linear","--tw-mask-linear-position","--tw-mask-linear-from-color","--tw-mask-linear-from-position","--tw-mask-linear-to-color","--tw-mask-linear-to-position","--tw-mask-radial","--tw-mask-radial-shape","--tw-mask-radial-size","--tw-mask-radial-position","--tw-mask-radial-from-color","--tw-mask-radial-from-position","--tw-mask-radial-to-color","--tw-mask-radial-to-position","--tw-mask-conic","--tw-mask-conic-position","--tw-mask-conic-from-color","--tw-mask-conic-from-position","--tw-mask-conic-to-color","--tw-mask-conic-to-position","box-decoration-break","background-size","background-attachment","background-clip","background-position","background-repeat","background-origin","mask-composite","mask-mode","mask-type","mask-size","mask-clip","mask-position","mask-repeat","mask-origin","fill","stroke","stroke-width","object-fit","object-position","padding","padding-inline","padding-block","padding-inline-start","padding-inline-end","padding-block-start","padding-block-end","padding-top","padding-right","padding-bottom","padding-left","text-align","text-indent","vertical-align","font-family","font-feature-settings","font-size","line-height","font-weight","letter-spacing","text-wrap","overflow-wrap","word-break","text-overflow","hyphens","white-space","tab-size","color","text-transform","font-style","font-stretch","font-variant-numeric","text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","-webkit-font-smoothing","placeholder-color","caret-color","accent-color","color-scheme","opacity","background-blend-mode","mix-blend-mode","box-shadow","--tw-shadow","--tw-shadow-color","--tw-ring-shadow","--tw-ring-color","--tw-inset-shadow","--tw-inset-shadow-color","--tw-inset-ring-shadow","--tw-inset-ring-color","--tw-ring-offset-width","--tw-ring-offset-color","outline","outline-width","outline-offset","outline-color","--tw-blur","--tw-brightness","--tw-contrast","--tw-drop-shadow","--tw-grayscale","--tw-hue-rotate","--tw-invert","--tw-saturate","--tw-sepia","filter","--tw-backdrop-blur","--tw-backdrop-brightness","--tw-backdrop-contrast","--tw-backdrop-grayscale","--tw-backdrop-hue-rotate","--tw-backdrop-invert","--tw-backdrop-opacity","--tw-backdrop-saturate","--tw-backdrop-sepia","backdrop-filter","transition-property","transition-behavior","transition-delay","transition-duration","transition-timing-function","will-change","contain","content","forced-color-adjust"];function Ve(e,n,{onInvalidCandidate:r,respectImportant:t}={}){let i=new Map,o=[],l=new Map;for(let c of e){if(n.invalidCandidates.has(c)){r?.(c);continue}let p=n.parseCandidate(c);if(p.length===0){r?.(c);continue}l.set(c,p)}let s=0;(t??!0)&&(s|=1);let f=l.size>1?n.getVariantOrder():null;for(let[c,p]of l){let m=!1;for(let d of p){let h=n.compileAstNodes(d,s);if(h.length!==0){m=!0;for(let{node:k,propertySort:w}of h){let b=0n;if(f!==null)for(let x of d.variants)b|=1n<<BigInt(f.get(x));i.set(k,{properties:w,variants:b,candidate:c}),o.push(k)}}}m||r?.(c)}return o.sort((c,p)=>{let m=i.get(c),d=i.get(p);if(m.variants-d.variants!==0n)return Number(m.variants-d.variants);let h=0;for(;h<m.properties.order.length&&h<d.properties.order.length&&m.properties.order[h]===d.properties.order[h];)h+=1;return(m.properties.order[h]??1/0)-(d.properties.order[h]??1/0)||d.properties.count-m.properties.count||Ye(m.candidate,d.candidate)}),{astNodes:o,nodeSorting:i}}function Mi(e,n,r){let t=ts(e,n);if(t.length===0)return[];let i=n.important&&!!(r&1),o=[],l=`.${Ue(e.raw)}`;for(let s of t){let f=rs(s);(e.important||i)&&Wi(s);let c={kind:"rule",selector:l,nodes:s};for(let p of e.variants)if(Xe(c,p,n.variants)===null)return[];if(es(c)>Xa)return[];o.push({node:c,propertySort:f})}return o}function Xe(e,n,r,t=0){if(n.kind==="arbitrary"){if(n.relative&&t===0)return null;let l=J(n.selector,e.nodes);l.kind==="at-rule"&&l.name==="@scope"&&(l.nodes=[ee({source:"user"},e.nodes)],l=ee({source:"variant"},[l])),e.nodes=[l];return}let{applyFn:i}=r.get(n.root);if(n.kind==="compound"){let l=G("@slot");if(Xe(l,n.variant,r,t+1)===null||n.root==="not"&&l.nodes.length>1)return null;for(let f of l.nodes)if(f.kind!=="rule"&&f.kind!=="at-rule"||i(f,n)===null)return null;D(l.nodes,f=>{if((f.kind==="rule"||f.kind==="at-rule")&&f.nodes.length<=0)return f.nodes=e.nodes,T.Skip}),e.nodes=l.nodes;return}if(i(e,n)===null)return null}var Xa=1e6;function es(e){return Fi(e,new Map)[1]}function Fi(e,n){let r=n.get(e);if(r!==void 0)return r;let t=0,i=0,o=!1;for(let s of e.nodes)if(s.kind==="declaration")o=!0;else if(s.kind!=="comment"){let f=Fi(s,n);t+=f[0],i+=f[1]}o&&(t+=1);let l;if(e.kind==="rule"){let s=0,f=0,c=e.selector.includes(",")?F(e.selector,","):[e.selector];for(let p of c){let m=Math.max(1,zi(p));s+=m,f+=p.length+m*5}l=[s*t,f*t+i]}else if(e.kind==="at-rule"){let s=zi(e.params);l=[t+s,i+e.params.length+s*5]}else e.kind==="at-root"?l=[0,i]:l=[t,i];return n.set(e,l),l}function zi(e){let n=0;for(let r=e.indexOf("&");r!==-1;r=e.indexOf("&",r+1))n+=1;return n}function ji(e){let n=e.options?.types??[];return n.length>1&&n.includes("any")}function ts(e,n){if(e.kind==="arbitrary"){let l=e.value;return e.modifier&&(l=ie(l,e.modifier,n.theme)),l===null?[]:[[u(e.property,l)]]}let r=n.utilities.get(e.root)??[],t=[],i=r.filter(l=>!ji(l));for(let l of i){if(l.kind!==e.kind)continue;let s=l.compileFn(e);if(s!==void 0){if(s===null){if(l.options?.types?.length)return t;continue}t.push(s)}}if(t.length>0)return t;let o=r.filter(l=>ji(l));for(let l of o){if(l.kind!==e.kind)continue;let s=l.compileFn(e);if(s!==void 0){if(s===null){if(l.options?.types?.length)return t;continue}t.push(s)}}return t}function Wi(e){for(let n of e)n.kind!=="at-root"&&(n.kind==="declaration"?n.important=!0:(n.kind==="rule"||n.kind==="at-rule")&&Wi(n.nodes))}function rs(e){let n=new Set,r=0,t=e.slice(),i=!1;for(;t.length>0;){let o=t.shift();if(o.kind==="declaration"){if(o.value===void 0||(r++,i))continue;if(o.property==="--tw-sort"){let s=Fr.indexOf(o.value??"");if(s!==-1){n.add(s),i=!0;continue}}let l=Fr.indexOf(o.property);l!==-1&&n.add(l)}else if(o.kind==="rule"||o.kind==="at-rule")for(let l of o.nodes)t.push(l)}return{order:Array.from(n).sort((o,l)=>o-l),count:r}}function Ee(e,n){let r=0,t=J("&",e),i=new Set,o=new M(()=>new Set),l=new M(()=>new Set);D([t],(m,d)=>{if(m.kind==="at-rule"){if(m.name==="@keyframes")return D(m.nodes,h=>{if(h.kind==="at-rule"&&h.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),T.Skip;if(m.name==="@utility"){let h=m.params.replace(/-\*$/,"");l.get(h).add(m),D(m.nodes,k=>{if(!(k.kind!=="at-rule"||k.name!=="@apply")){i.add(m);for(let w of Bi(k,n))o.get(m).add(w)}});return}if(m.name==="@apply"){if(d.parent===null)return;r|=1,i.add(d.parent);for(let h of Bi(m,n))for(let k of d.path())i.has(k)&&o.get(k).add(h)}}});let s=new Set,f=[],c=new Set;function p(m,d=[]){if(!s.has(m)){if(c.has(m)){let h=d[(d.indexOf(m)+1)%d.length];throw m.kind==="at-rule"&&m.name==="@utility"&&h.kind==="at-rule"&&h.name==="@utility"&&D(m.nodes,k=>{if(!(k.kind!=="at-rule"||k.name!=="@apply"))for(let[w]of Wr(k.params))for(let b of n.parseCandidate(w))switch(b.kind){case"arbitrary":break;case"static":case"functional":if(h.params.replace(/-\*$/,"")===b.root)throw new Error(`You cannot \`@apply\` the \`${w}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
20
+ `),o=!0;return D(Y(t),l=>{if(l.kind==="function"&&l.value==="var"){let s=l.nodes[0].value;if(!new RegExp(`var\\(${s}[,)]\\s*`,"g").test(i)||i.includes(`${s}:`))return o=!1,T.Stop}}),o}function Aa(e,n){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=n.designSystem,t=r.storage[zr].get(n.signatureOptions),i=r.storage[be].get(n.signatureOptions),o=r.storage[ht].get(n.signatureOptions),l=r.printCandidate(e),s=i.get(l);if(typeof s!="string")return e;for(let c of f(s,e))if(o(e,c))return c;return e;function*f(c,p){let m=t.get(c);if(m.length>1){let d;for(let h of m)if(h[0]!=="-"){if(d)return;d=h}if(d)for(let h of ve(r,d))yield h;return}if(m.length===0&&p.modifier){let d={...p,modifier:null},h=i.get(r.printCandidate(d));if(typeof h=="string")for(let k of f(h,d))yield Object.assign({},k,{modifier:p.modifier})}if(m.length===1)for(let d of ve(r,m[0]))yield d}}var Ca=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),Sa=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*Na(e){let n=Ca.get(e);n&&(yield n);for(let[r,t]of Sa){let i=e.replace(r,t);i!==e&&(yield i)}}function Ea(e,n){let r=n.designSystem,t=r.storage[ht].get(n.signatureOptions),i=Si(r,e);for(let o of Na(i)){if(!t(e,o))continue;let[l]=ve(r,o);return l}return e}function Va(e,n){let r=n.designSystem,t=r.storage[Gt].get(n.signatureOptions.rem),i=r.storage[Pi].get(n.signatureOptions.rem),o=Ht(e);for(let[l,s]of o){if(l.kind==="compound")continue;let f=r.printVariant(l),c=t.get(f);if(typeof c!="string")continue;let p=i.get(c);if(p.length===0||p.includes(f))continue;let m=p[0],d=r.parseVariant(m);d!==null&&(s&&!r.variants.compoundsWith(s.root,d)||he(l,d))}return e}function Ta(e,n){let r=n.designSystem,t=r.storage[be].get(n.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let i=r.printCandidate({...e,value:{...e.value,dataType:null}});t.get(r.printCandidate(e))===t.get(i)&&(e.value.dataType=null)}return e}function $a(e,n){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=n.designSystem,t=r.storage[be].get(n.signatureOptions),i=t.get(r.printCandidate(e));if(i===null)return e;for(let o of Ei(e))if(t.get(r.printCandidate({...e,value:o}))===i)return e.value=o,e;return e}function Ra(e){let n=Ht(e);for(let[r]of n)if(r.kind==="functional"&&r.root==="data"&&r.value?.kind==="arbitrary"&&!r.value.value.includes("="))r.value={kind:"named",value:r.value.value};else if(r.kind==="functional"&&r.root==="aria"&&r.value?.kind==="arbitrary"&&(r.value.value.endsWith("=true")||r.value.value.endsWith('="true"')||r.value.value.endsWith("='true'"))){let[t,i]=F(r.value.value,"=");if(t[t.length-1]==="~"||t[t.length-1]==="|"||t[t.length-1]==="^"||t[t.length-1]==="$"||t[t.length-1]==="*")continue;r.value={kind:"named",value:r.value.value.slice(0,r.value.value.indexOf("="))}}else r.kind==="functional"&&r.root==="supports"&&r.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(r.value.value)&&(r.value={kind:"named",value:r.value.value});return e}function*Ei(e,n=e.value?.value??"",r=new Set){if(r.has(n))return;if(r.add(n),yield{kind:"named",value:n,fraction:null},n.endsWith("%")&&te(n.slice(0,-1))&&(yield{kind:"named",value:n.slice(0,-1),fraction:null}),n.includes("/")){let[o,l]=n.split("/");K(o)&&K(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}let t=new Set;for(let o of n.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))t.add(o[0].trim());let i=Array.from(t).sort((o,l)=>o.length-l.length);for(let o of i)yield*Ei(e,o,r)}function gi(e){return!(e.length===1&&e[0].kind==="list")}function jt(e){return e.value[0]==="["&&e.value[e.value.length-1]==="]"}function Pa(e,n){let r=[e],t=n.designSystem,i=t.storage[Gt].get(n.signatureOptions.rem),o=Ht(e);for(let[l,s]of o)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let f=fe(l.selector);if(!gi(f))continue;if(f.length===1&&f[0].kind==="complex"&&(f=f[0].nodes),s===null&&f.length===3&&f[0].kind==="selector"&&f[0].value==="&"&&f[1].kind==="combinator"&&f[1].value===">"&&f[2].kind==="selector"&&f[2].value==="*"){he(l,t.parseVariant("*"));continue}if(s===null&&f.length===3&&f[0].kind==="selector"&&f[0].value==="&"&&f[1].kind==="combinator"&&f[1].value===" "&&f[2].kind==="selector"&&f[2].value==="*"){he(l,t.parseVariant("**"));continue}if(s===null&&f.length===1&&f[0].kind==="compound"&&f[0].nodes.length===2&&f[0].nodes[0].kind==="selector"&&f[0].nodes[0].value==="&"&&f[0].nodes[1].kind==="function"&&f[0].nodes[1].value===":has"&&f[0].nodes[1].nodes.length===1&&f[0].nodes[1].nodes[0].kind==="selector"){he(l,t.parseVariant(`has-[${ae(f[0].nodes[1].nodes,!0)}]`));continue}if(s===null&&f.length===3&&f[0].kind==="selector"&&f[1].kind==="combinator"&&f[1].value===" "&&f[2].kind==="selector"&&f[2].value==="&"){f.pop(),f.pop(),he(l,t.parseVariant(`in-[${ae(f,!0)}]`));continue}if(s===null&&f[0].kind==="selector"&&(f[0].value==="@media"||f[0].value==="@supports")){let d=i.get(t.printVariant(l)),h=Y(ae(f,!0)),k=!1;if(D(h,w=>{if(w.kind==="word"&&w.value==="not")return k=!0,T.Replace([])}),h=Y(B(h)),D(h,w=>{w.kind==="separator"&&w.value!==" "&&w.value.trim()===""&&(w.value=" ")}),k){let w=t.parseVariant(`not-[${B(h)}]`);if(w===null)continue;let b=i.get(t.printVariant(w));if(d===b){he(l,w);continue}}}let c=null;s===null&&f.length===3&&f[0].kind==="selector"&&f[0].value==="&"&&f[1].kind==="combinator"&&f[1].value===">"&&f[2].kind==="selector"&&(f[2].value[0]===":"||jt(f[2]))&&(f=[f[2]],c=t.parseVariant("*")),s===null&&f.length===3&&f[0].kind==="selector"&&f[0].value==="&"&&f[1].kind==="combinator"&&f[1].value===" "&&f[2].kind==="selector"&&(f[2].value[0]===":"||jt(f[2]))&&(f=[f[2]],c=t.parseVariant("**"));let p=f;if(D(p,{enter(d){if(d.kind==="selector"&&d.value==="&")return T.Replace([]);if(d.kind==="function")return T.Skip},exit(d){if(d.kind==="compound"&&d.nodes.length===1)return T.ReplaceSkip(d.nodes)}}),p.length!==1)continue;let m=p[0];if(m.kind==="function"&&m.value===":is"){if(!gi(m.nodes)||m.nodes.length!==1||m.nodes[0].kind==="selector"&&!jt(m.nodes[0]))continue;m=m.nodes[0]}if(m.kind==="function"&&m.value[0]===":"||m.kind==="selector"&&m.value[0]===":"){let d=m,h=!1;if(d.kind==="function"&&d.value===":not"){if(h=!0,d.nodes.length!==1||d.nodes[0].kind!=="selector"&&d.nodes[0].kind!=="function"||d.nodes[0].value[0]!==":")continue;d=d.nodes[0]}let k=(b=>{if(b===":nth-child"&&d.kind==="function"&&d.nodes.length===1&&d.nodes[0].kind==="value"&&d.nodes[0].value==="odd")return h?(h=!1,"even"):"odd";if(b===":nth-child"&&d.kind==="function"&&d.nodes.length===1&&d.nodes[0].kind==="value"&&d.nodes[0].value==="even")return h?(h=!1,"odd"):"even";for(let[x,C]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(b===x&&d.kind==="function"&&d.nodes.length===1)return d.nodes.length===1&&d.nodes[0].kind==="value"&&K(d.nodes[0].value)?`${C}-${d.nodes[0].value}`:`${C}-[${ae(d.nodes,!0)}]`;if(h){let x=i.get(t.printVariant(l)),C=i.get(`not-[${b}]`);if(x===C)return`[&${b}]`}return null})(d.value);if(k===null){if(c)return he(l,{kind:"arbitrary",selector:xt(m)?`&${m.value}`:m.value,relative:!1}),[c,l];continue}h&&(k=`not-${k}`);let w=t.parseVariant(k);if(w===null)continue;he(l,w)}else if(m.kind==="selector"&&jt(m)){let d=Ge(m.value);if(d===null)continue;if(d.attribute.startsWith("data-")){let h=d.attribute.slice(5);he(l,{kind:"functional",root:"data",modifier:null,value:d.value===null?{kind:"named",value:h}:{kind:"arbitrary",value:`${h}${d.operator}${d.quote??""}${d.value}${d.quote??""}${d.sensitivity?` ${d.sensitivity}`:""}`}})}else if(d.attribute.startsWith("aria-")){let h=d.attribute.slice(5);he(l,{kind:"functional",root:"aria",modifier:null,value:d.value===null?{kind:"arbitrary",value:h}:d.operator==="="&&d.value==="true"&&d.sensitivity===null?{kind:"named",value:h}:{kind:"arbitrary",value:`${d.attribute}${d.operator}${d.quote??""}${d.value}${d.quote??""}${d.sensitivity?` ${d.sensitivity}`:""}`}})}else he(l,{kind:"arbitrary",selector:m.value,relative:!1})}if(c)return[c,l]}return r}function Oa(e,n){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let t=n.designSystem.storage[ht].get(n.signatureOptions),i=Y(e.value.value);if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let[o,l]=mt(i,null,!1);if(o){let s=Fe(e);s.value.value=B(l),t(e,s)&&(e=s,i=l)}}if(e.root[0]==="-"){if(i.length===1&&i[0].kind==="function"&&i[0].value==="var")return e;let o=Y(`calc(${e.value.value} * -1)`),[l,s]=mt(o,null,!1);if(l){let f=Fe(e);f.root=f.root.slice(1),f.value.value=B(s),t(e,f)&&(e=f,i=s)}}if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let o=i[0].nodes;if(o.length===5&&o[1].kind==="separator"&&o[1].value===" "&&o[2].kind==="word"&&o[2].value==="*"&&o[3].kind==="separator"&&o[3].value===" "){let l=o[4].kind==="word"&&o[4].value==="-1"?o[0]:o[0].kind==="word"&&o[0].value==="-1"?o[4]:null;if(l){let s=Fe(e);s.root=`-${e.root}`,s.value.value=B([l]),t(e,s)&&(e=s)}}}return e}function _a(e,n){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=n.designSystem,t=r.storage[be].get(n.signatureOptions),i=t.get(r.printCandidate(e)),o=e.modifier;if(i===t.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let l={kind:"named",value:o.value.endsWith("%")?o.value.includes(".")?`${Number(o.value.slice(0,-1))}`:o.value.slice(0,-1):o.value,fraction:null};if(i===t.get(r.printCandidate({...e,modifier:l})))return e.modifier=l,e}{let l={kind:"named",value:`${parseFloat(o.value)*100}`,fraction:null};if(i===t.get(r.printCandidate({...e,modifier:l})))return e.modifier=l,e}return e}var be=Symbol();function Ia(e){return new M(n=>new M(r=>{try{return ue(Ti(e,r,n))}catch{return Symbol()}}))}var Vi=Symbol();function Da(e){return new M(n=>new M(r=>{try{let t=new M(()=>new Set),i=Ti(e,r,n,t),o=[];return D(i,l=>{l.kind==="declaration"&&o.push(Array.from(t.get(l)).sort().join(" "))}),o}catch{return null}}))}function Ti(e,n,r,t){n=e.theme.prefix&&!n.startsWith(e.theme.prefix)?`${e.theme.prefix}:${n}`:n;let i=[Z(".x",[G("@apply",n)])];return qa(e,()=>{for(let o of e.parseCandidate(n))e.compileAstNodes(o,1);Ee(i,e)}),$i(e,i,r,t),i}var hi=/#(?:[a-f0-9]{8}|[a-f0-9]{6}|[a-f0-9]{4}|[a-f0-9]{3})/gi,La={"--tw-duration":"transition-duration","--tw-ease":"transition-timing-function","--tw-tracking":"letter-spacing"};function $i(e,n,r,t){let{rem:i}=r;return D(n,{enter(o,l){if(o.kind==="declaration"){if(o.value===void 0||o.property==="--tw-sort")return T.Replace([]);if(o.property.startsWith("--tw-")){let d=La[o.property]??o.property.slice(5);if(l.siblings.some(h=>h.kind==="declaration"&&h.property===d&&o.value===h.value&&o.important===h.important))return T.Replace([])}if(r.features&1){let d=ci(o,r.features);if(d)return T.Replace(d)}o.value.includes("var(")&&(o.value=Ka(o.value,e,t?.get(o)));let s=Y(o.value),[f,c]=mt(s,i),[p,m]=ni(c);(f||p)&&(o.value=B(m)),o.value=Ne(o.value)}else{if(o.kind==="context"||o.kind==="at-root")return T.Replace(o.nodes);if(o.kind==="comment")return T.Replace([]);if(o.kind==="at-rule"&&o.name==="@property")return T.Replace([])}},exit(o){if(o.kind==="rule"||o.kind==="at-rule"){if(o.nodes.length>1){let l=new Set;for(let s=o.nodes.length-1;s>=0;s--){let f=o.nodes[s];f.kind==="declaration"&&f.value!==void 0&&(l.has(f.property)&&o.nodes.splice(s,1),l.add(f.property))}}o.nodes.sort((l,s)=>l.kind!=="declaration"||s.kind!=="declaration"?0:l.property.localeCompare(s.property))}else if(o.kind==="declaration"&&o.value){if(o.property[0]==="-"&&o.property[1]==="-")return;hi.lastIndex=0,o.value=o.value.replace(hi,l=>l.toLowerCase())}}}),n}var Ua=["initial","inherit","revert","revert-layer","revert-rule","unset"];function Ka(e,n,r){let t=!1,i=Y(e),o=new Set;return D(i,l=>{if(l.kind!=="function"||l.value!=="var"||l.nodes.length!==1&&l.nodes.length<3)return;let s=l.nodes[0].value;n.theme.prefix&&s.startsWith(`--${n.theme.prefix}-`)&&(s=s.slice(`--${n.theme.prefix}-`.length));let f=n.resolveThemeValue(s);if(!o.has(s)&&(o.add(s),f!==void 0&&!Ua.includes(f.toLowerCase())&&(l.nodes.length===1&&(t=!0,l.nodes.push(...Y(`,${f}`))),l.nodes.length>=3))){let c=B(l.nodes),p=`${l.nodes[0].value},${f}`;if(c===p)return t=!0,r?.add(s),T.Replace(Y(f))}}),t?B(i):e}var Mr=Symbol();function Ma(){return new M(e=>new M(n=>new M(r=>new Set)))}var gt=Symbol();function za(e){return new M(n=>new M(r=>{let t=new M(o=>new Set);e.theme.prefix&&!r.startsWith(e.theme.prefix)&&(r=`${e.theme.prefix}:${r}`);let i=e.parseCandidate(r);if(i.length===0)return t;try{let o=e.compileAstNodes(i[0]).map(l=>le(l.node));D($i(e,o,n),l=>{l.kind==="declaration"&&(t.get(l.property).add(l.value),e.storage[Mr].get(n).get(l.property).get(l.value).add(r))})}catch{}return t}))}var Ri=Symbol();function ja(e){return new M(n=>{let r=e.storage[gt].get(n);return new M(t=>{let i=new M(l=>new M(s=>new Set)),o=new Set(r.get(t).keys());if(o.size===0)return i;for(let l of ve(e,t))if(!(l.kind!=="functional"||l.value===null)){for(let s of e.utilities.keys("functional")){if(s===l.root)continue;let f=Si(e,{...Fe(l),root:s}),c=r.get(f);for(let[p,m]of c)if(o.has(p))for(let d of m)i.get(p).get(d).add(f)}return i}return i})})}var zr=Symbol();function Fa(e){return new M(n=>{let r=e.storage[be].get(n),t=new M(()=>[]);for(let[i,o]of e.getClassList()){let l=r.get(i);if(typeof l=="string"){if(i[0]==="-"&&i.endsWith("-0")){let s=r.get(i.slice(1));if(typeof s=="string"&&l===s)continue}t.get(l).push(i),e.storage[gt].get(n).get(i);for(let s of o.modifiers){if(te(s))continue;let f=`${i}/${s}`,c=r.get(f);typeof c=="string"&&(t.get(c).push(f),e.storage[gt].get(n).get(f))}}}return t})}var Gt=Symbol();function Wa(e){return new M(n=>new M(r=>{try{r=e.theme.prefix&&!r.startsWith(e.theme.prefix)?`${e.theme.prefix}:${r}`:r;let t=[Z(".x",[G("@apply",`${r}:flex`)])];return Ee(t,e),D(t,o=>{if(o.kind==="context")return T.Replace(o.nodes);if(o.kind==="at-rule")o.params=pt(o.params,n),o.params.includes(" ")&&(o.params=Ba(o.params,o.name!=="@media"&&o.name!=="@container"));else if(o.kind==="rule"){let l=fe(o.selector),s=!1;D(l,f=>{if(f.kind==="list"||f.kind==="combinator")s=!0;else if(f.kind==="function"&&f.value===":is"){if(f.nodes.length===1)return s=!0,T.Replace(f.nodes);if(f.nodes.length===2&&f.nodes[0].kind==="selector"&&f.nodes[0].value==="*"&&f.nodes[1].kind==="selector"&&f.nodes[1].value[0]===":")return s=!0,T.Replace(f.nodes[1])}else f.kind==="function"&&f.value[0]===":"&&f.nodes[0]?.kind==="selector"&&f.nodes[0]?.value[0]===":"&&(s=!0,f.nodes.unshift({kind:"selector",value:"*"}))}),s&&(o.selector=ae(l,!0))}}),ue(t)}catch{return Symbol()}}))}function Ba(e,n){let r="",t=!1,i=0,o=!1,l=!1;for(let s=0;s<e.length;s++){let f=e.charCodeAt(s);if(i!==0){r+=e[s],o=!1,f===pe&&s+1<e.length?r+=e[++s]:f===i&&(i=0);continue}if(Ft(f)){t=r.length>0;continue}let c=t&&(o||!Ya(r.charCodeAt(r.length-1)))&&!Ha(f)&&!(f===Wt&&(!n||Ft(e.charCodeAt(s+1))));if(t=!1,l&&(c||Qe(f))&&(r+=" "),c&&(r+=" "),r+=e[s],o=!1,l=!1,f===pe&&s+1<e.length){if(Qe(e.charCodeAt(s+1))){let p=s+1;for(;p<s+7&&p<e.length&&Qe(e.charCodeAt(p));)p++;r+=e.slice(s+1,p),s=p-1,Ft(e.charCodeAt(s+1))&&(s++,e.charCodeAt(s)===13&&e.charCodeAt(s+1)===10&&s++),l=!0}else r+=e[++s];o=!0}else(f===Dr||f===Ir)&&(i=f)}return r}function Ya(e){return e===vt||e===44||e===Wt||e===60||e===Lr||e===61||e===43||e===126||e===47}function Ha(e){return e===vt||e===_r||e===44||e===60||e===Lr||e===61||e===43||e===126||e===47}var Pi=Symbol();function Ga(e){return new M(n=>{let r=e.storage[Gt].get(n),t=new M(()=>[]);for(let[i,o]of e.variants.entries())if(o.kind==="static"){let l=r.get(i);if(typeof l!="string")continue;t.get(l).push(i)}else if(o.kind==="functional")for(let l of e.variants.getCompletions(i)){let s=i==="@"?`@${l}`:`${i}-${l}`,f=r.get(s);typeof f=="string"&&t.get(f).push(s)}return t})}function qa(e,n){let r=e.theme.values.get,t=new Set;e.theme.values.get=i=>{let o=r.call(e.theme.values,i);return o===void 0||o.options&1&&(t.add(o),o.options&=-2),o};try{return n()}finally{e.theme.values.get=r;for(let i of t)i.options|=1}}function*Za(e){let n=e.length,r=1n<<BigInt(n);for(let t=n;t>=2;t--){let i=(1n<<BigInt(t))-1n;for(;i<r;){let o=[];for(let f=0;f<n;f++)i>>BigInt(f)&1n&&o.push(e[f]);yield o;let l=i&-i,s=i+l;i=((s^i)>>2n)/l|s}}}function vi(e,n){if(typeof e.intersection=="function")return e.intersection(n);if(e.size===0||n.size===0)return new Set;let r=new Set;for(let t of e)n.has(t)&&r.add(t);return r}var Qa=/^\d+\/\d+$/;function _i(e){let n=new M(i=>({name:i,utility:i,fraction:!1,modifiers:[]}));for(let i of e.utilities.keys("static")){if(e.utilities.getCompletions(i).length===0)continue;let l=n.get(i);l.fraction=!1,l.modifiers=[]}for(let i of e.utilities.keys("functional")){let o=e.utilities.getCompletions(i);for(let l of o)for(let s of l.values){let f=s!==null&&Qa.test(s),c=s===null?i:`${i}-${s}`,p=n.get(c);if(p.utility=i,p.fraction||=f,p.modifiers.push(...l.modifiers),l.supportsNegative){let m=n.get(`-${c}`);m.utility=`-${i}`,m.fraction||=f,m.modifiers.push(...l.modifiers)}p.modifiers=Array.from(new Set(p.modifiers))}}if(n.size===0)return[];let r=Array.from(n.values());return r.sort((i,o)=>Ye(i.name,o.name)),Ja(r)}function Ja(e){let n=[],r=null,t=new Map,i=new M(()=>[]);for(let l of e){let{utility:s,fraction:f}=l;r||(r={utility:s,items:[]},t.set(s,r)),s!==r.utility&&(n.push(r),r={utility:s,items:[]},t.set(s,r)),f?i.get(s).push(l):r.items.push(l)}r&&n[n.length-1]!==r&&n.push(r);for(let[l,s]of i){let f=t.get(l);f&&f.items.push(...s)}let o=[];for(let l of n)for(let s of l.items)o.push([s.name,{modifiers:s.modifiers}]);return o}function Ii(e){let n=[];for(let[t,i]of e.variants.entries()){let s=function({value:f,modifier:c}={}){let p=t;f&&(p+=o?`-${f}`:f),c&&(p+=`/${c}`);let m=e.parseVariant(p);if(!m)return[];let d=Z(".__placeholder__",[]);if(Xe(d,m,e.variants)===null)return[];let h=[];return D(d.nodes,{exit(k,w){if(k.kind!=="rule"&&k.kind!=="at-rule"||k.nodes.length>0)return;let b=w.path();b.push(k),b.sort((y,N)=>{let $=y.kind==="at-rule",E=N.kind==="at-rule";return $&&!E?-1:!$&&E?1:0});let x=b.flatMap(y=>y.kind==="rule"?y.selector==="&"?[]:[y.selector]:y.kind==="at-rule"?[`${y.name} ${y.params}`]:[]),C="";for(let y=x.length-1;y>=0;y--)C=C===""?x[y]:`${x[y]} { ${C} }`;h.push(C)}}),h};var r=s;if(i.kind==="arbitrary")continue;let o=t!=="@",l=e.variants.getCompletions(t);switch(i.kind){case"static":{n.push({name:t,values:l,isArbitrary:!1,hasDash:o,selectors:s});break}case"functional":{n.push({name:t,values:l,isArbitrary:!0,hasDash:o,selectors:s});break}case"compound":{n.push({name:t,values:l,isArbitrary:!0,hasDash:o,selectors:s});break}}}return n}function Di(e,n){let{astNodes:r,nodeSorting:t}=Ve(Array.from(n),e),i=new Map(n.map(l=>[l,null])),o=0n;for(let l of r){let s=t.get(l)?.candidate;s&&i.set(s,i.get(s)??o++)}return n.map(l=>[l,i.get(l)??null])}var qt=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/;var jr=class{compareFns=new Map;variants=new Map;completions=new Map;groupOrder=null;lastOrder=0;maxNameLength=0;static(n,r,{compounds:t,order:i}={}){this.set(n,{kind:"static",applyFn:r,compoundsWith:0,compounds:t??2,order:i})}fromAst(n,r,t){let i=[],o=!1,l=!1;D(r,s=>{s.kind==="rule"?i.push(s.selector):s.kind==="at-rule"&&s.name==="@variant"?o=!0:s.kind==="at-rule"&&s.name!=="@slot"&&(s.name==="@scope"&&(l=!0),i.push(`${s.name} ${s.params}`))}),this.static(n,s=>{let f=r.map(le);o&&kt(f,t),l?(wt(f,[ee({source:"user"},s.nodes)]),s.nodes=[ee({source:"variant"},f)]):(wt(f,s.nodes),s.nodes=f)},{compounds:Le(i)})}functional(n,r,{compounds:t,order:i}={}){this.set(n,{kind:"functional",applyFn:r,compoundsWith:0,compounds:t??2,order:i})}compound(n,r,t,{compounds:i,order:o}={}){this.set(n,{kind:"compound",applyFn:t,compoundsWith:r,compounds:i??2,order:o})}group(n,r){this.groupOrder=this.nextOrder(),r&&this.compareFns.set(this.groupOrder,r),n(),this.groupOrder=null}has(n){return this.variants.has(n)}get(n){return this.variants.get(n)}kind(n){return this.variants.get(n)?.kind}compoundsWith(n,r){let t=this.variants.get(n),i=typeof r=="string"?this.variants.get(r):r.kind==="arbitrary"?{compounds:Le([r.selector])}:this.variants.get(r.root);return!(!t||!i||t.kind!=="compound"||i.compounds===0||t.compoundsWith===0||(t.compoundsWith&i.compounds)===0)}suggest(n,r){this.completions.set(n,r)}getCompletions(n){return this.completions.get(n)?.()??[]}compare(n,r){if(n===r)return 0;if(n===null)return-1;if(r===null)return 1;if(n.kind==="arbitrary"&&r.kind==="arbitrary")return n.selector<r.selector?-1:1;if(n.kind==="arbitrary")return 1;if(r.kind==="arbitrary")return-1;let t=this.variants.get(n.root).order,i=this.variants.get(r.root).order,o=t-i;if(o!==0)return o;if(n.kind==="compound"&&r.kind==="compound"){let c=this.compare(n.variant,r.variant);return c!==0?c:n.modifier&&r.modifier?n.modifier.value<r.modifier.value?-1:1:n.modifier?1:r.modifier?-1:0}let l=this.compareFns.get(t);if(l!==void 0)return l(n,r);if(n.root!==r.root)return n.root<r.root?-1:1;let s=n.value,f=r.value;return s===null?-1:f===null||s.kind==="arbitrary"&&f.kind!=="arbitrary"?1:s.kind!=="arbitrary"&&f.kind==="arbitrary"||s.value<f.value?-1:1}keys(){return this.variants.keys()}entries(){return this.variants.entries()}set(n,{kind:r,applyFn:t,compounds:i,compoundsWith:o,order:l}){let s=this.variants.get(n);s?Object.assign(s,{kind:r,applyFn:t,compounds:i}):(l===void 0&&(this.lastOrder=this.nextOrder(),l=this.lastOrder),this.variants.set(n,{kind:r,applyFn:t,order:l,compoundsWith:o,compounds:i}),this.maxNameLength=Math.max(this.maxNameLength,n.length))}nextOrder(){return this.groupOrder??this.lastOrder+1}};function Le(e){let n=0;for(let r of e){if(r[0]==="@"){if(!r.startsWith("@media")&&!r.startsWith("@supports")&&!r.startsWith("@container"))return 0;n|=1;continue}if(r.includes("::"))return 0;n|=2}return n}function Ui(e){let n=new jr;function r(c,p,{compounds:m}={}){m=m??Le(p),n.static(c,d=>{d.nodes=p.map(h=>J(h,d.nodes))},{compounds:m})}r("*",[":is(& > *)"],{compounds:0}),r("**",[":is(& *)"],{compounds:0});function t(c,p){return p.map(m=>{if(c==="@container"){let d=Y(m.trim());return d.length>=1&&d[0].kind==="function"?`not ${m}`:d.length>=3&&d[0].kind==="word"&&d[0].value==="not"&&d[2].kind==="function"?(d.splice(0,2),B(d)):d.length>=5&&d[0].kind==="word"&&d[2].kind==="word"&&d[2].value==="not"&&d[4].kind==="function"?(d.splice(2,2),B(d)):d.length>=3&&d[0].kind==="word"&&d[0].value!=="not"&&d[2].kind==="function"?(d.splice(1,0,{kind:"separator",value:" "},{kind:"word",value:"not"}),B(d)):`not ${m}`}else{m=m.trim();let d=F(m," ");return d[0]==="not"?d.slice(1).join(" "):`not ${m}`}})}let i=["@media","@supports","@container"];function o(c){for(let p of i){if(p!==c.name)continue;let m=F(c.params,",");return m.length>1?null:(m=t(c.name,m),G(c.name,m.join(", ")))}return null}function l(c){return c.includes("::")?null:`&:not(${F(c,",").map(m=>(m=m.replaceAll("&","*"),m)).join(", ")})`}n.compound("not",3,(c,p)=>{if(p.variant.kind==="arbitrary"&&p.variant.relative||p.modifier)return null;let m=!1;if(D([c],(d,h)=>{if(d.kind!=="rule"&&d.kind!=="at-rule")return T.Continue;if(d.nodes.length>0)return T.Continue;let k=[],w=[],b=h.path();b.push(d);for(let C of b)C.kind==="at-rule"?k.push(C):C.kind==="rule"&&w.push(C);if(k.length>1)return T.Stop;if(w.length>1)return T.Stop;let x=[];for(let C of w){let y=l(C.selector);if(!y)return m=!1,T.Stop;x.push(Z(y,[]))}for(let C of k){let y=o(C);if(!y)return m=!1,T.Stop;x.push(y)}return Object.assign(c,Z("&",x)),m=!0,T.Skip}),c.kind==="rule"&&c.selector==="&"&&c.nodes.length===1&&Object.assign(c,c.nodes[0]),!m)return null}),n.suggest("not",()=>Array.from(n.keys()).filter(c=>n.compoundsWith("not",c))),n.compound("group",2,(c,p)=>{if(p.variant.kind==="arbitrary"&&p.variant.relative)return null;let m=p.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:""}group\\/${p.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:""}group)`,d=!1;if(D([c],(h,k)=>{if(h.kind!=="rule")return T.Continue;for(let b of k.path())if(b.kind==="rule")return d=!1,T.Stop;let w=h.selector.replaceAll("&",m);F(w,",").length>1&&(w=`:is(${w})`),h.selector=`:is(${w} &)`,d=!0}),!d)return null}),n.suggest("group",()=>Array.from(n.keys()).filter(c=>n.compoundsWith("group",c))),n.compound("peer",2,(c,p)=>{if(p.variant.kind==="arbitrary"&&p.variant.relative)return null;let m=p.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:""}peer\\/${p.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:""}peer)`,d=!1;if(D([c],(h,k)=>{if(h.kind!=="rule")return T.Continue;for(let b of k.path())if(b.kind==="rule")return d=!1,T.Stop;let w=h.selector.replaceAll("&",m);F(w,",").length>1&&(w=`:is(${w})`),h.selector=`:is(${w} ~ &)`,d=!0}),!d)return null}),n.suggest("peer",()=>Array.from(n.keys()).filter(c=>n.compoundsWith("peer",c))),r("first-letter",["&::first-letter"]),r("first-line",["&::first-line"]),r("marker",["& *::marker","&::marker","& *::-webkit-details-marker","&::-webkit-details-marker"]),r("selection",["& *::selection","&::selection"]),r("file",["&::file-selector-button"]),r("placeholder",["&::placeholder"]),r("backdrop",["&::backdrop"]),r("details-content",["&::details-content"]);{let c=function(){return q([G("@property","--tw-content",[u("syntax",'"*"'),u("initial-value",'""'),u("inherits","false")])])};var s=c;n.static("before",p=>{p.nodes=[Z("&::before",[c(),u("content","var(--tw-content)"),...p.nodes])]},{compounds:0}),n.static("after",p=>{p.nodes=[Z("&::after",[c(),u("content","var(--tw-content)"),...p.nodes])]},{compounds:0})}r("first",["&:first-child"]),r("last",["&:last-child"]),r("only",["&:only-child"]),r("odd",["&:nth-child(odd)"]),r("even",["&:nth-child(even)"]),r("first-of-type",["&:first-of-type"]),r("last-of-type",["&:last-of-type"]),r("only-of-type",["&:only-of-type"]),r("visited",["&:visited"]),r("target",["&:target"]),r("open",["&:is([open], :popover-open, :open)"]),r("default",["&:default"]),r("checked",["&:checked"]),r("indeterminate",["&:indeterminate"]),r("placeholder-shown",["&:placeholder-shown"]),r("autofill",["&:autofill"]),r("optional",["&:optional"]),r("required",["&:required"]),r("valid",["&:valid"]),r("invalid",["&:invalid"]),r("user-valid",["&:user-valid"]),r("user-invalid",["&:user-invalid"]),r("in-range",["&:in-range"]),r("out-of-range",["&:out-of-range"]),r("read-only",["&:read-only"]),r("empty",["&:empty"]),r("focus-within",["&:focus-within"]),n.static("hover",c=>{c.nodes=[Z("&:hover",[G("@media","(hover: hover)",c.nodes)])]}),r("focus",["&:focus"]),r("focus-visible",["&:focus-visible"]),r("active",["&:active"]),r("enabled",["&:enabled"]),r("disabled",["&:disabled"]),r("inert",["&:is([inert], [inert] *)"]),n.compound("in",2,(c,p)=>{if(p.modifier)return null;let m=!1;if(D([c],(d,h)=>{if(d.kind!=="rule")return T.Continue;for(let k of h.path())if(k.kind==="rule")return m=!1,T.Stop;d.selector=`:where(${d.selector.replaceAll("&","*")}) &`,m=!0}),!m)return null}),n.suggest("in",()=>Array.from(n.keys()).filter(c=>n.compoundsWith("in",c))),n.compound("has",2,(c,p)=>{if(p.modifier)return null;let m=!1;if(D([c],(d,h)=>{if(d.kind!=="rule")return T.Continue;for(let k of h.path())if(k.kind==="rule")return m=!1,T.Stop;d.selector=`&:has(${d.selector.replaceAll("&","*")})`,m=!0}),!m)return null}),n.suggest("has",()=>Array.from(n.keys()).filter(c=>n.compoundsWith("has",c))),n.functional("aria",(c,p)=>{if(!p.value||p.modifier)return null;if(p.value.kind==="arbitrary"){let m=`[aria-${Li(p.value.value)}]`;if(Ge(m)===null)return null;c.nodes=[Z(`&${m}`,c.nodes)]}else{let m=`[aria-${p.value.value}="true"]`;if(Ge(m)===null)return null;c.nodes=[Z(`&${m}`,c.nodes)]}}),n.suggest("aria",()=>["busy","checked","disabled","expanded","hidden","pressed","readonly","required","selected"]),n.functional("data",(c,p)=>{if(!p.value||p.modifier)return null;let m=`[data-${Li(p.value.value)}]`;if(Ge(m)===null)return null;c.nodes=[Z(`&${m}`,c.nodes)]}),n.functional("nth",(c,p)=>{if(!p.value||p.modifier||p.value.kind==="named"&&!K(p.value.value))return null;c.nodes=[Z(`&:nth-child(${p.value.value})`,c.nodes)]}),n.functional("nth-last",(c,p)=>{if(!p.value||p.modifier||p.value.kind==="named"&&!K(p.value.value))return null;c.nodes=[Z(`&:nth-last-child(${p.value.value})`,c.nodes)]}),n.functional("nth-of-type",(c,p)=>{if(!p.value||p.modifier||p.value.kind==="named"&&!K(p.value.value))return null;c.nodes=[Z(`&:nth-of-type(${p.value.value})`,c.nodes)]}),n.functional("nth-last-of-type",(c,p)=>{if(!p.value||p.modifier||p.value.kind==="named"&&!K(p.value.value))return null;c.nodes=[Z(`&:nth-last-of-type(${p.value.value})`,c.nodes)]}),n.functional("supports",(c,p)=>{if(!p.value||p.modifier)return null;let m=p.value.value;if(m===null)return null;if(/^[\w-]*\s*\(/.test(m)){let d=!1,h=Y(m);D(h,w=>{if(w.kind==="function"){if(w.value==="selector")return T.Skip;(w.value==="and"||w.value==="or"||w.value==="not")&&(d=!0,w.value=` ${w.value} `)}});let k=d?B(h):m;c.nodes=[G("@supports",k,c.nodes)];return}m.includes(":")||(m=`${m}: var(--tw)`),(m[0]!=="("||m[m.length-1]!==")")&&(m=`(${m})`),c.nodes=[G("@supports",m,c.nodes)]},{compounds:1}),r("motion-safe",["@media (prefers-reduced-motion: no-preference)"]),r("motion-reduce",["@media (prefers-reduced-motion: reduce)"]),r("contrast-more",["@media (prefers-contrast: more)"]),r("contrast-less",["@media (prefers-contrast: less)"]);{let c=function(p,m,d,h){if(p===m)return 0;let k=h.get(p);if(k===null)return d==="asc"?-1:1;let w=h.get(m);return w===null?d==="asc"?1:-1:_e(k,w,d)};var f=c;{let p=e.namespace("--breakpoint"),m=new M(d=>{switch(d.kind){case"static":return e.resolveValue(d.root,["--breakpoint"])??null;case"functional":{if(!d.value||d.modifier)return null;let h=null;return d.value.kind==="arbitrary"?h=d.value.value:d.value.kind==="named"&&(h=e.resolveValue(d.value.value,["--breakpoint"])),!h||h.includes("var(")?null:h}case"arbitrary":case"compound":return null}});n.group(()=>{n.functional("max",(d,h)=>{if(h.modifier)return null;let k=m.get(h);if(k===null)return null;d.nodes=[G("@media",`(width < ${k})`,d.nodes)]},{compounds:1})},(d,h)=>c(d,h,"desc",m)),n.suggest("max",()=>Array.from(p.keys()).filter(d=>d!==null)),n.group(()=>{for(let[d,h]of e.namespace("--breakpoint"))d!==null&&n.static(d,k=>{k.nodes=[G("@media",`(width >= ${h})`,k.nodes)]},{compounds:1});n.functional("min",(d,h)=>{if(h.modifier)return null;let k=m.get(h);if(k===null)return null;d.nodes=[G("@media",`(width >= ${k})`,d.nodes)]},{compounds:1})},(d,h)=>c(d,h,"asc",m)),n.suggest("min",()=>Array.from(p.keys()).filter(d=>d!==null))}{let p=e.namespace("--container"),m=new M(d=>{switch(d.kind){case"functional":{if(d.value===null)return null;let h=null;return d.value.kind==="arbitrary"?h=d.value.value:d.value.kind==="named"&&(h=e.resolveValue(d.value.value,["--container"])),!h||h.includes("var(")?null:h}case"static":case"arbitrary":case"compound":return null}});n.group(()=>{n.functional("@max",(d,h)=>{let k=m.get(h);if(k===null)return null;d.nodes=[G("@container",h.modifier?`${h.modifier.value} (width < ${k})`:`(width < ${k})`,d.nodes)]},{compounds:1})},(d,h)=>c(d,h,"desc",m)),n.suggest("@max",()=>Array.from(p.keys()).filter(d=>d!==null)),n.group(()=>{n.functional("@",(d,h)=>{let k=m.get(h);if(k===null)return null;d.nodes=[G("@container",h.modifier?`${h.modifier.value} (width >= ${k})`:`(width >= ${k})`,d.nodes)]},{compounds:1}),n.functional("@min",(d,h)=>{let k=m.get(h);if(k===null)return null;d.nodes=[G("@container",h.modifier?`${h.modifier.value} (width >= ${k})`:`(width >= ${k})`,d.nodes)]},{compounds:1})},(d,h)=>c(d,h,"asc",m)),n.suggest("@min",()=>Array.from(p.keys()).filter(d=>d!==null)),n.suggest("@",()=>Array.from(p.keys()).filter(d=>d!==null))}}return r("portrait",["@media (orientation: portrait)"]),r("landscape",["@media (orientation: landscape)"]),r("ltr",['&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)']),r("rtl",['&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)']),r("dark",["@media (prefers-color-scheme: dark)"]),r("starting",["@starting-style"]),r("print",["@media print"]),r("forced-colors",["@media (forced-colors: active)"]),r("inverted-colors",["@media (inverted-colors: inverted)"]),r("pointer-none",["@media (pointer: none)"]),r("pointer-coarse",["@media (pointer: coarse)"]),r("pointer-fine",["@media (pointer: fine)"]),r("any-pointer-none",["@media (any-pointer: none)"]),r("any-pointer-coarse",["@media (any-pointer: coarse)"]),r("any-pointer-fine",["@media (any-pointer: fine)"]),r("noscript",["@media (scripting: none)"]),n}function Li(e){if(e.includes("=")){let[n,...r]=F(e,"="),t=r.join("=").trim();if(t[0]==="'"||t[0]==='"')return e;if(t.length>1){let i=t[t.length-1];if(t[t.length-2]===" "&&(i==="i"||i==="I"||i==="s"||i==="S"))return`${n}="${t.slice(0,-2)}" ${i}`}return`${n}="${t}"`}return e}function wt(e,n){D(e,r=>{if(r.kind==="at-rule"&&r.name==="@slot")return T.ReplaceSkip(n);if(r.kind==="at-rule"&&(r.name==="@keyframes"||r.name==="@property"))return Object.assign(r,q([G(r.name,r.params,r.nodes)])),T.Skip})}function kt(e,n){let r=0;return D(e,t=>{if(t.kind!=="at-rule"||t.name!=="@variant")return;let i=[],o=F(t.params,",");for(let[l,s]of o.entries()){let f=Z("&",l===o.length-1?t.nodes:t.nodes.map(le)),c=F(s,":");for(let p=c.length-1;p>=0;--p){let m=c[p].trim();if(!m)throw new Error("Cannot use `@variant` with empty variant");let d=n.parseVariant(m);if(d===null)throw new Error(`Cannot use \`@variant\` with unknown variant: ${m}`);if(Xe(f,d,n.variants)===null)throw new Error(`Cannot use \`@variant\` with variant: ${m}`)}f.selector==="&"?i.push(...f.nodes):i.push(f)}return r|=32,T.Replace(i)}),r}function Ki(e,n){let r=Qn(e),t=Ui(e),i=new M(h=>Bn(h,d)),o=null,l=-1,s=new M(h=>Array.from(Wn(h,d))),f=new M(h=>new M(k=>{let w=Mi(k,d,h);try{let b=w.map(x=>x.node);We(b,d),kt(b,d)}catch{return[]}return w})),c=new M(h=>{for(let k of Pt(h))e.markUsedVariable(k)});function p(h){let k=[];for(let w of h){let b=!0,{astNodes:x}=Ve([w],d,{onInvalidCandidate(){b=!1}});n&&D(x,C=>(C.src??=n,T.Continue)),x=ke(x,d,0),k.push(b?x:[])}return k}function m(h){return p(h).map(k=>k.length>0?ue(k):null)}let d={theme:e,utilities:r,variants:t,invalidCandidates:new Set,important:!1,candidatesToCss:m,candidatesToAst:p,getClassOrder(h){return Di(this,h)},getClassList(){return _i(this)},getVariants(){return Ii(this)},parseCandidate(h){return s.get(h)},parseVariant(h){return i.get(h)},compileAstNodes(h,k=1){return f.get(k).get(h)},printCandidate(h){return Hn(d,h)},printVariant(h){return Dt(h)},getVariantOrder(){if(o!==null&&l===i.size)return o;let h=Array.from(i.values());h.sort((x,C)=>this.variants.compare(x,C));let k=new Map,w,b=0;for(let x of h)x!==null&&(w!==void 0&&this.variants.compare(w,x)!==0&&b++,k.set(x,b),w=x);return o=k,l=i.size,k},resolveThemeValue(h,k=!0){let w=h.lastIndexOf("/"),b=null;w!==-1&&(b=h.slice(w+1).trim(),h=h.slice(0,w).trim());let x=e.resolve(null,[h],k?1:0)??void 0;return b&&x?ne(x,b):x},trackUsedVariables(h){c.get(h)},canonicalizeCandidates(h,k){return Or(this,h,k)},storage:{}};return d}var Fr=["container-type","pointer-events","visibility","position","inset","inset-inline","inset-block","inset-inline-start","inset-inline-end","inset-block-start","inset-block-end","top","right","bottom","left","isolation","z-index","order","grid-column","grid-column-start","grid-column-end","grid-row","grid-row-start","grid-row-end","float","clear","--tw-container-component","margin","margin-inline","margin-block","margin-inline-start","margin-inline-end","margin-block-start","margin-block-end","margin-top","margin-right","margin-bottom","margin-left","box-sizing","display","field-sizing","aspect-ratio","height","max-height","min-height","width","max-width","min-width","flex","flex-shrink","flex-grow","flex-basis","table-layout","caption-side","border-collapse","border-spacing","transform-origin","translate","--tw-translate-x","--tw-translate-y","--tw-translate-z","scale","--tw-scale-x","--tw-scale-y","--tw-scale-z","rotate","--tw-rotate-x","--tw-rotate-y","--tw-rotate-z","--tw-skew-x","--tw-skew-y","transform","zoom","animation","cursor","touch-action","--tw-pan-x","--tw-pan-y","--tw-pinch-zoom","resize","scroll-snap-type","--tw-scroll-snap-strictness","scroll-snap-align","scroll-snap-stop","scroll-margin","scroll-margin-inline","scroll-margin-block","scroll-margin-inline-start","scroll-margin-inline-end","scroll-margin-block-start","scroll-margin-block-end","scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left","scroll-padding","scroll-padding-inline","scroll-padding-block","scroll-padding-inline-start","scroll-padding-inline-end","scroll-padding-block-start","scroll-padding-block-end","scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left","scrollbar-width","scrollbar-color","scrollbar-gutter","list-style-position","list-style-type","list-style-image","appearance","columns","break-before","break-inside","break-after","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-template-columns","grid-template-rows","flex-direction","flex-wrap","place-content","place-items","align-content","align-items","justify-content","justify-items","gap","column-gap","row-gap","--tw-space-x-reverse","--tw-space-y-reverse","divide-x-width","divide-y-width","--tw-divide-y-reverse","divide-style","divide-color","place-self","align-self","justify-self","overflow","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-x","overscroll-behavior-y","scroll-behavior","border-radius","border-start-radius","border-end-radius","border-top-radius","border-right-radius","border-bottom-radius","border-left-radius","border-start-start-radius","border-start-end-radius","border-end-end-radius","border-end-start-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-width","border-inline-width","border-block-width","border-inline-start-width","border-inline-end-width","border-block-start-width","border-block-end-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-style","border-inline-style","border-block-style","border-inline-start-style","border-inline-end-style","border-block-start-style","border-block-end-style","border-top-style","border-right-style","border-bottom-style","border-left-style","border-color","border-inline-color","border-block-color","border-inline-start-color","border-inline-end-color","border-block-start-color","border-block-end-color","border-top-color","border-right-color","border-bottom-color","border-left-color","background-color","background-image","--tw-gradient-position","--tw-gradient-stops","--tw-gradient-via-stops","--tw-gradient-from","--tw-gradient-from-position","--tw-gradient-via","--tw-gradient-via-position","--tw-gradient-to","--tw-gradient-to-position","mask-image","--tw-mask-top","--tw-mask-top-from-color","--tw-mask-top-from-position","--tw-mask-top-to-color","--tw-mask-top-to-position","--tw-mask-right","--tw-mask-right-from-color","--tw-mask-right-from-position","--tw-mask-right-to-color","--tw-mask-right-to-position","--tw-mask-bottom","--tw-mask-bottom-from-color","--tw-mask-bottom-from-position","--tw-mask-bottom-to-color","--tw-mask-bottom-to-position","--tw-mask-left","--tw-mask-left-from-color","--tw-mask-left-from-position","--tw-mask-left-to-color","--tw-mask-left-to-position","--tw-mask-linear","--tw-mask-linear-position","--tw-mask-linear-from-color","--tw-mask-linear-from-position","--tw-mask-linear-to-color","--tw-mask-linear-to-position","--tw-mask-radial","--tw-mask-radial-shape","--tw-mask-radial-size","--tw-mask-radial-position","--tw-mask-radial-from-color","--tw-mask-radial-from-position","--tw-mask-radial-to-color","--tw-mask-radial-to-position","--tw-mask-conic","--tw-mask-conic-position","--tw-mask-conic-from-color","--tw-mask-conic-from-position","--tw-mask-conic-to-color","--tw-mask-conic-to-position","box-decoration-break","background-size","background-attachment","background-clip","background-position","background-repeat","background-origin","mask-composite","mask-mode","mask-type","mask-size","mask-clip","mask-position","mask-repeat","mask-origin","fill","stroke","stroke-width","object-fit","object-position","padding","padding-inline","padding-block","padding-inline-start","padding-inline-end","padding-block-start","padding-block-end","padding-top","padding-right","padding-bottom","padding-left","text-align","text-indent","vertical-align","font-family","font-feature-settings","font-size","line-height","font-weight","letter-spacing","text-wrap","overflow-wrap","word-break","text-overflow","hyphens","white-space","tab-size","color","text-transform","font-style","font-stretch","font-variant-numeric","text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","-webkit-font-smoothing","placeholder-color","caret-color","accent-color","color-scheme","opacity","background-blend-mode","mix-blend-mode","box-shadow","--tw-shadow","--tw-shadow-color","--tw-ring-shadow","--tw-ring-color","--tw-inset-shadow","--tw-inset-shadow-color","--tw-inset-ring-shadow","--tw-inset-ring-color","--tw-ring-offset-width","--tw-ring-offset-color","outline","outline-width","outline-offset","outline-color","--tw-blur","--tw-brightness","--tw-contrast","--tw-drop-shadow","--tw-grayscale","--tw-hue-rotate","--tw-invert","--tw-saturate","--tw-sepia","filter","--tw-backdrop-blur","--tw-backdrop-brightness","--tw-backdrop-contrast","--tw-backdrop-grayscale","--tw-backdrop-hue-rotate","--tw-backdrop-invert","--tw-backdrop-opacity","--tw-backdrop-saturate","--tw-backdrop-sepia","backdrop-filter","transition-property","transition-behavior","transition-delay","transition-duration","transition-timing-function","will-change","contain","content","forced-color-adjust"];function Ve(e,n,{onInvalidCandidate:r,respectImportant:t}={}){let i=new Map,o=[],l=new Map;for(let c of e){if(n.invalidCandidates.has(c)){r?.(c);continue}let p=n.parseCandidate(c);if(p.length===0){r?.(c);continue}l.set(c,p)}let s=0;(t??!0)&&(s|=1);let f=l.size>1?n.getVariantOrder():null;for(let[c,p]of l){let m=!1;for(let d of p){let h=n.compileAstNodes(d,s);if(h.length!==0){m=!0;for(let{node:k,propertySort:w}of h){let b=0n;if(f!==null)for(let x of d.variants)b|=1n<<BigInt(f.get(x));i.set(k,{properties:w,variants:b,candidate:c}),o.push(k)}}}m||r?.(c)}return o.sort((c,p)=>{let m=i.get(c),d=i.get(p);if(m.variants-d.variants!==0n)return Number(m.variants-d.variants);let h=0;for(;h<m.properties.order.length&&h<d.properties.order.length&&m.properties.order[h]===d.properties.order[h];)h+=1;return(m.properties.order[h]??1/0)-(d.properties.order[h]??1/0)||d.properties.count-m.properties.count||Ye(m.candidate,d.candidate)}),{astNodes:o,nodeSorting:i}}function Mi(e,n,r){let t=ts(e,n);if(t.length===0)return[];let i=n.important&&!!(r&1),o=[],l=`.${Ue(e.raw)}`;for(let s of t){let f=rs(s);(e.important||i)&&Wi(s);let c={kind:"rule",selector:l,nodes:s};for(let p of e.variants)if(Xe(c,p,n.variants)===null)return[];if(es(c)>Xa)return[];o.push({node:c,propertySort:f})}return o}function Xe(e,n,r,t=0){if(n.kind==="arbitrary"){if(n.relative&&t===0)return null;let l=J(n.selector,e.nodes);l.kind==="at-rule"&&l.name==="@scope"&&(l.nodes=[ee({source:"user"},e.nodes)],l=ee({source:"variant"},[l])),e.nodes=[l];return}let{applyFn:i}=r.get(n.root);if(n.kind==="compound"){let l=G("@slot");if(Xe(l,n.variant,r,t+1)===null||n.root==="not"&&l.nodes.length>1)return null;for(let f of l.nodes)if(f.kind!=="rule"&&f.kind!=="at-rule"||i(f,n)===null)return null;D(l.nodes,f=>{if((f.kind==="rule"||f.kind==="at-rule")&&f.nodes.length<=0)return f.nodes=e.nodes,T.Skip}),e.nodes=l.nodes;return}if(i(e,n)===null)return null}var Xa=1e6;function es(e){return Fi(e,new Map)[1]}function Fi(e,n){let r=n.get(e);if(r!==void 0)return r;let t=0,i=0,o=!1;for(let s of e.nodes)if(s.kind==="declaration")o=!0;else if(s.kind!=="comment"){let f=Fi(s,n);t+=f[0],i+=f[1]}o&&(t+=1);let l;if(e.kind==="rule"){let s=0,f=0,c=e.selector.includes(",")?F(e.selector,","):[e.selector];for(let p of c){let m=Math.max(1,zi(p));s+=m,f+=p.length+m*5}l=[s*t,f*t+i]}else if(e.kind==="at-rule"){let s=zi(e.params);l=[t+s,i+e.params.length+s*5]}else e.kind==="at-root"?l=[0,i]:l=[t,i];return n.set(e,l),l}function zi(e){let n=0;for(let r=e.indexOf("&");r!==-1;r=e.indexOf("&",r+1))n+=1;return n}function ji(e){let n=e.options?.types??[];return n.length>1&&n.includes("any")}function ts(e,n){if(e.kind==="arbitrary"){let l=e.value;return e.modifier&&(l=ie(l,e.modifier,n.theme)),l===null?[]:[[u(e.property,l)]]}let r=n.utilities.get(e.root)??[],t=[],i=r.filter(l=>!ji(l));for(let l of i){if(l.kind!==e.kind)continue;let s=l.compileFn(e);if(s!==void 0){if(s===null){if(l.options?.types?.length)return t;continue}t.push(s)}}if(t.length>0)return t;let o=r.filter(l=>ji(l));for(let l of o){if(l.kind!==e.kind)continue;let s=l.compileFn(e);if(s!==void 0){if(s===null){if(l.options?.types?.length)return t;continue}t.push(s)}}return t}function Wi(e){for(let n of e)n.kind!=="at-root"&&(n.kind==="declaration"?n.important=!0:(n.kind==="rule"||n.kind==="at-rule")&&Wi(n.nodes))}function rs(e){let n=new Set,r=0,t=e.slice(),i=!1;for(;t.length>0;){let o=t.shift();if(o.kind==="declaration"){if(o.value===void 0||(r++,i))continue;if(o.property==="--tw-sort"){let s=Fr.indexOf(o.value??"");if(s!==-1){n.add(s),i=!0;continue}}let l=Fr.indexOf(o.property);l!==-1&&n.add(l)}else if(o.kind==="rule"||o.kind==="at-rule")for(let l of o.nodes)t.push(l)}return{order:Array.from(n).sort((o,l)=>o-l),count:r}}function Ee(e,n){let r=0,t=J("&",e),i=new Set,o=new M(()=>new Set),l=new M(()=>new Set);D([t],(m,d)=>{if(m.kind==="at-rule"){if(m.name==="@keyframes")return D(m.nodes,h=>{if(h.kind==="at-rule"&&h.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),T.Skip;if(m.name==="@utility"){let h=m.params.replace(/-\*$/,"");l.get(h).add(m),D(m.nodes,k=>{if(!(k.kind!=="at-rule"||k.name!=="@apply")){i.add(m);for(let w of Bi(k,n))o.get(m).add(w)}});return}if(m.name==="@apply"){if(d.parent===null)return;r|=1,i.add(d.parent);for(let h of Bi(m,n))for(let k of d.path())i.has(k)&&o.get(k).add(h)}}});let s=new Set,f=[],c=new Set;function p(m,d=[]){if(!s.has(m)){if(c.has(m)){let h=d[(d.indexOf(m)+1)%d.length];throw m.kind==="at-rule"&&m.name==="@utility"&&h.kind==="at-rule"&&h.name==="@utility"&&D(m.nodes,k=>{if(!(k.kind!=="at-rule"||k.name!=="@apply"))for(let[w]of Wr(k.params))for(let b of n.parseCandidate(w))switch(b.kind){case"arbitrary":break;case"static":case"functional":if(h.params.replace(/-\*$/,"")===b.root)throw new Error(`You cannot \`@apply\` the \`${w}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
21
21
 
22
22
  ${ue([m])}
23
23
  Relies on:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "0.0.0-insiders.X97cd43b",
3
+ "version": "0.0.0-insiders.Xc562ea3",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -78,7 +78,7 @@
78
78
  "lightningcss": "1.33.0",
79
79
  "magic-string": "^1.1.0",
80
80
  "source-map-js": "^1.2.1",
81
- "@tailwindcss/oxide": "0.0.0-insiders.X97cd43b"
81
+ "@tailwindcss/oxide": "0.0.0-insiders.Xc562ea3"
82
82
  },
83
83
  "scripts": {
84
84
  "lint": "tsc --noEmit",