@master/css
Advanced tools
Comparing version 2.0.0-beta.181 to 2.0.0-beta.182
@@ -1,2 +0,2 @@ | ||
var Ne=Object.defineProperty;var Qe=Object.getOwnPropertyDescriptor;var Ue=Object.getOwnPropertyNames;var qe=Object.prototype.hasOwnProperty;var Ke=(e,t)=>{for(var r in t)Ne(e,r,{get:t[r],enumerable:!0})},Ze=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Ue(t))!qe.call(e,l)&&l!==r&&Ne(e,l,{get:()=>t[l],enumerable:!(o=Qe(t,l))||o.enumerable});return e};var Ge=e=>Ze(Ne({},"__esModule",{value:!0}),e);var lt={};Ke(lt,{CONFIG_ESM_TEXT:()=>He,CONFIG_TEXT:()=>Ye,CONFIG_TS_TEXT:()=>Xe,CoreLayer:()=>je,Layer:()=>Me,MasterCSS:()=>ie,Rule:()=>ue,animations:()=>Te,colors:()=>we,config:()=>de,default:()=>ie,extend:()=>ce,extractClassesFromHTML:()=>ye,fillColorScale:()=>$,fonts:()=>Pe,functions:()=>Ee,generateFromClasses:()=>be,generateFromHTML:()=>he,initRuntime:()=>We,renderHTML:()=>Ae,rules:()=>Be,selectors:()=>ke,semantics:()=>Oe,viewports:()=>Se});module.exports=Ge(lt);function ze(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function De(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function Le(e){let t=[];return e.forEach(function(r,o){typeof r=="object"&&r!==null?Array.isArray(r)?t[o]=Le(r):ze(r)?t[o]=De(r):t[o]=ce({},r):t[o]=r}),t}function Ie(e,t){return t==="__proto__"?void 0:e[t]}function ce(...e){let t={},r,o;return e.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(s){if(o=Ie(t,s),r=Ie(l,s),r!==t)if(typeof r!="object"||r===null){t[s]=r;return}else if(Array.isArray(r)){t[s]=Le(r);return}else if(ze(r)){t[s]=De(r);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[s]=ce({},r);return}else{t[s]=ce(o,r);return}})}),t}var fe={"(":")","'":"'",'"':'"',"{":"}"};function ge(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,o=-1,l="",s,f=t.charCodeAt(0);if(r==1&&f==45)return"\\"+t;for(;++o<r;){if(s=t.charCodeAt(o),s==0){l+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&f==45){l+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){l+=t.charAt(o);continue}l+="\\"+t.charAt(o)}return l}function Ve(e,t){let r=t.endsWith("%")?parseFloat(t)/100:+t;return r=isNaN(r)?1:Math.min(Math.max(r,0),1),e+Math.round(r*255).toString(16).toUpperCase().padStart(2,"0")}var Je=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ue=class{constructor(t,r={},o){this.className=t;this.config=r;this.css=o;let{unit:l,colored:s,_propName:f,_semantic:c,analyze:p,transform:y,declare:x,_declarations:a,create:m,order:g,id:v}=this.config;this.order=g,this.config.unit||(this.config.unit=""),this.config.separators||(this.config.separators=[","]);let{scope:b,important:d,functions:u,themeDriver:i}=o.config,{themeNames:n,colorNames:h,colors:N,selectors:j,viewports:M,mediaQueries:E,classesBy:k,globalValues:B,animations:A}=o,X=k[t];m&&m.call(this,t);let G,ae,te,F,q,Z=s;if(c)F=t.slice(v.length-1),G=a;else{let z;if(p)[z,te]=p.call(this,t);else{let H=t.indexOf(":");this.prefix=t.slice(0,H+1),z=t.slice(H+1)}q=[];let _=this,V=this.values,Q=[","];this.config.separators.length&&Q.push(...this.config.separators);let O="",P=0;(function H(I,C,S,R=void 0,w=[],D=[],W){let T=R===void 0,U,J=L=>L==="'"||L==='"',se=()=>U=O.length,ee=()=>{if(O){let L=O,Y=T?L:O.slice(U);if(O="",re="",V&&Y in V&&!w.includes(Y)){let K=P;P=0,H(V[Y].toString(),C,void 0,R,[...w,Y],D,W),P=K,T||(O=L.slice(0,U)+O)}else if(B&&Y in B&&!D.includes(Y)){let K=P;P=0,H(B[Y].toString(),C,void 0,R,w,[...D,Y],W),P=K,T||(O=L.slice(0,U)+O)}else if(T){let K=!W&&_.analyzeUnitValue(Y,C);q.push({value:K?.value??Y,unit:K?.unit})}else{let K=!W&&_.analyzeUnitValue(Y,C);O=K?L.slice(0,U)+K.value+K.unit:L}se()}},ne=J(S);se();let re="";for(;P<I.length;P++){let L=I[P];if(L===S){if(ne){O+=L;let Y=0;for(let K=O.length-2;O[K]==="\\";K--)Y++;if(Y%2)continue}else ee(),O+=L;return}else if(!ne&&L in fe){let Y=L==="("&&re&&u?.[re];Y?.name&&(O=O.slice(0,O.length-re.length)+Y.name,re=Y.name),!Z&&Y?.colored&&(Z=!0),O+=L,P++;let K=fe[L];H(I,Y?.unit??C,K,re||R||"",w,D,W||!!Y?.transform),Y?.transform&&(O=O.slice(0,U+re.length+1)+Y.transform.call(_,O.slice(U+re.length+1,-1))+O.slice(-1)),T&&(J(K)?(q.push(O),O=""):ee()),re=""}else if((L==="|"||L===" ")&&S!=="}"&&(!ne||R==="path"))ee(),T||(O+=" ",U++);else{if(!ne){if(L==="."){if(isNaN(+I[P+1]))break;I[P-1]==="-"&&(O+="0")}else if(Q.includes(L)){ee(),T?q.push(L):(O+=L,U++);continue}else if(T&&(L==="#"&&(O||q.length&&I[P-1]!=="|"&&q[P-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(L)))break;re+=L}O+=L}}R===void 0&&ee()})(z,l),F=z.slice(P)}F[0]==="!"&&(this.important=!0,F=F.slice(1));let oe=(z,_)=>{let V=(C,S,R,w)=>{for(let[D,W]of S)if(D.test(C)){for(let T of W)V(C.replace(D,T),S,R,!0);return}w&&R.push(C)},Q=C=>{let S=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((W,T)=>T%3?W:W.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),R=[],w="",D=0;for(let W=0;W<S.length;W++){let T=S[W];if(T==="\\"){w+=T+S[++W];continue}!D&&T===","?(R.push(w),w=""):(w+=T,D&&T===")"?D--:T==="("&&D++)}return w&&R.push(w),R},O=[];""in j?V(z,j[""],O,!0):O.push(z);let P={};for(let[C,S]of Object.entries(j)){if(!C)continue;let R=[];for(let w of O)V(w,S,R,!1);R.length&&(P[C]=R)}let H=(C,S)=>{let R=S.reduce((w,D)=>(w.push(...Q(D)),w),[]);C in _?_[C].push(...R):_[C]=R},I=Object.keys(P);if(I.length)for(let C of I)H(C,P[C]);else H("",O)};te?(this.vendorPrefixSelectors={},oe(te,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let le=F.split("@"),xe=le[0];if(xe){this.vendorSuffixSelectors={},oe(xe,this.vendorSuffixSelectors);for(let z of Object.values(this.vendorSuffixSelectors))for(let _ of z){this.hasWhere!==!1&&(this.hasWhere=_.includes(":where("));let V=[":disabled",":active",":focus",":hover"];for(let Q=0;Q<V.length;Q++)if(_.includes(V[Q])){(this.priority===-1||this.priority>Q)&&(this.priority=Q);break}}}else this.vendorSuffixSelectors={"":[""]};let me={},Fe=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),_e=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(Fe)me[""]=_e?[""]:Object.keys(this.vendorSuffixSelectors);else if(_e)for(let z in this.vendorPrefixSelectors)me[z]=[""];else for(let z in this.vendorPrefixSelectors){let _=me[z]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,z))_.push(z);else for(let V in this.vendorSuffixSelectors)_.push(V)}for(let z=1;z<le.length;z++){let _=le[z];if(_)if(_==="rtl"||_==="ltr")this.direction=_;else{let V,Q,O=Je.exec(_);if(O)V=O[1],Q=_.slice(V.length);else{this.media={token:_,features:{}};let P=[],H=C=>{if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")P.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")P.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else if(E&&C in E)P.push(E[C]);else{let S={token:C},R="",w="",D=0;C.startsWith("<=")?(w="<=",R="max-width"):C.startsWith(">=")||M[C]?(w=">=",R="min-width"):C.startsWith(">")?(w=">",R="min-width",D=.02):C.startsWith("<")&&(w="<",R="max-width",D=-.02);let W=w?C.replace(w,""):C,T=M[W];switch(R){case"max-width":case"min-width":T?Object.assign(S,this.analyzeUnitValue(T.toString(),"px")):Object.assign(S,this.analyzeUnitValue(W,"px")),S.unit==="px"&&(S.value+=D),this.media.features[R]=S,P.push("("+R+":"+(S.value+S.unit)+")");break}}},I=_.includes("&");if(I){let C=_.split("&");for(let S of C)H(S)}else H(_);if(this.media.type&&(Q=this.media.type),P.length&&(Q=P.join(" and ")),Q)V="media";else if(!I){this.theme=_;continue}}Q&&(this.at[V]=(V in this.at?this.at[V]+" and ":"")+Q.replace(/\|/g," "))}}let Re=(z,_)=>{let V,Q=(H,I,C,S)=>{let R="";this.direction&&(R+="[dir="+this.direction+"] ");let w=C.map(T=>T+R),D=(T,U)=>w.map(J=>(T&&i!=="media"?i==="host"?`:host(.${T}) `:`.${T} `:"")+(b?b+" ":"")+J).reduce((J,se)=>(J.push(S.reduce((ee,ne)=>(ee.push(se+"."+ge(U)+ne),ee),[]).join(",")),J),[]).join(","),W=D(I,t)+(X?X.reduce((T,U)=>T+","+D(this.theme??(Z||ae?I:""),U),""):"")+"{"+H+"}";for(let T of Object.keys(this.at).sort((U,J)=>J==="supports"?-1:1))W="@"+T+(T.includes(" ")?"":" ")+this.at[T]+"{"+W+"}";return I&&i==="media"&&(W=`@media(prefers-color-scheme:${I}){`+W+"}"),W},O=[];if(q){let H=[this.theme??z,""],I,C=!1;for(let S of q)if(typeof S=="string")O.push(S);else{let R=S.value;if(S.unit)R+=S.unit;else if(Z&&N&&h){let w=!1;R=R.replace(o.colorTokenRegExp,(D,W,T,U)=>{let J=N[T];if(J){let se,ee;for(let ne of H)if(se=J[ne]){ee=ne;break}if(se)return w=!_||ee===z,I||(I=w),W+(U?Ve(se,U):se);C=!0}return D})}O.push(R)}if(_&&(C||(I===void 0?z:!I)))return;if(V=O.reduce((S,R,w)=>S+R+(R===","||q[w+1]===","||w===q.length-1?"":" "),""),y&&(V=y.call(this,V,this.css.config)),x){let S,R;if(q.length===1){let w=q[0];typeof w=="object"&&(S=w.value,R=w.unit)}G=x.call(this,R?S:V,R||"")}else G={[f]:V}}let P={};for(let H in G){let I=(R,w)=>{if(A&&(w.startsWith("animation")||w.startsWith("animation-name"))){let W=w.split(":")[1].split("!important")[0].split(" ").filter(T=>T in this.css.animations&&(!this.animationNames||!this.animationNames.includes(T)));W.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...W))}let D=w+((this.important||d)&&!w.endsWith("!important")?"!important":"");R in P?P[R].push(D):P[R]=[D]},C=H+":",S=G[H];if(typeof S=="object")if(Array.isArray(S))for(let R of S)I(z,C+R.toString());else{ae=!0;for(let R in S)I(R,C+S[R])}else I(z,C+S.toString())}for(let H in me)for(let I of me[H])for(let C in P)this.natives.push({text:Q(P[C].join(";"),C,this.vendorPrefixSelectors[H],this.vendorSuffixSelectors[I]),theme:C})};if(this.theme)Re(this.theme,!1);else if(Z)for(let z of n)Re(z,!0);else Re("",!1)}at={};priority=-1;natives=[];order=0;animationNames;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,r){return Number.isNaN(+t)?t:t/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(t,r){let o=r??this.config.unit;if(o){let l="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[f,c]=t.split("/");return{value:+f/+c*100+"%",unit:l}}else{let f=+s[1];return l=s[3]||"",l||((o==="rem"||o==="em")&&(f=f/this.css.config.rootSize),l=o||""),{value:f,unit:l}}}}};var et={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Se=et;function pe(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function ve(e,t,r){return((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1)}function $(e){typeof e=="string"&&(e={"":e});let t=""in e,r=!1;for(let o in e)if(o&&+o>=100){r=!0;break}if(!r&&(!t||Object.keys(e).length>1)){let o=0,l="0"in e?pe(e[0]):[0,0,0],s,f,c=[],p=()=>{let y=s-o,x=f.map((a,m)=>(a-l[m])/y);for(let a of c){let m=a-o,g=l.map((v,b)=>Math.round(v+x[b]*m));e[a]="#"+ve.call(this,...g)}};for(let y=1;y<100;y++)y in e?(c.length?(s=y,f=pe(e[y]),p(),c.length=0,l=f):l=pe(e[y]),o=y):c.push(y);c.length&&(s=100,f="100"in e?pe(e[100]):[255,255,255],p())}return t||(e[""]=e[r?"500":"50"]),e}var tt={black:"#000000",white:"#ffffff",current:"currentColor",transparent:"transparent",slate:$({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:$({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:$({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:$({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:$({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:$({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:$({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:$({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:$({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:$({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:$({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:$({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:$({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:$({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:$({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:$({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:$({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:$({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:$({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:$({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},we=tt;var rt={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},ke=rt;var it={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},Oe=it;var ot={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},Te=ot;var Me=(l=>(l[l.NativeShorthand=-300]="NativeShorthand",l[l.Shorthand=-200]="Shorthand",l[l.Native=-100]="Native",l[l.Normal=0]="Normal",l))(Me||{}),je=(s=>(s[s.Semantic=-401]="Semantic",s[s.NativeShorthand=-301]="NativeShorthand",s[s.Shorthand=-201]="Shorthand",s[s.Native=-101]="Native",s[s.Normal=-1]="Normal",s))(je||{});var st={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},r=(y,x)=>{let a=x.indexOf(":");if(a!==-1){y in t||(t[y]={});let m=t[y],g=x.slice(0,a);g in m||(m[g]=x.slice(a+1))}},o=y=>{let x=(a,m)=>{let g=m.slice(ge(y.className).length).match(/\{(.*)\}/)[1].split(";");for(let v of g)r(a,v)};if(this.theme){let a=y.natives.find(m=>m.theme===this.theme)??y.natives.find(m=>!m.theme);a&&x(this.theme,a.text)}else for(let a of y.natives)x(a.theme,a.text);if(y.animationNames){this.animationNames||(this.animationNames=[]);for(let a of y.animationNames)this.animationNames.includes(a)||this.animationNames.push(a)}},l=[],s="",f=()=>{s&&(l.push(s.replace(/ /g,"|")),s="")},c=1;(function y(x){for(;c<e.length;c++){let a=e[c];if(!x){if(a===";"){f();continue}if(a==="}")break}if(s+=a,x===a){if(x==="'"||x==='"'){let m=0;for(let g=s.length-2;s[g]==="\\";g--)m++;if(m%2)continue}break}else a in fe&&x!=="'"&&x!=='"'&&(c++,y(fe[a]))}})(void 0),f();for(let y of l){let x=this.css.create(y);if(Array.isArray(x))if(x.length)for(let a of x)o(a);else r(this.theme??"",y);else o(x)}let p={};for(let y in t)for(let[x,a]of Object.entries(t[y]))x in p?p[x][y]=a:p[x]={[y]:a};return p}},variable:{match:/^\$[\w-]+:./,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-101},fontWeight:{match:["f(?:ont)?",["bolder"]],layer:-101,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:["f(?:ont)?"],layer:-101,values(){return this.fonts}},fontSmoothing:{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-101,declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-101,unit:"deg"},fontVariantNumeric:{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-101},fontFeatureSettings:{match:/^font-feature:./,layer:-101},font:{match:/^f:./,layer:-301,values({fontSize:e,fontStyle:t,fontWeight:r,lineHeight:o}){return{...e,...t,...r,...o,...this.fonts}}},color:{match:/^(?:color|fg|foreground):./,layer:-101,colored:!0},marginLeft:{match:/^ml:./,layer:-101,unit:"rem"},marginRight:{match:/^mr:./,layer:-101,unit:"rem"},marginTop:{match:/^mt:./,layer:-101,unit:"rem"},marginBottom:{match:/^mb:./,layer:-101,unit:"rem"},marginX:{match:/^(?:mx|margin-x):./,unit:"rem",layer:-201,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:/^(?:my|margin-y):./,unit:"rem",layer:-201,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},margin:{match:/^m:./,unit:"rem",layer:-301},paddingLeft:{match:/^pl:./,layer:-101,unit:"rem"},paddingRight:{match:/^pr:./,layer:-101,unit:"rem"},paddingTop:{match:/^pt:./,layer:-101,unit:"rem"},paddingBottom:{match:/^pb:./,layer:-101,unit:"rem"},paddingX:{match:/^(?:px|padding-x):./,unit:"rem",layer:-201,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:/^(?:py|padding-y):./,unit:"rem",layer:-201,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:/^p:./,unit:"rem",layer:-301},order:{match:/^o:./,layer:-101},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",layer:-101},flexWrap:{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-101},flexGrow:{layer:-101},flexShrink:{layer:-101},flexDirection:{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-101,values:{col:"column","col-reverse":"column-reverse"}},flex:{layer:-301},display:{match:/^d:./,layer:-101},width:{match:/^w:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},Height:{match:/^h:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:/^min-w:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:/^min-h:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,r]=e.split(" x ");return{width:t,height:r}}},minBox:{match:/^min:./,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,r]=e.split(" x ");return{"min-width":t,"min-height":r}}},maxBox:{match:/^max:./,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,r]=e.split(" x ");return{"max-width":t,"max-height":r}}},boxSizing:{match:/^box:./,layer:-101,values:{content:"content-box",border:"border-box"}},boxDecorationBreak:{match:["box",["slice","clone"]],layer:-101,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},contain:{layer:-101},content:{layer:-101},counterIncrement:{layer:-101},counterReset:{layer:-101},letterSpacing:{match:/^ls:./,layer:-101,unit:"em"},lineHeight:{match:/^lh:./,layer:-101},objectFit:{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-101},objectPosition:{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-101},textAlign:{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-101},textDecorationColor:{match:["text-decoration"],layer:-101,colored:!0},textDecorationStyle:{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-101},textDecorationThickness:{match:["text-decoration",["from-font"]],numeric:!0,layer:-101,unit:"em"},textDecorationLine:{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-101},textDecoration:{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-301},textUnderlineOffset:{unit:"rem",layer:-101},textOverflow:{match:["t(?:ext)?",["ellipsis","clip"]],layer:-101},textOrientation:{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-101},textTransform:{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-101},textRendering:{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-101},textIndent:{unit:"rem",layer:-101},verticalAlign:{match:/^(?:v|vertical):./,layer:-101},columns:{match:/^(?:columns|cols):./,layer:-301},whiteSpace:{layer:-101},top:{layer:-101,unit:"rem"},bottom:{layer:-101,unit:"rem"},left:{layer:-101,unit:"rem"},right:{layer:-101,unit:"rem"},inset:{unit:"rem",layer:-301},lines:{match:/^lines:./,declare(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:/^max-h:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:/^max-w:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},opacity:{layer:-101},visibility:{layer:-101},clear:{layer:-101},float:{layer:-101},isolation:{layer:-101},overflowX:{layer:-101,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{layer:-101,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-301,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},overscrollBehaviorX:{layer:-101},overscrollBehaviorY:{layer:-101},overscrollBehavior:{layer:-301},zIndex:{match:/^z:./,layer:-101},position:{layer:-101,values:{abs:"absolute",rel:"relative"}},cursor:{layer:-101},pointerEvents:{layer:-101},resize:{layer:-101},touchAction:{layer:-101},wordBreak:{layer:-101},wordSpacing:{layer:-101,unit:"em"},userDrag:{layer:-101,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{layer:-101,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",layer:-101,colored:!0},textSize:{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{match:["(?:text-fill|text|t)"],layer:-101,colored:!0,declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-101,declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:["text-stroke"],layer:-101,colored:!0,declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",layer:-101,declare(e,t){return{"-webkit-text-stroke":e+t}}},boxShadow:{match:/^s(?:hadow)?:./,unit:"rem",layer:-101,colored:!0},tableLayout:{layer:-101},transformBox:{match:["transform"],layer:-101,values:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:["transform",["flat","preserve-3d"]],layer:-101},transformOrigin:{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-101},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-101,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},transitionProperty:{match:/^~property:./,layer:-101},transitionTimingFunction:{match:/^~easing:./,layer:-101},transitionDuration:{match:/^~duration:./,layer:-101,unit:"ms"},transitionDelay:{match:/^~delay:./,layer:-101,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},layer:-301},animationDelay:{match:/^@delay:./,layer:-101,unit:"ms"},animationDirection:{match:/^@direction:./,layer:-101,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:/^@duration:./,layer:-101,unit:"ms"},animationFillMode:{match:/^@fill:./,layer:-101},animationIterationCount:{match:/^@iteration:./,layer:-101},animationName:{match:/^@name:./,layer:-101},animationPlayState:{match:/^@play:./,layer:-101},animationTimingFunction:{match:/^@easing:./,layer:-101},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-301,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},borderCollapse:{match:["b(?:order)?",["collapse","separate"]],layer:-101},borderSpacing:{unit:"rem",layer:-101},borderTopColor:{match:["b(?:t|order-top(?:-color)?)"],layer:-101,colored:!0},borderBottomColor:{match:["b(?:b|order-bottom(?:-color)?)"],layer:-101,colored:!0},borderLeftColor:{match:["b(?:l|order-left(?:-color)?)"],layer:-101,colored:!0},borderRightColor:{match:["b(?:r|order-right(?:-color)?)"],layer:-101,colored:!0},borderXColor:{match:["b(?:x|order-x(?:-color)?)"],layer:-201,colored:!0,declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:["b(?:y|order-y(?:-color)?)"],layer:-201,colored:!0,declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},borderColor:{match:["b(?:order)?(?:-color)?"],layer:-301,colored:!0},borderTopLeftRadius:{match:/^r(?:tl|lt):./,unit:"rem",layer:-101},borderTopRightRadius:{match:/^r(?:tr|rt):./,unit:"rem",layer:-101},borderBottomLeftRadius:{match:/^r(?:bl|lb):./,unit:"rem",layer:-101},borderBottomRightRadius:{match:/^r(?:br|rb):./,unit:"rem",layer:-101},borderTopRadius:{match:/^rt:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:/^rb:./,unit:"rem",layer:-201,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:/^rl:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:/^rr:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},borderRadius:{match:/^r:./,unit:"rem",layer:-301},borderTopStyle:{match:["b(?:t|order-top(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderBottomStyle:{match:["b(?:b|order-bottom(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderLeftStyle:{match:["b(?:l|order-left(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderRightStyle:{match:["b(?:r|order-right(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderXStyle:{match:["b(?:x|order-x(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-201,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:["b(?:y|order-y(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-201,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},borderStyle:{match:["b(?:order)?(?:-style)?",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-301},borderTopWidth:{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderBottomWidth:{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderLeftWidth:{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderRightWidth:{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderXWidth:{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},borderWidth:{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-301},borderImageOutset:{unit:"rem",layer:-101},borderImageRepeat:{match:["border-image",["stretch","repeat","round","space"]],layer:-101},borderImageSlice:{layer:-101},borderImageSource:{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-101},borderImageWidth:{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-101},borderImage:{layer:-301},borderTop:{match:/^bt:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:/^bb:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:/^bl:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:/^br:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:/^(?:bx|border-x):./,unit:"rem",colored:!0,layer:-201,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:/^(?:by|border-y):./,unit:"rem",colored:!0,layer:-201,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:./,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},layer:-301},backgroundAttachment:{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-101},backgroundBlendMode:{layer:-101},backgroundColor:{match:["(?:bg|background)"],layer:-101,colored:!0},backgroundClip:{match:["(?:bg|background)",["text"]],layer:-101,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:["(?:bg|background)"],layer:-101,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-101,unit:"px"},backgroundRepeat:{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-101},backgroundSize:{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-101},backgroundImage:{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},background:{match:/^bg:./,colored:!0,layer:-301},gradient:{match:/^gradient\(/,layer:-101,colored:!0,declare(e){return{"background-image":"linear-"+e}}},mixBlendMode:{match:/^blend:./,layer:-101},backdropFilter:{match:/^bd:./,layer:-101,colored:!0,declare(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-101,colored:!0},fill:{match:/^fill:./,layer:-101,colored:!0},strokeDasharray:{layer:-101},strokeDashoffset:{layer:-101},strokeWidth:{match:["stroke(?:-width)?"],numeric:!0,layer:-101},stroke:{match:["stroke"],layer:-101,colored:!0},x:{layer:-101},y:{layer:-101},cx:{layer:-101},cy:{layer:-101},rx:{layer:-101},ry:{layer:-101},gridColumnStart:{match:/^grid-col-start:./,layer:-101},gridColumnEnd:{match:/^grid-col-end:./,layer:-101},gridColumn:{match:/^grid-col(?:umn)?(?:-span)?:./,layer:-301,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:/^grid-cols:./,declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}},layer:-1},gridRowStart:{layer:-101},gridRowEnd:{layer:-101},gridRow:{match:/^grid-row-span:./,layer:-301,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:/^grid-rows:./,declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}},layer:-1},gridAutoColumns:{match:/^grid-auto-cols:./,layer:-101,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:/^grid-flow:./,layer:-101},gridAutoRows:{values:{min:"min-content",max:"max-content"},layer:-101},gridTemplateAreas:{layer:-101},gridTemplateColumns:{match:/^grid-template-cols:./,layer:-101,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{layer:-101,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{layer:-301},gridArea:{layer:-301},grid:{layer:-301},columnGap:{match:/^gap-x:./,unit:"rem",layer:-101},rowGap:{match:/^gap-y:./,unit:"rem",layer:-101},gap:{unit:"rem",layer:-301},layer:{match:/^o:./,layer:-101,values:{first:-999999,last:999999}},breakInside:{layer:-101},breakBefore:{layer:-101},breakAfter:{layer:-101},aspectRatio:{match:/^aspect:./,layer:-101},columnSpan:{match:/^col-span:./,layer:-101},alignContent:{match:/^ac:./,layer:-101},alignItems:{match:/^ai:./,layer:-101},alignSelf:{match:/^as:/,layer:-101},justifyContent:{match:/^jc:./,layer:-101},justifyItems:{match:/^ji:./,layer:-101},justifySelf:{match:/^js:./,layer:-101},placeContent:{layer:-301},placeItems:{layer:-301},placeSelf:{layer:-301},listStylePosition:{match:["list-style",["inside","outside"]],layer:-101},listStyleType:{match:["list-style",["disc","decimal"]],layer:-101},listStyleImage:{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},listStyle:{layer:-301},outlineColor:{match:["outline"],layer:-101,colored:!0},outlineOffset:{unit:"rem",layer:-101},outlineStyle:{match:["outline",["dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},outlineWidth:{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-101},outline:{unit:"rem",layer:-301,colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},accentColor:{match:/^accent:./,layer:-101,colored:!0},appearance:{layer:-101},caretColor:{match:/^caret:./,layer:-101,colored:!0},scrollBehavior:{layer:-101},scrollMarginLeft:{match:/^scroll-ml:./,layer:-101,unit:"rem"},scrollMarginRight:{match:/^scroll-mr:./,layer:-101,unit:"rem"},scrollMarginTop:{match:/^scroll-mt:./,layer:-101,unit:"rem"},scrollMarginBottom:{match:/^scroll-mb:./,layer:-101,unit:"rem"},scrollMarginX:{match:/^(?:scroll-margin-x|scroll-mx):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:/^(?:scroll-margin-y|scroll-my):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:/^scroll-m:./,unit:"rem",layer:-301},scrollPaddingLeft:{match:/^scroll-pl:./,layer:-101,unit:"rem"},scrollPaddingRight:{match:/^scroll-pr:./,layer:-101,unit:"rem"},scrollPaddingTop:{match:/^scroll-pt:./,layer:-101,unit:"rem"},scrollPaddingBottom:{match:/^scroll-pb:./,layer:-101,unit:"rem"},scrollPaddingX:{match:/^(?:scroll-padding-x|scroll-px):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:/^(?:scroll-padding-y|scroll-py):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:/^scroll-p:./,unit:"rem",layer:-301},scrollSnapAlign:{match:["scroll-snap",["start","end","center"]],layer:-101},scrollSnapStop:{match:["scroll-snap",["normal","always"]],layer:-101},scrollSnapType:{match:["scroll-snap",["x","y","block","inline","both"]],layer:-101},willChange:{layer:-101},writingMode:{match:/^writing:./,layer:-101},direction:{layer:-101},shapeOutside:{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-101,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},shapeMargin:{match:["shape"],numeric:!0,unit:"rem",layer:-101},shapeImageThreshold:{layer:-101},clipPath:{match:/^clip:./,layer:-101,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{layer:-101},maskImage:{layer:-101,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},Be=st;var nt={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,r=this.css.globalValues,o=this.css.config.functions,l=this,s=0,f="",c="";return function p(y,x){let a=!1,m=(g,v=!1,b=!1)=>{if(g!=="("&&(t&&c in t?c=t[c].toString():r&&c in r&&(c=r[c].toString())),c&&!a&&!x){let d=l.analyzeUnitValue(c,o.calc.unit);d&&(c=d.value+d.unit)}f+=c+(v&&e[s-1]!==" "?" ":"")+g+(b&&e[s+1]!==" "?" ":""),c="",a=!1};for(;s<e.length;s++){let g=e[s];if(g==="("){let v=c,b=a,d=f.length;if(m(g),s++,p(v,b||x),v!=="calc"){let u=o[v];if(u){let i=f.slice(d+2,f.length-1);f=f.slice(0,d-v.length+1)+(u.name??v)+"("+(u.transform?.call(l,i)??i)+")"}}}else if(g===")"){m(g);break}else if(g===",")m(g,!1,!0);else if(g===" ")m(g);else{let v=e[s-1];switch(g){case"+":!c&&v!==")"?c+=g:m(g,!0,!0);break;case"-":y==="var"||!c&&v!==")"?c+=g:m(g,!0,!0);break;case"*":m(g,!0,!0);break;case"/":m(g,!0,!0),a=!0;break;default:c+=g;break}}}s>=e.length-1&&m("")}("",!1),f}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},Ee=nt;var at={mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},Pe=at;var de={viewports:Se,colors:we,selectors:ke,semantics:Oe,rules:Be,fonts:Pe,functions:Ee,animations:Te,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var $e=[",",".","#","[","!","*",">","+","~",":","@"];var Ce="_CNO_",ie=class e{constructor(t=de){this.customConfig=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(de,t),this.resolve(),e.instances.push(this)}static root;static config=de;static instances=[];static refresh=t=>{for(let r of this.instances)r.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;config;_semanticRuleConfigs=[];_orderedRuleConfigs=[];colorTokenRegExp;observer;colorByThemeByColorName;resolve(){this.classes={},this.colors={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.fonts={},this.globalValues={},this.viewports={},this.mediaQueries={},this.keyframesMap={},this.animations={},this.colorTokenRegExp=null,this._orderedRuleConfigs.length=0,this._semanticRuleConfigs.length=0;let{classes:t,selectors:r,values:o,semantics:l,viewports:s,mediaQueries:f,rules:c,animations:p,fonts:y}=this.config;function x(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function a(n,h,N="",j={}){let M=A=>A?(N?N+"-":"")+A:N,E=Object.entries(n),k=[],B=[];for(let A of E){let X=A[1];(typeof X=="object"&&!Array.isArray(X)?k:B).push(A)}for(let[A,X]of k)a(X,h,M(A),j);if(h&&N)B.length&&(j[N]=B.reduce((A,[X,G])=>(A[X]=G,A),{}));else for(let[A,X]of B)j[M(A)]=X;return j}let m=n=>{if(typeof n=="function")return a(n.call(this,this.values),!1);n=a(n,!1);for(let[h,N]of Object.entries(n))typeof N=="number"&&/^[0-9]+x$/.test(h)&&(n["-"+h]=N*-1);return n};if(r)for(let[n,h]of Object.entries(a(r,!1))){let N=new RegExp(x(n)+"(?![a-z-])");for(let j of Array.isArray(h)?h:[h]){let M=j.match(/^::-[a-z]+-/m)?.[0]??"",E=this.selectors[M];E||(E=this.selectors[M]=[]);let k=E.find(([B])=>B===N);k||(k=[N,[]],E.push(k)),k[1].push(j)}}if(o&&(this.globalValues=m(o)),s&&(this.viewports=a(s,!1)),y)for(let n in y){let h=y[n];this.fonts[n]=Array.isArray(h)?h.join(","):h}if(f&&(this.mediaQueries=a(f,!1)),p)for(let n in p){let h=this.animations[n]={},N=p[n];for(let j in N){let M=h[j]={},E=N[j];for(let k in E)M[k]=E[k]}}let g=t?a(t,!1):{},v=Object.keys(g),b=n=>{if(Object.prototype.hasOwnProperty.call(this.classes,n))return;let h=this.classes[n]=[],N=g[n];if(!N)return;let j=N.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let M of j){let E=k=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,k)){let B=this.classesBy[k];B.includes(n)||B.push(n)}else this.classesBy[k]=[n];h.includes(k)||h.push(k)};if(v.includes(M)){b(M);for(let k of this.classes[M])E(k)}else E(M)}};for(let n of v)b(n);let d=Object.entries(this.colorByThemeByColorName).reduce((n,[h,N])=>(n[h]=()=>{let j=(k,B)=>B?k.slice(0,7)+Math.round(255*+B).toString(16):k,M={};for(let k in N){let B=N[k].split(" ");for(let A of B){let X=A.lastIndexOf("@"),G=X!==-1?A.slice(0,X):A,ae=X!==-1?A.slice(X+1):"",te=k.slice(1)||ae;if(A.startsWith("#"))M[te]=G;else if(A.startsWith(Ce)){let[F,q]=G.slice(Ce.length).split("/");if(Object.prototype.hasOwnProperty.call(d,F)){let oe=d[F];delete d[F],oe()}let Z=Object.prototype.hasOwnProperty.call(this.colors,F)&&this.colors[F];if(Z)for(let oe in Z){let le=Z[oe];M[oe]=j(le,q)}else M[te]=F}else{let[F,q]=G.split("@"),[Z,oe]=F.split("/");if(Object.prototype.hasOwnProperty.call(d,Z)){let xe=d[Z];delete d[Z],xe()}let le=Object.prototype.hasOwnProperty.call(this.colors,Z)&&this.colors[Z][(k?ae:q)||""];le?M[te]=j(le,oe):console.error(`"${h}${k}: ${A}" is an invalid ".colors" config`)}}}let E=Object.keys(M);if(E.length){this.colors[h]=M;for(let k of E)k&&!this.themeNames.includes(k)&&this.themeNames.push(k)}delete d[h]},n),{});for(let n of Object.keys(d))d[n]?.();this.colorNames=Object.keys(this.colors),this.colorTokenRegExp=new RegExp(`(^|,| |\\()(${this.colorNames.join("|")})(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"g"),l&&Object.entries(l).sort((n,h)=>n[0].localeCompare(h[0])).forEach(([n,h],N)=>{this._semanticRuleConfigs.push({id:"."+n,_resolvedMatch:new RegExp("^"+x(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:N,_semantic:!0,_declarations:h,layer:-401})});let u=Object.entries(c).sort((n,h)=>n[1].layer!==h[1].layer?(h[1].layer||0)-(n[1].layer||0):h[0].localeCompare(n[0])),i=u.length;u.forEach(([n,h],N)=>{this._orderedRuleConfigs.push(h),h.order=this._semanticRuleConfigs.length+i-1-N;let{values:j}=h,M=h.match;if(h.id=n,(h.layer===-100||h.layer===-300||h.layer===-101||h.layer===-301)&&(h._propName=n.replace(/(?!^)[A-Z]/g,E=>"-"+E).toLowerCase()),j&&(this.values[n]=m(j)),M)if(Array.isArray(M)){let[E,k=[]]=M,B=[];k.length&&B.push(`(?:${k.join("|")})(?![a-zA-Z0-9-])`),this.values[n]&&B.push(`(?:${Object.keys(this.values[n]).join("|")})(?![a-zA-Z0-9-])`),h.colored&&(B.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)"),this.colorNames.length&&B.push(`(?:${this.colorNames.join("|")})(?![a-zA-Z0-9-])`)),h.numeric&&B.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),h._resolvedMatch=new RegExp(`^${E}:(?:${B.join("|")})[^|]*?(?:@|$)`)}else h._resolvedMatch=M})}observe(t,r={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let o=t===document;o&&(e.root=this),this.host=o?document.documentElement:this.root.host;let l=o?document.head:t,s=o?document.styleSheets:t.styleSheets;for(let c of s){let{ownerNode:p}=c;if(p&&p.id==="master"){this.style=p;break}}if(this.style)for(let c=0;c<this.style.sheet.cssRules.length;c++){let p=this.style.sheet.cssRules[c];if(p.constructor.name==="CSSKeyframesRule")continue;let y=a=>{if(a.selectorText){let g=a.selectorText.split(", ")[0].split(" ");for(let v=0;v<g.length;v++){let b=g[v];if(b[0]==="."){let d=b.slice(1),u="";for(let i=0;i<d.length;i++){let n=d[i],h=d[i+1];if(n==="\\"){if(i++,h!=="\\"){u+=h;continue}}else if($e.includes(n))break;u+=n}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,u)&&!Object.prototype.hasOwnProperty.call(this.classes,u)){let i=this.create(u)[0];if(i)return i}}}}else if(a.cssRules)for(let m=0;m<a.cssRules.length;m++){let g=y(a.cssRules[m]);if(g)return g}},x=y(p);if(x){this.rules.push(x),this.ruleBy[x.className]=x;for(let a=0;a<x.natives.length;a++)x.natives[a].cssRule=this.style.sheet.cssRules[c+a];c+=x.natives.length-1,this.handleRuleWithAnimationNames(x),x.config.insert?.call(x)}}else this.style=document.createElement("style"),this.style.id="master",l.append(this.style);let f=c=>{c.forEach(p=>{Object.prototype.hasOwnProperty.call(this.countBy,p)?this.countBy[p]++:(this.countBy[p]=1,this.insert(p))})};f(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(c=>f(c.classList)),this.observer=new MutationObserver(c=>{let p={},y=[],x=[],a=[],m=(d,u)=>{u?d.classList.forEach(v):d.classList.forEach(g);let i=d.children;for(let n=0;n<i.length;n++){let h=i[n];h.classList&&(x.push(h),m(h,u))}},g=d=>{Object.prototype.hasOwnProperty.call(p,d)?p[d]++:p[d]=1},v=d=>{Object.prototype.hasOwnProperty.call(p,d)?p[d]--:Object.prototype.hasOwnProperty.call(this.countBy,d)&&(p[d]=-1)},b=(d,u)=>{for(let i=0;i<d.length;i++){let n=d[i];n.classList&&!x.includes(n)&&!a.includes(n)&&(n.isConnected!==u?(x.push(n),m(n,u)):a.push(n))}};for(let d=0;d<c.length;d++){let u=c[d],{addedNodes:i,removedNodes:n,type:h,target:N}=u;if(h==="attributes"){if(y.find(j=>j.target===N))continue;y.push(u)}else b(i,!1),(!N.isConnected||!x.includes(N))&&b(n,!0)}if(!(!y.length&&!Object.keys(p).length)){for(let{oldValue:d,target:u}of y){let i=x.includes(u),n=u.classList,h=d?d.split(" "):[];if(i){if(u.isConnected)continue;for(let N of h)n.contains(N)||v(N)}else if(u.isConnected){n.forEach(N=>{h.includes(N)||g(N)});for(let N of h)n.contains(N)||v(N)}}for(let d in p){let u=p[d],i=(this.countBy[d]||0)+u;i===0?(delete this.countBy[d],this.delete(d)):(Object.prototype.hasOwnProperty.call(this.countBy,d)||this.insert(d),this.countBy[d]=i)}}}),this.observer.observe(t,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let t=this.style?.sheet;if(t?.cssRules)for(let r=t.cssRules.length-1;r>=0;r--)t.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(t){for(let r of this._orderedRuleConfigs)if(r._resolvedMatch&&r._resolvedMatch.test(t)||(r.layer===-100||r.layer===-300||r.layer===-101||r.layer===-301)&&t.startsWith(r._propName+":"))return r;for(let r of this._semanticRuleConfigs)if(r._resolvedMatch.test(t))return r}create(t){let r=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let l=this.match(o);if(l)return new ue(o,l,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(o=>r(o)):[r(t)]).filter(o=>o&&o.text)}refresh(t=this.customConfig){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(de,t),this.resolve(),!this.style)return;let r=document.createElement("style");r.id="master",this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let r=this.style?.sheet,o=l=>{let s=this.ruleBy[l];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,l)&&this.classesBy[l].some(f=>Object.prototype.hasOwnProperty.call(this.countBy,f)))){if(r&&s.natives.length){let f=s.natives[0];for(let c=0;c<r.cssRules.length;c++)if(r.cssRules[c]===f.cssRule){for(let y=0;y<s.natives.length;y++)r.deleteRule(c);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[l],s.animationNames){let f=this.rules[0];for(let c of s.animationNames){let p=this.keyframesMap[c];if(!--p.count){let y=f.natives.indexOf(p.native);this.style.sheet.deleteRule(y),f.natives.splice(y,1),delete this.keyframesMap[c]}}f.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,l)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let l of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,l)||o(l);delete this.ruleBy[t]}else o(t)}insert(t){let r=this.create(t);return r.length?(this.insertRules(r),!0):!1}insertRules(t){for(let r of t){if(this.ruleBy[r.className])continue;let o,l=Object.keys(this.keyframesMap).length,s=this.rules.length-1,{media:f,order:c,priority:p,hasWhere:y,className:x}=r,a=(v,b,d)=>{let u=v;for(;u<=s;u++){let i=this.rules[u];if(b?.(i))return d?-1:u-1;if(d?.(i))return u}return d?-1:u-1},m,g;if(f){let v=this.rules.findIndex(b=>b.media);if(v===-1)o=s+1;else{let{"max-width":b,"min-width":d}=f.features;if(b||d){let u=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(u===-1)o=s+1;else if(b&&d){if(p===-1?(m=a(u,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),g=a(u,i=>i.priority!==-1)):(m=a(u,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),g=s),m!==-1){let i=b.value-d.value,n=g,h=m;for(m=void 0;n>=h;n--){let{"max-width":N,"min-width":j}=this.rules[n].media.features,M=N.value-j.value;if(M<i)g=n-1;else if(M===i)m=n;else break}}if(m!==-1){let i=b.value-d.value;for(let n=g;n>=m;n--){let{"max-width":h,"min-width":N}=this.rules[n].media.features,j=h.value-N.value;if(j<i)g=n-1;else if(j>i){m=n+1;break}}}}else if(d){if(p===-1?(m=a(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),g=a(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(m=a(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),g=a(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),m!==-1)for(let i=g;i>=m;i--){let n=this.rules[i].media.features["min-width"].value;if(n>d.value)g=i-1;else if(n<d.value){m=i+1;break}}}else if(p===-1?(m=a(u,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),g=a(u,i=>i.media.features["min-width"]||i.priority!==-1)):(m=a(u,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),g=a(u,i=>i.media.features["min-width"]&&i.priority!==-1)),m!==-1)for(let i=g;i>=m;i--){let n=this.rules[i].media.features["max-width"].value;if(n<b.value)g=i-1;else if(n>b.value){m=i+1;break}}}else p===-1?(m=v,g=a(v,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(m=a(v,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),g=a(v,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let v=l?1:0;p===-1?(m=v,g=a(v,b=>b.media||b.priority!==-1)):(m=a(v,b=>b.media,b=>b.priority!==-1),g=a(v,b=>b.media))}if(o===void 0)if(m===-1)o=g+1;else{if(p===-1)for(let v=m;v<=g;v++){let b=this.rules[v];if(!(!y&&b.hasWhere)&&(y&&!b.hasWhere||b.order>=c)){o=v;break}}else for(let v=m;v<=g;v++){let b=this.rules[v];if(!(!y&&b.hasWhere)){if(y&&!b.hasWhere){o=v;break}if(b.priority<p){o=v;break}else if(b.priority===p){if(b.order>=c){o=v;break}}else o=v+1}}o===void 0&&(o=g+1)}if(this.rules.splice(o,0,r),this.ruleBy[x]=r,this.style){let v=this.style.sheet,b=0,d=u=>{let i=this.rules[u];if(i){if(!i.natives.length)return d(u-1);let n=i.natives[i.natives.length-1].cssRule;for(let h=0;h<v.cssRules.length;h++)if(v.cssRules[h]===n){b=h+1;break}}};d(o-1);for(let u=0;u<r.natives.length;)try{let i=r.natives[u];v.insertRule(i.text,b),i.cssRule=v.cssRules[b++],u++}catch(i){console.error(i),r.natives.splice(u,1)}}this.handleRuleWithAnimationNames(r),r.config.insert?.call(r)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let r=s=>{let f=ce({},s),c=p=>{for(let y in p){let x=p[y];typeof x=="object"&&!Array.isArray(x)?c(x):y&&(p[y]={"":x})}};if(f.classes?c(f.classes):f.classes={},f.viewports?c(f.viewports):f.viewports={},f.mediaQueries?c(f.mediaQueries):f.mediaQueries={},f.selectors?c(f.selectors):f.selectors={},f.values?c(f.values):f.values={},f.colors){let p=(y,x)=>{let a=(b,d,u)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,b)||(this.colorByThemeByColorName[b]={});let i=this.colorByThemeByColorName[b],n=i[""]?.includes(Ce),h=N=>N.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(j,M,E,k,B)=>{let A="#"+ve(+M,+E,+k);return B&&(A+=Math.round(255*+B).toString(16)),A});for(let[N,j]of d)if(j){let M=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,E;for(;(E=M.exec(j))!==null;){let k=E[0].trimStart(),B=k.lastIndexOf("@"),A=B!==-1?k.slice(0,B):k,X=B!==-1?k.slice(B):"",G=N||X,ae=u&&E[2]&&!E[2].startsWith("#")&&!X,te=E[1]?h(A):N?E[0]:A;if(n||ae){Object.prototype.hasOwnProperty.call(i,"")||(i[""]="");for(let F in i)F&&(i[""]+=" "+i[F],delete i[F]);i[""]+=(i[""]?" ":"")+(ae?Ce:"")+te+G}else i[G]=te;if(N)break}}else if(u){delete this.colorByThemeByColorName[b];return}else delete i[N];Object.keys(i).length||delete this.colorByThemeByColorName[b]},m=Object.entries(y),g=m.filter(([b])=>b===""||b.startsWith("@"));g.length&&a(x,g,!1);let v=m.filter(([b])=>b!==""&&!b.startsWith("@"));for(let[b,d]of v){let u=(x?x+"-":"")+b;typeof d=="string"?a(u,[["",d]],!0):p(d,u)}};p(f.colors,"")}return f},o=[];for(let s of t)(function f(c){if(c.extends?.length)for(let p of c.extends)f("config"in p?p.config:p);o.push(r(c))})(s);let l=o[0];for(let s=1;s<o.length;s++){let f=o[s];l=ce(l,f),Object.prototype.hasOwnProperty.call(f,"animations")&&Object.assign(l.animations,f.animations)}return l}handleRuleWithAnimationNames(t){if(t.animationNames){let r=this.style?.sheet;for(let o of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,o))this.keyframesMap[o].count++;else{let l={text:`@keyframes ${o}{`+Object.entries(this.animations[o]).map(([f,c])=>`${f}{${Object.entries(c).map(([p,y])=>p+":"+y).join(";")}}`).join("")+"}",theme:""},s;if(Object.keys(this.keyframesMap).length?(s=this.rules[0]).natives.push(l):this.rules.splice(0,0,s={natives:[l],get text(){return this.natives.map(f=>f.text).join("")}}),r){let f;for(let c=0;c<r.cssRules.length;c++){let p=r.cssRules[c];if(p.constructor.name!=="CSSKeyframesRule")break;if(p.name===o){f=p;break}}if(f)l.cssRule=f;else{let c=s.natives.length-1;r.insertRule(l.text,c),l.cssRule=r.cssRules[c]}}this.keyframesMap[o]={native:l,count:1}}}}};typeof window<"u"&&(window.MasterCSS=ie);var Ye=`/** @type {import('@master/css').Config} */ | ||
var Ne=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var Ke=Object.prototype.hasOwnProperty;var Ze=(e,t)=>{for(var r in t)Ne(e,r,{get:t[r],enumerable:!0})},Ge=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of qe(t))!Ke.call(e,a)&&a!==r&&Ne(e,a,{get:()=>t[a],enumerable:!(o=Ue(t,a))||o.enumerable});return e};var Je=e=>Ge(Ne({},"__esModule",{value:!0}),e);var ct={};Ze(ct,{CONFIG_ESM_TEXT:()=>Fe,CONFIG_TEXT:()=>Ye,CONFIG_TS_TEXT:()=>Xe,CoreLayer:()=>je,Layer:()=>Me,MasterCSS:()=>ee,Rule:()=>ue,animations:()=>Te,colors:()=>we,config:()=>de,default:()=>ee,extend:()=>ce,extractClassesFromHTML:()=>ye,fillColorScale:()=>$,fonts:()=>Pe,functions:()=>Ee,generateFromClasses:()=>be,generateFromHTML:()=>he,initRuntime:()=>We,renderHTML:()=>Ae,reorderForReadableClasses:()=>_e,rules:()=>Be,selectors:()=>ke,semantics:()=>Oe,viewports:()=>Se});module.exports=Je(ct);function ze(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function De(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function Ve(e){let t=[];return e.forEach(function(r,o){typeof r=="object"&&r!==null?Array.isArray(r)?t[o]=Ve(r):ze(r)?t[o]=De(r):t[o]=ce({},r):t[o]=r}),t}function Le(e,t){return t==="__proto__"?void 0:e[t]}function ce(...e){let t={},r,o;return e.forEach(function(a){typeof a!="object"||a===null||Array.isArray(a)||Object.keys(a).forEach(function(n){if(o=Le(t,n),r=Le(a,n),r!==t)if(typeof r!="object"||r===null){t[n]=r;return}else if(Array.isArray(r)){t[n]=Ve(r);return}else if(ze(r)){t[n]=De(r);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[n]=ce({},r);return}else{t[n]=ce(o,r);return}})}),t}var fe={"(":")","'":"'",'"':'"',"{":"}"};function ge(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,o=-1,a="",n,c=t.charCodeAt(0);if(r==1&&c==45)return"\\"+t;for(;++o<r;){if(n=t.charCodeAt(o),n==0){a+="\uFFFD";continue}if(n>=1&&n<=31||n==127||o==0&&n>=48&&n<=57||o==1&&n>=48&&n<=57&&c==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+=t.charAt(o);continue}a+="\\"+t.charAt(o)}return a}function $e(e,t){let r=t.endsWith("%")?parseFloat(t)/100:+t;return r=isNaN(r)?1:Math.min(Math.max(r,0),1),e+Math.round(r*255).toString(16).toUpperCase().padStart(2,"0")}var et=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ue=class{constructor(t,r={},o){this.className=t;this.config=r;this.css=o;let{unit:a,colored:n,_propName:c,_semantic:l,analyze:h,transform:y,declare:x,_declarations:f,create:g,order:p,id:v}=this.config;this.order=p,this.config.unit||(this.config.unit=""),this.config.separators||(this.config.separators=[","]);let{scope:b,important:d,functions:u,themeDriver:i}=o.config,{themeNames:s,colorNames:m,colors:N,selectors:j,viewports:M,mediaQueries:E,classesBy:k,globalValues:B,animations:A}=o,F=k[t];g&&g.call(this,t);let G,ae,re,X,q,Z=n;if(l)X=t.slice(v.length-1),G=f;else{let L;if(h)[L,re]=h.call(this,t);else{let Y=t.indexOf(":");this.prefix=t.slice(0,Y+1),L=t.slice(Y+1)}q=[];let _=this,V=this.values,Q=[","];this.config.separators.length&&Q.push(...this.config.separators);let O="",P=0;(function Y(I,C,S,R=void 0,w=[],z=[],W){let T=R===void 0,U,J=D=>D==="'"||D==='"',ne=()=>U=O.length,te=()=>{if(O){let D=O,H=T?D:O.slice(U);if(O="",ie="",V&&H in V&&!w.includes(H)){let K=P;P=0,Y(V[H].toString(),C,void 0,R,[...w,H],z,W),P=K,T||(O=D.slice(0,U)+O)}else if(B&&H in B&&!z.includes(H)){let K=P;P=0,Y(B[H].toString(),C,void 0,R,w,[...z,H],W),P=K,T||(O=D.slice(0,U)+O)}else if(T){let K=!W&&_.analyzeUnitValue(H,C);q.push({value:K?.value??H,unit:K?.unit})}else{let K=!W&&_.analyzeUnitValue(H,C);O=K?D.slice(0,U)+K.value+K.unit:D}ne()}},se=J(S);ne();let ie="";for(;P<I.length;P++){let D=I[P];if(D===S){if(se){O+=D;let H=0;for(let K=O.length-2;O[K]==="\\";K--)H++;if(H%2)continue}else te(),O+=D;return}else if(!se&&D in fe){let H=D==="("&&ie&&u?.[ie];H?.name&&(O=O.slice(0,O.length-ie.length)+H.name,ie=H.name),!Z&&H?.colored&&(Z=!0),O+=D,P++;let K=fe[D];Y(I,H?.unit??C,K,ie||R||"",w,z,W||!!H?.transform),H?.transform&&(O=O.slice(0,U+ie.length+1)+H.transform.call(_,O.slice(U+ie.length+1,-1))+O.slice(-1)),T&&(J(K)?(q.push(O),O=""):te()),ie=""}else if((D==="|"||D===" ")&&S!=="}"&&(!se||R==="path"))te(),T||(O+=" ",U++);else{if(!se){if(D==="."){if(isNaN(+I[P+1]))break;I[P-1]==="-"&&(O+="0")}else if(Q.includes(D)){te(),T?q.push(D):(O+=D,U++);continue}else if(T&&(D==="#"&&(O||q.length&&I[P-1]!=="|"&&q[P-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;ie+=D}O+=D}}R===void 0&&te()})(L,a),X=L.slice(P)}X[0]==="!"&&(this.important=!0,X=X.slice(1));let oe=(L,_)=>{let V=(C,S,R,w)=>{for(let[z,W]of S)if(z.test(C)){for(let T of W)V(C.replace(z,T),S,R,!0);return}w&&R.push(C)},Q=C=>{let S=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((W,T)=>T%3?W:W.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),R=[],w="",z=0;for(let W=0;W<S.length;W++){let T=S[W];if(T==="\\"){w+=T+S[++W];continue}!z&&T===","?(R.push(w),w=""):(w+=T,z&&T===")"?z--:T==="("&&z++)}return w&&R.push(w),R},O=[];""in j?V(L,j[""],O,!0):O.push(L);let P={};for(let[C,S]of Object.entries(j)){if(!C)continue;let R=[];for(let w of O)V(w,S,R,!1);R.length&&(P[C]=R)}let Y=(C,S)=>{let R=S.reduce((w,z)=>(w.push(...Q(z)),w),[]);C in _?_[C].push(...R):_[C]=R},I=Object.keys(P);if(I.length)for(let C of I)Y(C,P[C]);else Y("",O)};re?(this.vendorPrefixSelectors={},oe(re,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let le=X.split("@"),xe=le[0];if(xe){this.vendorSuffixSelectors={},oe(xe,this.vendorSuffixSelectors);for(let L of Object.values(this.vendorSuffixSelectors))for(let _ of L){this.hasWhere!==!1&&(this.hasWhere=_.includes(":where("));let V=[":disabled",":active",":focus",":hover"];for(let Q=0;Q<V.length;Q++)if(_.includes(V[Q])){(this.priority===-1||this.priority>Q)&&(this.priority=Q);break}}}else this.vendorSuffixSelectors={"":[""]};let me={},Qe=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),Ie=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(Qe)me[""]=Ie?[""]:Object.keys(this.vendorSuffixSelectors);else if(Ie)for(let L in this.vendorPrefixSelectors)me[L]=[""];else for(let L in this.vendorPrefixSelectors){let _=me[L]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,L))_.push(L);else for(let V in this.vendorSuffixSelectors)_.push(V)}for(let L=1;L<le.length;L++){let _=le[L];if(_)if(_==="rtl"||_==="ltr")this.direction=_;else{let V,Q,O=et.exec(_);if(O)V=O[1],Q=_.slice(V.length);else{this.media={token:_,features:{}};let P=[],Y=C=>{if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")P.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")P.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else if(E&&C in E)P.push(E[C]);else{let S={token:C},R="",w="",z=0;C.startsWith("<=")?(w="<=",R="max-width"):C.startsWith(">=")||M[C]?(w=">=",R="min-width"):C.startsWith(">")?(w=">",R="min-width",z=.02):C.startsWith("<")&&(w="<",R="max-width",z=-.02);let W=w?C.replace(w,""):C,T=M[W];switch(R){case"max-width":case"min-width":T?Object.assign(S,this.analyzeUnitValue(T.toString(),"px")):Object.assign(S,this.analyzeUnitValue(W,"px")),S.unit==="px"&&(S.value+=z),this.media.features[R]=S,P.push("("+R+":"+(S.value+S.unit)+")");break}}},I=_.includes("&");if(I){let C=_.split("&");for(let S of C)Y(S)}else Y(_);if(this.media.type&&(Q=this.media.type),P.length&&(Q=P.join(" and ")),Q)V="media";else if(!I){this.theme=_;continue}}Q&&(this.at[V]=(V in this.at?this.at[V]+" and ":"")+Q.replace(/\|/g," "))}}let Re=(L,_)=>{let V,Q=(Y,I,C,S)=>{let R="";this.direction&&(R+="[dir="+this.direction+"] ");let w=C.map(T=>T+R),z=(T,U)=>w.map(J=>(T&&i!=="media"?i==="host"?`:host(.${T}) `:`.${T} `:"")+(b?b+" ":"")+J).reduce((J,ne)=>(J.push(S.reduce((te,se)=>(te.push(ne+"."+ge(U)+se),te),[]).join(",")),J),[]).join(","),W=z(I,t)+(F?F.reduce((T,U)=>T+","+z(this.theme??(Z||ae?I:""),U),""):"")+"{"+Y+"}";for(let T of Object.keys(this.at).sort((U,J)=>J==="supports"?-1:1))W="@"+T+(T.includes(" ")?"":" ")+this.at[T]+"{"+W+"}";return I&&i==="media"&&(W=`@media(prefers-color-scheme:${I}){`+W+"}"),W},O=[];if(q){let Y=[this.theme??L,""],I,C=!1;for(let S of q)if(typeof S=="string")O.push(S);else{let R=S.value;if(S.unit)R+=S.unit;else if(Z&&N&&m){let w=!1;R=R.replace(o.colorTokenRegExp,(z,W,T,U)=>{let J=N[T];if(J){let ne,te;for(let se of Y)if(ne=J[se]){te=se;break}if(ne)return w=!_||te===L,I||(I=w),W+(U?$e(ne,U):ne);C=!0}return z})}O.push(R)}if(_&&(C||(I===void 0?L:!I)))return;if(V=O.reduce((S,R,w)=>S+R+(R===","||q[w+1]===","||w===q.length-1?"":" "),""),y&&(V=y.call(this,V,this.css.config)),x){let S,R;if(q.length===1){let w=q[0];typeof w=="object"&&(S=w.value,R=w.unit)}G=x.call(this,R?S:V,R||"")}else G={[c]:V}}let P={};for(let Y in G){let I=(R,w)=>{if(A&&(w.startsWith("animation")||w.startsWith("animation-name"))){let W=w.split(":")[1].split("!important")[0].split(" ").filter(T=>T in this.css.animations&&(!this.animationNames||!this.animationNames.includes(T)));W.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...W))}let z=w+((this.important||d)&&!w.endsWith("!important")?"!important":"");R in P?P[R].push(z):P[R]=[z]},C=Y+":",S=G[Y];if(typeof S=="object")if(Array.isArray(S))for(let R of S)I(L,C+R.toString());else{ae=!0;for(let R in S)I(R,C+S[R])}else I(L,C+S.toString())}for(let Y in me)for(let I of me[Y])for(let C in P)this.natives.push({text:Q(P[C].join(";"),C,this.vendorPrefixSelectors[Y],this.vendorSuffixSelectors[I]),theme:C})};if(this.theme)Re(this.theme,!1);else if(Z)for(let L of s)Re(L,!0);else Re("",!1)}at={};priority=-1;natives=[];order=0;animationNames;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,r){return Number.isNaN(+t)?t:t/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(t,r){let o=r??this.config.unit;if(o){let a="",n=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(n)if(t.includes("/")){let[c,l]=t.split("/");return{value:+c/+l*100+"%",unit:a}}else{let c=+n[1];return a=n[3]||"",a||((o==="rem"||o==="em")&&(c=c/this.css.config.rootSize),a=o||""),{value:c,unit:a}}}}};var tt={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Se=tt;function pe(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function ve(e,t,r){return((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1)}function $(e){typeof e=="string"&&(e={"":e});let t=""in e,r=!1;for(let o in e)if(o&&+o>=100){r=!0;break}if(!r&&(!t||Object.keys(e).length>1)){let o=0,a="0"in e?pe(e[0]):[0,0,0],n,c,l=[],h=()=>{let y=n-o,x=c.map((f,g)=>(f-a[g])/y);for(let f of l){let g=f-o,p=a.map((v,b)=>Math.round(v+x[b]*g));e[f]="#"+ve.call(this,...p)}};for(let y=1;y<100;y++)y in e?(l.length?(n=y,c=pe(e[y]),h(),l.length=0,a=c):a=pe(e[y]),o=y):l.push(y);l.length&&(n=100,c="100"in e?pe(e[100]):[255,255,255],h())}return t||(e[""]=e[r?"500":"50"]),e}var rt={black:"#000000",white:"#ffffff",current:"currentColor",transparent:"transparent",slate:$({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:$({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:$({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:$({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:$({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:$({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:$({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:$({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:$({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:$({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:$({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:$({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:$({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:$({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:$({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:$({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:$({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:$({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:$({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:$({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},we=rt;var it={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},ke=it;var ot={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},Oe=ot;var nt={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},Te=nt;var Me=(a=>(a[a.NativeShorthand=-300]="NativeShorthand",a[a.Shorthand=-200]="Shorthand",a[a.Native=-100]="Native",a[a.Normal=0]="Normal",a))(Me||{}),je=(n=>(n[n.Semantic=-401]="Semantic",n[n.NativeShorthand=-301]="NativeShorthand",n[n.Shorthand=-201]="Shorthand",n[n.Native=-101]="Native",n[n.Normal=-1]="Normal",n))(je||{});var st={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},r=(y,x)=>{let f=x.indexOf(":");if(f!==-1){y in t||(t[y]={});let g=t[y],p=x.slice(0,f);p in g||(g[p]=x.slice(f+1))}},o=y=>{let x=(f,g)=>{let p=g.slice(ge(y.className).length).match(/\{(.*)\}/)[1].split(";");for(let v of p)r(f,v)};if(this.theme){let f=y.natives.find(g=>g.theme===this.theme)??y.natives.find(g=>!g.theme);f&&x(this.theme,f.text)}else for(let f of y.natives)x(f.theme,f.text);if(y.animationNames){this.animationNames||(this.animationNames=[]);for(let f of y.animationNames)this.animationNames.includes(f)||this.animationNames.push(f)}},a=[],n="",c=()=>{n&&(a.push(n.replace(/ /g,"|")),n="")},l=1;(function y(x){for(;l<e.length;l++){let f=e[l];if(!x){if(f===";"){c();continue}if(f==="}")break}if(n+=f,x===f){if(x==="'"||x==='"'){let g=0;for(let p=n.length-2;n[p]==="\\";p--)g++;if(g%2)continue}break}else f in fe&&x!=="'"&&x!=='"'&&(l++,y(fe[f]))}})(void 0),c();for(let y of a){let x=this.css.create(y);if(Array.isArray(x))if(x.length)for(let f of x)o(f);else r(this.theme??"",y);else o(x)}let h={};for(let y in t)for(let[x,f]of Object.entries(t[y]))x in h?h[x][y]=f:h[x]={[y]:f};return h}},variable:{match:/^\$[\w-]+:./,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-101},fontWeight:{match:["f(?:ont)?",["bolder"]],layer:-101,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:["f(?:ont)?"],layer:-101,values(){return this.fonts}},fontSmoothing:{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-101,declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-101,unit:"deg"},fontVariantNumeric:{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-101},fontFeatureSettings:{match:/^font-feature:./,layer:-101},font:{match:/^f:./,layer:-301,values({fontSize:e,fontStyle:t,fontWeight:r,lineHeight:o}){return{...e,...t,...r,...o,...this.fonts}}},color:{match:/^(?:color|fg|foreground):./,layer:-101,colored:!0},marginLeft:{match:/^ml:./,layer:-101,unit:"rem"},marginRight:{match:/^mr:./,layer:-101,unit:"rem"},marginTop:{match:/^mt:./,layer:-101,unit:"rem"},marginBottom:{match:/^mb:./,layer:-101,unit:"rem"},marginX:{match:/^(?:mx|margin-x):./,unit:"rem",layer:-201,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:/^(?:my|margin-y):./,unit:"rem",layer:-201,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},margin:{match:/^m:./,unit:"rem",layer:-301},paddingLeft:{match:/^pl:./,layer:-101,unit:"rem"},paddingRight:{match:/^pr:./,layer:-101,unit:"rem"},paddingTop:{match:/^pt:./,layer:-101,unit:"rem"},paddingBottom:{match:/^pb:./,layer:-101,unit:"rem"},paddingX:{match:/^(?:px|padding-x):./,unit:"rem",layer:-201,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:/^(?:py|padding-y):./,unit:"rem",layer:-201,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:/^p:./,unit:"rem",layer:-301},order:{match:/^o:./,layer:-101},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",layer:-101},flexWrap:{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-101},flexGrow:{layer:-101},flexShrink:{layer:-101},flexDirection:{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-101,values:{col:"column","col-reverse":"column-reverse"}},flex:{layer:-301},display:{match:/^d:./,layer:-101},width:{match:/^w:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},Height:{match:/^h:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:/^min-w:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:/^min-h:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,r]=e.split(" x ");return{width:t,height:r}}},minBox:{match:/^min:./,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,r]=e.split(" x ");return{"min-width":t,"min-height":r}}},maxBox:{match:/^max:./,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,r]=e.split(" x ");return{"max-width":t,"max-height":r}}},boxSizing:{match:/^box:./,layer:-101,values:{content:"content-box",border:"border-box"}},boxDecorationBreak:{match:["box",["slice","clone"]],layer:-101,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},contain:{layer:-101},content:{layer:-101},counterIncrement:{layer:-101},counterReset:{layer:-101},letterSpacing:{match:/^ls:./,layer:-101,unit:"em"},lineHeight:{match:/^lh:./,layer:-101},objectFit:{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-101},objectPosition:{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-101},textAlign:{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-101},textDecorationColor:{match:["text-decoration"],layer:-101,colored:!0},textDecorationStyle:{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-101},textDecorationThickness:{match:["text-decoration",["from-font"]],numeric:!0,layer:-101,unit:"em"},textDecorationLine:{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-101},textDecoration:{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-301},textUnderlineOffset:{unit:"rem",layer:-101},textOverflow:{match:["t(?:ext)?",["ellipsis","clip"]],layer:-101},textOrientation:{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-101},textTransform:{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-101},textRendering:{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-101},textIndent:{unit:"rem",layer:-101},verticalAlign:{match:/^(?:v|vertical):./,layer:-101},columns:{match:/^(?:columns|cols):./,layer:-301},whiteSpace:{layer:-101},top:{layer:-101,unit:"rem"},bottom:{layer:-101,unit:"rem"},left:{layer:-101,unit:"rem"},right:{layer:-101,unit:"rem"},inset:{unit:"rem",layer:-301},lines:{match:/^lines:./,declare(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:/^max-h:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:/^max-w:./,unit:"rem",layer:-101,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},opacity:{layer:-101},visibility:{layer:-101},clear:{layer:-101},float:{layer:-101},isolation:{layer:-101},overflowX:{layer:-101,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{layer:-101,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-301,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},overscrollBehaviorX:{layer:-101},overscrollBehaviorY:{layer:-101},overscrollBehavior:{layer:-301},zIndex:{match:/^z:./,layer:-101},position:{layer:-101,values:{abs:"absolute",rel:"relative"}},cursor:{layer:-101},pointerEvents:{layer:-101},resize:{layer:-101},touchAction:{layer:-101},wordBreak:{layer:-101},wordSpacing:{layer:-101,unit:"em"},userDrag:{layer:-101,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{layer:-101,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",layer:-101,colored:!0},textSize:{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{match:["(?:text-fill|text|t)"],layer:-101,colored:!0,declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-101,declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:["text-stroke"],layer:-101,colored:!0,declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",layer:-101,declare(e,t){return{"-webkit-text-stroke":e+t}}},boxShadow:{match:/^s(?:hadow)?:./,unit:"rem",layer:-101,colored:!0},tableLayout:{layer:-101},transformBox:{match:["transform"],layer:-101,values:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:["transform",["flat","preserve-3d"]],layer:-101},transformOrigin:{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-101},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-101,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},transitionProperty:{match:/^~property:./,layer:-101},transitionTimingFunction:{match:/^~easing:./,layer:-101},transitionDuration:{match:/^~duration:./,layer:-101,unit:"ms"},transitionDelay:{match:/^~delay:./,layer:-101,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},layer:-301},animationDelay:{match:/^@delay:./,layer:-101,unit:"ms"},animationDirection:{match:/^@direction:./,layer:-101,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:/^@duration:./,layer:-101,unit:"ms"},animationFillMode:{match:/^@fill:./,layer:-101},animationIterationCount:{match:/^@iteration:./,layer:-101},animationName:{match:/^@name:./,layer:-101},animationPlayState:{match:/^@play:./,layer:-101},animationTimingFunction:{match:/^@easing:./,layer:-101},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-301,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},borderCollapse:{match:["b(?:order)?",["collapse","separate"]],layer:-101},borderSpacing:{unit:"rem",layer:-101},borderTopColor:{match:["b(?:t|order-top(?:-color)?)"],layer:-101,colored:!0},borderBottomColor:{match:["b(?:b|order-bottom(?:-color)?)"],layer:-101,colored:!0},borderLeftColor:{match:["b(?:l|order-left(?:-color)?)"],layer:-101,colored:!0},borderRightColor:{match:["b(?:r|order-right(?:-color)?)"],layer:-101,colored:!0},borderXColor:{match:["b(?:x|order-x(?:-color)?)"],layer:-201,colored:!0,declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:["b(?:y|order-y(?:-color)?)"],layer:-201,colored:!0,declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},borderColor:{match:["b(?:order)?(?:-color)?"],layer:-301,colored:!0},borderTopLeftRadius:{match:/^r(?:tl|lt):./,unit:"rem",layer:-101},borderTopRightRadius:{match:/^r(?:tr|rt):./,unit:"rem",layer:-101},borderBottomLeftRadius:{match:/^r(?:bl|lb):./,unit:"rem",layer:-101},borderBottomRightRadius:{match:/^r(?:br|rb):./,unit:"rem",layer:-101},borderTopRadius:{match:/^rt:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:/^rb:./,unit:"rem",layer:-201,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:/^rl:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:/^rr:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},borderRadius:{match:/^r:./,unit:"rem",layer:-301},borderTopStyle:{match:["b(?:t|order-top(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderBottomStyle:{match:["b(?:b|order-bottom(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderLeftStyle:{match:["b(?:l|order-left(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderRightStyle:{match:["b(?:r|order-right(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderXStyle:{match:["b(?:x|order-x(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-201,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:["b(?:y|order-y(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-201,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},borderStyle:{match:["b(?:order)?(?:-style)?",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-301},borderTopWidth:{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderBottomWidth:{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderLeftWidth:{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderRightWidth:{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderXWidth:{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},borderWidth:{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-301},borderImageOutset:{unit:"rem",layer:-101},borderImageRepeat:{match:["border-image",["stretch","repeat","round","space"]],layer:-101},borderImageSlice:{layer:-101},borderImageSource:{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-101},borderImageWidth:{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-101},borderImage:{layer:-301},borderTop:{match:/^bt:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:/^bb:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:/^bl:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:/^br:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:/^(?:bx|border-x):./,unit:"rem",colored:!0,layer:-201,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:/^(?:by|border-y):./,unit:"rem",colored:!0,layer:-201,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:./,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},layer:-301},backgroundAttachment:{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-101},backgroundBlendMode:{layer:-101},backgroundColor:{match:["(?:bg|background)"],layer:-101,colored:!0},backgroundClip:{match:["(?:bg|background)",["text"]],layer:-101,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:["(?:bg|background)"],layer:-101,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-101,unit:"px"},backgroundRepeat:{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-101},backgroundSize:{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-101},backgroundImage:{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},background:{match:/^bg:./,colored:!0,layer:-301},gradient:{match:/^gradient\(/,layer:-101,colored:!0,declare(e){return{"background-image":"linear-"+e}}},mixBlendMode:{match:/^blend:./,layer:-101},backdropFilter:{match:/^bd:./,layer:-101,colored:!0,declare(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-101,colored:!0},fill:{match:/^fill:./,layer:-101,colored:!0},strokeDasharray:{layer:-101},strokeDashoffset:{layer:-101},strokeWidth:{match:["stroke(?:-width)?"],numeric:!0,layer:-101},stroke:{match:["stroke"],layer:-101,colored:!0},x:{layer:-101},y:{layer:-101},cx:{layer:-101},cy:{layer:-101},rx:{layer:-101},ry:{layer:-101},gridColumnStart:{match:/^grid-col-start:./,layer:-101},gridColumnEnd:{match:/^grid-col-end:./,layer:-101},gridColumn:{match:/^grid-col(?:umn)?(?:-span)?:./,layer:-301,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:/^grid-cols:./,declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}},layer:-1},gridRowStart:{layer:-101},gridRowEnd:{layer:-101},gridRow:{match:/^grid-row-span:./,layer:-301,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:/^grid-rows:./,declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}},layer:-1},gridAutoColumns:{match:/^grid-auto-cols:./,layer:-101,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:/^grid-flow:./,layer:-101},gridAutoRows:{values:{min:"min-content",max:"max-content"},layer:-101},gridTemplateAreas:{layer:-101},gridTemplateColumns:{match:/^grid-template-cols:./,layer:-101,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{layer:-101,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{layer:-301},gridArea:{layer:-301},grid:{layer:-301},columnGap:{match:/^gap-x:./,unit:"rem",layer:-101},rowGap:{match:/^gap-y:./,unit:"rem",layer:-101},gap:{unit:"rem",layer:-301},layer:{match:/^o:./,layer:-101,values:{first:-999999,last:999999}},breakInside:{layer:-101},breakBefore:{layer:-101},breakAfter:{layer:-101},aspectRatio:{match:/^aspect:./,layer:-101},columnSpan:{match:/^col-span:./,layer:-101},alignContent:{match:/^ac:./,layer:-101},alignItems:{match:/^ai:./,layer:-101},alignSelf:{match:/^as:/,layer:-101},justifyContent:{match:/^jc:./,layer:-101},justifyItems:{match:/^ji:./,layer:-101},justifySelf:{match:/^js:./,layer:-101},placeContent:{layer:-301},placeItems:{layer:-301},placeSelf:{layer:-301},listStylePosition:{match:["list-style",["inside","outside"]],layer:-101},listStyleType:{match:["list-style",["disc","decimal"]],layer:-101},listStyleImage:{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},listStyle:{layer:-301},outlineColor:{match:["outline"],layer:-101,colored:!0},outlineOffset:{unit:"rem",layer:-101},outlineStyle:{match:["outline",["dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},outlineWidth:{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-101},outline:{unit:"rem",layer:-301,colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},accentColor:{match:/^accent:./,layer:-101,colored:!0},appearance:{layer:-101},caretColor:{match:/^caret:./,layer:-101,colored:!0},scrollBehavior:{layer:-101},scrollMarginLeft:{match:/^scroll-ml:./,layer:-101,unit:"rem"},scrollMarginRight:{match:/^scroll-mr:./,layer:-101,unit:"rem"},scrollMarginTop:{match:/^scroll-mt:./,layer:-101,unit:"rem"},scrollMarginBottom:{match:/^scroll-mb:./,layer:-101,unit:"rem"},scrollMarginX:{match:/^(?:scroll-margin-x|scroll-mx):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:/^(?:scroll-margin-y|scroll-my):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:/^scroll-m:./,unit:"rem",layer:-301},scrollPaddingLeft:{match:/^scroll-pl:./,layer:-101,unit:"rem"},scrollPaddingRight:{match:/^scroll-pr:./,layer:-101,unit:"rem"},scrollPaddingTop:{match:/^scroll-pt:./,layer:-101,unit:"rem"},scrollPaddingBottom:{match:/^scroll-pb:./,layer:-101,unit:"rem"},scrollPaddingX:{match:/^(?:scroll-padding-x|scroll-px):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:/^(?:scroll-padding-y|scroll-py):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:/^scroll-p:./,unit:"rem",layer:-301},scrollSnapAlign:{match:["scroll-snap",["start","end","center"]],layer:-101},scrollSnapStop:{match:["scroll-snap",["normal","always"]],layer:-101},scrollSnapType:{match:["scroll-snap",["x","y","block","inline","both"]],layer:-101},willChange:{layer:-101},writingMode:{match:/^writing:./,layer:-101},direction:{layer:-101},shapeOutside:{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-101,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},shapeMargin:{match:["shape"],numeric:!0,unit:"rem",layer:-101},shapeImageThreshold:{layer:-101},clipPath:{match:/^clip:./,layer:-101,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{layer:-101},maskImage:{layer:-101,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},Be=st;var at={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,r=this.css.globalValues,o=this.css.config.functions,a=this,n=0,c="",l="";return function h(y,x){let f=!1,g=(p,v=!1,b=!1)=>{if(p!=="("&&(t&&l in t?l=t[l].toString():r&&l in r&&(l=r[l].toString())),l&&!f&&!x){let d=a.analyzeUnitValue(l,o.calc.unit);d&&(l=d.value+d.unit)}c+=l+(v&&e[n-1]!==" "?" ":"")+p+(b&&e[n+1]!==" "?" ":""),l="",f=!1};for(;n<e.length;n++){let p=e[n];if(p==="("){let v=l,b=f,d=c.length;if(g(p),n++,h(v,b||x),v!=="calc"){let u=o[v];if(u){let i=c.slice(d+2,c.length-1);c=c.slice(0,d-v.length+1)+(u.name??v)+"("+(u.transform?.call(a,i)??i)+")"}}}else if(p===")"){g(p);break}else if(p===",")g(p,!1,!0);else if(p===" ")g(p);else{let v=e[n-1];switch(p){case"+":!l&&v!==")"?l+=p:g(p,!0,!0);break;case"-":y==="var"||!l&&v!==")"?l+=p:g(p,!0,!0);break;case"*":g(p,!0,!0);break;case"/":g(p,!0,!0),f=!0;break;default:l+=p;break}}}n>=e.length-1&&g("")}("",!1),c}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},Ee=at;var lt={mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},Pe=lt;var de={viewports:Se,colors:we,selectors:ke,semantics:Oe,rules:Be,fonts:Pe,functions:Ee,animations:Te,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var He=[",",".","#","[","!","*",">","+","~",":","@"];var Ce="_CNO_",ee=class e{constructor(t=de){this.customConfig=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(de,t),this.resolve(),e.instances.push(this)}static root;static config=de;static instances=[];static refresh=t=>{for(let r of this.instances)r.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;config;_semanticRuleConfigs=[];_orderedRuleConfigs=[];colorTokenRegExp;observer;colorByThemeByColorName;resolve(){this.classes={},this.colors={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.fonts={},this.globalValues={},this.viewports={},this.mediaQueries={},this.keyframesMap={},this.animations={},this.colorTokenRegExp=null,this._orderedRuleConfigs.length=0,this._semanticRuleConfigs.length=0;let{classes:t,selectors:r,values:o,semantics:a,viewports:n,mediaQueries:c,rules:l,animations:h,fonts:y}=this.config;function x(s){return s.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function f(s,m,N="",j={}){let M=A=>A?(N?N+"-":"")+A:N,E=Object.entries(s),k=[],B=[];for(let A of E){let F=A[1];(typeof F=="object"&&!Array.isArray(F)?k:B).push(A)}for(let[A,F]of k)f(F,m,M(A),j);if(m&&N)B.length&&(j[N]=B.reduce((A,[F,G])=>(A[F]=G,A),{}));else for(let[A,F]of B)j[M(A)]=F;return j}let g=s=>{if(typeof s=="function")return f(s.call(this,this.values),!1);s=f(s,!1);for(let[m,N]of Object.entries(s))typeof N=="number"&&/^[0-9]+x$/.test(m)&&(s["-"+m]=N*-1);return s};if(r)for(let[s,m]of Object.entries(f(r,!1))){let N=new RegExp(x(s)+"(?![a-z-])");for(let j of Array.isArray(m)?m:[m]){let M=j.match(/^::-[a-z]+-/m)?.[0]??"",E=this.selectors[M];E||(E=this.selectors[M]=[]);let k=E.find(([B])=>B===N);k||(k=[N,[]],E.push(k)),k[1].push(j)}}if(o&&(this.globalValues=g(o)),n&&(this.viewports=f(n,!1)),y)for(let s in y){let m=y[s];this.fonts[s]=Array.isArray(m)?m.join(","):m}if(c&&(this.mediaQueries=f(c,!1)),h)for(let s in h){let m=this.animations[s]={},N=h[s];for(let j in N){let M=m[j]={},E=N[j];for(let k in E)M[k]=E[k]}}let p=t?f(t,!1):{},v=Object.keys(p),b=s=>{if(Object.prototype.hasOwnProperty.call(this.classes,s))return;let m=this.classes[s]=[],N=p[s];if(!N)return;let j=N.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let M of j){let E=k=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,k)){let B=this.classesBy[k];B.includes(s)||B.push(s)}else this.classesBy[k]=[s];m.includes(k)||m.push(k)};if(v.includes(M)){b(M);for(let k of this.classes[M])E(k)}else E(M)}};for(let s of v)b(s);let d=Object.entries(this.colorByThemeByColorName).reduce((s,[m,N])=>(s[m]=()=>{let j=(k,B)=>B?k.slice(0,7)+Math.round(255*+B).toString(16):k,M={};for(let k in N){let B=N[k].split(" ");for(let A of B){let F=A.lastIndexOf("@"),G=F!==-1?A.slice(0,F):A,ae=F!==-1?A.slice(F+1):"",re=k.slice(1)||ae;if(A.startsWith("#"))M[re]=G;else if(A.startsWith(Ce)){let[X,q]=G.slice(Ce.length).split("/");if(Object.prototype.hasOwnProperty.call(d,X)){let oe=d[X];delete d[X],oe()}let Z=Object.prototype.hasOwnProperty.call(this.colors,X)&&this.colors[X];if(Z)for(let oe in Z){let le=Z[oe];M[oe]=j(le,q)}else M[re]=X}else{let[X,q]=G.split("@"),[Z,oe]=X.split("/");if(Object.prototype.hasOwnProperty.call(d,Z)){let xe=d[Z];delete d[Z],xe()}let le=Object.prototype.hasOwnProperty.call(this.colors,Z)&&this.colors[Z][(k?ae:q)||""];le?M[re]=j(le,oe):console.error(`"${m}${k}: ${A}" is an invalid ".colors" config`)}}}let E=Object.keys(M);if(E.length){this.colors[m]=M;for(let k of E)k&&!this.themeNames.includes(k)&&this.themeNames.push(k)}delete d[m]},s),{});for(let s of Object.keys(d))d[s]?.();this.colorNames=Object.keys(this.colors),this.colorTokenRegExp=new RegExp(`(^|,| |\\()(${this.colorNames.join("|")})(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"g"),a&&Object.entries(a).sort((s,m)=>s[0].localeCompare(m[0])).forEach(([s,m],N)=>{this._semanticRuleConfigs.push({id:"."+s,_resolvedMatch:new RegExp("^"+x(s)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:N,_semantic:!0,_declarations:m,layer:-401})});let u=Object.entries(l).sort((s,m)=>s[1].layer!==m[1].layer?(m[1].layer||0)-(s[1].layer||0):m[0].localeCompare(s[0])),i=u.length;u.forEach(([s,m],N)=>{this._orderedRuleConfigs.push(m),m.order=this._semanticRuleConfigs.length+i-1-N;let{values:j}=m,M=m.match;if(m.id=s,(m.layer===-100||m.layer===-300||m.layer===-101||m.layer===-301)&&(m._propName=s.replace(/(?!^)[A-Z]/g,E=>"-"+E).toLowerCase()),j&&(this.values[s]=g(j)),M)if(Array.isArray(M)){let[E,k=[]]=M,B=[];k.length&&B.push(`(?:${k.join("|")})(?![a-zA-Z0-9-])`),this.values[s]&&B.push(`(?:${Object.keys(this.values[s]).join("|")})(?![a-zA-Z0-9-])`),m.colored&&(B.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)"),this.colorNames.length&&B.push(`(?:${this.colorNames.join("|")})(?![a-zA-Z0-9-])`)),m.numeric&&B.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),m._resolvedMatch=new RegExp(`^${E}:(?:${B.join("|")})[^|]*?(?:@|$)`)}else m._resolvedMatch=M})}observe(t,r={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let o=t===document;o&&(e.root=this),this.host=o?document.documentElement:this.root.host;let a=o?document.head:t,n=o?document.styleSheets:t.styleSheets;for(let l of n){let{ownerNode:h}=l;if(h&&h.id==="master"){this.style=h;break}}if(this.style)for(let l=0;l<this.style.sheet.cssRules.length;l++){let h=this.style.sheet.cssRules[l];if(h.constructor.name==="CSSKeyframesRule")continue;let y=f=>{if(f.selectorText){let p=f.selectorText.split(", ")[0].split(" ");for(let v=0;v<p.length;v++){let b=p[v];if(b[0]==="."){let d=b.slice(1),u="";for(let i=0;i<d.length;i++){let s=d[i],m=d[i+1];if(s==="\\"){if(i++,m!=="\\"){u+=m;continue}}else if(He.includes(s))break;u+=s}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,u)&&!Object.prototype.hasOwnProperty.call(this.classes,u)){let i=this.create(u)[0];if(i)return i}}}}else if(f.cssRules)for(let g=0;g<f.cssRules.length;g++){let p=y(f.cssRules[g]);if(p)return p}},x=y(h);if(x){this.rules.push(x),this.ruleBy[x.className]=x;for(let f=0;f<x.natives.length;f++)x.natives[f].cssRule=this.style.sheet.cssRules[l+f];l+=x.natives.length-1,this.handleRuleWithAnimationNames(x),x.config.insert?.call(x)}}else this.style=document.createElement("style"),this.style.id="master",a.append(this.style);let c=l=>{l.forEach(h=>{Object.prototype.hasOwnProperty.call(this.countBy,h)?this.countBy[h]++:(this.countBy[h]=1,this.insert(h))})};c(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(l=>c(l.classList)),this.observer=new MutationObserver(l=>{let h={},y=[],x=[],f=[],g=(d,u)=>{u?d.classList.forEach(v):d.classList.forEach(p);let i=d.children;for(let s=0;s<i.length;s++){let m=i[s];m.classList&&(x.push(m),g(m,u))}},p=d=>{Object.prototype.hasOwnProperty.call(h,d)?h[d]++:h[d]=1},v=d=>{Object.prototype.hasOwnProperty.call(h,d)?h[d]--:Object.prototype.hasOwnProperty.call(this.countBy,d)&&(h[d]=-1)},b=(d,u)=>{for(let i=0;i<d.length;i++){let s=d[i];s.classList&&!x.includes(s)&&!f.includes(s)&&(s.isConnected!==u?(x.push(s),g(s,u)):f.push(s))}};for(let d=0;d<l.length;d++){let u=l[d],{addedNodes:i,removedNodes:s,type:m,target:N}=u;if(m==="attributes"){if(y.find(j=>j.target===N))continue;y.push(u)}else b(i,!1),(!N.isConnected||!x.includes(N))&&b(s,!0)}if(!(!y.length&&!Object.keys(h).length)){for(let{oldValue:d,target:u}of y){let i=x.includes(u),s=u.classList,m=d?d.split(" "):[];if(i){if(u.isConnected)continue;for(let N of m)s.contains(N)||v(N)}else if(u.isConnected){s.forEach(N=>{m.includes(N)||p(N)});for(let N of m)s.contains(N)||v(N)}}for(let d in h){let u=h[d],i=(this.countBy[d]||0)+u;i===0?(delete this.countBy[d],this.delete(d)):(Object.prototype.hasOwnProperty.call(this.countBy,d)||this.insert(d),this.countBy[d]=i)}}}),this.observer.observe(t,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let t=this.style?.sheet;if(t?.cssRules)for(let r=t.cssRules.length-1;r>=0;r--)t.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(t){for(let r of this._orderedRuleConfigs)if(r._resolvedMatch&&r._resolvedMatch.test(t)||(r.layer===-100||r.layer===-300||r.layer===-101||r.layer===-301)&&t.startsWith(r._propName+":"))return r;for(let r of this._semanticRuleConfigs)if(r._resolvedMatch.test(t))return r}create(t){let r=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let a=this.match(o);if(a)return new ue(o,a,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(o=>r(o)):[r(t)]).filter(o=>o&&o.text)}refresh(t=this.customConfig){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(de,t),this.resolve(),!this.style)return;let r=document.createElement("style");r.id="master",this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let r=this.style?.sheet,o=a=>{let n=this.ruleBy[a];if(!(!n||Object.prototype.hasOwnProperty.call(this.classesBy,a)&&this.classesBy[a].some(c=>Object.prototype.hasOwnProperty.call(this.countBy,c)))){if(r&&n.natives.length){let c=n.natives[0];for(let l=0;l<r.cssRules.length;l++)if(r.cssRules[l]===c.cssRule){for(let y=0;y<n.natives.length;y++)r.deleteRule(l);break}}if(this.rules.splice(this.rules.indexOf(n),1),delete this.ruleBy[a],n.animationNames){let c=this.rules[0];for(let l of n.animationNames){let h=this.keyframesMap[l];if(!--h.count){let y=c.natives.indexOf(h.native);this.style.sheet.deleteRule(y),c.natives.splice(y,1),delete this.keyframesMap[l]}}c.natives.length||this.rules.splice(0,1)}n.config.delete?.call(n,a)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let a of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,a)||o(a);delete this.ruleBy[t]}else o(t)}insert(t){let r=this.create(t);return r.length?(this.insertRules(r),!0):!1}insertRules(t){for(let r of t){if(this.ruleBy[r.className])continue;let o,a=Object.keys(this.keyframesMap).length,n=this.rules.length-1,{media:c,order:l,priority:h,hasWhere:y,className:x}=r,f=(v,b,d)=>{let u=v;for(;u<=n;u++){let i=this.rules[u];if(b?.(i))return d?-1:u-1;if(d?.(i))return u}return d?-1:u-1},g,p;if(c){let v=this.rules.findIndex(b=>b.media);if(v===-1)o=n+1;else{let{"max-width":b,"min-width":d}=c.features;if(b||d){let u=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(u===-1)o=n+1;else if(b&&d){if(h===-1?(g=f(u,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),p=f(u,i=>i.priority!==-1)):(g=f(u,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),p=n),g!==-1){let i=b.value-d.value,s=p,m=g;for(g=void 0;s>=m;s--){let{"max-width":N,"min-width":j}=this.rules[s].media.features,M=N.value-j.value;if(M<i)p=s-1;else if(M===i)g=s;else break}}if(g!==-1){let i=b.value-d.value;for(let s=p;s>=g;s--){let{"max-width":m,"min-width":N}=this.rules[s].media.features,j=m.value-N.value;if(j<i)p=s-1;else if(j>i){g=s+1;break}}}}else if(d){if(h===-1?(g=f(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),p=f(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(g=f(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),p=f(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),g!==-1)for(let i=p;i>=g;i--){let s=this.rules[i].media.features["min-width"].value;if(s>d.value)p=i-1;else if(s<d.value){g=i+1;break}}}else if(h===-1?(g=f(u,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),p=f(u,i=>i.media.features["min-width"]||i.priority!==-1)):(g=f(u,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),p=f(u,i=>i.media.features["min-width"]&&i.priority!==-1)),g!==-1)for(let i=p;i>=g;i--){let s=this.rules[i].media.features["max-width"].value;if(s<b.value)p=i-1;else if(s>b.value){g=i+1;break}}}else h===-1?(g=v,p=f(v,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(g=f(v,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),p=f(v,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let v=a?1:0;h===-1?(g=v,p=f(v,b=>b.media||b.priority!==-1)):(g=f(v,b=>b.media,b=>b.priority!==-1),p=f(v,b=>b.media))}if(o===void 0)if(g===-1)o=p+1;else{if(h===-1)for(let v=g;v<=p;v++){let b=this.rules[v];if(!(!y&&b.hasWhere)&&(y&&!b.hasWhere||b.order>=l)){o=v;break}}else for(let v=g;v<=p;v++){let b=this.rules[v];if(!(!y&&b.hasWhere)){if(y&&!b.hasWhere){o=v;break}if(b.priority<h){o=v;break}else if(b.priority===h){if(b.order>=l){o=v;break}}else o=v+1}}o===void 0&&(o=p+1)}if(this.rules.splice(o,0,r),this.ruleBy[x]=r,this.style){let v=this.style.sheet,b=0,d=u=>{let i=this.rules[u];if(i){if(!i.natives.length)return d(u-1);let s=i.natives[i.natives.length-1].cssRule;for(let m=0;m<v.cssRules.length;m++)if(v.cssRules[m]===s){b=m+1;break}}};d(o-1);for(let u=0;u<r.natives.length;)try{let i=r.natives[u];v.insertRule(i.text,b),i.cssRule=v.cssRules[b++],u++}catch(i){console.error(i),r.natives.splice(u,1)}}this.handleRuleWithAnimationNames(r),r.config.insert?.call(r)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let r=n=>{let c=ce({},n),l=h=>{for(let y in h){let x=h[y];typeof x=="object"&&!Array.isArray(x)?l(x):y&&(h[y]={"":x})}};if(c.classes?l(c.classes):c.classes={},c.viewports?l(c.viewports):c.viewports={},c.mediaQueries?l(c.mediaQueries):c.mediaQueries={},c.selectors?l(c.selectors):c.selectors={},c.values?l(c.values):c.values={},c.colors){let h=(y,x)=>{let f=(b,d,u)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,b)||(this.colorByThemeByColorName[b]={});let i=this.colorByThemeByColorName[b],s=i[""]?.includes(Ce),m=N=>N.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(j,M,E,k,B)=>{let A="#"+ve(+M,+E,+k);return B&&(A+=Math.round(255*+B).toString(16)),A});for(let[N,j]of d)if(j){let M=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,E;for(;(E=M.exec(j))!==null;){let k=E[0].trimStart(),B=k.lastIndexOf("@"),A=B!==-1?k.slice(0,B):k,F=B!==-1?k.slice(B):"",G=N||F,ae=u&&E[2]&&!E[2].startsWith("#")&&!F,re=E[1]?m(A):N?E[0]:A;if(s||ae){Object.prototype.hasOwnProperty.call(i,"")||(i[""]="");for(let X in i)X&&(i[""]+=" "+i[X],delete i[X]);i[""]+=(i[""]?" ":"")+(ae?Ce:"")+re+G}else i[G]=re;if(N)break}}else if(u){delete this.colorByThemeByColorName[b];return}else delete i[N];Object.keys(i).length||delete this.colorByThemeByColorName[b]},g=Object.entries(y),p=g.filter(([b])=>b===""||b.startsWith("@"));p.length&&f(x,p,!1);let v=g.filter(([b])=>b!==""&&!b.startsWith("@"));for(let[b,d]of v){let u=(x?x+"-":"")+b;typeof d=="string"?f(u,[["",d]],!0):h(d,u)}};h(c.colors,"")}return c},o=[];for(let n of t)(function c(l){if(l.extends?.length)for(let h of l.extends)c("config"in h?h.config:h);o.push(r(l))})(n);let a=o[0];for(let n=1;n<o.length;n++){let c=o[n];a=ce(a,c),Object.prototype.hasOwnProperty.call(c,"animations")&&Object.assign(a.animations,c.animations)}return a}handleRuleWithAnimationNames(t){if(t.animationNames){let r=this.style?.sheet;for(let o of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,o))this.keyframesMap[o].count++;else{let a={text:`@keyframes ${o}{`+Object.entries(this.animations[o]).map(([c,l])=>`${c}{${Object.entries(l).map(([h,y])=>h+":"+y).join(";")}}`).join("")+"}",theme:""},n;if(Object.keys(this.keyframesMap).length?(n=this.rules[0]).natives.push(a):this.rules.splice(0,0,n={natives:[a],get text(){return this.natives.map(c=>c.text).join("")}}),r){let c;for(let l=0;l<r.cssRules.length;l++){let h=r.cssRules[l];if(h.constructor.name!=="CSSKeyframesRule")break;if(h.name===o){c=h;break}}if(c)a.cssRule=c;else{let l=n.natives.length-1;r.insertRule(a.text,l),a.cssRule=r.cssRules[l]}}this.keyframesMap[o]={native:a,count:1}}}}};typeof window<"u"&&(window.MasterCSS=ee);var Ye=`/** @type {import('@master/css').Config} */ | ||
module.exports = { | ||
@@ -14,3 +14,3 @@ classes: {}, | ||
} | ||
`;var He=`/** @type {import('@master/css').Config} */ | ||
`;var Fe=`/** @type {import('@master/css').Config} */ | ||
export default { | ||
@@ -42,2 +42,2 @@ classes: {}, | ||
} as Config | ||
`;function ye(e){if(!e)return;let t=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,r={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};return e.split(/\sclass="([^"]*)"/gm).filter((o,l)=>l%2===1).map(o=>o.split(" ")).flat().map(o=>o.replace(t,(l,s)=>r[s]))}function be(e,t){if(!e.length)return;let r=new ie(t);for(let o of e)r.insert(o);return r.text}function he(e,t){if(!e)return;let r=ye(e);if(r.length)return be(r,t)}function We(e,t){return new ie(e).observe(t)}function Ae(e,t){if(!e)return;let r=!1;if(e=e.replace(/(<style id="master">).*?(<\/style>)/,(l,s,f)=>(r=!0,s+he(e,t)+f)),r)return e;let o=`<style id="master">${he(e,t)}</style>`;return e.replace(/<\/head>/,`${o}$&`)} | ||
`;function ye(e){if(!e)return;let t=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,r={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};return e.split(/\sclass="([^"]*)"/gm).filter((o,a)=>a%2===1).map(o=>o.split(" ")).flat().map(o=>o.replace(t,(a,n)=>r[n]))}function be(e,t){if(!e.length)return;let r=new ee(t);for(let o of e)r.insert(o);return r.text}function he(e,t){if(!e)return;let r=ye(e);if(r.length)return be(r,t)}function We(e,t){return new ee(e).observe(t)}function Ae(e,t){if(!e)return;let r=!1;if(e=e.replace(/(<style id="master">).*?(<\/style>)/,(a,n,c)=>(r=!0,n+he(e,t)+c)),r)return e;let o=`<style id="master">${he(e,t)}</style>`;return e.replace(/<\/head>/,`${o}$&`)}function _e(e,t){if(!e.length)return;let r=new ee(t);for(let o of e)r.insert(o);return r.rules.sort((o,a)=>{if(o.config.layer===-401&&a.config.layer!==-401)return-1;if(o.config.layer!==-401&&a.config.layer===-401)return 1;if(o.config.id!==a.config.id)return o.config.id.localeCompare(a.config.id);{let n=o.vendorSuffixSelectors?.[""]?.[0],c=a.vendorSuffixSelectors?.[""]?.[0],l=o.media?.token,h=a.media?.token;if(o.priority===-1&&a.priority===-1){if(n&&c)return n.localeCompare(c);if(l&&h&&!Object.keys(o.media.features||{}).length&&!Object.keys(a.media.features||{}).length)return l.localeCompare(h);if(n&&!c)return 1;if(!n&&c)return-1;if(l&&!h)return 1;if(!l&&h)return-1}return o.order-a.order}}).map(o=>o.className)} |
@@ -14,2 +14,3 @@ export { MasterCSS, MasterCSS as default } from './core'; | ||
export { default as renderHTML } from './functions/render-html'; | ||
export { default as reorderForReadableClasses } from './functions/reorder-for-readable-classes'; | ||
export * from './config'; |
@@ -1,1 +0,1 @@ | ||
{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A markup-driven CSS language with enhanced syntax","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","browser":"./dist/index.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.181","@techor/fs":"^2.5.4","@techor/log":"^2.5.4","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.5.4","@techor/pack":"^2.5.4","csstype":"^3.1.2","shared":"^2.0.0-beta.181","vite":"^4.2.1","puppeteer":"^21.0.1"},"version":"2.0.0-beta.181"} | ||
{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A markup-driven CSS language with enhanced syntax","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","browser":"./dist/index.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.182","@techor/fs":"^2.5.4","@techor/log":"^2.5.4","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.5.4","@techor/pack":"^2.5.4","csstype":"^3.1.2","shared":"^2.0.0-beta.182","vite":"^4.2.1","puppeteer":"^21.0.1"},"version":"2.0.0-beta.182"} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232185
42
1979