tailwindcss
Version:
A utility-first CSS framework for rapidly building custom user interfaces.
10 lines • 282 kB
JavaScript
"use strict";var $n=Object.defineProperty;var Vn=(e,i)=>{for(var r in i)$n(e,r,{get:i[r],enumerable:!0})};var jt={};Vn(jt,{Features:()=>De,Polyfills:()=>wt,__unstable__loadDesignSystem:()=>wa,compile:()=>ba,compileAst:()=>Sn,default:()=>ft});var Cr="4.3.2";function pt(e){let i=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&i.push(n+1);function r(n){let s=0,o=i.length;for(;o>0;){let u=(o|0)>>1,f=s+u;i[f]<=n?(s=f+1,o=o-u-1):o=u}s-=1;let c=n-i[s];return{line:s+1,column:c}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),i.length-1);let o=i[n],c=i[n+1]??o;return Math.min(Math.max(o+s,0),c)}return{find:r,findOffset:t}}var Qe=92,dt=47,mt=42,Sr=34,$r=39,Nn=58,gt=59,me=10,ht=13,Je=32,Xe=9,Vr=123,Wt=125,qt=40,Tr=41,En=91,Rn=93,Nr=45,Bt=64,On=33,ge=class e extends Error{loc;constructor(i,r){if(r){let t=r[0],n=pt(t.code).find(r[1]);i=`${t.file}:${n.line}:${n.column+1}: ${i}`}super(i),this.name="CssSyntaxError",this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Pe(e,i){let r=i?.from?{file:i.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],o=null,c=null,u="",f="",d=0,m;for(let p=0;p<e.length;p++){let h=e.charCodeAt(p);if(!(h===ht&&(m=e.charCodeAt(p+1),m===me)))if(h===Qe)u===""&&(d=p),u+=e.slice(p,p+2),p+=1;else if(h===dt&&e.charCodeAt(p+1)===mt){let v=p;for(let y=p+2;y<e.length;y++)if(m=e.charCodeAt(y),m===Qe)y+=1;else if(m===mt&&e.charCodeAt(y+1)===dt){p=y+1;break}let b=e.slice(v,p+1);if(b.charCodeAt(2)===On){let y=vt(b.slice(2,-2));n.push(y),r&&(y.src=[r,v,p+1],y.dst=[r,v,p+1])}}else if(h===$r||h===Sr){let v=Er(e,p,h,r);u+=e.slice(p,v+1),p=v}else{if((h===Je||h===me||h===Xe)&&(m=e.charCodeAt(p+1))&&(m===Je||m===me||m===Xe||m===ht&&(m=e.charCodeAt(p+2))&&m==me))continue;if(h===me){if(u.length===0)continue;m=u.charCodeAt(u.length-1),m!==Je&&m!==me&&m!==Xe&&(u+=" ")}else if(h===Nr&&e.charCodeAt(p+1)===Nr&&u.length===0){let v="",b=p,y=-1;for(let A=p+2;A<e.length;A++)if(m=e.charCodeAt(A),m===Qe)A+=1;else if(m===$r||m===Sr)A=Er(e,A,m,r);else if(m===dt&&e.charCodeAt(A+1)===mt){for(let w=A+2;w<e.length;w++)if(m=e.charCodeAt(w),m===Qe)w+=1;else if(m===mt&&e.charCodeAt(w+1)===dt){A=w+1;break}}else if(y===-1&&m===Nn)y=u.length+A-b;else if(m===gt&&v.length===0){u+=e.slice(b,A),p=A;break}else if(m===qt)v+=")";else if(m===En)v+="]";else if(m===Vr)v+="}";else if((m===Wt||e.length-1===A)&&v.length===0){p=A-1,u+=e.slice(b,A);break}else(m===Tr||m===Rn||m===Wt)&&v.length>0&&e[A]===v[v.length-1]&&(v=v.slice(0,-1));let N=Yt(u,y);if(!N)throw new ge("Invalid custom property, expected a value",r?[r,b,p]:null);r&&(N.src=[r,b,p],N.dst=[r,b,p]),o?o.nodes.push(N):t.push(N),u=""}else if(h===gt&&u.charCodeAt(0)===Bt)c=et(u),r&&(c.src=[r,d,p],c.dst=[r,d,p]),o?o.nodes.push(c):t.push(c),u="",c=null;else if(h===gt&&f[f.length-1]!==")"){let v=Yt(u);if(!v){if(u.length===0)continue;throw new ge(`Invalid declaration: \`${u.trim()}\``,r?[r,d,p]:null)}r&&(v.src=[r,d,p],v.dst=[r,d,p]),o?o.nodes.push(v):t.push(v),u=""}else if(h===Vr&&f[f.length-1]!==")")f+="}",c=Z(u.trim()),r&&(c.src=[r,d,p],c.dst=[r,d,p]),o&&o.nodes.push(c),s.push(o),o=c,u="",c=null;else if(h===Wt&&f[f.length-1]!==")"){if(f==="")throw new ge("Missing opening {",r?[r,p,p]:null);if(f=f.slice(0,-1),u.length>0)if(u.charCodeAt(0)===Bt)c=et(u),r&&(c.src=[r,d,p],c.dst=[r,d,p]),o?o.nodes.push(c):t.push(c),u="",c=null;else{let b=u.indexOf(":");if(o){let y=Yt(u,b);if(!y)throw new ge(`Invalid declaration: \`${u.trim()}\``,r?[r,d,p]:null);r&&(y.src=[r,d,p],y.dst=[r,d,p]),o.nodes.push(y)}}let v=s.pop()??null;v===null&&o&&t.push(o),o=v,u="",c=null}else if(h===qt)f+=")",u+="(";else if(h===Tr){if(f[f.length-1]!==")")throw new ge("Missing opening (",r?[r,p,p]:null);f=f.slice(0,-1),u+=")"}else{if(u.length===0&&(h===Je||h===me||h===Xe))continue;u===""&&(d=p),u+=String.fromCharCode(h)}}}if(u.charCodeAt(0)===Bt){let p=et(u);r&&(p.src=[r,d,e.length],p.dst=[r,d,e.length]),t.push(p)}if(f.length>0&&o){if(o.kind==="rule")throw new ge(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind==="at-rule")throw new ge(`Missing closing } at ${o.name} ${o.params}`,o.src?[o.src[0],o.src[1],o.src[1]]:null)}return n.length>0?n.concat(t):t}function et(e,i=[]){let r=e,t="";for(let n=5;n<e.length;n++){let s=e.charCodeAt(n);if(s===Je||s===Xe||s===qt){r=e.slice(0,n),t=e.slice(n);break}}return B(r.trim(),t.trim(),i)}function Yt(e,i=e.indexOf(":")){if(i===-1)return null;let r=e.indexOf("!important",i+1);return l(e.slice(0,i).trim(),e.slice(i+1,r===-1?e.length:r).trim(),r!==-1)}function Er(e,i,r,t=null){let n;for(let s=i+1;s<e.length;s++)if(n=e.charCodeAt(s),n===Qe)s+=1;else{if(n===r)return s;if(n===gt&&(e.charCodeAt(s+1)===me||e.charCodeAt(s+1)===ht&&e.charCodeAt(s+2)===me))throw new ge(`Unterminated string: ${e.slice(i,s+1)+String.fromCharCode(r)}`,t?[t,i,s+1]:null);if(n===me||n===ht&&e.charCodeAt(s+1)===me)throw new ge(`Unterminated string: ${e.slice(i,s)+String.fromCharCode(r)}`,t?[t,i,s+1]:null)}return i}function $e(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let i=String(e),r=i.length,t=-1,n,s="",o=i.charCodeAt(0);if(r===1&&o===45)return"\\"+i;for(;++t<r;){if(n=i.charCodeAt(t),n===0){s+="\uFFFD";continue}if(n>=1&&n<=31||n===127||t===0&&n>=48&&n<=57||t===1&&n>=48&&n<=57&&o===45){s+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=i.charAt(t);continue}s+="\\"+i.charAt(t)}return s}function ye(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,i=>{if(i.length<=2)return i[1];let r=Number.parseInt(i.slice(1).trim(),16);return r===0||r>1114111||r>=55296&&r<=57343?"\uFFFD":String.fromCodePoint(r)})}var Or=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 Rr(e,i){return(Or.get(i)??[]).some(r=>e===r||e.startsWith(`${r}-`))}var kt=class{constructor(i=new Map,r=new Set([])){this.values=i;this.keyframes=r}values;keyframes;prefix=null;get size(){return this.values.size}add(i,r,t=0,n){if(i.endsWith("-*")){if(r!=="initial")throw new Error(`Invalid theme value \`${r}\` for namespace \`${i}\``);i==="--*"?this.values.clear():this.clearNamespace(i.slice(0,-2),0)}if(t&4){let s=this.values.get(i);if(s&&!(s.options&4))return}r==="initial"?this.values.delete(i):this.values.set(i,{value:r,options:t,src:n})}keysInNamespaces(i){let r=[];for(let t of i){let n=`${t}-`;for(let s of this.values.keys())s.startsWith(n)&&s.indexOf("--",2)===-1&&(Rr(s,t)||r.push(s.slice(n.length)))}return r}get(i){for(let r of i){let t=this.values.get(r);if(t)return t.value}return null}hasDefault(i){return(this.getOptions(i)&4)===4}getOptions(i){return i=ye(this.#r(i)),this.values.get(i)?.options??0}entries(){return this.prefix?Array.from(this.values,i=>(i[0]=this.prefixKey(i[0]),i)):this.values.entries()}prefixKey(i){return this.prefix?`--${this.prefix}-${i.slice(2)}`:i}#r(i){return this.prefix?`--${i.slice(3+this.prefix.length)}`:i}clearNamespace(i,r){let t=Or.get(i)??[];e:for(let n of this.values.keys())if(n.startsWith(i)){if(r!==0&&(this.getOptions(n)&r)!==r)continue;for(let s of t)if(n.startsWith(s))continue e;this.values.delete(n)}}#e(i,r){for(let t of r){let n=i!==null?`${t}-${i}`:t;if(!this.values.has(n))if(i!==null&&i.includes(".")){if(n=`${t}-${i.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!Rr(n,t))return n}return null}#t(i){let r=this.values.get(i);if(!r)return null;let t=null;return r.options&2&&(t=r.value),`var(${$e(this.prefixKey(i))}${t?`, ${t}`:""})`}markUsedVariable(i){let r=ye(this.#r(i)),t=this.values.get(r);if(!t)return!1;let n=t.options&16;return t.options|=16,!n}resolve(i,r,t=0){let n=this.#e(i,r);if(!n)return null;let s=this.values.get(n);return(t|s.options)&1?s.value:this.#t(n)}resolveValue(i,r){let t=this.#e(i,r);return t?this.values.get(t).value:null}resolveWith(i,r,t=[]){let n=this.#e(i,r);if(!n)return null;let s={};for(let c of t){let u=`${n}${c}`,f=this.values.get(u);f&&(f.options&1?s[c]=f.value:s[c]=this.#t(u))}let o=this.values.get(n);return o.options&1?[o.value,s]:[this.#t(n),s]}namespace(i){let r=new Map,t=`${i}-`;for(let[n,s]of this.values)n===i?r.set(null,s.value):n.startsWith(`${t}-`)?r.set(n.slice(i.length),s.value):n.startsWith(t)&&r.set(n.slice(t.length),s.value);return r}addKeyframes(i){this.keyframes.add(i)}getKeyframes(){return Array.from(this.keyframes)}};var L=class extends Map{constructor(r){super();this.factory=r}factory;get(r){let t=super.get(r);return t===void 0&&(t=this.factory(r,this),this.set(r,t)),t}};function ne(e){return{kind:"word",value:e}}function Pn(e,i){return{kind:"function",value:e,nodes:i}}function _n(e){return{kind:"separator",value:e}}function F(e){let i="";for(let r of e)switch(r.kind){case"word":case"separator":{i+=r.value;break}case"function":i+=r.value+"("+F(r.nodes)+")"}return i}var Pr=92,In=41,_r=58,Ir=44,Dn=34,Dr=61,Ur=62,Lr=60,Kr=10,Un=40,Ln=39,Kn=47,zr=32,Mr=9;function j(e){e=e.replaceAll(`\r
`,`
`);let i=[],r=[],t=null,n="",s;for(let o=0;o<e.length;o++){let c=e.charCodeAt(o);switch(c){case Pr:{n+=e[o]+e[o+1],o++;break}case Kn:{if(n.length>0){let f=ne(n);t?t.nodes.push(f):i.push(f),n=""}let u=ne(e[o]);t?t.nodes.push(u):i.push(u);break}case _r:case Ir:case Dr:case Ur:case Lr:case Kr:case zr:case Mr:{if(n.length>0){let m=ne(n);t?t.nodes.push(m):i.push(m),n=""}let u=o,f=o+1;for(;f<e.length&&(s=e.charCodeAt(f),!(s!==_r&&s!==Ir&&s!==Dr&&s!==Ur&&s!==Lr&&s!==Kr&&s!==zr&&s!==Mr));f++);o=f-1;let d=_n(e.slice(u,f));t?t.nodes.push(d):i.push(d);break}case Ln:case Dn:{let u=o;for(let f=o+1;f<e.length;f++)if(s=e.charCodeAt(f),s===Pr)f+=1;else if(s===c){o=f;break}n+=e.slice(u,o+1);break}case Un:{let u=Pn(n,[]);n="",t?t.nodes.push(u):i.push(u),r.push(u),t=u;break}case In:{let u=r.pop();if(n.length>0){let f=ne(n);u?.nodes.push(f),n=""}r.length>0?t=r[r.length-1]:t=null;break}default:n+=String.fromCharCode(c)}}return n.length>0&&i.push(ne(n)),i}var Ht=(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))(Ht||{}),S={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 I(e,i){typeof i=="function"?jr(e,i):jr(e,i.enter,i.exit)}function jr(e,i=()=>S.Continue,r=()=>S.Continue){let t={value:[e,0,null],prev:null},n={parent:null,depth:0,index:0,siblings:e,path(){let s=[],o=t;for(;o;){let c=o.value[2];c&&s.push(c),o=o.prev}return s.reverse(),s}};for(;t!==null;){let s=t.value,o=s[0],c=s[1],u=s[2];if(c>=o.length){t=t.prev,n.depth-=1;continue}if(n.parent=u,n.siblings=o,c>=0){n.index=c;let p=o[c],h=i(p,n)??S.Continue;switch(h.kind){case 0:{p.nodes&&p.nodes.length>0&&(n.depth+=1,t={value:[p.nodes,0,p],prev:t}),s[1]=~c;continue}case 2:return;case 1:{s[1]=~c;continue}case 3:{o.splice(c,1,...h.nodes);continue}case 5:{o.splice(c,1,...h.nodes);return}case 4:{o.splice(c,1,...h.nodes),s[1]+=h.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Ht[h.kind]??`Unknown(${h.kind})`}\` in enter.`)}}let f=~c;n.index=f;let d=o[f],m=r(d,n)??S.Continue;switch(m.kind){case 0:s[1]=f+1;continue;case 2:return;case 3:{o.splice(f,1,...m.nodes),s[1]=f+m.nodes.length;continue}case 5:{o.splice(f,1,...m.nodes);return}case 4:{o.splice(f,1,...m.nodes),s[1]=f+m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Ht[m.kind]??`Unknown(${m.kind})`}\` in exit.`)}}}function bt(e){let i=[];return I(j(e),r=>{if(!(r.kind!=="function"||r.value!=="var"))return I(r.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||i.push(t.value)}),S.Skip}),i}var zn=64;function H(e,i=[]){return{kind:"rule",selector:e,nodes:i}}function B(e,i="",r=[]){return{kind:"at-rule",name:e,params:i,nodes:r}}function Z(e,i=[]){return e.charCodeAt(0)===zn?et(e,i):H(e,i)}function l(e,i,r=!1){return{kind:"declaration",property:e,value:i,important:r}}function vt(e){return{kind:"comment",value:e}}function ke(e,i){return{kind:"context",context:e,nodes:i}}function Y(e){return{kind:"at-root",nodes:e}}function re(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function rt(e){return{depth:e.depth,index:e.index,siblings:e.siblings,get context(){let i={};for(let r of e.path())r.kind==="context"&&Object.assign(i,r.context);return Object.defineProperty(this,"context",{value:i}),i},get parent(){let i=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:i}),i},path(){return e.path().filter(i=>i.kind!=="context")}}}function _e(e,i,r=3){let t=[],n=new Set,s=new L(()=>new Set),o=new L(()=>new Set),c=new Set,u=new Set,f=[],d=[],m=new L(()=>new Set);function p(v,b,y={},N=0){if(v.kind==="declaration"){if(v.property==="--tw-sort"||v.value===void 0||v.value===null)return;if(y.theme&&v.property[0]==="-"&&v.property[1]==="-"){if(v.value==="initial"){v.value=void 0;return}y.keyframes||s.get(b).add(v)}if(v.value.includes("var("))if(y.theme&&v.property[0]==="-"&&v.property[1]==="-")for(let A of bt(v.value))m.get(A).add(v.property);else i.trackUsedVariables(v.value);if(v.property==="animation")for(let A of Fr(v.value))u.add(A);r&2&&v.value.includes("color-mix(")&&!y.supportsColorMix&&!y.keyframes&&o.get(b).add(v),b.push(v)}else if(v.kind==="rule"){let A=[];for(let _ of v.nodes)p(_,A,y,N+1);let w={},D=new Set;for(let _ of A){if(_.kind!=="declaration")continue;let P=`${_.property}:${_.value}:${_.important}`;w[P]??=[],w[P].push(_)}for(let _ in w)for(let P=0;P<w[_].length-1;++P)D.add(w[_][P]);if(D.size>0&&(A=A.filter(_=>!D.has(_))),A.length===0)return;v.selector==="&"?b.push(...A):b.push({...v,nodes:A})}else if(v.kind==="at-rule"&&v.name==="@property"&&N===0){if(n.has(v.params))return;if(r&1){let w=v.params,D=null,_=!1;for(let K of v.nodes)K.kind==="declaration"&&(K.property==="initial-value"?D=K.value:K.property==="inherits"&&(_=K.value==="true"));let P=l(w,D??"initial");P.src=v.src,_?f.push(P):d.push(P)}n.add(v.params);let A={...v,nodes:[]};for(let w of v.nodes)p(w,A.nodes,y,N+1);b.push(A)}else if(v.kind==="at-rule"){v.name==="@keyframes"?y={...y,keyframes:!0}:v.name==="@supports"&&v.params.includes("color-mix(")&&(y={...y,supportsColorMix:!0});let A={...v,nodes:[]};for(let w of v.nodes)p(w,A.nodes,y,N+1);v.name==="@keyframes"&&y.theme&&c.add(A),(A.nodes.length>0||A.name==="@layer"||A.name==="@charset"||A.name==="@custom-media"||A.name==="@namespace"||A.name==="@import"||A.name==="@apply")&&b.push(A)}else if(v.kind==="at-root")for(let A of v.nodes){let w=[];p(A,w,y,0);for(let D of w)t.push(D)}else if(v.kind==="context"){if(v.context.reference)return;for(let A of v.nodes)p(A,b,{...y,...v.context},N)}else v.kind==="comment"&&b.push(v)}let h=[];for(let v of e)p(v,h,{},0);e:for(let[v,b]of s)for(let y of b){if(Wr(y.property,i.theme,m)){if(y.property.startsWith(i.theme.prefixKey("--animate-")))for(let w of Fr(y.value))u.add(w);continue}let A=v.indexOf(y);if(v.splice(A,1),v.length===0){let w=Mn(h,D=>D.kind==="rule"&&D.nodes===v);if(!w||w.length===0)continue e;w.unshift({kind:"at-root",nodes:h});do{let D=w.pop();if(!D)break;let _=w[w.length-1];if(!_||_.kind!=="at-root"&&_.kind!=="at-rule")break;let P=_.nodes.indexOf(D);if(P===-1)break;_.nodes.splice(P,1)}while(!0);continue e}}for(let v of c)if(!u.has(v.params)){let b=t.indexOf(v);t.splice(b,1)}if(h=h.concat(t),r&2)for(let[v,b]of o)for(let y of b){let N=v.indexOf(y);if(N===-1||y.value==null)continue;let A=j(y.value),w=!1;if(I(A,P=>{if(P.kind!=="function"||P.value!=="color-mix")return;let K=!1,E=!1;if(I(P.nodes,M=>{if(M.kind=="word"&&M.value.toLowerCase()==="currentcolor"){E=!0,w=!0;return}let G=M,q=null,ee=new Set;do{if(G.kind!=="function"||G.value!=="var")return;let ie=G.nodes[0];if(!ie||ie.kind!=="word")return;let a=ie.value;if(ee.has(a)){K=!0;return}if(ee.add(a),w=!0,q=i.theme.resolveValue(null,[ie.value]),!q){K=!0;return}if(q.toLowerCase()==="currentcolor"){E=!0;return}q.startsWith("var(")?G=j(q)[0]:G=null}while(G);return S.Replace({kind:"word",value:q})}),K||E){let M=P.nodes.findIndex(q=>q.kind==="separator"&&q.value.trim().includes(","));if(M===-1)return;let G=P.nodes.length>M?P.nodes[M+1]:null;return G?S.Replace(G):void 0}else if(w){let M=P.nodes[2];M.kind==="word"&&(M.value==="oklab"||M.value==="oklch"||M.value==="lab"||M.value==="lch")&&(M.value="srgb")}}),!w)continue;let D={...y,value:F(A)},_=Z("@supports (color: color-mix(in lab, red, red))",[y]);_.src=y.src,v.splice(N,1,D,_)}if(r&1){let v=[];if(f.length>0){let b=Z(":root, :host",f);b.src=f[0].src,v.push(b)}if(d.length>0){let b=Z("*, ::before, ::after, ::backdrop",d);b.src=d[0].src,v.push(b)}if(v.length>0){let b=h.findIndex(A=>!(A.kind==="comment"||A.kind==="at-rule"&&(A.name==="@charset"||A.name==="@import"))),y=B("@layer","properties",[]);y.src=v[0].src,h.splice(b<0?h.length:b,0,y);let N=Z("@layer properties",[B("@supports","((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",v)]);N.src=v[0].src,N.nodes[0].src=v[0].src,h.push(N)}}return h}function se(e,i){let r=0,t={file:null,code:""};function n(o,c=0){let u="",f=" ".repeat(c);if(o.kind==="declaration"){if(u+=`${f}${o.property}: ${o.value}${o.important?" !important":""};
`,i){r+=f.length;let d=r;r+=o.property.length,r+=2,r+=o.value?.length??0,o.important&&(r+=11);let m=r;r+=2,o.dst=[t,d,m]}}else if(o.kind==="rule"){if(u+=`${f}${o.selector} {
`,i){r+=f.length;let d=r;r+=o.selector.length,r+=1;let m=r;o.dst=[t,d,m],r+=2}for(let d of o.nodes)u+=n(d,c+1);u+=`${f}}
`,i&&(r+=f.length,r+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let d=`${f}${o.name} ${o.params};
`;if(i){r+=f.length;let m=r;r+=o.name.length,r+=1,r+=o.params.length;let p=r;r+=2,o.dst=[t,m,p]}return d}if(u+=`${f}${o.name}${o.params?` ${o.params} `:" "}{
`,i){r+=f.length;let d=r;r+=o.name.length,o.params&&(r+=1,r+=o.params.length),r+=1;let m=r;o.dst=[t,d,m],r+=2}for(let d of o.nodes)u+=n(d,c+1);u+=`${f}}
`,i&&(r+=f.length,r+=2)}else if(o.kind==="comment"){if(u+=`${f}/*${o.value}*/
`,i){r+=f.length;let d=r;r+=2+o.value.length+2;let m=r;o.dst=[t,d,m],r+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return u}let s="";for(let o of e)s+=n(o,0);return t.code=s,s}function Mn(e,i){let r=[];return I(e,(t,n)=>{if(i(t))return r=n.path(),r.push(t),S.Stop}),r}function Wr(e,i,r,t=new Set){if(t.has(e)||(t.add(e),i.getOptions(e)&24))return!0;{let s=r.get(e)??[];for(let o of s)if(Wr(o,i,r,t))return!0}return!1}function Fr(e){return e.split(/[\s,]+/)}var Zt=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function it(e){return e.indexOf("(")!==-1&&Zt.some(i=>e.includes(`${i}(`))}function yt(e){if(!Zt.some(s=>e.includes(s)))return e;let i="",r=[],t=null,n=null;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);if(o>=48&&o<=57||t!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?t=s:(n=t,t=null),o===40){i+=e[s];let c=s;for(let f=s-1;f>=0;f--){let d=e.charCodeAt(f);if(d>=48&&d<=57)c=f;else if(d>=97&&d<=122)c=f;else break}let u=e.slice(c,s);if(Zt.includes(u)){r.unshift(!0);continue}else if(r[0]&&u===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(o===41)i+=e[s],r.shift();else if(o===44&&r[0]){i+=", ";continue}else{if(o===32&&r[0]&&i.charCodeAt(i.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&r[0]){let c=i.trimEnd(),u=c.charCodeAt(c.length-1),f=c.charCodeAt(c.length-2),d=e.charCodeAt(s+1);if((u===101||u===69)&&f>=48&&f<=57){i+=e[s];continue}else if(u===43||u===42||u===47||u===45){i+=e[s];continue}else if(u===40||u===44){i+=e[s];continue}else e.charCodeAt(s-1)===32?i+=`${e[s]} `:u>=48&&u<=57||d>=48&&d<=57||u===41||d===40||d===43||d===42||d===47||d===45||n!==null&&n===s-1?i+=` ${e[s]} `:i+=e[s]}else i+=e[s]}}return i}function Ve(e){if(e.indexOf("(")===-1)return je(e);let i=j(e);return Qt(i),e=F(i),e=yt(e),e}function je(e,i=!1){let r="";for(let t=0;t<e.length;t++){let n=e[t];n==="\\"&&e[t+1]==="_"?(r+="_",t+=1):n==="_"&&!i?r+=" ":r+=n}return r}function Qt(e){for(let i of e)switch(i.kind){case"function":{if(i.value==="url"||i.value.endsWith("_url")){i.value=je(i.value);break}if(i.value==="var"||i.value.endsWith("_var")||i.value==="theme"||i.value.endsWith("_theme")){i.value=je(i.value);for(let r=0;r<i.nodes.length;r++){if(r==0&&i.nodes[r].kind==="word"){i.nodes[r].value=je(i.nodes[r].value,!0);continue}Qt([i.nodes[r]])}break}i.value=je(i.value),Qt(i.nodes);break}case"separator":case"word":{i.value=je(i.value);break}default:jn(i)}}function jn(e){throw new Error(`Unexpected value: ${e}`)}var Jt=new Uint8Array(256);function xe(e){let i=0,r=e.length;for(let t=0;t<r;t++){let n=e.charCodeAt(t);switch(n){case 92:t+=1;break;case 39:case 34:for(;++t<r;){let s=e.charCodeAt(t);if(s===92){t+=1;continue}if(s===n)break}break;case 40:Jt[i]=41,i++;break;case 91:Jt[i]=93,i++;break;case 123:break;case 93:case 125:case 41:if(i===0)return!1;i>0&&n===Jt[i-1]&&i--;break;case 59:if(i===0)return!1;break}}return!0}var xt=new Uint8Array(256);function z(e,i){let r=0,t=[],n=0,s=e.length,o=i.charCodeAt(0);for(let c=0;c<s;c++){let u=e.charCodeAt(c);if(r===0&&u===o){t.push(e.slice(n,c)),n=c+1;continue}switch(u){case 92:c+=1;break;case 39:case 34:for(;++c<s;){let f=e.charCodeAt(c);if(f===92){c+=1;continue}if(f===u)break}break;case 40:xt[r]=41,r++;break;case 91:xt[r]=93,r++;break;case 123:xt[r]=125,r++;break;case 93:case 125:case 41:r>0&&u===xt[r-1]&&r--;break}}return t.push(e.slice(n)),t}var Fn=58,Br=45,Yr=97,qr=122,tr=/^[a-zA-Z0-9_.%-]+$/;function We(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(Fe),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Fe),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Fe),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Fe(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:Fe(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*Gr(e,i){let r=z(e,":");if(i.theme.prefix){if(r.length===1||r[0]!==i.theme.prefix)return null;r.shift()}let t=r.pop(),n=[];for(let m=r.length-1;m>=0;--m){let p=i.parseVariant(r[m]);if(p===null)return;n.push(p)}let s=!1;t[t.length-1]==="!"?(s=!0,t=t.slice(0,-1)):t[0]==="!"&&(s=!0,t=t.slice(1)),i.utilities.has(t,"static")&&!t.includes("[")&&(yield{kind:"static",root:t,variants:n,important:s,raw:e});let[o,c=null,u]=z(t,"/");if(u)return;let f=c===null?null:Xt(c);if(c!==null&&f===null)return;if(o[0]==="["){if(o[o.length-1]!=="]")return;let m=o.charCodeAt(1);if(m!==Br&&!(m>=Yr&&m<=qr))return;o=o.slice(1,-1);let p=o.indexOf(":");if(p===-1||p===0||p===o.length-1)return;let h=o.slice(0,p),v=Ve(o.slice(p+1));if(!xe(v))return;yield{kind:"arbitrary",property:h,value:v,modifier:f,variants:n,important:s,raw:e};return}let d;if(o[o.length-1]==="]"){let m=o.indexOf("-[");if(m===-1)return;let p=o.slice(0,m);if(!i.utilities.has(p,"functional"))return;let h=o.slice(m+1);d=[[p,h]]}else if(o[o.length-1]===")"){let m=o.indexOf("-(");if(m===-1)return;let p=o.slice(0,m);if(!i.utilities.has(p,"functional"))return;let h=o.slice(m+2,-1),v=z(h,":"),b=null;if(v.length===2&&(b=v[0],h=v[1]),h[0]!=="-"||h[1]!=="-"||!xe(h))return;d=[[p,b===null?`[var(${h})]`:`[${b}:var(${h})]`]]}else d=Zr(o,m=>i.utilities.has(m,"functional"));for(let[m,p]of d){let h={kind:"functional",root:m,modifier:f,value:null,variants:n,important:s,raw:e};if(p===null){yield h;continue}{let v=p.indexOf("[");if(v!==-1){if(p[p.length-1]!=="]")return;let y=Ve(p.slice(v+1,-1));if(!xe(y))continue;let N=null;for(let A=0;A<y.length;A++){let w=y.charCodeAt(A);if(w===Fn){N=y.slice(0,A),y=y.slice(A+1);break}if(!(w===Br||w>=Yr&&w<=qr))break}if(y.length===0||y.trim().length===0||N==="")continue;h.value={kind:"arbitrary",dataType:N||null,value:y}}else{let y=c===null||h.modifier?.kind==="arbitrary"?null:`${p}/${c}`;if(!tr.test(p))continue;h.value={kind:"named",value:p,fraction:y}}}yield h}}function Xt(e){if(e[0]==="["&&e[e.length-1]==="]"){let i=Ve(e.slice(1,-1));return!xe(i)||i.length===0||i.trim().length===0?null:{kind:"arbitrary",value:i}}return e[0]==="("&&e[e.length-1]===")"?(e=e.slice(1,-1),e[0]!=="-"||e[1]!=="-"||!xe(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:Ve(e)})):tr.test(e)?{kind:"named",value:e}:null}function Hr(e,i){if(e[0]==="["&&e[e.length-1]==="]"){if(e[1]==="@"&&e.includes("&"))return null;let r=Ve(e.slice(1,-1));if(!xe(r)||r.length===0||r.trim().length===0)return null;let t=r[0]===">"||r[0]==="+"||r[0]==="~";return!t&&r[0]!=="@"&&!r.includes("&")&&(r=`&:is(${r})`),{kind:"arbitrary",selector:r,relative:t}}{let[r,t=null,n]=z(e,"/");if(n)return null;let s=Zr(r,o=>i.variants.has(o));for(let[o,c]of s)switch(i.variants.kind(o)){case"static":return c!==null||t!==null?null:{kind:"static",root:o};case"functional":{let u=t===null?null:Xt(t);if(t!==null&&u===null)return null;if(c===null)return{kind:"functional",root:o,modifier:u,value:null};if(c[c.length-1]==="]"){if(c[0]!=="[")continue;let f=Ve(c.slice(1,-1));return!xe(f)||f.length===0||f.trim().length===0?null:{kind:"functional",root:o,modifier:u,value:{kind:"arbitrary",value:f}}}if(c[c.length-1]===")"){if(c[0]!=="(")continue;let f=Ve(c.slice(1,-1));return!xe(f)||f.length===0||f.trim().length===0||f[0]!=="-"||f[1]!=="-"?null:{kind:"functional",root:o,modifier:u,value:{kind:"arbitrary",value:`var(${f})`}}}if(!tr.test(c))continue;return{kind:"functional",root:o,modifier:u,value:{kind:"named",value:c}}}case"compound":{if(c===null)return null;t&&(o==="not"||o==="has"||o==="in")&&(c=`${c}/${t}`,t=null);let u=i.parseVariant(c);if(u===null||!i.variants.compoundsWith(o,u))return null;let f=t===null?null:Xt(t);return t!==null&&f===null?null:{kind:"compound",root:o,modifier:f,variant:u}}}}return null}function*Zr(e,i){i(e)&&(yield[e,null]);let r=e.lastIndexOf("-");for(;r>0;){let t=e.slice(0,r);if(i(t)){let n=[t,e.slice(r+1)];if(n[1]===""||n[0]==="@"&&i("@")&&e[r]==="-")break;yield n}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&i("@")&&(yield["@",e.slice(1)])}function Qr(e,i){let r=[];for(let n of i.variants)r.unshift(At(n));e.theme.prefix&&r.unshift(e.theme.prefix);let t="";if(i.kind==="static"&&(t+=i.root),i.kind==="functional"&&(t+=i.root,i.value))if(i.value.kind==="arbitrary"){if(i.value!==null){let n=rr(i.value.value),s=n?i.value.value.slice(4,-1):i.value.value,[o,c]=n?["(",")"]:["[","]"];i.value.dataType?t+=`-${o}${i.value.dataType}:${Te(s)}${c}`:t+=`-${o}${Te(s)}${c}`}}else i.value.kind==="named"&&(t+=`-${i.value.value}`);return i.kind==="arbitrary"&&(t+=`[${i.property}:${Te(i.value)}]`),(i.kind==="arbitrary"||i.kind==="functional")&&(t+=ot(i.modifier)),i.important&&(t+="!"),r.push(t),r.join(":")}function ot(e){if(e===null)return"";let i=rr(e.value),r=i?e.value.slice(4,-1):e.value,[t,n]=i?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${t}${Te(r)}${n}`:e.kind==="named"?`/${e.value}`:""}function At(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${Te(Yn(e.selector))}]`;let i="";if(e.kind==="functional"){i+=e.root;let r=e.root!=="@";if(e.value)if(e.value.kind==="arbitrary"){let t=rr(e.value.value),n=t?e.value.value.slice(4,-1):e.value.value,[s,o]=t?["(",")"]:["[","]"];i+=`${r?"-":""}${s}${Te(n)}${o}`}else e.value.kind==="named"&&(i+=`${r?"-":""}${e.value.value}`)}return e.kind==="compound"&&(i+=e.root,i+="-",i+=At(e.variant)),(e.kind==="functional"||e.kind==="compound")&&(i+=ot(e.modifier)),i}var Wn=new L(e=>{let i=j(e),r=new Set,t=new Set(["~",">","+","-","*","/"]);return I(i,(n,s)=>{if(n.kind==="word"&&t.has(n.value)){let o=s.index;if(o===-1)return;let c=s.siblings[o-1];if(c?.kind!=="separator"||c.value!==" ")return;let u=s.siblings[o+1];if(u?.kind!=="separator"||u.value!==" ")return;let f=s.siblings[o-2];if(f&&t.has(f.value))return;let d=s.siblings[o+2];if(d&&t.has(d.value))return;r.add(c),r.add(u)}else if(n.kind==="separator"&&n.value.length>0&&n.value.trim()==="")(s.siblings[0]===n||s.siblings[s.siblings.length-1]===n)&&r.add(n);else if(n.kind==="separator"&&n.value.trim()===",")n.value=",";else if(n.kind==="function"&&n.value.startsWith("--")){let o=s.index;if(o<=0)return;let c=s.siblings[o-1];if(c?.kind==="separator"&&c.value===",")return;let u=s.siblings[o-2];return u&&!t.has(u.value)?void 0:S.ReplaceSkip({kind:"function",value:"",nodes:[n]})}}),r.size>0&&I(i,n=>{if(r.has(n))return r.delete(n),S.ReplaceSkip([])}),er(i),F(i)});function Te(e){return Wn.get(e)}var Bn=new L(e=>{let i=j(e);return i.length===3&&i[0].kind==="word"&&i[0].value==="&"&&i[1].kind==="separator"&&i[1].value===":"&&i[2].kind==="function"&&i[2].value==="is"?F(i[2].nodes):e});function Yn(e){return Bn.get(e)}function er(e){for(let i of e)switch(i.kind){case"function":{if(i.value==="url"||i.value.endsWith("_url")){i.value=nt(i.value);break}if(i.value==="var"||i.value.endsWith("_var")||i.value==="theme"||i.value.endsWith("_theme")){i.value=nt(i.value);for(let r=0;r<i.nodes.length;r++)er([i.nodes[r]]);break}i.value=nt(i.value),er(i.nodes);break}case"separator":i.value=nt(i.value);break;case"word":{(i.value[0]!=="-"||i.value[1]!=="-")&&(i.value=nt(i.value));break}default:Gn(i)}}var qn=new L(e=>{let i=j(e);return i.length===1&&i[0].kind==="function"&&i[0].value==="var"});function rr(e){return qn.get(e)}function Gn(e){throw new Error(`Unexpected value: ${e}`)}function nt(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function Ie(e,i,r){if(e===i)return 0;let t=e.indexOf("("),n=i.indexOf("("),s=t===-1?e.replace(/[\d.]+/g,""):e.slice(0,t),o=n===-1?i.replace(/[\d.]+/g,""):i.slice(0,n),c=(s===o?0:s<o?-1:1)||(r==="asc"?parseInt(e)-parseInt(i):parseInt(i)-parseInt(e));return Number.isNaN(c)?e<i?-1:1:c}var Hn=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,oe=new L(e=>{let i=Hn.exec(e);if(!i)return null;let r=i.groups?.value;if(r===void 0)return null;let t=Number(r);if(Number.isNaN(t))return null;let n=i.groups?.unit;return n===void 0?[t,null]:[t,n]});var Jr=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","transparent","currentcolor","canvas","canvastext","linktext","visitedtext","activetext","buttonface","buttontext","buttonborder","field","fieldtext","highlight","highlighttext","selecteditem","selecteditemtext","mark","marktext","graytext","accentcolor","accentcolortext"]),Zn=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;function Xr(e){return e.charCodeAt(0)===35||Zn.test(e)||Jr.has(e.toLowerCase())}function ei(e){return Jr.has(e.toLowerCase())}var Qn={color:Xr,length:Ce,percentage:ir,ratio:co,number:ri,integer:O,url:ti,position:go,"bg-size":ho,"line-width":Xn,image:ro,"family-name":no,"generic-name":io,"absolute-size":oo,"relative-size":lo,angle:bo,vector:yo};function Q(e,i){if(e.startsWith("var("))return null;for(let r of i)if(Qn[r]?.(e))return r;return null}var Jn=/^url\(.*\)$/;function ti(e){return Jn.test(e)}function Xn(e){return z(e," ").every(i=>Ce(i)||ri(i)||i==="thin"||i==="medium"||i==="thick")}var eo=/^(?:element|image|cross-fade|image-set)\(/,to=/^(repeating-)?(conic|linear|radial)-gradient\(/;function ro(e){let i=0;for(let r of z(e,","))if(!r.startsWith("var(")){if(ti(r)){i+=1;continue}if(to.test(r)){i+=1;continue}if(eo.test(r)){i+=1;continue}return!1}return i>0}function io(e){return e==="serif"||e==="sans-serif"||e==="monospace"||e==="cursive"||e==="fantasy"||e==="system-ui"||e==="ui-serif"||e==="ui-sans-serif"||e==="ui-monospace"||e==="ui-rounded"||e==="math"||e==="emoji"||e==="fangsong"}function no(e){let i=0;for(let r of z(e,",")){let t=r.charCodeAt(0);if(t>=48&&t<=57)return!1;r.startsWith("var(")||(i+=1)}return i>0}function oo(e){return e==="xx-small"||e==="x-small"||e==="small"||e==="medium"||e==="large"||e==="x-large"||e==="xx-large"||e==="xxx-large"}function lo(e){return e==="larger"||e==="smaller"}var Ae=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,ao=new RegExp(`^${Ae.source}$`);function ri(e){return ao.test(e)||it(e)}var so=new RegExp(`^${Ae.source}%$`);function ir(e){return so.test(e)||it(e)}var uo=new RegExp(`^${Ae.source}\\s*/\\s*${Ae.source}$`);function co(e){return uo.test(e)||it(e)}var fo=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],po=new RegExp(`^${Ae.source}(${fo.join("|")})$`),mo=/^(--spacing)\(/i;function Ce(e){return po.test(e)||mo.test(e)||it(e)}function go(e){let i=0;for(let r of z(e," ")){if(r==="center"||r==="top"||r==="right"||r==="bottom"||r==="left"){i+=1;continue}if(!r.startsWith("var(")){if(Ce(r)||ir(r)){i+=1;continue}return!1}}return i>0}function ho(e){let i=0;for(let r of z(e,",")){if(r==="cover"||r==="contain"){i+=1;continue}let t=z(r," ");if(t.length!==1&&t.length!==2)return!1;if(t.every(n=>n==="auto"||Ce(n)||ir(n))){i+=1;continue}}return i>0}var vo=["deg","rad","grad","turn"],ko=new RegExp(`^${Ae.source}(${vo.join("|")})$`);function bo(e){return ko.test(e)}var wo=new RegExp(`^${Ae.source} +${Ae.source} +${Ae.source}$`);function yo(e){return wo.test(e)}function O(e){let i=Number(e);return Number.isInteger(i)&&i>=0&&String(i)===String(e)}function nr(e){let i=Number(e);return Number.isInteger(i)&&i>0&&String(i)===String(e)}function J(e){return ii(e,.25)}function Ct(e){return ii(e,.25)}function ii(e,i){let r=Number(e);return r>=0&&r%i===0&&String(r)===String(e)}var xo=new Set(["inset","inherit","initial","revert","unset"]),Ao=new Set(["calc","clamp","max","min","--spacing"]),Co=new Set(["color","color-mix","contrast-color","device-cmyk","hsl","hsla","hwb","lab","lch","light-dark","oklab","oklch","rgb","rgba","--alpha"]),So=/^-?(\d+|\.\d+)(.*?)$/;function lt(e,i){function r(n){let s=F([n]),o=i(s);return j(o)}return z(e,",").map(n=>{n=n.trim();let s=j(n),o=null,c=0,u=0,f=!1;return I(s,d=>{switch(d.kind){case"word":{if(xo.has(d.value.toLowerCase()))return S.Continue;if(So.test(d.value.toLowerCase()))return u++,S.Continue;if(d.value[0]==="#"||ei(d.value))return f=!0,S.ReplaceStop(r(d));o=d,c++;break}case"function":return Co.has(d.value.toLowerCase())?(f=!0,S.ReplaceStop(r(d))):Ao.has(d.value.toLowerCase())?(u++,S.Skip):(o=d,c++,S.Skip);case"separator":return S.Continue;default:}}),f?F(s):u<2?n:c===0?`${n} ${i("currentcolor")}`:(c===1&&I(s,d=>d===o?(f=!0,S.ReplaceStop(r(d))):S.Skip),f?F(s):n)}).join(", ")}var Tt=["0","0.5","1","1.5","2","2.5","3","3.5","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],or=class{utilities=new L(()=>[]);completions=new Map;static(i,r){this.utilities.get(i).push({kind:"static",compileFn:r})}functional(i,r,t){this.utilities.get(i).push({kind:"functional",compileFn:r,options:t})}has(i,r){return this.utilities.has(i)&&this.utilities.get(i).some(t=>t.kind===r)}get(i){return this.utilities.has(i)?this.utilities.get(i):[]}getCompletions(i){return this.has(i,"static")?this.completions.get(i)?.()??[{supportsNegative:!1,values:[],modifiers:[]}]:this.completions.get(i)?.()??[]}suggest(i,r){let t=this.completions.get(i);t?this.completions.set(i,()=>[...t?.(),...r?.()]):this.completions.set(i,r)}keys(i){let r=[];for(let[t,n]of this.utilities.entries())for(let s of n)if(s.kind===i){r.push(t);break}return r}};function $(e,i,r){return B("@property",e,[l("syntax",r?`"${r}"`:'"*"'),l("inherits","false"),...i?[l("initial-value",i)]:[]])}function X(e,i){if(i===null)return e;let r=Number(i);return Number.isNaN(r)||(i=`${r*100}%`),i==="100%"?e:`color-mix(in oklab, ${e} ${i}, transparent)`}function oi(e,i){let r=Number(i);return Number.isNaN(r)||(i=`${r*100}%`),`oklab(from ${e} l a b / ${i})`}function te(e,i,r){if(!i)return e;if(i.kind==="arbitrary")return X(e,i.value);let t=r.resolve(i.value,["--opacity"]);return t?X(e,t):Ct(i.value)?X(e,`${i.value}%`):null}function le(e,i,r){let t=null;switch(e.value.value){case"inherit":{t="inherit";break}case"transparent":{t="transparent";break}case"current":{t="currentcolor";break}default:{t=i.resolve(e.value.value,r);break}}return t?te(t,e.modifier,i):null}var li=/(\d+)_(\d+)/g;function ai(e){let i=new or;function r(a,g){function*k(x){for(let V of e.keysInNamespaces(x))yield V.replace(li,(U,T,R)=>`${T}.${R}`)}let C=["1/2","1/3","2/3","1/4","2/4","3/4","1/5","2/5","3/5","4/5","1/6","2/6","3/6","4/6","5/6","1/12","2/12","3/12","4/12","5/12","6/12","7/12","8/12","9/12","10/12","11/12"];i.suggest(a,()=>{let x=[];for(let V of g()){if(typeof V=="string"){x.push({values:[V],modifiers:[]});continue}let U=[...V.values??[],...k(V.valueThemeKeys??[])],T=[...V.modifiers??[],...k(V.modifierThemeKeys??[])];V.supportsFractions&&U.push(...C),V.hasDefaultValue&&U.unshift(null),x.push({supportsNegative:V.supportsNegative,values:U,modifiers:T})}return x})}function t(a,g){i.static(a,()=>g.map(k=>typeof k=="function"?k():l(k[0],k[1])))}function n(a,g){g.staticValues&&(g.staticValues=Object.assign(Object.create(null),g.staticValues));function k({negative:C}){return x=>{let V=null,U=null;if(x.value)if(x.value.kind==="arbitrary"){if(x.modifier)return;V=x.value.value,U=x.value.dataType}else{if(V=e.resolve(x.value.fraction??x.value.value,g.themeKeys??[]),V===null&&g.supportsFractions&&x.value.fraction){let[T,R]=z(x.value.fraction,"/");if(!O(T)||!O(R))return;V=`calc(${T} / ${R} * 100%)`}if(V===null&&C&&g.handleNegativeBareValue){if(V=g.handleNegativeBareValue(x.value),!V?.includes("/")&&x.modifier)return;if(V!==null)return g.handle(V,null)}if(V===null&&g.handleBareValue&&(V=g.handleBareValue(x.value),!V?.includes("/")&&x.modifier))return;if(V===null&&!C&&g.staticValues&&!x.modifier){let T=g.staticValues[x.value.value];if(T)return T.map(re)}}else{if(x.modifier)return;V=g.defaultValue!==void 0?g.defaultValue:e.resolve(null,g.themeKeys??[])}if(V!==null)return g.handle(C?yt(`calc(${V} * -1)`):V,U)}}if(g.supportsNegative&&i.functional(`-${a}`,k({negative:!0})),i.functional(a,k({negative:!1})),r(a,()=>[{supportsNegative:g.supportsNegative,valueThemeKeys:g.themeKeys??[],hasDefaultValue:g.defaultValue!==void 0&&g.defaultValue!==null,supportsFractions:g.supportsFractions}]),g.staticValues&&Object.keys(g.staticValues).length>0){let C=Object.keys(g.staticValues);r(a,()=>[{values:C}])}}function s(a,g){i.functional(a,k=>{if(!k.value)return;let C=null;if(k.value.kind==="arbitrary"?(C=k.value.value,C=te(C,k.modifier,e)):C=le(k,e,g.themeKeys),C!==null)return g.handle(C)}),r(a,()=>[{values:["current","inherit","transparent"],valueThemeKeys:g.themeKeys,modifierThemeKeys:["--opacity"],modifiers:Array.from({length:21},(k,C)=>`${C*5}`)}])}function o(a,g,k,{supportsNegative:C=!1,supportsFractions:x=!1,staticValues:V}={}){C&&i.static(`-${a}-px`,()=>k("-1px")),i.static(`${a}-px`,()=>k("1px")),n(a,{themeKeys:g,supportsFractions:x,supportsNegative:C,defaultValue:null,handleBareValue:({value:U})=>!e.resolve(null,["--spacing"])||!J(U)?null:`--spacing(${U})`,handleNegativeBareValue:({value:U})=>!e.resolve(null,["--spacing"])||!J(U)?null:`--spacing(-${U})`,handle:k,staticValues:V}),r(a,()=>[{values:e.get(["--spacing"])?Tt:[],supportsNegative:C,supportsFractions:x,valueThemeKeys:g}])}t("sr-only",[["position","absolute"],["width","1px"],["height","1px"],["padding","0"],["margin","-1px"],["overflow","hidden"],["clip-path","inset(50%)"],["white-space","nowrap"],["border-width","0"]]),t("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip-path","none"],["white-space","normal"]]),t("pointer-events-none",[["pointer-events","none"]]),t("pointer-events-auto",[["pointer-events","auto"]]),t("visible",[["visibility","visible"]]),t("invisible",[["visibility","hidden"]]),t("collapse",[["visibility","collapse"]]),t("static",[["position","static"]]),t("fixed",[["position","fixed"]]),t("absolute",[["position","absolute"]]),t("relative",[["position","relative"]]),t("sticky",[["position","sticky"]]);for(let[a,g]of[["inset","inset"],["inset-x","inset-inline"],["inset-y","inset-block"],["inset-s","inset-inline-start"],["inset-e","inset-inline-end"],["inset-bs","inset-block-start"],["inset-be","inset-block-end"],["top","top"],["right","right"],["bottom","bottom"],["left","left"]])t(`${a}-auto`,[[g,"auto"]]),t(`${a}-full`,[[g,"100%"]]),t(`-${a}-full`,[[g,"-100%"]]),o(a,["--inset","--spacing"],k=>[l(g,k)],{supportsNegative:!0,supportsFractions:!0});t("isolate",[["isolation","isolate"]]),t("isolation-auto",[["isolation","auto"]]),n("z",{supportsNegative:!0,handleBareValue:({value:a})=>O(a)?a:null,themeKeys:["--z-index"],handle:a=>[l("z-index",a)],staticValues:{auto:[l("z-index","auto")]}}),r("z",()=>[{supportsNegative:!0,values:["0","10","20","30","40","50"],valueThemeKeys:["--z-index"]}]),n("order",{supportsNegative:!0,handleBareValue:({value:a})=>O(a)?a:null,themeKeys:["--order"],handle:a=>[l("order",a)],staticValues:{first:[l("order","-9999")],last:[l("order","9999")]}}),r("order",()=>[{supportsNegative:!0,values:Array.from({length:12},(a,g)=>`${g+1}`),valueThemeKeys:["--order"]}]),n("col",{supportsNegative:!0,handleBareValue:({value:a})=>O(a)?a:null,themeKeys:["--grid-column"],handle:a=>[l("grid-column",a)],staticValues:{auto:[l("grid-column","auto")]}}),n("col-span",{handleBareValue:({value:a})=>O(a)?a:null,handle:a=>[l("grid-column",`span ${a} / span ${a}`)],staticValues:{full:[l("grid-column","1 / -1")]}}),n("col-start",{supportsNegative:!0,handleBareValue:({value:a})=>O(a)?a:null,themeKeys:["--grid-column-start"],handle:a=>[l("grid-column-start",a)],staticValues:{auto:[l("grid-column-start","auto")]}}),n("col-end",{supportsNegative:!0,handleBareValue:({value:a})=>O(a)?a:null,themeKeys:["--grid-column-end"],handle:a=>[l("grid-column-end",a)],staticValues:{auto:[l("grid-column-end","auto")]}}),r("col-span",()=>[{values:Array.from({length:12},(a,g)=>`${g+1}`),valueThemeKeys:[]}]),r("col-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(a,g)=>`${g+1}`),valueThemeKeys:["--grid-column-start"]}]),r("col-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(a,g)=>`${g+1}`),valueThemeKeys:["--grid-column-end"]}]),n("row",{supportsNegative:!0,handleBareValue:({value:a})=>O(a)?a:null,themeKeys:["--grid-row"],handle:a=>[l("grid-row",a)],staticValues:{auto:[l("grid-row","auto")]}}),n("row-span",{themeKeys:[],handleBareValue:({value:a})=>O(a)?a:null,handle:a=>[l("grid-row",`span ${a} / span ${a}`)],staticValues:{full:[l("grid-row","1 / -1")]}}),n("row-start",{supportsNegative:!0,handleBareValue:({value:a})=>O(a)?a:null,themeKeys:["--grid-row-start"],handle:a=>[l("grid-row-start",a)],staticValues:{auto:[l("grid-row-start","auto")]}}),n("row-end",{supportsNegative:!0,handleBareValue:({value:a})=>O(a)?a:null,themeKeys:["--grid-row-end"],handle:a=>[l("grid-row-end",a)],staticValues:{auto:[l("grid-row-end","auto")]}}),r("row-span",()=>[{values:Array.from({length:12},(a,g)=>`${g+1}`),valueThemeKeys:[]}]),r("row-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(a,g)=>`${g+1}`),valueThemeKeys:["--grid-row-start"]}]),r("row-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(a,g)=>`${g+1}`),valueThemeKeys:["--grid-row-end"]}]),t("float-start",[["float","inline-start"]]),t("float-end",[["float","inline-end"]]),t("float-right",[["float","right"]]),t("float-left",[["float","left"]]),t("float-none",[["float","none"]]),t("clear-start",[["clear","inline-start"]]),t("clear-end",[["clear","inline-end"]]),t("clear-right",[["clear","right"]]),t("clear-left",[["clear","left"]]),t("clear-both",[["clear","both"]]),t("clear-none",[["clear","none"]]);for(let[a,g]of[["m","margin"],["mx","margin-inline"],["my","margin-block"],["ms","margin-inline-start"],["me","margin-inline-end"],["mbs","margin-block-start"],["mbe","margin-block-end"],["mt","margin-top"],["mr","margin-right"],["mb","margin-bottom"],["ml","margin-left"]])t(`${a}-auto`,[[g,"auto"]]),o(a,["--margin","--spacing"],k=>[l(g,k)],{supportsNegative:!0});t("box-border",[["box-sizing","border-box"]]),t("box-content",[["box-sizing","content-box"]]),n("line-clamp",{themeKeys:["--line-clamp"],handleBareValue:({value:a})=>O(a)?a:null,handle:a=>[l("overflow","hidden"),l("display","-webkit-box"),l("-webkit-box-orient","vertical"),l("-webkit-line-clamp",a)],staticValues:{none:[l("overflow","visible"),l("display","block"),l("-webkit-box-orient","horizontal"),l("-webkit-line-clamp","unset")]}}),r("line-clamp",()=>[{values:["1","2","3","4","5","6"],valueThemeKeys:["--line-clamp"]}]),t("block",[["display","block"]]),t("inline-block",[["display","inline-block"]]),t("inline",[["display","inline"]]),t("hidden",[["display","none"]]),t("inline-flex",[["display","inline-flex"]]),t("table",[["display","table"]]),t("inline-table",[["display","inline-table"]]),t("table-caption",[["display","table-caption"]]),t("table-cell",[["display","table-cell"]]),t("table-column",[["display","table-column"]]),t("table-column-group",[["display","table-column-group"]]),t("table-footer-group",[["display","table-footer-group"]]),t("table-header-group",[["display","table-header-group"]]),t("table-row-group",[["display","table-row-group"]]),t("table-row",[["display","table-row"]]),t("flow-root",[["display","flow-root"]]),t("flex",[["display","flex"]]),t("grid",[["display","grid"]]),t("inline-grid",[["display","inline-grid"]]),t("contents",[["display","contents"]]),t("list-item",[["display","list-item"]]),t("field-sizing-content",[["field-sizing","content"]]),t("field-sizing-fixed",[["field-sizing","fixed"]]),n("aspect",{themeKeys:["--aspect"],handleBareValue:({fraction:a})=>{if(a===null)return null;let[g,k]=z(a,"/");return!J(g)||!J(k)?null:a},handle:a=>[l("aspect-ratio",a)],staticValues:{auto:[l("aspect-ratio","auto")],square:[l("aspect-ratio","1 / 1")]}});for(let[a,g]of[["full","100%"],["svw","100svw"],["lvw","100lvw"],["dvw","100dvw"],["svh","100svh"],["lvh","100lvh"],["dvh","100dvh"],["min","min-content"],["max","max-content"],["fit","fit-content"]])t(`size-${a}`,[["--tw-sort","size"],["width",g],["height",g]]),t(`w-${a}`,[["width",g]]),t(`h-${a}`,[["height",g]]),t(`min-w-${a}`,[["min-width",g]]),t(`min-h-${a}`,[["min-height",g]]),t(`max-w-${a}`,[["max-width",g]]),t(`max-h-${a}`,[["max-height",g]]);t("size-auto",[["--tw-sort","size"],["width","auto"],["height","auto"]]),t("w-auto",[["width","auto"]]),t("h-auto",[["height","auto"]]),t("min-w-auto",[["min-width","auto"]]),t("min-h-auto",[["min-height","auto"]]),t("h-lh",[["height","1lh"]]),t("min-h-lh",[["min-height","1lh"]]),t("max-h-lh",[["max-height","1lh"]]),t("w-screen",[["width","100vw"]]),t("min-w-screen",[["min-width","100vw"]]),t("max-w-screen",[["max-width","100vw"]]),t("h-screen",[["height","100vh"]]),t("min-h-screen",[["min-height","100vh"]]),t("max-h-screen",[["max-height","100vh"]]),t("max-w