UNPKG

tailwindcss

Version:

A utility-first CSS framework for rapidly building custom user interfaces.

10 lines • 278 kB
"use strict";var wn=Object.defineProperty;var bn=(e,r)=>{for(var i in r)wn(e,i,{get:r[i],enumerable:!0})};var Mt={};bn(Mt,{Features:()=>Ie,Polyfills:()=>bt,__unstable__loadDesignSystem:()=>fa,compile:()=>ca,compileAst:()=>kn,default:()=>ft});var br="4.3.0";function pt(e){let r=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&r.push(n+1);function i(n){let a=0,o=r.length;for(;o>0;){let u=(o|0)>>1,c=a+u;r[c]<=n?(a=c+1,o=o-u-1):o=u}a-=1;let f=n-r[a];return{line:a+1,column:f}}function t({line:n,column:a}){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+a,0),f)}return{find:i,findOffset:t}}var Qe=92,dt=47,mt=42,yr=34,xr=39,xn=58,gt=59,pe=10,ht=13,Je=32,Xe=9,Ar=123,Ft=125,Yt=40,Cr=41,An=91,Cn=93,Sr=45,Wt=64,Sn=33,de=class e extends Error{loc;constructor(r,i){if(i){let t=i[0],n=pt(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 Oe(e,r){let i=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],a=[],o=null,f=null,u="",c="",m=0,d;for(let p=0;p<e.length;p++){let v=e.charCodeAt(p);if(!(v===ht&&(d=e.charCodeAt(p+1),d===pe)))if(v===Qe)u===""&&(m=p),u+=e.slice(p,p+2),p+=1;else if(v===dt&&e.charCodeAt(p+1)===mt){let h=p;for(let y=p+2;y<e.length;y++)if(d=e.charCodeAt(y),d===Qe)y+=1;else if(d===mt&&e.charCodeAt(y+1)===dt){p=y+1;break}let w=e.slice(h,p+1);if(w.charCodeAt(2)===Sn){let y=vt(w.slice(2,-2));n.push(y),i&&(y.src=[i,h,p+1],y.dst=[i,h,p+1])}}else if(v===xr||v===yr){let h=$r(e,p,v,i);u+=e.slice(p,h+1),p=h}else{if((v===Je||v===pe||v===Xe)&&(d=e.charCodeAt(p+1))&&(d===Je||d===pe||d===Xe||d===ht&&(d=e.charCodeAt(p+2))&&d==pe))continue;if(v===pe){if(u.length===0)continue;d=u.charCodeAt(u.length-1),d!==Je&&d!==pe&&d!==Xe&&(u+=" ")}else if(v===Sr&&e.charCodeAt(p+1)===Sr&&u.length===0){let h="",w=p,y=-1;for(let A=p+2;A<e.length;A++)if(d=e.charCodeAt(A),d===Qe)A+=1;else if(d===xr||d===yr)A=$r(e,A,d,i);else if(d===dt&&e.charCodeAt(A+1)===mt){for(let b=A+2;b<e.length;b++)if(d=e.charCodeAt(b),d===Qe)b+=1;else if(d===mt&&e.charCodeAt(b+1)===dt){A=b+1;break}}else if(y===-1&&d===xn)y=u.length+A-w;else if(d===gt&&h.length===0){u+=e.slice(w,A),p=A;break}else if(d===Yt)h+=")";else if(d===An)h+="]";else if(d===Ar)h+="}";else if((d===Ft||e.length-1===A)&&h.length===0){p=A-1,u+=e.slice(w,A);break}else(d===Cr||d===Cn||d===Ft)&&h.length>0&&e[A]===h[h.length-1]&&(h=h.slice(0,-1));let T=Bt(u,y);if(!T)throw new de("Invalid custom property, expected a value",i?[i,w,p]:null);i&&(T.src=[i,w,p],T.dst=[i,w,p]),o?o.nodes.push(T):t.push(T),u=""}else if(v===gt&&u.charCodeAt(0)===Wt)f=et(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(v===gt&&c[c.length-1]!==")"){let h=Bt(u);if(!h){if(u.length===0)continue;throw new de(`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(v===Ar&&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),a.push(o),o=f,u="",f=null;else if(v===Ft&&c[c.length-1]!==")"){if(c==="")throw new de("Missing opening {",i?[i,p,p]:null);if(c=c.slice(0,-1),u.length>0)if(u.charCodeAt(0)===Wt)f=et(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 y=Bt(u,w);if(!y)throw new de(`Invalid declaration: \`${u.trim()}\``,i?[i,m,p]:null);i&&(y.src=[i,m,p],y.dst=[i,m,p]),o.nodes.push(y)}}let h=a.pop()??null;h===null&&o&&t.push(o),o=h,u="",f=null}else if(v===Yt)c+=")",u+="(";else if(v===Cr){if(c[c.length-1]!==")")throw new de("Missing opening (",i?[i,p,p]:null);c=c.slice(0,-1),u+=")"}else{if(u.length===0&&(v===Je||v===pe||v===Xe))continue;u===""&&(m=p),u+=String.fromCharCode(v)}}}if(u.charCodeAt(0)===Wt){let p=et(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 de(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind==="at-rule")throw new de(`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,r=[]){let i=e,t="";for(let n=5;n<e.length;n++){let a=e.charCodeAt(n);if(a===Je||a===Xe||a===Yt){i=e.slice(0,n),t=e.slice(n);break}}return W(i.trim(),t.trim(),r)}function Bt(e,r=e.indexOf(":")){if(r===-1)return null;let i=e.indexOf("!important",r+1);return l(e.slice(0,r).trim(),e.slice(r+1,i===-1?e.length:i).trim(),i!==-1)}function $r(e,r,i,t=null){let n;for(let a=r+1;a<e.length;a++)if(n=e.charCodeAt(a),n===Qe)a+=1;else{if(n===i)return a;if(n===gt&&(e.charCodeAt(a+1)===pe||e.charCodeAt(a+1)===ht&&e.charCodeAt(a+2)===pe))throw new de(`Unterminated string: ${e.slice(r,a+1)+String.fromCharCode(i)}`,t?[t,r,a+1]:null);if(n===pe||n===ht&&e.charCodeAt(a+1)===pe)throw new de(`Unterminated string: ${e.slice(r,a)+String.fromCharCode(i)}`,t?[t,r,a+1]:null)}return r}function Se(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),i=r.length,t=-1,n,a="",o=r.charCodeAt(0);if(i===1&&o===45)return"\\"+r;for(;++t<i;){if(n=r.charCodeAt(t),n===0){a+="\uFFFD";continue}if(n>=1&&n<=31||n===127||t===0&&n>=48&&n<=57||t===1&&n>=48&&n<=57&&o===45){a+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){a+=r.charAt(t);continue}a+="\\"+r.charAt(t)}return a}function ye(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>{if(r.length<=2)return r[1];let i=Number.parseInt(r.slice(1).trim(),16);return i===0||i>1114111||i>=55296&&i<=57343?"\uFFFD":String.fromCodePoint(i)})}var Tr=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 Vr(e,r){return(Tr.get(r)??[]).some(i=>e===i||e.startsWith(`${i}-`))}var kt=class{constructor(r=new Map,i=new Set([])){this.values=r;this.keyframes=i}prefix=null;get size(){return this.values.size}add(r,i,t=0,n){if(r.endsWith("-*")){if(i!=="initial")throw new Error(`Invalid theme value \`${i}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(t&4){let a=this.values.get(r);if(a&&!(a.options&4))return}i==="initial"?this.values.delete(r):this.values.set(r,{value:i,options:t,src:n})}keysInNamespaces(r){let i=[];for(let t of r){let n=`${t}-`;for(let a of this.values.keys())a.startsWith(n)&&a.indexOf("--",2)===-1&&(Vr(a,t)||i.push(a.slice(n.length)))}return i}get(r){for(let i of r){let t=this.values.get(i);if(t)return t.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=ye(this.#r(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.prefixKey(r[0]),r)):this.values.entries()}prefixKey(r){return this.prefix?`--${this.prefix}-${r.slice(2)}`:r}#r(r){return this.prefix?`--${r.slice(3+this.prefix.length)}`:r}clearNamespace(r,i){let t=Tr.get(r)??[];e:for(let n of this.values.keys())if(n.startsWith(r)){if(i!==0&&(this.getOptions(n)&i)!==i)continue;for(let a of t)if(n.startsWith(a))continue e;this.values.delete(n)}}#e(r,i){for(let t of i){let n=r!==null?`${t}-${r}`:t;if(!this.values.has(n))if(r!==null&&r.includes(".")){if(n=`${t}-${r.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!Vr(n,t))return n}return null}#t(r){let i=this.values.get(r);if(!i)return null;let t=null;return i.options&2&&(t=i.value),`var(${Se(this.prefixKey(r))}${t?`, ${t}`:""})`}markUsedVariable(r){let i=ye(this.#r(r)),t=this.values.get(i);if(!t)return!1;let n=t.options&16;return t.options|=16,!n}resolve(r,i,t=0){let n=this.#e(r,i);if(!n)return null;let a=this.values.get(n);return(t|a.options)&1?a.value:this.#t(n)}resolveValue(r,i){let t=this.#e(r,i);return t?this.values.get(t).value:null}resolveWith(r,i,t=[]){let n=this.#e(r,i);if(!n)return null;let a={};for(let f of t){let u=`${n}${f}`,c=this.values.get(u);c&&(c.options&1?a[f]=c.value:a[f]=this.#t(u))}let o=this.values.get(n);return o.options&1?[o.value,a]:[this.#t(n),a]}namespace(r){let i=new Map,t=`${r}-`;for(let[n,a]of this.values)n===r?i.set(null,a.value):n.startsWith(`${t}-`)?i.set(n.slice(r.length),a.value):n.startsWith(t)&&i.set(n.slice(t.length),a.value);return i}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var L=class extends Map{constructor(i){super();this.factory=i}get(i){let t=super.get(i);return t===void 0&&(t=this.factory(i,this),this.set(i,t)),t}};function oe(e){return{kind:"word",value:e}}function $n(e,r){return{kind:"function",value:e,nodes:r}}function Vn(e){return{kind:"separator",value:e}}function Y(e){let r="";for(let i of e)switch(i.kind){case"word":case"separator":{r+=i.value;break}case"function":r+=i.value+"("+Y(i.nodes)+")"}return r}var Er=92,Tn=41,Nr=58,Rr=44,En=34,Or=61,Pr=62,_r=60,Ir=10,Nn=40,Rn=39,On=47,Dr=32,Ur=9;function F(e){e=e.replaceAll(`\r `,` `);let r=[],i=[],t=null,n="",a;for(let o=0;o<e.length;o++){let f=e.charCodeAt(o);switch(f){case Er:{n+=e[o]+e[o+1],o++;break}case On:{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 Nr:case Rr:case Or:case Pr:case _r:case Ir:case Dr:case Ur:{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&&(a=e.charCodeAt(c),!(a!==Nr&&a!==Rr&&a!==Or&&a!==Pr&&a!==_r&&a!==Ir&&a!==Dr&&a!==Ur));c++);o=c-1;let m=Vn(e.slice(u,c));t?t.nodes.push(m):r.push(m);break}case Rn:case En:{let u=o;for(let c=o+1;c<e.length;c++)if(a=e.charCodeAt(c),a===Er)c+=1;else if(a===f){o=c;break}n+=e.slice(u,o+1);break}case Nn:{let u=$n(n,[]);n="",t?t.nodes.push(u):r.push(u),i.push(u),t=u;break}case Tn:{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 Gt=(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))(Gt||{}),R={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,r){typeof r=="function"?zr(e,r):zr(e,r.enter,r.exit)}function zr(e,r=()=>R.Continue,i=()=>R.Continue){let t={value:[e,0,null],prev:null},n={parent:null,depth:0,path(){let a=[],o=t;for(;o;){let f=o.value[2];f&&a.push(f),o=o.prev}return a.reverse(),a}};for(;t!==null;){let a=t.value,o=a[0],f=a[1],u=a[2];if(f>=o.length){t=t.prev,n.depth-=1;continue}if(n.parent=u,f>=0){let p=o[f],v=r(p,n)??R.Continue;switch(v.kind){case 0:{p.nodes&&p.nodes.length>0&&(n.depth+=1,t={value:[p.nodes,0,p],prev:t}),a[1]=~f;continue}case 2:return;case 1:{a[1]=~f;continue}case 3:{o.splice(f,1,...v.nodes);continue}case 5:{o.splice(f,1,...v.nodes);return}case 4:{o.splice(f,1,...v.nodes),a[1]+=v.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Gt[v.kind]??`Unknown(${v.kind})`}\` in enter.`)}}let c=~f,m=o[c],d=i(m,n)??R.Continue;switch(d.kind){case 0:a[1]=c+1;continue;case 2:return;case 3:{o.splice(c,1,...d.nodes),a[1]=c+d.nodes.length;continue}case 5:{o.splice(c,1,...d.nodes);return}case 4:{o.splice(c,1,...d.nodes),a[1]=c+d.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Gt[d.kind]??`Unknown(${d.kind})`}\` in exit.`)}}}function wt(e){let r=[];return I(F(e),i=>{if(!(i.kind!=="function"||i.value!=="var"))return I(i.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||r.push(t.value)}),R.Skip}),r}var Pn=64;function G(e,r=[]){return{kind:"rule",selector:e,nodes:r}}function W(e,r="",i=[]){return{kind:"at-rule",name:e,params:r,nodes:i}}function Z(e,r=[]){return e.charCodeAt(0)===Pn?et(e,r):G(e,r)}function l(e,r,i=!1){return{kind:"declaration",property:e,value:r,important:i}}function vt(e){return{kind:"comment",value:e}}function ke(e,r){return{kind:"context",context:e,nodes:r}}function B(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 rt(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 Pe(e,r,i=3){let t=[],n=new Set,a=new L(()=>new Set),o=new L(()=>new Set),f=new Set,u=new Set,c=[],m=[],d=new L(()=>new Set);function p(h,w,y={},T=0){if(h.kind==="declaration"){if(h.property==="--tw-sort"||h.value===void 0||h.value===null)return;if(y.theme&&h.property[0]==="-"&&h.property[1]==="-"){if(h.value==="initial"){h.value=void 0;return}y.keyframes||a.get(w).add(h)}if(h.value.includes("var("))if(y.theme&&h.property[0]==="-"&&h.property[1]==="-")for(let A of wt(h.value))d.get(A).add(h.property);else r.trackUsedVariables(h.value);if(h.property==="animation")for(let A of Lr(h.value))u.add(A);i&2&&h.value.includes("color-mix(")&&!y.supportsColorMix&&!y.keyframes&&o.get(w).add(h),w.push(h)}else if(h.kind==="rule"){let A=[];for(let E of h.nodes)p(E,A,y,T+1);let b={},D=new Set;for(let E of A){if(E.kind!=="declaration")continue;let N=`${E.property}:${E.value}:${E.important}`;b[N]??=[],b[N].push(E)}for(let E in b)for(let N=0;N<b[E].length-1;++N)D.add(b[E][N]);if(D.size>0&&(A=A.filter(E=>!D.has(E))),A.length===0)return;h.selector==="&"?w.push(...A):w.push({...h,nodes:A})}else if(h.kind==="at-rule"&&h.name==="@property"&&T===0){if(n.has(h.params))return;if(i&1){let b=h.params,D=null,E=!1;for(let z of h.nodes)z.kind==="declaration"&&(z.property==="initial-value"?D=z.value:z.property==="inherits"&&(E=z.value==="true"));let N=l(b,D??"initial");N.src=h.src,E?c.push(N):m.push(N)}n.add(h.params);let A={...h,nodes:[]};for(let b of h.nodes)p(b,A.nodes,y,T+1);w.push(A)}else if(h.kind==="at-rule"){h.name==="@keyframes"?y={...y,keyframes:!0}:h.name==="@supports"&&h.params.includes("color-mix(")&&(y={...y,supportsColorMix:!0});let A={...h,nodes:[]};for(let b of h.nodes)p(b,A.nodes,y,T+1);h.name==="@keyframes"&&y.theme&&f.add(A),(A.nodes.length>0||A.name==="@layer"||A.name==="@charset"||A.name==="@custom-media"||A.name==="@namespace"||A.name==="@import")&&w.push(A)}else if(h.kind==="at-root")for(let A of h.nodes){let b=[];p(A,b,y,0);for(let D of b)t.push(D)}else if(h.kind==="context"){if(h.context.reference)return;for(let A of h.nodes)p(A,w,{...y,...h.context},T)}else h.kind==="comment"&&w.push(h)}let v=[];for(let h of e)p(h,v,{},0);e:for(let[h,w]of a)for(let y of w){if(Kr(y.property,r.theme,d)){if(y.property.startsWith(r.theme.prefixKey("--animate-")))for(let b of Lr(y.value))u.add(b);continue}let A=h.indexOf(y);if(h.splice(A,1),h.length===0){let b=_n(v,D=>D.kind==="rule"&&D.nodes===h);if(!b||b.length===0)continue e;b.unshift({kind:"at-root",nodes:v});do{let D=b.pop();if(!D)break;let E=b[b.length-1];if(!E||E.kind!=="at-root"&&E.kind!=="at-rule")break;let N=E.nodes.indexOf(D);if(N===-1)break;E.nodes.splice(N,1)}while(!0);continue e}}for(let h of f)if(!u.has(h.params)){let w=t.indexOf(h);t.splice(w,1)}if(v=v.concat(t),i&2)for(let[h,w]of o)for(let y of w){let T=h.indexOf(y);if(T===-1||y.value==null)continue;let A=F(y.value),b=!1;if(I(A,N=>{if(N.kind!=="function"||N.value!=="color-mix")return;let z=!1,_=!1;if(I(N.nodes,M=>{if(M.kind=="word"&&M.value.toLowerCase()==="currentcolor"){_=!0,b=!0;return}let q=M,H=null,ce=new Set;do{if(q.kind!=="function"||q.value!=="var")return;let fe=q.nodes[0];if(!fe||fe.kind!=="word")return;let s=fe.value;if(ce.has(s)){z=!0;return}if(ce.add(s),b=!0,H=r.theme.resolveValue(null,[fe.value]),!H){z=!0;return}if(H.toLowerCase()==="currentcolor"){_=!0;return}H.startsWith("var(")?q=F(H)[0]:q=null}while(q);return R.Replace({kind:"word",value:H})}),z||_){let M=N.nodes.findIndex(H=>H.kind==="separator"&&H.value.trim().includes(","));if(M===-1)return;let q=N.nodes.length>M?N.nodes[M+1]:null;return q?R.Replace(q):void 0}else if(b){let M=N.nodes[2];M.kind==="word"&&(M.value==="oklab"||M.value==="oklch"||M.value==="lab"||M.value==="lch")&&(M.value="srgb")}}),!b)continue;let D={...y,value:Y(A)},E=Z("@supports (color: color-mix(in lab, red, red))",[y]);E.src=y.src,h.splice(T,1,D,E)}if(i&1){let h=[];if(c.length>0){let w=Z(":root, :host",c);w.src=c[0].src,h.push(w)}if(m.length>0){let w=Z("*, ::before, ::after, ::backdrop",m);w.src=m[0].src,h.push(w)}if(h.length>0){let w=v.findIndex(A=>!(A.kind==="comment"||A.kind==="at-rule"&&(A.name==="@charset"||A.name==="@import"))),y=W("@layer","properties",[]);y.src=h[0].src,v.splice(w<0?v.length:w,0,y);let T=Z("@layer properties",[W("@supports","((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",h)]);T.src=h[0].src,T.nodes[0].src=h[0].src,v.push(T)}}return v}function ne(e,r){let i=0,t={file:null,code:""};function n(o,f=0){let u="",c=" ".repeat(f);if(o.kind==="declaration"){if(u+=`${c}${o.property}: ${o.value}${o.important?" !important":""}; `,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 a="";for(let o of e)a+=n(o,0);return t.code=a,a}function _n(e,r){let i=[];return I(e,(t,n)=>{if(r(t))return i=n.path(),i.push(t),R.Stop}),i}function Kr(e,r,i,t=new Set){if(t.has(e)||(t.add(e),r.getOptions(e)&24))return!0;{let a=i.get(e)??[];for(let o of a)if(Kr(o,r,i,t))return!0}return!1}function Lr(e){return e.split(/[\s,]+/)}var Ht=["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&&Ht.some(r=>e.includes(`${r}(`))}function yt(e){if(!Ht.some(a=>e.includes(a)))return e;let r="",i=[],t=null,n=null;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=48&&o<=57||t!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?t=a:(n=t,t=null),o===40){r+=e[a];let f=a;for(let c=a-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,a);if(Ht.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[a],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(a+1);if((u===101||u===69)&&c>=48&&c<=57){r+=e[a];continue}else if(u===43||u===42||u===47||u===45){r+=e[a];continue}else if(u===40||u===44){r+=e[a];continue}else e.charCodeAt(a-1)===32?r+=`${e[a]} `:u>=48&&u<=57||m>=48&&m<=57||u===41||m===40||m===43||m===42||m===47||m===45||n!==null&&n===a-1?r+=` ${e[a]} `:r+=e[a]}else r+=e[a]}}return r}function $e(e){if(e.indexOf("(")===-1)return Me(e);let r=F(e);return Zt(r),e=Y(r),e=yt(e),e}function Me(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 Zt(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=Me(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=Me(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=Me(r.nodes[i].value,!0);continue}Zt([r.nodes[i]])}break}r.value=Me(r.value),Zt(r.nodes);break}case"separator":case"word":{r.value=Me(r.value);break}default:In(r)}}function In(e){throw new Error(`Unexpected value: ${e}`)}var Qt=new Uint8Array(256);function xe(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 a=e.charCodeAt(t);if(a===92){t+=1;continue}if(a===n)break}break;case 40:Qt[r]=41,r++;break;case 91:Qt[r]=93,r++;break;case 123:break;case 93:case 125:case 41:if(r===0)return!1;r>0&&n===Qt[r-1]&&r--;break;case 59:if(r===0)return!1;break}}return!0}var xt=new Uint8Array(256);function K(e,r){let i=0,t=[],n=0,a=e.length,o=r.charCodeAt(0);for(let f=0;f<a;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<a;){let c=e.charCodeAt(f);if(c===92){f+=1;continue}if(c===u)break}break;case 40:xt[i]=41,i++;break;case 91:xt[i]=93,i++;break;case 123:xt[i]=125,i++;break;case 93:case 125:case 41:i>0&&u===xt[i-1]&&i--;break}}return t.push(e.slice(n)),t}var Dn=58,Mr=45,jr=97,Fr=122,er=/^[a-zA-Z0-9_.%-]+$/;function Fe(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(je),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(je),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(je),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function je(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:je(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*Wr(e,r){let i=K(e,":");if(r.theme.prefix){if(i.length===1||i[0]!==r.theme.prefix)return null;i.shift()}let t=i.pop(),n=[];for(let d=i.length-1;d>=0;--d){let p=r.parseVariant(i[d]);if(p===null)return;n.push(p)}let a=!1;t[t.length-1]==="!"?(a=!0,t=t.slice(0,-1)):t[0]==="!"&&(a=!0,t=t.slice(1)),r.utilities.has(t,"static")&&!t.includes("[")&&(yield{kind:"static",root:t,variants:n,important:a,raw:e});let[o,f=null,u]=K(t,"/");if(u)return;let c=f===null?null:Jt(f);if(f!==null&&c===null)return;if(o[0]==="["){if(o[o.length-1]!=="]")return;let d=o.charCodeAt(1);if(d!==Mr&&!(d>=jr&&d<=Fr))return;o=o.slice(1,-1);let p=o.indexOf(":");if(p===-1||p===0||p===o.length-1)return;let v=o.slice(0,p),h=$e(o.slice(p+1));if(!xe(h))return;yield{kind:"arbitrary",property:v,value:h,modifier:c,variants:n,important:a,raw:e};return}let m;if(o[o.length-1]==="]"){let d=o.indexOf("-[");if(d===-1)return;let p=o.slice(0,d);if(!r.utilities.has(p,"functional"))return;let v=o.slice(d+1);m=[[p,v]]}else if(o[o.length-1]===")"){let d=o.indexOf("-(");if(d===-1)return;let p=o.slice(0,d);if(!r.utilities.has(p,"functional"))return;let v=o.slice(d+2,-1),h=K(v,":"),w=null;if(h.length===2&&(w=h[0],v=h[1]),v[0]!=="-"||v[1]!=="-"||!xe(v))return;m=[[p,w===null?`[var(${v})]`:`[${w}:var(${v})]`]]}else m=Yr(o,d=>r.utilities.has(d,"functional"));for(let[d,p]of m){let v={kind:"functional",root:d,modifier:c,value:null,variants:n,important:a,raw:e};if(p===null){yield v;continue}{let h=p.indexOf("[");if(h!==-1){if(p[p.length-1]!=="]")return;let y=$e(p.slice(h+1,-1));if(!xe(y))continue;let T=null;for(let A=0;A<y.length;A++){let b=y.charCodeAt(A);if(b===Dn){T=y.slice(0,A),y=y.slice(A+1);break}if(!(b===Mr||b>=jr&&b<=Fr))break}if(y.length===0||y.trim().length===0||T==="")continue;v.value={kind:"arbitrary",dataType:T||null,value:y}}else{let y=f===null||v.modifier?.kind==="arbitrary"?null:`${p}/${f}`;if(!er.test(p))continue;v.value={kind:"named",value:p,fraction:y}}}yield v}}function Jt(e){if(e[0]==="["&&e[e.length-1]==="]"){let r=$e(e.slice(1,-1));return!xe(r)||r.length===0||r.trim().length===0?null:{kind:"arbitrary",value:r}}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:$e(e)})):er.test(e)?{kind:"named",value:e}:null}function Br(e,r){if(e[0]==="["&&e[e.length-1]==="]"){if(e[1]==="@"&&e.includes("&"))return null;let i=$e(e.slice(1,-1));if(!xe(i)||i.length===0||i.trim().length===0)return null;let t=i[0]===">"||i[0]==="+"||i[0]==="~";return!t&&i[0]!=="@"&&!i.includes("&")&&(i=`&:is(${i})`),{kind:"arbitrary",selector:i,relative:t}}{let[i,t=null,n]=K(e,"/");if(n)return null;let a=Yr(i,o=>r.variants.has(o));for(let[o,f]of a)switch(r.variants.kind(o)){case"static":return f!==null||t!==null?null:{kind:"static",root:o};case"functional":{let u=t===null?null:Jt(t);if(t!==null&&u===null)return null;if(f===null)return{kind:"functional",root:o,modifier:u,value:null};if(f[f.length-1]==="]"){if(f[0]!=="[")continue;let c=$e(f.slice(1,-1));return!xe(c)||c.length===0||c.trim().length===0?null:{kind:"functional",root:o,modifier:u,value:{kind:"arbitrary",value:c}}}if(f[f.length-1]===")"){if(f[0]!=="(")continue;let c=$e(f.slice(1,-1));return!xe(c)||c.length===0||c.trim().length===0||c[0]!=="-"||c[1]!=="-"?null:{kind:"functional",root:o,modifier:u,value:{kind:"arbitrary",value:`var(${c})`}}}if(!er.test(f))continue;return{kind:"functional",root:o,modifier:u,value:{kind:"named",value:f}}}case"compound":{if(f===null)return null;t&&(o==="not"||o==="has"||o==="in")&&(f=`${f}/${t}`,t=null);let u=r.parseVariant(f);if(u===null||!r.variants.compoundsWith(o,u))return null;let c=t===null?null:Jt(t);return t!==null&&c===null?null:{kind:"compound",root:o,modifier:c,variant:u}}}}return null}function*Yr(e,r){r(e)&&(yield[e,null]);let i=e.lastIndexOf("-");for(;i>0;){let t=e.slice(0,i);if(r(t)){let n=[t,e.slice(i+1)];if(n[1]===""||n[0]==="@"&&r("@")&&e[i]==="-")break;yield n}i=e.lastIndexOf("-",i-1)}e[0]==="@"&&r("@")&&(yield["@",e.slice(1)])}function qr(e,r){let i=[];for(let n of r.variants)i.unshift(At(n));e.theme.prefix&&i.unshift(e.theme.prefix);let t="";if(r.kind==="static"&&(t+=r.root),r.kind==="functional"&&(t+=r.root,r.value))if(r.value.kind==="arbitrary"){if(r.value!==null){let n=tr(r.value.value),a=n?r.value.value.slice(4,-1):r.value.value,[o,f]=n?["(",")"]:["[","]"];r.value.dataType?t+=`-${o}${r.value.dataType}:${Ve(a)}${f}`:t+=`-${o}${Ve(a)}${f}`}}else r.value.kind==="named"&&(t+=`-${r.value.value}`);return r.kind==="arbitrary"&&(t+=`[${r.property}:${Ve(r.value)}]`),(r.kind==="arbitrary"||r.kind==="functional")&&(t+=ot(r.modifier)),r.important&&(t+="!"),i.push(t),i.join(":")}function ot(e){if(e===null)return"";let r=tr(e.value),i=r?e.value.slice(4,-1):e.value,[t,n]=r?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${t}${Ve(i)}${n}`:e.kind==="named"?`/${e.value}`:""}function At(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${Ve(Ln(e.selector))}]`;let r="";if(e.kind==="functional"){r+=e.root;let i=e.root!=="@";if(e.value)if(e.value.kind==="arbitrary"){let t=tr(e.value.value),n=t?e.value.value.slice(4,-1):e.value.value,[a,o]=t?["(",")"]:["[","]"];r+=`${i?"-":""}${a}${Ve(n)}${o}`}else e.value.kind==="named"&&(r+=`${i?"-":""}${e.value.value}`)}return e.kind==="compound"&&(r+=e.root,r+="-",r+=At(e.variant)),(e.kind==="functional"||e.kind==="compound")&&(r+=ot(e.modifier)),r}var Un=new L(e=>{let r=F(e),i=new Set,t=new Set(["~",">","+","-","*","/"]);return I(r,(n,a)=>{let o=a.parent===null?r:a.parent.nodes??[];if(n.kind==="word"&&t.has(n.value)){let f=o.indexOf(n)??-1;if(f===-1)return;let u=o[f-1];if(u?.kind!=="separator"||u.value!==" ")return;let c=o[f+1];if(c?.kind!=="separator"||c.value!==" ")return;let m=o[f-2];if(m&&t.has(m.value))return;let d=o[f+2];if(d&&t.has(d.value))return;i.add(u),i.add(c)}else if(n.kind==="separator"&&n.value.length>0&&n.value.trim()==="")(o[0]===n||o[o.length-1]===n)&&i.add(n);else if(n.kind==="separator"&&n.value.trim()===",")n.value=",";else if(n.kind==="function"&&n.value.startsWith("--")){let f=o.indexOf(n)??-1;if(f<=0)return;let u=o[f-1];if(u?.kind==="separator"&&u.value===",")return;let c=o[f-2];return c&&!t.has(c.value)?void 0:R.ReplaceSkip({kind:"function",value:"",nodes:[n]})}}),i.size>0&&I(r,n=>{if(i.has(n))return i.delete(n),R.ReplaceSkip([])}),Xt(r),Y(r)});function Ve(e){return Un.get(e)}var zn=new L(e=>{let r=F(e);return r.length===3&&r[0].kind==="word"&&r[0].value==="&"&&r[1].kind==="separator"&&r[1].value===":"&&r[2].kind==="function"&&r[2].value==="is"?Y(r[2].nodes):e});function Ln(e){return zn.get(e)}function Xt(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=nt(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=nt(r.value);for(let i=0;i<r.nodes.length;i++)Xt([r.nodes[i]]);break}r.value=nt(r.value),Xt(r.nodes);break}case"separator":r.value=nt(r.value);break;case"word":{(r.value[0]!=="-"||r.value[1]!=="-")&&(r.value=nt(r.value));break}default:Mn(r)}}var Kn=new L(e=>{let r=F(e);return r.length===1&&r[0].kind==="function"&&r[0].value==="var"});function tr(e){return Kn.get(e)}function Mn(e){throw new Error(`Unexpected value: ${e}`)}function nt(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function _e(e,r,i){if(e===r)return 0;let t=e.indexOf("("),n=r.indexOf("("),a=t===-1?e.replace(/[\d.]+/g,""):e.slice(0,t),o=n===-1?r.replace(/[\d.]+/g,""):r.slice(0,n),f=(a===o?0:a<o?-1:1)||(i==="asc"?parseInt(e)-parseInt(r):parseInt(r)-parseInt(e));return Number.isNaN(f)?e<r?-1:1:f}var jn=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"]),Fn=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix)\(/i;function Gr(e){return e.charCodeAt(0)===35||Fn.test(e)||jn.has(e.toLowerCase())}var Wn={color:Gr,length:We,percentage:rr,ratio:io,number:Zr,integer:P,url:Hr,position:lo,"bg-size":ao,"line-width":Yn,image:Hn,"family-name":Qn,"generic-name":Zn,"absolute-size":Jn,"relative-size":Xn,angle:co,vector:po};function Q(e,r){if(e.startsWith("var("))return null;for(let i of r)if(Wn[i]?.(e))return i;return null}var Bn=/^url\(.*\)$/;function Hr(e){return Bn.test(e)}function Yn(e){return K(e," ").every(r=>We(r)||Zr(r)||r==="thin"||r==="medium"||r==="thick")}var qn=/^(?:element|image|cross-fade|image-set)\(/,Gn=/^(repeating-)?(conic|linear|radial)-gradient\(/;function Hn(e){let r=0;for(let i of K(e,","))if(!i.startsWith("var(")){if(Hr(i)){r+=1;continue}if(Gn.test(i)){r+=1;continue}if(qn.test(i)){r+=1;continue}return!1}return r>0}function Zn(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 Qn(e){let r=0;for(let i of K(e,",")){let t=i.charCodeAt(0);if(t>=48&&t<=57)return!1;i.startsWith("var(")||(r+=1)}return r>0}function Jn(e){return e==="xx-small"||e==="x-small"||e==="small"||e==="medium"||e==="large"||e==="x-large"||e==="xx-large"||e==="xxx-large"}function Xn(e){return e==="larger"||e==="smaller"}var Ae=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,eo=new RegExp(`^${Ae.source}$`);function Zr(e){return eo.test(e)||it(e)}var to=new RegExp(`^${Ae.source}%$`);function rr(e){return to.test(e)||it(e)}var ro=new RegExp(`^${Ae.source}\\s*/\\s*${Ae.source}$`);function io(e){return ro.test(e)||it(e)}var no=["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"],oo=new RegExp(`^${Ae.source}(${no.join("|")})$`);function We(e){return oo.test(e)||it(e)}function lo(e){let r=0;for(let i of K(e," ")){if(i==="center"||i==="top"||i==="right"||i==="bottom"||i==="left"){r+=1;continue}if(!i.startsWith("var(")){if(We(i)||rr(i)){r+=1;continue}return!1}}return r>0}function ao(e){let r=0;for(let i of K(e,",")){if(i==="cover"||i==="contain"){r+=1;continue}let t=K(i," ");if(t.length!==1&&t.length!==2)return!1;if(t.every(n=>n==="auto"||We(n)||rr(n))){r+=1;continue}}return r>0}var so=["deg","rad","grad","turn"],uo=new RegExp(`^${Ae.source}(${so.join("|")})$`);function co(e){return uo.test(e)}var fo=new RegExp(`^${Ae.source} +${Ae.source} +${Ae.source}$`);function po(e){return fo.test(e)}function P(e){let r=Number(e);return Number.isInteger(r)&&r>=0&&String(r)===String(e)}function ir(e){let r=Number(e);return Number.isInteger(r)&&r>0&&String(r)===String(e)}function te(e){return Qr(e,.25)}function Ct(e){return Qr(e,.25)}function Qr(e,r){let i=Number(e);return i>=0&&i%r===0&&String(i)===String(e)}var mo=new Set(["inset","inherit","initial","revert","unset"]),Jr=/^-?(\d+|\.\d+)(.*?)$/g;function lt(e,r){return K(e,",").map(t=>{t=t.trim();let n=K(t," ").filter(c=>c.trim()!==""),a=null,o=null,f=null;for(let c of n)mo.has(c)||(Jr.test(c)?(o===null?o=c:f===null&&(f=c),Jr.lastIndex=0):a===null&&(a=c));if(o===null||f===null)return t;let u=r(a??"currentcolor");return a!==null?t.replace(a,u):`${t} ${u}`}).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"],nr=class{utilities=new L(()=>[]);completions=new Map;static(r,i){this.utilities.get(r).push({kind:"static",compileFn:i})}functional(r,i,t){this.utilities.get(r).push({kind:"functional",compileFn:i,options:t})}has(r,i){return this.utilities.has(r)&&this.utilities.get(r).some(t=>t.kind===i)}get(r){return this.utilities.has(r)?this.utilities.get(r):[]}getCompletions(r){return this.has(r,"static")?this.completions.get(r)?.()??[{supportsNegative:!1,values:[],modifiers:[]}]:this.completions.get(r)?.()??[]}suggest(r,i){let t=this.completions.get(r);t?this.completions.set(r,()=>[...t?.(),...i?.()]):this.completions.set(r,i)}keys(r){let i=[];for(let[t,n]of this.utilities.entries())for(let a of n)if(a.kind===r){i.push(t);break}return i}};function S(e,r,i){return W("@property",e,[l("syntax",i?`"${i}"`:'"*"'),l("inherits","false"),...r?[l("initial-value",r)]:[]])}function J(e,r){if(r===null)return e;let i=Number(r);return Number.isNaN(i)||(r=`${i*100}%`),r==="100%"?e:`color-mix(in oklab, ${e} ${r}, transparent)`}function ei(e,r){let i=Number(r);return Number.isNaN(i)||(r=`${i*100}%`),`oklab(from ${e} l a b / ${r})`}function X(e,r,i){if(!r)return e;if(r.kind==="arbitrary")return J(e,r.value);let t=i.resolve(r.value,["--opacity"]);return t?J(e,t):Ct(r.value)?J(e,`${r.value}%`):null}function re(e,r,i){let t=null;switch(e.value.value){case"inherit":{t="inherit";break}case"transparent":{t="transparent";break}case"current":{t="currentcolor";break}default:{t=r.resolve(e.value.value,i);break}}return t?X(t,e.modifier,r):null}var ti=/(\d+)_(\d+)/g;function ri(e){let r=new nr;function i(s,g){function*k(x){for(let $ of e.keysInNamespaces(x))yield $.replace(ti,(U,V,O)=>`${V}.${O}`)}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"];r.suggest(s,()=>{let x=[];for(let $ of g()){if(typeof $=="string"){x.push({values:[$],modifiers:[]});continue}let U=[...$.values??[],...k($.valueThemeKeys??[])],V=[...$.modifiers??[],...k($.modifierThemeKeys??[])];$.supportsFractions&&U.push(...C),$.hasDefaultValue&&U.unshift(null),x.push({supportsNegative:$.supportsNegative,values:U,modifiers:V})}return x})}function t(s,g){r.static(s,()=>g.map(k=>typeof k=="function"?k():l(k[0],k[1])))}function n(s,g){g.staticValues&&(g.staticValues=Object.assign(Object.create(null),g.staticValues));function k({negative:C}){return x=>{let $=null,U=null;if(x.value)if(x.value.kind==="arbitrary"){if(x.modifier)return;$=x.value.value,U=x.value.dataType}else{if($=e.resolve(x.value.fraction??x.value.value,g.themeKeys??[]),$===null&&g.supportsFractions&&x.value.fraction){let[V,O]=K(x.value.fraction,"/");if(!P(V)||!P(O))return;$=`calc(${V} / ${O} * 100%)`}if($===null&&C&&g.handleNegativeBareValue){if($=g.handleNegativeBareValue(x.value),!$?.includes("/")&&x.modifier)return;if($!==null)return g.handle($,null)}if($===null&&g.handleBareValue&&($=g.handleBareValue(x.value),!$?.includes("/")&&x.modifier))return;if($===null&&!C&&g.staticValues&&!x.modifier){let V=g.staticValues[x.value.value];if(V)return V.map(ee)}}else{if(x.modifier)return;$=g.defaultValue!==void 0?g.defaultValue:e.resolve(null,g.themeKeys??[])}if($!==null)return g.handle(C?yt(`calc(${$} * -1)`):$,U)}}if(g.supportsNegative&&r.functional(`-${s}`,k({negative:!0})),r.functional(s,k({negative:!1})),i(s,()=>[{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);i(s,()=>[{values:C}])}}function a(s,g){r.functional(s,k=>{if(!k.value)return;let C=null;if(k.value.kind==="arbitrary"?(C=k.value.value,C=X(C,k.modifier,e)):C=re(k,e,g.themeKeys),C!==null)return g.handle(C)}),i(s,()=>[{values:["current","inherit","transparent"],valueThemeKeys:g.themeKeys,modifiers:Array.from({length:21},(k,C)=>`${C*5}`)}])}function o(s,g,k,{supportsNegative:C=!1,supportsFractions:x=!1,staticValues:$}={}){C&&r.static(`-${s}-px`,()=>k("-1px")),r.static(`${s}-px`,()=>k("1px")),n(s,{themeKeys:g,supportsFractions:x,supportsNegative:C,defaultValue:null,handleBareValue:({value:U})=>{let V=e.resolve(null,["--spacing"]);return!V||!te(U)?null:`calc(${V} * ${U})`},handleNegativeBareValue:({value:U})=>{let V=e.resolve(null,["--spacing"]);return!V||!te(U)?null:`calc(${V} * -${U})`},handle:k,staticValues:$}),i(s,()=>[{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[s,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(`${s}-auto`,[[g,"auto"]]),t(`${s}-full`,[[g,"100%"]]),t(`-${s}-full`,[[g,"-100%"]]),o(s,["--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:s})=>P(s)?s:null,themeKeys:["--z-index"],handle:s=>[l("z-index",s)],staticValues:{auto:[l("z-index","auto")]}}),i("z",()=>[{supportsNegative:!0,values:["0","10","20","30","40","50"],valueThemeKeys:["--z-index"]}]),n("order",{supportsNegative:!0,handleBareValue:({value:s})=>P(s)?s:null,themeKeys:["--order"],handle:s=>[l("order",s)],staticValues:{first:[l("order","-9999")],last:[l("order","9999")]}}),i("order",()=>[{supportsNegative:!0,values:Array.from({length:12},(s,g)=>`${g+1}`),valueThemeKeys:["--order"]}]),n("col",{supportsNegative:!0,handleBareValue:({value:s})=>P(s)?s:null,themeKeys:["--grid-column"],handle:s=>[l("grid-column",s)],staticValues:{auto:[l("grid-column","auto")]}}),n("col-span",{handleBareValue:({value:s})=>P(s)?s:null,handle:s=>[l("grid-column",`span ${s} / span ${s}`)],staticValues:{full:[l("grid-column","1 / -1")]}}),n("col-start",{supportsNegative:!0,handleBareValue:({value:s})=>P(s)?s:null,themeKeys:["--grid-column-start"],handle:s=>[l("grid-column-start",s)],staticValues:{auto:[l("grid-column-start","auto")]}}),n("col-end",{supportsNegative:!0,handleBareValue:({value:s})=>P(s)?s:null,themeKeys:["--grid-column-end"],handle:s=>[l("grid-column-end",s)],staticValues:{auto:[l("grid-column-end","auto")]}}),i("col-span",()=>[{values:Array.from({length:12},(s,g)=>`${g+1}`),valueThemeKeys:[]}]),i("col-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(s,g)=>`${g+1}`),valueThemeKeys:["--grid-column-start"]}]),i("col-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(s,g)=>`${g+1}`),valueThemeKeys:["--grid-column-end"]}]),n("row",{supportsNegative:!0,handleBareValue:({value:s})=>P(s)?s:null,themeKeys:["--grid-row"],handle:s=>[l("grid-row",s)],staticValues:{auto:[l("grid-row","auto")]}}),n("row-span",{themeKeys:[],handleBareValue:({value:s})=>P(s)?s:null,handle:s=>[l("grid-row",`span ${s} / span ${s}`)],staticValues:{full:[l("grid-row","1 / -1")]}}),n("row-start",{supportsNegative:!0,handleBareValue:({value:s})=>P(s)?s:null,themeKeys:["--grid-row-start"],handle:s=>[l("grid-row-start",s)],staticValues:{auto:[l("grid-row-start","auto")]}}),n("row-end",{supportsNegative:!0,handleBareValue:({value:s})=>P(s)?s:null,themeKeys:["--grid-row-end"],handle:s=>[l("grid-row-end",s)],staticValues:{auto:[l("grid-row-end","auto")]}}),i("row-span",()=>[{values:Array.from({length:12},(s,g)=>`${g+1}`),valueThemeKeys:[]}]),i("row-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(s,g)=>`${g+1}`),valueThemeKeys:["--grid-row-start"]}]),i("row-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(s,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[s,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(`${s}-auto`,[[g,"auto"]]),o(s,["--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:s})=>P(s)?s:null,handle:s=>[l("overflow","hidden"),l("display","-webkit-box"),l("-webkit-box-orient","vertical"),l("-webkit-line-clamp",s)],staticValues:{none:[l("overflow","visible"),l("display","block"),l("-webkit-box-orient","horizontal"),l("-webkit-line-clamp","unset")]}}),i("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:s})=>{if(s===null)return null;let[g,k]=K(s,"/");return!te(g)||!te(k)?null:s},handle:s=>[l("aspect-ratio",s)],staticValues:{auto:[l("aspect-ratio","auto")],square:[l("aspect-ratio","1 / 1")]}});for(let[s,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-${s}`,[["--tw-sort","size"],["width",g],["height",g]]),t(`w-${s}`,[["width",g]]),t(`h-${s}`,[["height",g]]),t(`min-w-${s}`,[["min-width",g]]),t(`min-h-${s}`,[["min-height",g]]),t(`max-w-${s}`,[["max-width",g]]),t(`max-h-${s}`,[["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-none",[["max-width","none"]]),t("max-h-none",[["max-height","none"]]),o("size",["--size","--spacing"],s=>[l("--tw-sort","size"),l("width",s),l("height",s)],{supportsFractions:!0});for(let[s,g,k]of[["w",["--width","--spacing","--container"],"width"],["min-w",["--min-width","--spacing","--container"],"min-width"],["max-w",["--max-width","--spacing","--container"],"max-width"],["h",["--height","--spacing"],"height"],["min-h",["--min-height","--height","--spacing"],"min-height"],["max-h",["--max-height","--height","--spacing"],"max-height"]])o(s,g,C=>[l(k,C)],{supportsFractions:!0});for(let[s,g]of[["full","100%"],["min","min-content"],["max","max-content"],["fit","fit-content"]])t(`inline-${s}`,[["inline-size",g]]),t(`block-${s}`,[["block-size",g]]),t(`min-inline-${s}`,[["min-inline-size",g]]),t(`min-block-${s}`,[["min-block-size",g]]),t(`max-inline-${s}`,[["max-inline-size",g]]),t(`max-block-${s}`,[["max-block-size",g]]);for(let[s,g]of[["svw","100svw"],["lvw","100lvw"],["dvw","100dvw"]])t(`inline-${s}`,[["inline-size",g