Files
soul-yongping/soul-admin/node_modules/tailwindcss/dist/lib.js

39 lines
258 KiB
JavaScript
Raw Normal View History

2026-02-09 14:43:35 +08:00
"use strict";var fn=Object.defineProperty;var pn=(e,r)=>{for(var i in r)fn(e,i,{get:r[i],enumerable:!0})};var It={};pn(It,{Features:()=>Pe,Polyfills:()=>ht,__unstable__loadDesignSystem:()=>Wa,compile:()=>Fa,compileAst:()=>cn,default:()=>lt});var dr="4.1.18";function st(e){let r=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&r.push(n+1);function i(n){let l=0,o=r.length;for(;o>0;){let u=(o|0)>>1,c=l+u;r[c]<=n?(l=c+1,o=o-u-1):o=u}l-=1;let f=n-r[l];return{line:l+1,column:f}}function t({line:n,column:l}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let o=r[n],f=r[n+1]??o;return Math.min(Math.max(o+l,0),f)}return{find:i,findOffset:t}}var He=92,ut=47,ct=42,mr=34,gr=39,mn=58,ft=59,se=10,pt=13,Ze=32,Qe=9,hr=123,Ut=125,zt=40,vr=41,gn=91,hn=93,kr=45,Lt=64,vn=33,ue=class e extends Error{loc;constructor(r,i){if(i){let t=i[0],n=st(t.code).find(i[1]);r=`${t.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=i,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Ne(e,r){let i=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],l=[],o=null,f=null,u="",c="",m=0,d;for(let p=0;p<e.length;p++){let k=e.charCodeAt(p);if(!(k===pt&&(d=e.charCodeAt(p+1),d===se)))if(k===He)u===""&&(m=p),u+=e.slice(p,p+2),p+=1;else if(k===ut&&e.charCodeAt(p+1)===ct){let h=p;for(let x=p+2;x<e.length;x++)if(d=e.charCodeAt(x),d===He)x+=1;else if(d===ct&&e.charCodeAt(x+1)===ut){p=x+1;break}let w=e.slice(h,p+1);if(w.charCodeAt(2)===vn){let x=dt(w.slice(2,-2));n.push(x),i&&(x.src=[i,h,p+1],x.dst=[i,h,p+1])}}else if(k===gr||k===mr){let h=wr(e,p,k,i);u+=e.slice(p,h+1),p=h}else{if((k===Ze||k===se||k===Qe)&&(d=e.charCodeAt(p+1))&&(d===Ze||d===se||d===Qe||d===pt&&(d=e.charCodeAt(p+2))&&d==se))continue;if(k===se){if(u.length===0)continue;d=u.charCodeAt(u.length-1),d!==Ze&&d!==se&&d!==Qe&&(u+=" ")}else if(k===kr&&e.charCodeAt(p+1)===kr&&u.length===0){let h="",w=p,x=-1;for(let A=p+2;A<e.length;A++)if(d=e.charCodeAt(A),d===He)A+=1;else if(d===gr||d===mr)A=wr(e,A,d,i);else if(d===ut&&e.charCodeAt(A+1)===ct){for(let y=A+2;y<e.length;y++)if(d=e.charCodeAt(y),d===He)y+=1;else if(d===ct&&e.charCodeAt(y+1)===ut){A=y+1;break}}else if(x===-1&&d===mn)x=u.length+A-w;else if(d===ft&&h.length===0){u+=e.slice(w,A),p=A;break}else if(d===zt)h+=")";else if(d===gn)h+="]";else if(d===hr)h+="}";else if((d===Ut||e.length-1===A)&&h.length===0){p=A-1,u+=e.slice(w,A);break}else(d===vr||d===hn||d===Ut)&&h.length>0&&e[A]===h[h.length-1]&&(h=h.slice(0,-1));let S=Kt(u,x);if(!S)throw new ue("Invalid custom property, expected a value",i?[i,w,p]:null);i&&(S.src=[i,w,p],S.dst=[i,w,p]),o?o.nodes.push(S):t.push(S),u=""}else if(k===ft&&u.charCodeAt(0)===Lt)f=Je(u),i&&(f.src=[i,m,p],f.dst=[i,m,p]),o?o.nodes.push(f):t.push(f),u="",f=null;else if(k===ft&&c[c.length-1]!==")"){let h=Kt(u);if(!h){if(u.length===0)continue;throw new ue(`Invalid declaration: \`${u.trim()}\``,i?[i,m,p]:null)}i&&(h.src=[i,m,p],h.dst=[i,m,p]),o?o.nodes.push(h):t.push(h),u=""}else if(k===hr&&c[c.length-1]!==")")c+="}",f=Z(u.trim()),i&&(f.src=[i,m,p],f.dst=[i,m,p]),o&&o.nodes.push(f),l.push(o),o=f,u="",f=null;else if(k===Ut&&c[c.length-1]!==")"){if(c==="")throw new ue("Missing opening {",i?[i,p,p]:null);if(c=c.slice(0,-1),u.length>0)if(u.charCodeAt(0)===Lt)f=Je(u),i&&(f.src=[i,m,p],f.dst=[i,m,p]),o?o.nodes.push(f):t.push(f),u="",f=null;else{let w=u.indexOf(":");if(o){let x=Kt(u,w);if(!x)throw new ue(`Invalid declaration: \`${u.trim()}\``,i?[i,m,p]:null);i&&(x.src=[i,m,p],x.dst=[i,m,p]),o.nodes.push(x)}}let h=l.pop()??null;h===null&&o&&t.push(o),o=h,u="",f=null}else if(k===zt)c+=")",u+="(";else if(k===vr){if(c[c.length-1]!==")")throw new ue("Missing opening (",i?[i,p,p]:null);c=c.slice(0,-1),u+=")"}else{if(u.length===0&&(k===Ze||k===se||k===Qe))continue;u===""&&(m=p),u+=String.fromCharCode(k)}}}if(u.charCodeAt(0)===Lt){let p=Je(u);i&&(p.src=[i,m,e.length],p.dst=[i,m,e.length]),t.push(p)}if(c.length>0&&o){if(o.kind==="rule")throw new ue(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind==="at-rule")throw new ue(`Missing closing
`,`
`);let r=[],i=[],t=null,n="",l;for(let o=0;o<e.length;o++){let f=e.charCodeAt(o);switch(f){case xr:{n+=e[o]+e[o+1],o++;break}case Cn:{if(n.length>0){let c=oe(n);t?t.nodes.push(c):r.push(c),n=""}let u=oe(e[o]);t?t.nodes.push(u):r.push(u);break}case Ar:case Cr:case Sr:case $r:case Tr:case Er:case Nr:case Vr:{if(n.length>0){let d=oe(n);t?t.nodes.push(d):r.push(d),n=""}let u=o,c=o+1;for(;c<e.length&&(l=e.charCodeAt(c),!(l!==Ar&&l!==Cr&&l!==Sr&&l!==$r&&l!==Tr&&l!==Er&&l!==Nr&&l!==Vr));c++);o=c-1;let m=wn(e.slice(u,c));t?t.nodes.push(m):r.push(m);break}case An:case bn:{let u=o;for(let c=o+1;c<e.length;c++)if(l=e.charCodeAt(c),l===xr)c+=1;else if(l===f){o=c;break}n+=e.slice(u,o+1);break}case xn:{let u=kn(n,[]);n="",t?t.nodes.push(u):r.push(u),i.push(u),t=u;break}case yn:{let u=i.pop();if(n.length>0){let c=oe(n);u?.nodes.push(c),n=""}i.length>0?t=i[i.length-1]:t=null;break}default:n+=String.fromCharCode(f)}}return n.length>0&&r.push(oe(n)),r}var jt=(o=>(o[o.Continue=0]="Continue",o[o.Skip=1]="Skip",o[o.Stop=2]="Stop",o[o.Replace=3]="Replace",o[o.ReplaceSkip=4]="ReplaceSkip",o[o.ReplaceStop=5]="ReplaceStop",o))(jt||{}),V={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function _(e,r){typeof r=="function"?Rr(e,r):Rr(e,r.enter,r.exit)}function Rr(e,r=()=>V.Continue,i=()=>V.Continue){let t=[[e,0,null]],n={parent:null,depth:0,path(){let l=[];for(let o=1;o<t.length;o++){let f=t[o][2];f&&l.push(f)}return l}};for(;t.length>0;){let l=t.length-1,o=t[l],f=o[0],u=o[1],c=o[2];if(u>=f.length){t.pop();continue}if(n.parent=c,n.depth=l,u>=0){let k=f[u],h=r(k,n)??V.Continue;switch(h.kind){case 0:{k.nodes&&k.nodes.length>0&&t.push([k.nodes,0,k]),o[1]=~u;continue}case 2:return;case 1:{o[1]=~u;continue}case 3:{f.splice(u,1,...h.nodes);continue}case 5:{f.splice(u,1,...h.nodes);return}case 4:{f.splice(u,1,...h.nodes),o[1]+=h.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${jt[h.kind]??`Unknown(${h.kind})`}\` in enter.`)}}let m=~u,d=f[m],p=i(d,n)??V.Continue;switch(p.kind){case 0:o[1]=m+1;continue;case 2:return;case 3:{f.splice(m,1,...p.nodes),o[1]=m+p.nodes.length;continue}case 5:{f.splice(m,1,...p.nodes);return}case 4:{f.splice(m,1,...p.nodes),o[1]=m+p.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${jt[p.kind]??`Unknown(${p.kind})`}\` in exit.`)}}}function gt(e){let r=[];return _(B(e),i=>{if(!(i.kind!=="function"||i.value!=="var"))return _(i.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||r.push(t.value)}),V.Skip}),r}var Sn=64;function q(e,r=[]){return{kind:"rule",selector:e,nodes:r}}function F(e,r="",i=[]){return{kind:"at-rule",name:e,params:r,nodes:i}}function Z(e,r=[]){return e.charCodeAt(0)===Sn?Je(e,r):q(e,r)}function a(e,r,i=!1){return{kind:"declaration",property:e,value:r,important:i}}function dt(e){return{kind:"comment",value:e}}function de(e,r){return{kind:"context",context:e,nodes:r}}function W(e){return{kind:"at-root",nodes:e}}function ee(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(ee),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(ee),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(ee),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(ee),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function et(e){return{depth:e.depth,get context(){let r={};for(let i of e.path())i.kind==="context"&&Object.assign(r,i.context);return Object.defineProperty(this,"context",{value:r}),r},get parent(){let r=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:r}),r},path(){return e.path().filter(r=>r.kind!=="context")}}}function Re(e,r,i=3){let t=[],n=ne
`,r){i+=c.length;let m=i;i+=o.property.length,i+=2,i+=o.value?.length??0,o.important&&(i+=11);let d=i;i+=2,o.dst=[t,m,d]}}else if(o.kind==="rule"){if(u+=`${c}${o.selector} {
`,r){i+=c.length;let m=i;i+=o.selector.length,i+=1;let d=i;o.dst=[t,m,d],i+=2}for(let m of o.nodes)u+=n(m,f+1);u+=`${c}}
`,r&&(i+=c.length,i+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let m=`${c}${o.name} ${o.params};
`;if(r){i+=c.length;let d=i;i+=o.name.length,i+=1,i+=o.params.length;let p=i;i+=2,o.dst=[t,d,p]}return m}if(u+=`${c}${o.name}${o.params?` ${o.params} `:" "}{
`,r){i+=c.length;let m=i;i+=o.name.length,o.params&&(i+=1,i+=o.params.length),i+=1;let d=i;o.dst=[t,m,d],i+=2}for(let m of o.nodes)u+=n(m,f+1);u+=`${c}}
`,r&&(i+=c.length,i+=2)}else if(o.kind==="comment"){if(u+=`${c}/*${o.value}*/
`,r){i+=c.length;let m=i;i+=2+o.value.length+2;let d=i;o.dst=[t,m,d],i+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return u}let l="";for(let o of e)l+=n(o,0);return t.code=l,l}function $n(e,r){let i=[];return _(e,(t,n)=>{if(r(t))return i=n.path(),i.push(t),V.Stop}),i}function Pr(e,r,i,t=new Set){if(t.has(e)||(t.add(e),r.getOptions(e)&24))return!0;{let l=i.get(e)??[];for(let o of l)if(Pr(o,r,i,t))return!0}return!1}function Or(e){return e.split(/[\s,]+/)}var Ft=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function tt(e){return e.indexOf("(")!==-1&&Ft.some(r=>e.includes(`${r}(`))}function _r(e){if(!Ft.some(l=>e.includes(l)))return e;let r="",i=[],t=null,n=null;for(let l=0;l<e.length;l++){let o=e.charCodeAt(l);if(o>=48&&o<=57||t!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?t=l:(n=t,t=null),o===40){r+=e[l];let f=l;for(let c=l-1;c>=0;c--){let m=e.charCodeAt(c);if(m>=48&&m<=57)f=c;else if(m>=97&&m<=122)f=c;else break}let u=e.slice(f,l);if(Ft.includes(u)){i.unshift(!0);continue}else if(i[0]&&u===""){i.unshift(!0);continue}i.unshift(!1);continue}else if(o===41)r+=e[l],i.shift();else if(o===44&&i[0]){r+=", ";continue}else{if(o===32&&i[0]&&r.charCodeAt(r.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&i[0]){let f=r.trimEnd(),u=f.charCodeAt(f.length-1),c=f.charCodeAt(f.length-2),m=e.charCodeAt(l+1);if((u===101||u===69)&&c>=48&&c<=57){r+=e[l];continue}else if(u===43||u===42||u===47||u===45){r+=e[l];continue}else if(u===40||u===44){r+=e[l];continue}else e.charCodeAt(l-1)===32?r+=`${e[l]} `:u>=48&&u<=57||m>=48&&m<=57||u===41||m===40||m===43||m===42||m===47||m===45||n!==null&&n===l-1?r+=` ${e[l]} `:r+=e[l]}else r+=e[l]}}return r}function Ae(e){if(e.indexOf("(")===-1)return ze(e);let r=B(e);return Wt(r),e=H(r),e=_r(e),e}function ze(e,r=!1){let i="";for(let t=0;t<e.length;t++){let n=e[t];n==="\\"&&e[t+1]==="_"?(i+="_",t+=1):n==="_"&&!r?i+=" ":i+=n}return i}function Wt(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=ze(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=ze(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=ze(r.nodes[i].value,!0);continue}Wt([r.nodes[i]])}break}r.value=ze(r.value),Wt(r.nodes);break}case"separator":case"word":{r.value=ze(r.value);break}default:Tn(r)}}function Tn(e){throw new Error(`Unexpected value: ${e}`)}var Bt=new Uint8Array(256);function ke(e){let r=0,i=e.length;for(let t=0;t<i;t++){let n=e.charCodeAt(t);switch(n){case 92:t+=1;break;case 39:case 34:for(;++t<i;){let l=e.charCodeAt(t);if(l===92){t+=1;continue}if(l===n)break}break;case 40:Bt[r]=41,r++;break;case 91:Bt[r]=93,r++;break;case 123:break;case 93:case 125:case 41:if(r===0)return!1;r>0&&n===Bt[r-1]&&r--;break;case 59:if(r===0)return!1;break}}return!0}var vt=new Uint8Array(256);function L(e,r){let i=0,t=[],n=0,l=e.length,o=r.charCodeAt(0);for(let f=0;f<l;f++){let u=e.charCodeAt(f);if(i===0&&u===o){t.push(e.slice(n,f)),n=f+1;continue}switch(u){case 92:f+=1;break;case 39:case 34:for(;++f<l;){let c=e.charCodeAt(f);if(c===92){f+=1;continue}if(c===u)break}break;case 40:vt[i]=41,i++;break;case 91:vt[i]=93,i++;break;case 123:vt[i]=125,i++;break;case 93:case 125:case 41:i>0&&u===vt[i-1]&&i--;break}}return t.push(e.slice(n)),t}var En=58,Ir=45,Dr=97,Ur=122,Gt=/^[a-zA-Z0-9_.%-]+$/;function Lr(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Me),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Me),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modif
Only valid data types are: ${Xt.map(w=>`"${w}"`).join(", ")}.
`);let c=u.value,m=structuredClone(o),d="\xB6";_(m.nodes,w=>{if(w.kind==="word"&&w.value===c)return V.ReplaceSkip({kind:"word",value:d})});let p="^".repeat(H([u]).length),k=H([m]).indexOf(d),h=["```css",H([o])," ".repeat(k)+p,"```"].join(`
`);console.warn(h)}}),n.value=H(l)}),i.utilities.functional(r.slice(0,-2),n=>{let l=ee(e),o=n.value,f=n.modifier;if(o===null)return;let u=!1,c=!1,m=!1,d=!1,p=new Map,k=!1;if(_([l],(h,w)=>{let x=w.parent;if(x?.kind!=="rule"&&x?.kind!=="at-rule"||h.kind!=="declaration"||!h.value)return;let S=!1,A=B(h.value);if(_(A,y=>{if(y.kind==="function"){if(y.value==="--value"){u=!0;let K=Gr(o,y,i);return K?(c=!0,K.ratio?k=!0:p.set(h,x),V.ReplaceSkip(K.nodes)):(u||=!1,S=!0,V.Stop)}else if(y.value==="--modifier"){if(f===null)return S=!0,V.Stop;m=!0;let K=Gr(f,y,i);return K?(d=!0,V.ReplaceSkip(K.nodes)):(m||=!1,S=!0,V.Stop)}}}),S)return V.ReplaceSkip([]);h.value=H(A)}),u&&!c||m&&!d||k&&d||f&&!k&&!d)return null;if(k)for(let[h,w]of p){let x=w.nodes.indexOf(h);x!==-1&&w.nodes.splice(x,1)}return l.nodes}),i.utilities.suggest(r.slice(0,-2),()=>{let n=[],l=[];for(let[o,{literals:f,usedSpacingNumber:u,usedSpacingInteger:c,themeKeys:m}]of[[n,t["--value"]],[l,t["--modifier"]]]){for(let d of f)o.push(d);if(u)o.push(...bt);else if(c)for(let d of bt)O(d)&&o.push(d);for(let d of i.theme.keysInNamespaces(m))o.push(d.replace(Zr,(p,k,h)=>`${k}.${h}`))}return[{values:n,modifiers:l}]})}:lo.test(r)?i=>{i.utilities.static(r,()=>e.nodes.map(ee))}:null}function Gr(e,r,i){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:B(e.value)};if(e.kind==="named"&&t.kind==="word"&&t.value[0]==="-"&&t.value[1]==="-"){let n=t.value;if(n.endsWith("-*")){n=n.slice(0,-2);let l=i.theme.resolve(e.value,[n]);if(l)return{nodes:B(l)}}else{let l=n.split("-*");if(l.length<=1)continue;let o=[l.shift()],f=i.theme.resolveWith(e.value,o,l);if(f){let[,u={}]=f;{let c=u[l.pop()];if(c)return{nodes:B(c)}}}}}else if(e.kind==="named"&&t.kind==="word"){if(!Xt.includes(t.value))continue;let n=t.value==="ratio"&&"fraction"in e?e.fraction:e.value;if(!n)continue;let l=Q(n,[t.value]);if(l===null)continue;if(l==="ratio"){let[o,f]=L(n,"/");if(!O(o)||!O(f))continue}else{if(l==="number"&&!ne(n))continue;if(l==="percentage"&&!O(n.slice(0,-1)))continue}return{nodes:B(n),ratio:l==="ratio"}}else if(e.kind==="arbitrary"&&t.kind==="word"&&t.value[0]==="["&&t.value[t.value.length-1]==="]"){let n=t.value.slice(1,-1);if(n==="*")return{nodes:B(e.value)};if("dataType"in e&&e.dataType&&e.dataType!==n)continue;if("dataType"in e&&e.dataType)return{nodes:B(e.value)};if(Q(e.value,[n])!==null)return{nodes:B(e.value)}}}}function ye(e,r,i,t,n=""){let l=!1,o=nt(r,u=>i==null?t(u):u.startsWith("current")?t(J(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(l=!0),t(Hr(u,i))));function f(u){return n?L(u,",").map(c=>n+c).join(","):u}return l?[a(e,f(nt(r,t))),Z("@supports (color: lab(from red l a b))",[a(e,f(o))])]:[a(e,f(o))]}function yt(e,r,i,t,n=""){let l=!1,o=L(r,",").map(f=>nt(f,u=>i==null?t(u):u.startsWith("current")?t(J(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(l=!0),t(Hr(u,i))))).map(f=>`drop-shadow(${f})`).join(" ");return l?[a(e,n+L(r,",").map(f=>`drop-shadow(${nt(f,t)})`).join(" ")),Z("@supports (color: lab(from red l a b))",[a(e,n+o)])]:[a(e,n+o)]}var er={"--alpha":uo,"--spacing":co,"--theme":fo,theme:po};function uo(e,r,i,...t){let[n,l]=L(i,"/").map(o=>o.trim());if(!n||!l)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${l||"50%"})\``);if(t.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${l||"50%"})\``);return J(n,l)}function co(e,r,i,...t){if(!i)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 n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${i})`}function fo(e,r,i,...t){if(!i.startsWith("--"))throw new Error("The
`,`
`);let r=[],i=[],t=null,n="",l;for(let o=0;o<e.length;o++){let f=e.charCodeAt(o);switch(f){case pi:case di:case mi:case ki:case vi:case wi:case yi:{if(n.length>0){let p=Se(n);t?t.nodes.push(p):r.push(p),n=""}let u=o,c=o+1;for(;c<e.length&&(l=e.charCodeAt(c),!(l!==pi&&l!==di&&l!==mi&&l!==ki&&l!==vi&&l!==wi&&l!==yi));c++);o=c-1;let m=e.slice(u,c),d=m.trim()===","?To(m):So(m);t?t.nodes.push(d):r.push(d);break}case hi:{let u=$o(n,[]);if(n="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let c=o+1,m=0;for(let p=o+1;p<e.length;p++){if(l=e.charCodeAt(p),l===hi){m++;continue}if(l===fi){if(m===0){o=p;break}m--}}let d=o;u.nodes.push(Eo(e.slice(c,d))),n="",o=d,t?t.nodes.push(u):r.push(u);break}t?t.nodes.push(u):r.push(u),i.push(u),t=u;break}case fi:{let u=i.pop();if(n.length>0){let c=Se(n);u.nodes.push(c),n=""}i.length>0?t=i[i.length-1]:t=null;break}case Oo:case Vo:case Po:{if(n.length>0){let u=Se(n);t?t.nodes.push(u):r.push(u)}n=e[o];break}case gi:{if(n.length>0){let m=Se(n);t?t.nodes.push(m):r.push(m)}n="";let u=o,c=0;for(let m=o+1;m<e.length;m++){if(l=e.charCodeAt(m),l===gi){c++;continue}if(l===No){if(c===0){o=m;break}c--}}n+=e.slice(u,o+1);break}case _o:case Ro:{let u=o;for(let c=o+1;c<e.length;c++)if(l=e.charCodeAt(c),l===ci)c+=1;else if(l===f){o=c;break}n+=e.slice(u,o+1);break}case Io:case Do:{if(n.length>0){let u=Se(n);t?t.nodes.push(u):r.push(u),n=""}t?t.nodes.push(Se(e[o])):r.push(Se(e[o]));break}case ci:{n+=e[o]+e[o+1],o+=1;break}default:n+=e[o]}}return n.length>0&&r.push(Se(n)),r}function ce(e,r){for(let i in e)delete e[i];return Object.assign(e,r)}function Ue(e){let r=[];for(let i of L(e,".")){if(!i.includes("[")){r.push(i);continue}let t=0;for(;;){let n=i.indexOf("[",t),l=i.indexOf("]",n);if(n===-1||l===-1)break;n>t&&r.push(i.slice(t,n)),r.push(i.slice(n+1,l)),t=l+1}t<=i.length-1&&r.push(i.slice(t))}return r}function tr(e,r){let i=e;return i.storage[Ci]??=Uo(),i.storage[Si]??=Ko(i),i.storage[$i]??=jo(),i.storage[Ti]??=Wo(),i.storage[Ei]??=Yo(),i.storage[ir]??=Qo(i),i.storage[$t]??=ea(i,r),i.storage[ge]??=pa(i),i.storage[nr]??=ma(),i.storage[Tt]??=ga(i),i.storage[or]??=ha(i),i.storage[Nt]??=va(i),i.storage[Ri]??=ka(i),i}var Ci=Symbol();function Uo(){return new U(e=>new U(r=>({rem:e,features:r})))}function Lo(e,r){let i=0;return r?.collapse&&(i|=1),r?.logicalToPhysical&&(i|=2),tr(e,r).storage[Ci].get(r?.rem??null).get(i)}var Si=Symbol();function Ko(e){return new U(r=>new U(i=>({features:i,designSystem:e,signatureOptions:r})))}function zo(e,r,i){let t=0;return i?.collapse&&(t|=1),tr(e).storage[Si].get(r).get(t)}function rr(e,r,i){let t=Lo(e,i),n=zo(e,t,i),l=tr(e),o=new Set,f=l.storage[$i].get(n);for(let u of r)o.add(f.get(u));return o.size<=1||!(n.features&1)?Array.from(o):Mo(n,Array.from(o))}function Mo(e,r){if(r.length<=1)return r;let i=e.designSystem,t=new U(f=>new U(u=>new Set)),n=e.designSystem.theme.prefix?`${e.designSystem.theme.prefix}:`:"";for(let f of r){let u=L(f,":"),c=u.pop(),m=c.endsWith("!");m&&(c=c.slice(0,-1));let d=u.length>0?`${u.join(":")}:`:"",p=m?"!":"";t.get(d).get(p).add(`${n}${c}`)}let l=new Set;for(let[f,u]of t.entries())for(let[c,m]of u.entries())for(let d of o(Array.from(m)))n&&d.startsWith(n)&&(d=d.slice(n.length)),l.add(`${f}${d}${c}`);return Array.from(l);function o(f){let u=e.signatureOptions,c=i.storage[Tt].get(u),m=i.storage[nr].get(u),d=f.map(S=>c.get(S));if(d.some(S=>S.has("line-height"))){let S=i.theme.keysInNamespaces(["--text"]);if(S.length>0){let A=new Set,y=new Set;for(let N of d)for(let P of N.get("line-height")){if(y.has(P))continue;y.add(P);let z=i.storage[$t]?.get(P)??null;if(z!==null)if(ne(z)){A.add(z);for(let I of S)c.get(`text-${I}/${z}`)}else{A.add(P);for(let I of S)c.get(`text-${I}/[${P}]`)}}let K=new Set;for(let N of d)for(let P of N.get("font-size"))if(!K.has(P)){K.add(P);for(let z of A)ne(z)?c.get(`text-[${P}]/${z}`):c.get(`text-[${P}]/[${z}]`)}}}let p=d.map(S=>{let A=null;for(let y of S.keys()){let K=new Set;for(let N of m.get(y).values())for(let P of N)K.add(P);if(A===null?A=K:A=Ai(A,K),A.size===0)return A}return A}),k=new U(S=>new Set([S])
`),l=!0;return _(B(t),o=>{if(o.kind==="function"&&o.value==="var"){let f=o.nodes[0].value;if(!new RegExp(`var\\(${f}[,)]\\s*`,"g").test(n)||n.includes(`${f}:`))return l=!1,V.Stop}}),l}function ia(e,r){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let i=r.designSystem,t=i.storage[or].get(r.signatureOptions),n=i.storage[ge].get(r.signatureOptions),l=i.printCandidate(e),o=n.get(l);if(typeof o!="string")return e;for(let u of f(o,e)){let c=i.printCandidate(u);if(n.get(c)===o)return u}return e;function*f(u,c){let m=t.get(u);if(!(m.length>1)){if(m.length===0&&c.modifier){let d={...c,modifier:null},p=n.get(i.printCandidate(d));if(typeof p=="string")for(let k of f(p,d))yield Object.assign({},k,{modifier:c.modifier})}if(m.length===1)for(let d of be(i,m[0]))yield d}}}var na=new Map([["order-none","order-0"],["break-words","wrap-break-word"]]);function oa(e,r){let i=r.designSystem,t=i.storage[ge].get(r.signatureOptions),n=Xo(i,e),l=na.get(n)??null;if(l===null)return e;let o=t.get(n);if(typeof o!="string")return e;let f=t.get(l);if(typeof f!="string"||o!==f)return e;let[u]=be(i,l);return u}function aa(e,r){let i=r.designSystem,t=i.storage[Nt],n=i.storage[Ri],l=Et(e);for(let[o]of l){if(o.kind==="compound")continue;let f=i.printVariant(o),u=t.get(f);if(typeof u!="string")continue;let c=n.get(u);if(c.length!==1)continue;let m=c[0],d=i.parseVariant(m);d!==null&&ce(o,d)}return e}function la(e,r){let i=r.designSystem,t=i.storage[ge].get(r.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let n=i.printCandidate({...e,value:{...e.value,dataType:null}});t.get(i.printCandidate(e))===t.get(n)&&(e.value.dataType=null)}return e}function sa(e,r){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let i=r.designSystem,t=i.storage[ge].get(r.signatureOptions),n=t.get(i.printCandidate(e));if(n===null)return e;for(let l of Ni(e))if(t.get(i.printCandidate({...e,value:l}))===n)return e.value=l,e;return e}function ua(e){let r=Et(e);for(let[i]of r)if(i.kind==="functional"&&i.root==="data"&&i.value?.kind==="arbitrary"&&!i.value.value.includes("="))i.value={kind:"named",value:i.value.value};else if(i.kind==="functional"&&i.root==="aria"&&i.value?.kind==="arbitrary"&&(i.value.value.endsWith("=true")||i.value.value.endsWith('="true"')||i.value.value.endsWith("='true'"))){let[t,n]=L(i.value.value,"=");if(t[t.length-1]==="~"||t[t.length-1]==="|"||t[t.length-1]==="^"||t[t.length-1]==="$"||t[t.length-1]==="*")continue;i.value={kind:"named",value:i.value.value.slice(0,i.value.value.indexOf("="))}}else i.kind==="functional"&&i.root==="supports"&&i.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(i.value.value)&&(i.value={kind:"named",value:i.value.value});return e}function*Ni(e,r=e.value?.value??"",i=new Set){if(i.has(r))return;if(i.add(r),yield{kind:"named",value:r,fraction:null},r.endsWith("%")&&ne(r.slice(0,-1))&&(yield{kind:"named",value:r.slice(0,-1),fraction:null}),r.includes("/")){let[l,o]=r.split("/");O(l)&&O(o)&&(yield{kind:"named",value:l,fraction:`${l}/${o}`})}let t=new Set;for(let l of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))t.add(l[0].trim());let n=Array.from(t).sort((l,o)=>l.length-o.length);for(let l of n)yield*Ni(e,l,i)}function xi(e){return!e.some(r=>r.kind==="separator"&&r.value.trim()===",")}function St(e){let r=e.value.trim();return e.kind==="selector"&&r[0]==="["&&r[r.length-1]==="]"}function ca(e,r){let i=[e],t=r.designSystem,n=t.storage[Nt],l=Et(e);for(let[o,f]of l)if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="arbitrary"){if(o.relative)continue;let u=De(o.selector.trim());if(!xi(u))continue;if(f===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===">"&&u[2].kind==="selector"&&u[2].value==="*"){ce(o,t.parseVariant("*"));continue}if(f===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===""&&u[2].kind==="selector"&&u[2].value==="*"){c
${ie([d])}
Relies on:
${ie([k])}`)}c.add(d);for(let k of l.get(d))for(let h of o.get(k))p.push(d),m(h,p),p.pop();f.add(d),c.delete(d),u.push(d)}}for(let d of n)m(d);for(let d of u)"nodes"in d&&_(d.nodes,p=>{if(p.kind!=="at-rule"||p.name!=="@apply")return;let k=p.params.split(/(\s+)/g),h={},w=0;for(let[x,S]of k.entries())x%2===0&&(h[S]=w),w+=S.length;{let x=Object.keys(h),S=Te(x,r,{respectImportant:!1,onInvalidCandidate:N=>{if(r.theme.prefix&&!N.startsWith(r.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${N}\`. Did you mean \`${r.theme.prefix}:${N}\`?`);if(r.invalidCandidates.has(N))throw new Error(`Cannot apply utility class \`${N}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let P=L(N,":");if(P.length>1){let z=P.pop();if(r.candidatesToCss([z])[0]){let I=r.candidatesToCss(P.map(Y=>`${Y}:[--tw-variant-check:1]`)),M=P.filter((Y,G)=>I[G]===null);if(M.length>0){if(M.length===1)throw new Error(`Cannot apply utility class \`${N}\` because the ${M.map(Y=>`\`${Y}\``)} variant does not exist.`);{let Y=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${N}\` because the ${Y.format(M.map(G=>`\`${G}\``))} variants do not exist.`)}}}}throw r.theme.size===0?new Error(`Cannot apply unknown utility class \`${N}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${N}\``)}}),A=p.src,y=S.astNodes.map(N=>{let P=S.nodeSorting.get(N)?.candidate,z=P?h[P]:void 0;if(N=ee(N),!A||!P||z===void 0)return _([N],M=>{M.src=A}),N;let I=[A[0],A[1],A[2]];return I[1]+=7+z,I[2]=I[1]+P.length,_([N],M=>{M.src=I}),N}),K=[];for(let N of y)if(N.kind==="rule")for(let P of N.nodes)K.push(P);else K.push(N);return V.Replace(K)}});return i}function*Mi(e,r){for(let i of e.params.split(/\s+/g))for(let t of r.parseCandidate(i))switch(t.kind){case"arbitrary":break;case"static":case"functional":yield t.root;break;default:}}async function ur(e,r,i,t=0,n=!1){let l=0,o=[];return _(e,f=>{if(f.kind==="at-rule"&&(f.name==="@import"||f.name==="@reference")){let u=$a(B(f.params));if(u===null)return;f.name==="@reference"&&(u.media="reference"),l|=2;let{uri:c,layer:m,media:d,supports:p}=u;if(c.startsWith("data:")||c.startsWith("http://")||c.startsWith("https://"))return;let k=de({},[]);return o.push((async()=>{if(t>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${c}\` in \`${r}\`)`);let h=await i(c,r),w=Ne(h.content,{from:n?h.path:void 0});await ur(w,h.base,i,t+1,n),k.nodes=Ta(f,[de({base:h.base},w)],m,d,p)})()),V.ReplaceSkip(k)}}),o.length>0&&await Promise.all(o),l}function $a(e){let r,i=null,t=null,n=null;for(let l=0;l<e.length;l++){let o=e[l];if(o.kind!=="separator"){if(o.kind==="word"&&!r){if(!o.value||o.value[0]!=='"'&&o.value[0]!=="'")return null;r=o.value.slice(1,-1);continue}if(o.kind==="function"&&o.value.toLowerCase()==="url"||!r)return null;if((o.kind==="word"||o.kind==="function")&&o.value.toLowerCase()==="layer"){if(i)return null;if(n)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in o?i=H(o.nodes):i="";continue}if(o.kind==="function"&&o.value.toLowerCase()==="supports"){if(n)return null;n=H(o.nodes);continue}t=H(e.slice(l));break}}return r?{uri:r,layer:i,media:t,supports:n}:null}function Ta(e,r,i,t,n){let l=r;if(i!==null){let o=F("@layer",i,l);o.src=e.src,l=[o]}if(t!==null){let o=F("@media",t,l);o.src=e.src,l=[o]}if(n!==null){let o=F("@supports",n[0]==="("?n:`(${n})`,l);o.src=e.src,l=[o]}return l}function Ge(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||Object.getPrototypeOf(r)===null}function at(e,r,i,t=[]){for(let n of r)if(n!=null)for(let l of Reflect.ownKeys(n)){t.push(l);let o=i(e[l],n[l],t);o!==void 0?e[l]=o:!Ge(e[l])||!Ge(n[l])?e[l]=n[l]:e[l]=at({},[e[l],n[l]],i,t),t.pop()}return e}function Rt(e,r,i){return function(n
${ie([x])}
\`@plugin\` options must be a flat list of declarations.`);if(x.value===void 0)continue;let S=x.value,A=L(S,",").map(y=>{if(y=y.trim(),y==="null")return null;if(y==="true")return!0;if(y==="false")return!1;if(Number.isNaN(Number(y))){if(y[0]==='"'&&y[y.length-1]==='"'||y[0]==="'"&&y[y.length-1]==="'")return y.slice(1,-1);if(y[0]==="{"&&y[y.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${ie([x]).trim()}\` is not supported.
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(y);return y});w[x.property]=A.length===1?A[0]:A}return o.push([{id:h,base:k.context.base,reference:!!k.context.reference,src:d.src},Object.keys(w).length>0?w:null]),l|=4,V.Replace([])}if(d.name==="@config"){if(d.nodes.length>0)throw new Error("`@config` cannot have a body.");if(k.parent!==null)throw new Error("`@config` cannot be nested.");return f.push({id:d.params.slice(1,-1),base:k.context.base,reference:!!k.context.reference,src:d.src}),l|=4,V.Replace([])}}),en(e);let u=e.resolveThemeValue;if(e.resolveThemeValue=function(p,k){return p.startsWith("--")?u(p,k):(l|=nn({designSystem:e,base:r,ast:i,sources:n,configs:[],pluginDetails:[]}),e.resolveThemeValue(p,k))},!o.length&&!f.length)return 0;let[c,m]=await Promise.all([Promise.all(f.map(async({id:d,base:p,reference:k,src:h})=>{let w=await t(d,p,"config");return{path:d,base:w.base,config:w.module,reference:k,src:h}})),Promise.all(o.map(async([{id:d,base:p,reference:k,src:h},w])=>{let x=await t(d,p,"plugin");return{path:d,base:x.base,plugin:x.module,options:w,reference:k,src:h}}))]);return l|=nn({designSystem:e,base:r,ast:i,sources:n,configs:c,pluginDetails:m}),l}function nn({designSystem:e,base:r,ast:i,sources:t,configs:n,pluginDetails:l}){let o=0,u=[...l.map(w=>{if(!w.options)return{config:{plugins:[w.plugin]},base:w.base,reference:w.reference,src:w.src};if("__isOptionsFunction"in w.plugin)return{config:{plugins:[w.plugin(w.options)]},base:w.base,reference:w.reference,src:w.src};throw new Error(`The plugin "${w.path}" does not accept options`)}),...n],{resolvedConfig:c}=pr(e,[{config:Qi(e.theme),base:r,reference:!0,src:void 0},...u,{config:{plugins:[Xi]},base:r,reference:!0,src:void 0}]),{resolvedConfig:m,replacedThemeKeys:d}=pr(e,u),p={designSystem:e,ast:i,resolvedConfig:c,featuresRef:{set current(w){o|=w}}},k=cr({...p,referenceMode:!1,src:void 0}),h=e.resolveThemeValue;e.resolveThemeValue=function(x,S){if(x[0]==="-"&&x[1]==="-")return h(x,S);let A=k.theme(x,void 0);if(Array.isArray(A)&&A.length===2)return A[0];if(Array.isArray(A))return A.join(", ");if(typeof A=="object"&&A!==null&&"DEFAULT"in A)return A.DEFAULT;if(typeof A=="string")return A};for(let{handler:w,reference:x,src:S}of c.plugins){let A=cr({...p,referenceMode:x??!1,src:S});w(A)}if(ri(e,m,d),qi(e,m),rn(m,e),tn(m,e),Ji(m,e),!e.theme.prefix&&c.prefix){if(c.prefix.endsWith("-")&&(c.prefix=c.prefix.slice(0,-1),console.warn(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!Da.test(c.prefix))throw new Error(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);e.theme.prefix=c.prefix}if(!e.important&&c.important===!0&&(e.important=!0),typeof c.important=="string"){let w=c.important;_(i,(x,S)=>{if(x.kind!=="at-rule"||x.name!=="@tailwind"||x.params!=="utilities")return;let A=et(S);return A.parent?.kind==="rule"&&A.parent.selector===w?V.Stop:V.ReplaceStop(q(w,[x]))})}for(let w of c.blocklist)e.invalidCandidates.add(w);for(let w of c.content.files){if("raw"in w)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
${JSON.stringify(w,null,2)}
This feature is not currently supported.`);let x=!1;w.pattern[0]=="!"&&(x=!0,w.pattern=w.pattern.slice(1)),t.push({...w,negated:x})}return o}function an({ast:e}){let r=new U(n=>st(n.code)),i=new U(n=>({url:n.file,content:n.code,ignore:!1})),t={file:null,sources:[],mappings:[]};_(e,n=>{if(!n.src||!n.dst)return;let l=i.get(n.src[0]);if(!l.content)return;let o=r.get(n.src[0]),f=r.get(n.dst[0]),u=l.content.slice(n.src[1],n.src[2]),c=0;for(let p of u.split(`
`)){if(p.trim()!==""){let k=o.find(n.src[1]+c),h=f.find(n.dst[1]);t.mappings.push({name:null,originalPosition:{source:l,...k},generatedPosition:h})}c+=p.length,c+=1}let m=o.find(n.src[2]),d=f.find(n.dst[2]);t.mappings.push({name:null,originalPosition:{source:l,...m},generatedPosition:d})});for(let n of r.keys())t.sources.push(i.get(n));return t.mappings.sort((n,l)=>n.generatedPosition.line-l.generatedPosition.line||n.generatedPosition.column-l.generatedPosition.column||(n.originalPosition?.line??0)-(l.originalPosition?.line??0)||(n.originalPosition?.column??0)-(l.originalPosition?.column??0)),t}var ln=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function _t(e){let r=e.indexOf("{");if(r===-1)return[e];let i=[],t=e.slice(0,r),n=e.slice(r),l=0,o=n.lastIndexOf("}");for(let d=0;d<n.length;d++){let p=n[d];if(p==="{")l++;else if(p==="}"&&(l--,l===0)){o=d;break}}if(o===-1)throw new Error(`The pattern \`${e}\` is not balanced.`);let f=n.slice(1,o),u=n.slice(o+1),c;Ua(f)?c=La(f):c=L(f,","),c=c.flatMap(d=>_t(d));let m=_t(u);for(let d of m)for(let p of c)i.push(t+p+d);return i}function Ua(e){return ln.test(e)}function La(e){let r=e.match(ln);if(!r)return[e];let[,i,t,n]=r,l=n?parseInt(n,10):void 0,o=[];if(/^-?\d+$/.test(i)&&/^-?\d+$/.test(t)){let f=parseInt(i,10),u=parseInt(t,10);if(l===void 0&&(l=f<=u?1:-1),l===0)throw new Error("Step cannot be zero in sequence expansion.");let c=f<u;c&&l<0&&(l=-l),!c&&l>0&&(l=-l);for(let m=f;c?m<=u:m>=u;m+=l)o.push(m.toString())}return o}function sn(e,r){let i=new Set,t=new Set,n=[];function l(o,f=[]){if(e.has(o)&&!i.has(o)){t.has(o)&&r.onCircularDependency?.(f,o),t.add(o);for(let u of e.get(o)??[])f.push(o),l(u,f),f.pop();i.add(o),t.delete(o),n.push(o)}}for(let o of e.keys())l(o);return n}var Ka=/^[a-z]+$/,ht=(n=>(n[n.None=0]="None",n[n.AtProperty=1]="AtProperty",n[n.ColorMix=2]="ColorMix",n[n.All=3]="All",n))(ht||{});function za(){throw new Error("No `loadModule` function provided to `compile`")}function Ma(){throw new Error("No `loadStylesheet` function provided to `compile`")}function ja(e){let r=0,i=null;for(let t of L(e," "))t==="reference"?r|=2:t==="inline"?r|=1:t==="default"?r|=4:t==="static"?r|=8:t.startsWith("prefix(")&&t.endsWith(")")&&(i=t.slice(7,-1));return[r,i]}var Pe=(u=>(u[u.None=0]="None",u[u.AtApply=1]="AtApply",u[u.AtImport=2]="AtImport",u[u.JsPluginCompat=4]="JsPluginCompat",u[u.ThemeFunction=8]="ThemeFunction",u[u.Utilities=16]="Utilities",u[u.Variants=32]="Variants",u[u.AtTheme=64]="AtTheme",u))(Pe||{});async function un(e,{base:r="",from:i,loadModule:t=za,loadStylesheet:n=Ma}={}){let l=0;e=[de({base:r},e)],l|=await ur(e,r,n,0,i!==void 0);let o=null,f=new mt,u=new Map,c=new Map,m=[],d=null,p=null,k=[],h=[],w=[],x=[],S=null;_(e,(y,K)=>{if(y.kind!=="at-rule")return;let N=et(K);if(y.name==="@tailwind"&&(y.params==="utilities"||y.params.startsWith("utilities"))){if(p!==null)return V.Replace([]);if(N.context.reference)return V.Replace([]);let P=L(y.params," ");for(let z of P)if(z.startsWith("source(")){let I=z.slice(7,-1);if(I==="none"){S=I;continue}if(I[0]==='"'&&I[I.length-1]!=='"'||I[0]==="'"&&I[I.length-1]!=="'"||I[0]!=="'"&&I[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");S={base:N.context.sourceBase??N.context.base,pattern:I.slice(1,-1)}}p=y,l|=16}if(y.name==="@utility"){if(N.parent!==null)throw new Error("`@utility` cannot be nested.");if(y.nodes.length===0)throw new Error(`\`@utility ${y.params}\` is empty. Utilities should include at least one property.`);let P=Jr(y);if(P===null){if(!y.params.endsWith("-*")){if(y.params.endsWith("*"))throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(y.params.includes("*"))throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}m.push(P)}if(y.name==="@source"){if(y.nodes.length>0)throw new Error("`@source` cannot have a body.")
`).map((Y,G,ae)=>`${G===0||G>=ae.length-2?" ":">"} ${Y}`).join(`
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
${M}`)}),d?V.ReplaceSkip([]):(d=q(":root, :host",[]),d.src=y.src,V.ReplaceSkip(d))}});let A=Ui(f,p?.src);if(o&&(A.important=o),x.length>0)for(let y of x)A.invalidCandidates.add(y);l|=await on({designSystem:A,base:r,ast:e,loadModule:t,sources:h});for(let y of u.keys())A.variants.static(y,()=>{});for(let y of sn(c,{onCircularDependency(K,N){let P=ie(K.map((z,I)=>F("@custom-variant",z,[F("@variant",K[I+1]??N,[])]))).replaceAll(";"," { \u2026 }").replace(`@custom-variant ${N} {`,`@custom-variant ${N} { /* \u2190 */`);throw new Error(`Circular dependency detected in custom variants:
${P}`)}}))u.get(y)?.(A);for(let y of m)y(A);if(d){let y=[];for(let[N,P]of A.theme.entries()){if(P.options&2)continue;let z=a(xe(N),P.value);z.src=P.src,y.push(z)}let K=A.theme.getKeyframes();for(let N of K)e.push(de({theme:!0},[W([N])]));d.nodes=[de({theme:!0},y)]}if(l|=ot(e,A),l|=Fe(e,A),l|=$e(e,A),p){let y=p;y.kind="context",y.context={}}return _(e,y=>{if(y.kind==="at-rule")return y.name==="@utility"?V.Replace([]):V.Skip}),{designSystem:A,ast:e,sources:h,root:S,utilitiesNode:p,features:l,inlineCandidates:w}}async function cn(e,r={}){let{designSystem:i,ast:t,sources:n,root:l,utilitiesNode:o,features:f,inlineCandidates:u}=await un(e,r);t.unshift(dt(`! tailwindcss v${dr} | MIT License | https://tailwindcss.com `));function c(h){i.invalidCandidates.add(h)}let m=new Set,d=null,p=0,k=!1;for(let h of u)i.invalidCandidates.has(h)||(m.add(h),k=!0);return{sources:n,root:l,features:f,build(h){if(f===0)return e;if(!o)return d??=Re(t,i,r.polyfills),d;let w=k,x=!1;k=!1;let S=m.size;for(let y of h)if(!i.invalidCandidates.has(y))if(y[0]==="-"&&y[1]==="-"){let K=i.theme.markUsedVariable(y);w||=K,x||=K}else m.add(y),w||=m.size!==S;if(!w)return d??=Re(t,i,r.polyfills),d;let A=Te(m,i,{onInvalidCandidate:c}).astNodes;return r.from&&_(A,y=>{y.src??=o.src}),!x&&p===A.length?(d??=Re(t,i,r.polyfills),d):(p=A.length,o.nodes=A,d=Re(t,i,r.polyfills),d)}}}async function Fa(e,r={}){let i=Ne(e,{from:r.from}),t=await cn(i,r),n=i,l=e;return{...t,build(o){let f=t.build(o);return f===n||(l=ie(f,!!r.from),n=f),l},buildSourceMap(){return an({ast:n})}}}async function Wa(e,r={}){return(await un(Ne(e,{from:r.from}),r)).designSystem}function lt(){throw new Error("It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.")}for(let e in It)e!=="default"&&(lt[e]=It[e]);module.exports=lt;