@master/css 2.0.0-beta.192 → 2.0.0-beta.193
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/functions.d.ts +6 -27
- package/dist/config/index.d.ts +14 -12
- package/dist/config/rules.d.ts +271 -6458
- package/dist/config/variables.d.ts +0 -1
- package/dist/core.d.ts +17 -18
- package/dist/index.browser.bundle.js +1 -1
- package/dist/index.bundle.js +4 -4
- package/dist/index.bundle.mjs +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/rule.d.ts +68 -74
- package/package.json +1 -1
package/dist/index.bundle.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function he(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function me(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 pe(e){let t=[];return e.forEach(function(o,r){typeof o=="object"&&o!==null?Array.isArray(o)?t[r]=pe(o):he(o)?t[r]=me(o):t[r]=H({},o):t[r]=o}),t}function fe(e,t){return t==="__proto__"?void 0:e[t]}function H(...e){let t={},o,r;return e.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(a){if(r=fe(t,a),o=fe(l,a),o!==t)if(typeof o!="object"||o===null){t[a]=o;return}else if(Array.isArray(o)){t[a]=pe(o);return}else if(he(o)){t[a]=me(o);return}else if(typeof r!="object"||r===null||Array.isArray(r)){t[a]=H({},o);return}else{t[a]=H(r,o);return}})}),t}var q={"(":")","'":"'",'"':'"',"{":"}"};function ee(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),o=t.length,r=-1,l="",a,f=t.charCodeAt(0);if(o==1&&f==45)return"\\"+t;for(;++r<o;){if(a=t.charCodeAt(r),a==0){l+="\uFFFD";continue}if(a>=1&&a<=31||a==127||r==0&&a>=48&&a<=57||r==1&&a>=48&&a<=57&&f==45){l+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){l+=t.charAt(r);continue}l+="\\"+t.charAt(r)}return l}var ge=(l=>(l[l.NativeShorthand=-300]="NativeShorthand",l[l.Shorthand=-200]="Shorthand",l[l.Native=-100]="Native",l[l.Normal=0]="Normal",l))(ge||{}),be=(a=>(a[a.Semantic=-401]="Semantic",a[a.NativeShorthand=-301]="NativeShorthand",a[a.Shorthand=-201]="Shorthand",a[a.Native=-101]="Native",a[a.Normal=-1]="Normal",a))(be||{});var Me=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,te=class{constructor(t,o={},r){this.className=t;this.options=o;this.css=r;let{layer:l,unit:a,colored:f,resolvedPropName:d,analyze:c,transform:h,declare:p,create:M,order:v,id:x,resolvedNormalVariables:g,resolvedColorVariables:b}=o;this.order=v,o.unit||(o.unit=""),o.separators||(o.separators=[","]);let{scope:s,important:n,functions:u,themeDriver:i}=r.config,{selectors:m,mediaQueries:N,stylesBy:V,animations:I,colorVariables:B,generalVariables:O}=r,z=V[t],F=[","];this.options.separators.length&&F.push(...this.options.separators),M&&M.call(this,t),this.declarations=o.declarations;let D,Q;this.colored=f;let X=(w,k,W,P,$,E=void 0,j=[])=>{let Y=E===void 0,y=!Y&&(E.endsWith("$")||E.endsWith("var")),C=(R=>R==="'"||R==='"')($),S="",A=()=>{if(S){let R=!1;if(!y){let G=Object.prototype.hasOwnProperty.call(g,S)?g[S]:Object.prototype.hasOwnProperty.call(O,S)?O[S]:void 0;if(G){let _=G.name??S;j.includes(_)||(R=!0,w.push({type:"variable",name:_}))}else if(this.colored){let[_,re]=S.split("/"),ue=Object.prototype.hasOwnProperty.call(b,_)?b[_]:Object.prototype.hasOwnProperty.call(B,_)?B[_]:void 0;if(ue){let de=ue.name??_;j.includes(de)||(R=!0,w.push({type:"variable",name:de,alpha:re}))}}}if(!R){let G=this.resolveUnitValue(S,P);w.push((G?.value??S)+(G?.unit??""))}S=""}};for(;k<W.length;k++){let R=W[k];if(R===$){if(C){let G=0;for(let _=S.length-1;S[_]==="\\";_--)G++;if(G%2){S+=R;continue}else A()}else A();return k}else if(!C&&R in q){let G=S,_={type:"function",name:G,symbol:R,childrens:[]};w.push(_),S="";let re=R==="("&&u?.[G];!this.colored&&re?.colored&&(this.colored=!0),k=X(_.childrens,++k,W,re?.unit??P,q[R],G||E||"")}else if((R==="|"||R===" ")&&$!=="}"&&(!C||E==="path"))A(),w.push({type:"separator",value:" "});else{if(!C){if(R===".")if(isNaN(+W[k+1])){if(Y)break}else W[k-1]==="-"&&(S+="0");else if(F.includes(R)){A(),w.push({type:"separator",value:R,prefixWhite:R!==",",suffixWhite:R!==","});continue}else if(Y&&(R==="#"&&(S||w.length&&w[w.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(R)))break}S+=R}}return A(),k},ae=w=>{this.variableNames||(this.variableNames=[]),this.variableNames.includes(w)||this.variableNames.push(w)};if(l===-401)D=t.slice(x.length-1);else{let w;if(c)[w,Q]=c.call(this,t);else{let k=t.indexOf(":");this.prefix=t.slice(0,k+1),w=t.slice(k+1)}this.valueNodes=[],D=w.slice(X(this.valueNodes,0,w,a))}D[0]==="!"&&(this.important=!0,D=D.slice(1)),this.stateToken=D;let ne=(w,k)=>{let W=(y,T,C,S)=>{for(let[A,R]of T)if(A.test(y)){for(let G of R)W(y.replace(A,G),T,C,!0);return}S&&C.push(y)},P=y=>{let T=y.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((R,G)=>G%3?R:R.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),C=[],S="",A=0;for(let R=0;R<T.length;R++){let G=T[R];if(G==="\\"){S+=G+T[++R];continue}!A&&G===","?(C.push(S),S=""):(S+=G,A&&G===")"?A--:G==="("&&A++)}return S&&C.push(S),C},$=[];""in m?W(w,m[""],$,!0):$.push(w);let E={};for(let[y,T]of Object.entries(m)){if(!y)continue;let C=[];for(let S of $)W(S,T,C,!1);C.length&&(E[y]=C)}let j=(y,T)=>{let C=T.reduce((S,A)=>(S.push(...P(A)),S),[]);y in k?k[y].push(...C):k[y]=C},Y=Object.keys(E);if(Y.length)for(let y of Y)j(y,E[y]);else j("",$)};Q?(this.vendorPrefixSelectors={},ne(Q,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let oe=D.split("@"),le=oe[0];if(le){this.vendorSuffixSelectors={},ne(le,this.vendorSuffixSelectors);for(let w of Object.values(this.vendorSuffixSelectors))for(let k of w){this.hasWhere!==!1&&(this.hasWhere=k.includes(":where("));let W=[":disabled",":active",":focus",":hover"];for(let P=0;P<W.length;P++)if(k.includes(W[P])){(this.priority===-1||this.priority>P)&&(this.priority=P);break}}}else this.vendorSuffixSelectors={"":[""]};let J={},Ve=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),ce=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(Ve)J[""]=ce?[""]:Object.keys(this.vendorSuffixSelectors);else if(ce)for(let w in this.vendorPrefixSelectors)J[w]=[""];else for(let w in this.vendorPrefixSelectors){let k=J[w]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,w))k.push(w);else for(let W in this.vendorSuffixSelectors)k.push(W)}for(let w=1;w<oe.length;w++){let k=oe[w];if(k)if(k==="rtl"||k==="ltr")this.direction=k;else{let W,P,$=Me.exec(k);if($)W=$[1],P=k.slice(W.length);else{this.media={token:k,features:{}};let E=[],j=y=>{if(y==="all"||y==="print"||y==="screen"||y==="speech")this.media.type=y;else if(y==="\u{1F5A8}")this.media.type="print";else if(y==="landscape"||y==="portrait")E.push("(orientation:"+y+")");else if(y==="motion"||y==="reduced-motion")E.push("(prefers-reduced-motion:"+(y==="motion"?"no-preference":"reduce")+")");else{let T=N[y];if(T&&typeof T=="string")E.push(T);else{let C={token:y},S="",A="",R=0;y.startsWith("<=")?(A="<=",S="max-width"):y.startsWith(">=")||T?(A=">=",S="min-width"):y.startsWith(">")?(A=">",S="min-width",R=.02):y.startsWith("<")&&(A="<",S="max-width",R=-.02);let G=A?y.replace(A,""):y,_=N[G];switch(S){case"max-width":case"min-width":_?Object.assign(C,this.resolveUnitValue(_.toString(),"px")):Object.assign(C,this.resolveUnitValue(G,"px")),C.unit==="px"&&(C.value+=R),this.media.features[S]=C,E.push("("+S+":"+(C.value+C.unit)+")");break}}}},Y=k.includes("&");if(Y){let y=k.split("&");for(let T of y)j(T)}else j(k);if(this.media.type&&(P=this.media.type),E.length&&(P=E.join(" and ")),P)W="media";else if(!Y){this.theme=k;continue}}P&&(this.at[W]=(W in this.at?this.at[W]+" and ":"")+P.replace(/\|/g," "))}}let K;if(this.valueNodes){let w=this;if(K=function k(W,P,$){let E="";for(let j of W)switch(typeof j){case"object":switch(j.type){case"function":let y=u&&u[j.name];if(y?.transform){let C=y.transform.call(w,j.symbol,k(j.childrens,y.unit??P,$));E+=k(Array.isArray(C)?C:[C],P,$)}else E+=j.name+j.symbol+k(j.childrens,y?.unit??P,$)+q[j.symbol];break;case"separator":E+=(j.prefixWhite?" ":"")+j.value+(j.suffixWhite?" ":"");break;case"variable":let T=O[j.name];if(T){let C=R=>{let G=[];X(G,0,R.value,P,void 0,void 0,[...$,j.name]),E+=k(G,P,[...$,j.name])},S=R=>{let G=w.resolveUnitValue(R.value,P);E+=(G?.value??R.value)+(G?.unit??"")},A=Object.keys(T);if(A.some(R=>R===""||R.startsWith("@"))){let R=T[A[0]].type==="string";if(w.theme){let G=T["@"+w.theme]??T[""];G&&(R?C(G):S(G))}else ae(j.name),E+=R||!P?`var(--${j.name})`:`calc(var(--${j.name}) / 16 * 1rem)`}else T.type==="string"?C(T):S(T)}else{let C=B[j.name],S=j.alpha?"/"+j.alpha:"",A=Object.keys(C);if(A.some(R=>R===""||R.startsWith("@")))if(w.theme){let R=C["@"+w.theme]??C[""];E+=`${R.space}(${R.value}${S})`}else ae(j.name),E+=`${C[A[0]].space}(var(--${j.name})${S})`;else E+=`${C.space}(${C.value}${S})`}break}break;case"number":let Y=w.resolveUnitValue(j,P);E+=(Y?.value??j)+(Y?.unit??"");break;default:E+=j;break}return E}(this.valueNodes,a,[]),h&&(K=h.call(this,K,this.css.config)),p){let k,W;this.declarations=p.call(this,W?k:K,W||"")}else d&&(this.declarations={[d]:K})}let se=[];for(let w in this.declarations){let k=$=>{if(I&&($.startsWith("animation")||$.startsWith("animation-name"))){let E=$.split(":")[1].split("!important")[0].split(" ").filter(j=>j in this.css.animations&&(!this.animationNames||!this.animationNames.includes(j)));E.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...E))}se.push($+((this.important||n)&&!$.endsWith("!important")?"!important":""))},W=w+":",P=this.declarations[w];if(typeof P=="object")for(let $ of P)k(W+$.toString());else k(W+P.toString())}if(se.length)for(let w in J)for(let k of J[w]){let W="";this.direction&&(W+="[dir="+this.direction+"] ");let P=this.vendorPrefixSelectors[w],$=this.vendorSuffixSelectors[k],E=P.map(y=>y+W),j=y=>E.map(T=>(this.theme&&i!=="media"?i==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(s?s+" ":"")+T).reduce((T,C)=>(T.push($.reduce((S,A)=>(S.push(C+"."+ee(y)+A),S),[]).join(",")),T),[]).join(","),Y=j(t)+(z?z.reduce((y,T)=>y+","+j(T),""):"")+"{"+se.join(";")+"}";for(let y of Object.keys(this.at).sort((T,C)=>C==="supports"?-1:1))Y="@"+y+(y.includes(" ")?"":" ")+this.at[y]+"{"+Y+"}";this.theme&&i==="media"&&(Y=`@media(prefers-color-scheme:${this.theme}){`+Y+"}"),this.natives.push({text:Y})}}at={};priority=-1;natives=[];order=0;stateToken;declarations;colored=!1;animationNames;variableNames;get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,o){return Number.isNaN(+t)?t:t/(o==="rem"||o==="em"?this.css.config.rootSize:1)+o}resolveUnitValue(t,o){let r=o??this.options.unit,l="",a;if(typeof t=="number")return r&&!l?((r==="rem"||r==="em")&&(a=t/this.css.config.rootSize),l=r||""):a=t,{value:a,unit:l};if(r){if(/^\d+\/\d+/.test(t)){let[d,c]=t.split("/");return{value:+d/+c*100+"%",unit:l}}let f=t.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(f){let d=+f[1];return l=f[3]||"",l||((r==="rem"||r==="em")&&(d=d/this.css.config.rootSize),l=r||""),{value:d,unit:l}}}}};var Be={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ye=Be;var Ge={"::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"},ve=Ge;var Te={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"}},Re=Te;var Ee={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"}}},xe=Ee;function Z(e){e.startsWith("#")&&(e=e.slice(1));let t,o,r,l;return e.length===3||e.length===4?(t=parseInt(e[0]+e[0],16),o=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),l=e.length===4?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(e.length===6||e.length===8)&&(t=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),r=parseInt(e.slice(4,6),16),l=e.length===8?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,o,r,l]}function Ne(e,t,o){return((1<<24)+(e<<16)+(t<<8)+o).toString(16).slice(1)}function L(e){typeof e=="string"&&(e={"":e});let t=""in e,o=!1;for(let r in e)if(r&&+r>=100){o=!0;break}if(!o&&(!t||Object.keys(e).length>1)){let r=0,l="0"in e?Z(e[0]):[0,0,0],a,f,d=[],c=()=>{let h=a-r,p=f.map((M,v)=>(M-l[v])/h);for(let M of d){let v=M-r,x=l.map((g,b)=>Math.round(g+p[b]*v));e[M]="#"+Ne.call(this,...x)}};for(let h=1;h<100;h++)h in e?(d.length?(a=h,f=Z(e[h]),c(),d.length=0,l=f):l=Z(e[h]),r=h):d.push(h);d.length&&(a=100,f="100"in e?Z(e[100]):[255,255,255],c())}return t||(e[""]=e[o?"500":"50"]),e}var We={fontFamily:{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"]},fontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},section:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},flexBasis:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},flexDirection:{col:"column","col-reverse":"column-reverse"},width:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},height:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},minWidth:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},boxSizing:{content:"content-box",border:"border-box"},maxHeight:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},position:{abs:"absolute",rel:"relative"},transformBox:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},animationDirection:{alt:"alternate","alt-reverse":"alternate-reverse"},backgroundClip:{content:"content-box",border:"border-box",padding:"padding-box"},backgroundOrigin:{content:"content-box",border:"border-box",padding:"padding-box"},gridAutoColumns:{min:"min-content",max:"max-content"},gridAutoRows:{min:"min-content",max:"max-content"},gridTemplateColumns:{min:"min-content",max:"max-content"},gridTemplateRows:{min:"min-content",max:"max-content"},order:{first:-999999,last:999999},shapeOutside:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},clipPath:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box",black:"#000000"},black:"#000000",white:"#ffffff",current:"currentColor",transparent:"transparent",slate:L({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:L({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:L({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:L({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:L({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:L({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:L({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:L({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:L({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:L({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:L({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:L({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:L({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:L({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:L({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:L({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:L({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:L({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:L({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:L({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},Se=We;var Pe={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={},o=c=>{let h=c.indexOf(":");h!==-1&&(t[c.slice(0,h)]=c.slice(h+1))},r=c=>{let h=p=>{let M=p.slice(ee(c.className).length).match(/\{(.*)\}/)[1].split(";");for(let v of M)o(v)};for(let p of c.natives)h(p.text);if(c.animationNames){this.animationNames||(this.animationNames=[]);for(let p of c.animationNames)this.animationNames.includes(p)||this.animationNames.push(p)}if(c.variableNames){this.variableNames||(this.variableNames=[]);for(let p of c.variableNames)this.variableNames.includes(p)||this.variableNames.push(p)}},l=[],a="",f=()=>{a&&(l.push(a.replace(/ /g,"|")),a="")},d=1;(function c(h){for(;d<e.length;d++){let p=e[d];if(!h){if(p===";"){f();continue}if(p==="}")break}if(a+=p,h===p){if(h==="'"||h==='"'){let M=0;for(let v=a.length-2;a[v]==="\\";v--)M++;if(M%2)continue}break}else p in q&&h!=="'"&&h!=='"'&&(d++,c(q[p]))}})(void 0),f();for(let c of l){let h=this.css.create(c);if(h.length)for(let p of h)r(p);else o(c)}return t}},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},fontFamily:{match:["f(?:ont)?"],layer:-101},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},fontVariant:{layer:-301},fontFeatureSettings:{match:/^font-feature:./,layer:-101},font:{match:/^f:./,layer:-301,variableGroups:["fontFamily","fontVariant","fontWeight","fontSize","fontStyle","lineHeight"]},color:{match:/^(?:color|fg|foreground):./,layer:-101,colored:!0},marginLeft:{match:/^ml:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginRight:{match:/^mr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginTop:{match:/^mt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginBottom:{match:/^mb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginX:{match:/^(?:mx|margin-x):./,unit:"rem",layer:-201,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}},variableGroups:["spacing"]},marginY:{match:/^(?:my|margin-y):./,unit:"rem",layer:-201,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}},variableGroups:["spacing"]},margin:{match:/^m:./,unit:"rem",layer:-301,variableGroups:["spacing"]},marginInlineStart:{match:/^mis:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginInlineEnd:{match:/^mie:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginInline:{match:/^mi:./,unit:"rem",layer:-301,variableGroups:["spacing"]},paddingLeft:{match:/^pl:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingRight:{match:/^pr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingTop:{match:/^pt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingBottom:{match:/^pb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingX:{match:/^(?:px|padding-x):./,unit:"rem",layer:-201,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}},variableGroups:["spacing"]},paddingY:{match:/^(?:py|padding-y):./,unit:"rem",layer:-201,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}},variableGroups:["spacing"]},padding:{match:/^p:./,unit:"rem",layer:-301,variableGroups:["spacing"]},paddingInlineStart:{match:/^pis:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingInlineEnd:{match:/^pie:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingInline:{match:/^pi:./,unit:"rem",layer:-301,variableGroups:["spacing"]},flexBasis:{variableGroups:["section"],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},flex:{layer:-301},display:{match:/^d:./,layer:-101},width:{match:/^w:./,unit:"rem",layer:-101,variableGroups:["section"]},height:{match:/^h:./,unit:"rem",layer:-101,variableGroups:["section"]},minWidth:{match:/^min-w:./,unit:"rem",layer:-101,variableGroups:["section"]},minHeight:{match:/^min-h:./,unit:"rem",layer:-101,variableGroups:["section"]},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,o]=e.split(" x ");return{width:t,height:o}}},minBox:{match:/^min:./,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,o]=e.split(" x ");return{"min-width":t,"min-height":o}}},maxBox:{match:/^max:./,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,o]=e.split(" x ");return{"max-width":t,"max-height":o}}},boxSizing:{match:/^box:./,layer:-101},boxDecorationBreak:{match:["section",["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,variableGroups:["spacing"]},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",variableGroups:["spacing"]},bottom:{layer:-101,unit:"rem",variableGroups:["spacing"]},left:{layer:-101,unit:"rem",variableGroups:["spacing"]},right:{layer:-101,unit:"rem",variableGroups:["spacing"]},inset:{unit:"rem",layer:-301,variableGroups:["spacing"]},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,variableGroups:["section"]},maxWidth:{match:/^max-w:./,unit:"rem",layer:-101,variableGroups:["section"]},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},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},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]},variableGroups:["spacing"]},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},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}}},backgroundOrigin:{match:["(?:bg|background)"],layer:-101},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,variableGroups:["spacing"]},strokeWidth:{match:["stroke(?:-width)?"],numeric:!0,layer:-101},stroke:{match:["stroke"],layer:-101,colored:!0},x:{layer:-101,variableGroups:["spacing"]},y:{layer:-101,variableGroups:["spacing"]},cx:{layer:-101,variableGroups:["spacing"]},cy:{layer:-101,variableGroups:["spacing"]},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},gridAutoFlow:{match:/^grid-flow:./,layer:-101},gridAutoRows:{layer:-101},gridTemplateAreas:{layer:-101},gridTemplateColumns:{match:/^grid-template-cols:./,layer:-101,unit:"rem"},gridTemplateRows:{layer:-101,unit:"rem"},gridTemplate:{layer:-301},gridArea:{layer:-301},grid:{layer:-301},columnGap:{match:/^gap-x:./,unit:"rem",layer:-101,variableGroups:["spacing"]},rowGap:{match:/^gap-y:./,unit:"rem",layer:-101,variableGroups:["spacing"]},gap:{unit:"rem",layer:-301,variableGroups:["spacing"]},order:{match:/^o:./,layer:-101},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,variableGroups:["spacing"]},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},variableGroups:["outlineWidth","outlineStyle","outlineOffset","outlineColor"]},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",variableGroups:["spacing"]},scrollMarginRight:{match:/^scroll-mr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginTop:{match:/^scroll-mt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginBottom:{match:/^scroll-mb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},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}},variableGroups:["spacing"]},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}},variableGroups:["spacing"]},scrollMargin:{match:/^scroll-m:./,unit:"rem",layer:-301,variableGroups:["spacing"]},scrollPaddingLeft:{match:/^scroll-pl:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingRight:{match:/^scroll-pr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingTop:{match:/^scroll-pt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingBottom:{match:/^scroll-pb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},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}},variableGroups:["spacing"]},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}},variableGroups:["spacing"]},scrollPadding:{match:/^scroll-p:./,unit:"rem",layer:-301,variableGroups:["spacing"]},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},shapeMargin:{match:["shape"],numeric:!0,unit:"rem",layer:-101,variableGroups:["spacing"]},shapeImageThreshold:{layer:-101},clipPath:{match:/^clip:./,layer:-101},quotes:{layer:-101},maskImage:{layer:-101,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},we=Pe;var Ie={$:{transform(e,t,o){let r=Object.prototype.hasOwnProperty.call(this.options.resolvedNormalVariables,t)?this.options.resolvedNormalVariables[t]:this.colored&&Object.prototype.hasOwnProperty.call(this.options.resolvedColorVariables,t)?this.options.resolvedColorVariables[t]:Object.prototype.hasOwnProperty.call(this.css.generalVariables,t)?this.css.generalVariables[t]:this.colored&&Object.prototype.hasOwnProperty.call(this.css.colorVariables,t)?this.css.colorVariables[t]:void 0;if(r){let l=Object.keys(r);if(l.some(a=>a===""||a.startsWith("@"))){let a=r.name??t;return this.variableNames||(this.variableNames=[]),this.variableNames.includes(a)||this.variableNames.push(a),r[l[0]].type==="number"&&this.options.unit?`calc(var(--${a}) / 16 * 1rem)`:"var(--"+a+")"}else return r.value}else return"var(--"+t+")"}},calc:{transform(e,t,o){let r=[],l=this.css.config.functions,a=this,f=0;return function d(c,h,p){let M=!1,v="",x=(g,b=!1,s=!1)=>{if(v){if(!M&&!p){let n=a.resolveUnitValue(v,l.calc.unit);n&&(v=n.value+n.unit)}c.push(v),v=""}g&&(b&&t[f-1]===" "&&(b=!1),s&&t[f+1]===" "&&(s=!1),h?c.push(g):c.push({type:"separator",value:g,prefixWhite:b,suffixWhite:s})),M=!1};for(;f<t.length;f++){let g=t[f];if(g==="("){let b=/^([+-])/.exec(v);b&&c.push(b[1]);let s=b?v.slice(1):v,n={type:"function",name:s,symbol:g,childrens:[]};c.push(n),v="",f++;let u=n.name==="$"||n.name==="var";d(n.childrens,s!==""&&s!=="calc"&&(u||Object.prototype.hasOwnProperty.call(l,s)),M||u)}else if(g===")"){x("");break}else if(g===",")x(g,!1,!0);else if(g===" ")x(g);else{let b=t[f-1];switch(g){case"+":!v&&b!==")"?v+=g:x(g,!0,!0);break;case"-":!v&&b!==")"?v+=g:x(g,!0,!0);break;case"*":x(g,!0,!0);break;case"/":x(g,!0,!0),M=!0;break;default:v+=g;break}}}x("")}(r,!1,!1),["calc(",...r,")"]}},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}},ke=Ie;var ie={mediaQueries:ye,selectors:ve,semantics:Re,rules:we,functions:ke,animations:xe,variables:Se,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var Ce=[",",".","#","[","!","*",">","+","~",":","@"];var U=class e{constructor(t=ie){this.customConfig=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ie,t),this.resolve(),e.instances.push(this)}static root;static config=ie;static instances=[];static refresh=t=>{for(let o of this.instances)o.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;config;semanticRuleOptions=[];ruleOptions=[];observer;resolve(){this.styles={},this.stylesBy={},this.selectors={},this.generalVariables={},this.colorVariables={},this.mediaQueries={},this.variablesMap={},this.keyframesMap={},this.animations={},this.ruleOptions.length=0,this.semanticRuleOptions.length=0;let{styles:t,selectors:o,variables:r,semantics:l,mediaQueries:a,rules:f,animations:d}=this.config;function c(s){return s.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(s,n,u="",i={}){let m=B=>B?(u?u+"-":"")+B:u,N=Object.entries(s),V=[],I=[];for(let B of N){let O=B[1];(typeof O=="object"&&!Array.isArray(O)?V:I).push(B)}for(let[B,O]of V)h(O,n,m(B),i);if(n&&u)I.length&&(i[u]=I.reduce((B,[O,z])=>(B[O]=z,B),{}));else for(let[B,O]of I)i[m(B)]=O;return i}if(o)for(let[s,n]of Object.entries(h(o,!1))){let u=new RegExp(c(s)+"(?![a-z-])");for(let i of Array.isArray(n)?n:[n]){let m=i.match(/^::-[a-z]+-/m)?.[0]??"",N=this.selectors[m];N||(N=this.selectors[m]=[]);let V=N.find(([I])=>I===u);V||(V=[u,[]],N.push(V)),V[1].push(i)}}if(r){let s={};for(let n in r){let u=(i,m,N=void 0)=>{if(!i)return;let V=(B,O,z,F=void 0,D=void 0)=>{if(z===void 0)return;if(D&&z.type==="color"){let X=z.value.indexOf("/");z={...z,value:X===-1?z.value+" / "+(D.startsWith("0.")?D.slice(1):D):z.value.slice(0,X+2)+(+z.value.slice(X+2)*+D).toString().slice(1)}}let Q=F??N;Q!==void 0?(Object.prototype.hasOwnProperty.call(B,O)||(B[O]={}),B[O][Q]=z):B[O]=z},I=typeof i;if(I==="object")if(Array.isArray(i))V(this.generalVariables,m,{type:"string",value:i.join(",")});else{let B=Object.keys(i);for(let O of B)O===""||O.startsWith("@")?u(i[O],m,O||B.some(z=>z.startsWith("@"))?O:void 0):u(i[O],m+"-"+O)}else if(I==="number")V(this.generalVariables,m,{type:"number",value:i}),V(this.generalVariables,"-"+m,{type:"number",value:i*-1});else if(I==="string"){let B=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(i);if(B)s[m+"@"+N]=()=>{delete s[m+"@"+N];let[O,z]=B[1].split("@");if(O){Object.prototype.hasOwnProperty.call(s,O)&&s[O]();let F,D;if(Object.prototype.hasOwnProperty.call(this.generalVariables,O)&&(F=this.generalVariables,D=this.generalVariables[O]),Object.prototype.hasOwnProperty.call(this.colorVariables,O)&&(F=this.colorVariables,D=this.colorVariables[O]),F){let Q=Object.keys(D);if(z===void 0&&Q.some(X=>X===""||X.startsWith("@")))for(let X of Q)V(F,m,D[X],X,B[2]);else V(F,m,z!==void 0?D["@"+z]:D,void 0,B[2])}}};else{let O,z=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(i);if(z){let[F,D,Q,X]=Z(z[1]);O={type:"color",value:`${F} ${D} ${Q}${X===1?"":" / "+X}`,space:"rgb"}}else{let F=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(i);if(F)O={type:"color",value:F[1]+" "+F[2]+" "+F[3]+(F[4]?" / "+(F[4].startsWith("0.")?F[4].slice(1):F[4]):""),space:"rgb"};else{let D=/^hsl\((.*?)\)$/.exec(i);D&&(O={type:"color",value:D[1],space:"hsl"})}}O?V(this.colorVariables,m,O):V(this.generalVariables,m,{type:"string",value:i})}}};u(r[n],n)}for(let n of Object.keys(s))s[n]?.()}if(a&&(this.mediaQueries=h(a,!1)),d)for(let s in d){let n=this.animations[s]={},u=d[s];for(let i in u){let m=n[i]={},N=u[i];for(let V in N)m[V]=N[V]}}let p=t?h(t,!1):{},M=Object.keys(p),v=s=>{if(Object.prototype.hasOwnProperty.call(this.styles,s))return;let n=this.styles[s]=[],u=p[s];if(!u)return;let i=u.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let m of i){let N=V=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,V)){let I=this.stylesBy[V];I.includes(s)||I.push(s)}else this.stylesBy[V]=[s];n.includes(V)||n.push(V)};if(M.includes(m)){v(m);for(let V of this.styles[m])N(V)}else N(m)}};for(let s of M)v(s);l&&Object.entries(l).sort((s,n)=>s[0].localeCompare(n[0])).forEach(([s,n],u)=>{this.semanticRuleOptions.push({id:"."+s,resolvedMatch:new RegExp("^"+c(s)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:u,declarations:n,layer:-401})});let x=Object.entries(f).sort((s,n)=>s[1].layer!==n[1].layer?(n[1].layer||0)-(s[1].layer||0):n[0].localeCompare(s[0])),g=x.length,b=Object.keys(this.colorVariables);b.push("current","transparent"),x.forEach(([s,n],u)=>{this.ruleOptions.push(n),n.order=this.semanticRuleOptions.length+g-1-u;let i=n.match;n.id=s,(n.layer===-100||n.layer===-300||n.layer===-101||n.layer===-301)&&(n.resolvedPropName=s.replace(/(?!^)[A-Z]/g,N=>"-"+N).toLowerCase()),n.resolvedNormalVariables={},n.resolvedColorVariables={};let m=(N,V,I)=>{Object.assign(N,Object.keys(V).filter(B=>B.startsWith(I+"-")).reduce((B,O)=>(B[O.slice(I.length+(I.startsWith("-")?0:1))]={...V[O],name:O},B),{}))};if(n.variableGroups)for(let N of n.variableGroups)m(n.resolvedNormalVariables,this.generalVariables,N),m(n.resolvedNormalVariables,this.generalVariables,"-"+N),m(n.resolvedColorVariables,this.colorVariables,N);if(m(n.resolvedNormalVariables,this.generalVariables,s),m(n.resolvedNormalVariables,this.generalVariables,"-"+s),m(n.resolvedColorVariables,this.colorVariables,s),i)if(Array.isArray(i)){let[N,V=[]]=i,I=[];V.length&&I.push(`(?:${V.join("|")})(?![a-zA-Z0-9-])`),Object.keys(n.resolvedNormalVariables).length&&I.push(`(?:${Object.keys(n.resolvedNormalVariables).join("|")})(?![a-zA-Z0-9-])`),n.colored&&I.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${b.concat(Object.keys(n.resolvedColorVariables)).join("|")})(?![a-zA-Z0-9-])`),n.numeric&&I.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),n.resolvedMatch=new RegExp(`^${N}:(?:${I.join("|")})[^|]*?(?:@|$)`)}else n.resolvedMatch=i})}observe(t,o={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let r=t===document;r&&(e.root=this),this.host=r?document.documentElement:this.root.host;let l=r?document.head:t,a=r?document.styleSheets:t.styleSheets;for(let d of a){let{ownerNode:c}=d;if(c&&c.id==="master"){this.style=c;break}}if(this.style)for(let d=0;d<this.style.sheet.cssRules.length;d++){let c=this.style.sheet.cssRules[d];if(c.constructor.name==="CSSKeyframesRule")continue;let h=M=>{if(M.selectorText){let x=M.selectorText.split(", ")[0].split(" ");for(let g=0;g<x.length;g++){let b=x[g];if(b[0]==="."){let s=b.slice(1),n="";for(let u=0;u<s.length;u++){let i=s[u],m=s[u+1];if(i==="\\"){if(u++,m!=="\\"){n+=m;continue}}else if(Ce.includes(i))break;n+=i}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,n)&&!Object.prototype.hasOwnProperty.call(this.styles,n)){let u=this.create(n)[0];if(u)return u}}}}else if(M.cssRules)for(let v=0;v<M.cssRules.length;v++){let x=h(M.cssRules[v]);if(x)return x}},p=h(c);if(p){this.rules.push(p),this.ruleBy[p.className]=p;for(let M=0;M<p.natives.length;M++)p.natives[M].cssRule=this.style.sheet.cssRules[d+M];d+=p.natives.length-1,this.handleRuleWithVariableNames(p),this.handleRuleWithAnimationNames(p),p.options.insert?.call(p)}}else this.style=document.createElement("style"),this.style.id="master",l.append(this.style);let f=d=>{d.forEach(c=>{Object.prototype.hasOwnProperty.call(this.countBy,c)?this.countBy[c]++:(this.countBy[c]=1,this.insert(c))})};f(this.host.classList),o.subtree&&this.host.querySelectorAll("[class]").forEach(d=>f(d.classList)),this.observer=new MutationObserver(d=>{let c={},h=[],p=[],M=[],v=(s,n)=>{n?s.classList.forEach(g):s.classList.forEach(x);let u=s.children;for(let i=0;i<u.length;i++){let m=u[i];m.classList&&(p.push(m),v(m,n))}},x=s=>{Object.prototype.hasOwnProperty.call(c,s)?c[s]++:c[s]=1},g=s=>{Object.prototype.hasOwnProperty.call(c,s)?c[s]--:Object.prototype.hasOwnProperty.call(this.countBy,s)&&(c[s]=-1)},b=(s,n)=>{for(let u=0;u<s.length;u++){let i=s[u];i.classList&&!p.includes(i)&&!M.includes(i)&&(i.isConnected!==n?(p.push(i),v(i,n)):M.push(i))}};for(let s=0;s<d.length;s++){let n=d[s],{addedNodes:u,removedNodes:i,type:m,target:N}=n;if(m==="attributes"){if(h.find(V=>V.target===N))continue;h.push(n)}else b(u,!1),(!N.isConnected||!p.includes(N))&&b(i,!0)}if(!(!h.length&&!Object.keys(c).length)){for(let{oldValue:s,target:n}of h){let u=p.includes(n),i=n.classList,m=s?s.split(" "):[];if(u){if(n.isConnected)continue;for(let N of m)i.contains(N)||g(N)}else if(n.isConnected){i.forEach(N=>{m.includes(N)||x(N)});for(let N of m)i.contains(N)||g(N)}}for(let s in c){let n=c[s],u=(this.countBy[s]||0)+n;u===0?(delete this.countBy[s],this.delete(s)):(Object.prototype.hasOwnProperty.call(this.countBy,s)||this.insert(s),this.countBy[s]=u)}}}),this.observer.observe(t,{...o,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 o=t.cssRules.length-1;o>=0;o--)t.deleteRule(o);this.style?.remove(),this.style=null,this.root=null}match(t){for(let o of this.ruleOptions)if(o.resolvedMatch&&o.resolvedMatch.test(t)||(o.layer===-100||o.layer===-300||o.layer===-101||o.layer===-301)&&t.startsWith(o.resolvedPropName+":"))return o;for(let o of this.semanticRuleOptions)if(o.resolvedMatch.test(t))return o}create(t){let o=r=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,r))return this.ruleBy[r];let l=this.match(r);if(l)return new te(r,l,this)};return(Object.prototype.hasOwnProperty.call(this.styles,t)?this.styles[t].map(r=>o(r)):[o(t)]).filter(r=>r&&r.text)}refresh(t=this.customConfig){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(ie,t),this.resolve(),!this.style)return;let o=document.createElement("style");o.id="master",this.style.replaceWith(o),this.style=o,this.rules.length=0,this.ruleBy={};for(let r in this.countBy)this.insert(r)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let o=this.style?.sheet,r=l=>{let a=this.ruleBy[l];if(!(!a||Object.prototype.hasOwnProperty.call(this.stylesBy,l)&&this.stylesBy[l].some(f=>Object.prototype.hasOwnProperty.call(this.countBy,f)))){if(o&&a.natives.length){let f=a.natives[0];for(let d=0;d<o.cssRules.length;d++)if(o.cssRules[d]===f.cssRule){for(let h=0;h<a.natives.length;h++)o.deleteRule(d);break}}if(this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[l],a.variableNames){let f=this.rules[0];for(let d of a.variableNames){let c=this.variablesMap[d];if(!--c.count){let h=f.natives.indexOf(c.nativeRules[0]);for(let p=0;p<c.nativeRules.length;p++)this.style.sheet.deleteRule(h),f.natives.splice(h,1);delete this.variablesMap[d]}}f.natives.length||this.rules.splice(0,1)}if(a.animationNames){let f=Object.keys(this.variablesMap).length?1:0,d=Object.keys(this.variablesMap).length?this.rules[0].natives.length:0,c=this.rules[f];for(let h of a.animationNames){let p=this.keyframesMap[h];if(!--p.count){let M=c.natives.indexOf(p.nativeRule);this.style.sheet.deleteRule(d+M),c.natives.splice(M,1),delete this.keyframesMap[h]}}c.natives.length||this.rules.splice(f,1)}a.options.delete?.call(a,l)}};if(Object.prototype.hasOwnProperty.call(this.styles,t)){for(let l of this.styles[t])Object.prototype.hasOwnProperty.call(this.countBy,l)||r(l);delete this.ruleBy[t]}else r(t)}insert(t){let o=this.create(t);return o.length?(this.insertRules(o),!0):!1}insertRules(t){for(let o of t){if(this.ruleBy[o.className])continue;let r,l=Object.keys(this.variablesMap).length,a=Object.keys(this.keyframesMap).length,f=this.rules.length-1,{media:d,order:c,priority:h,hasWhere:p,className:M}=o,v=(b,s,n)=>{let u=b;for(;u<=f;u++){let i=this.rules[u];if(s?.(i))return n?-1:u-1;if(n?.(i))return u}return n?-1:u-1},x,g;if(d){let b=this.rules.findIndex(s=>s.media);if(b===-1)r=f+1;else{let{"max-width":s,"min-width":n}=d.features;if(s||n){let u=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(u===-1)r=f+1;else if(s&&n){if(h===-1?(x=v(u,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),g=v(u,i=>i.priority!==-1)):(x=v(u,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),g=f),x!==-1){let i=s.value-n.value,m=g,N=x;for(x=void 0;m>=N;m--){let{"max-width":V,"min-width":I}=this.rules[m].media.features,B=V.value-I.value;if(B<i)g=m-1;else if(B===i)x=m;else break}}if(x!==-1){let i=s.value-n.value;for(let m=g;m>=x;m--){let{"max-width":N,"min-width":V}=this.rules[m].media.features,I=N.value-V.value;if(I<i)g=m-1;else if(I>i){x=m+1;break}}}}else if(n){if(h===-1?(x=v(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=v(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(x=v(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=v(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),x!==-1)for(let i=g;i>=x;i--){let m=this.rules[i].media.features["min-width"].value;if(m>n.value)g=i-1;else if(m<n.value){x=i+1;break}}}else if(h===-1?(x=v(u,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),g=v(u,i=>i.media.features["min-width"]||i.priority!==-1)):(x=v(u,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),g=v(u,i=>i.media.features["min-width"]&&i.priority!==-1)),x!==-1)for(let i=g;i>=x;i--){let m=this.rules[i].media.features["max-width"].value;if(m<s.value)g=i-1;else if(m>s.value){x=i+1;break}}}else h===-1?(x=b,g=v(b,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(x=v(b,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),g=v(b,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let b=l?a?2:1:a?1:0;h===-1?(x=b,g=v(b,s=>s.media||s.priority!==-1)):(x=v(b,s=>s.media,s=>s.priority!==-1),g=v(b,s=>s.media))}if(r===void 0)if(x===-1)r=g+1;else{if(h===-1)for(let b=x;b<=g;b++){let s=this.rules[b];if(!(!p&&s.hasWhere)&&(p&&!s.hasWhere||s.order>=c)){r=b;break}}else for(let b=x;b<=g;b++){let s=this.rules[b];if(!(!p&&s.hasWhere)){if(p&&!s.hasWhere){r=b;break}if(s.priority<h){r=b;break}else if(s.priority===h){if(s.order>=c){r=b;break}}else r=b+1}}r===void 0&&(r=g+1)}if(this.rules.splice(r,0,o),this.ruleBy[M]=o,this.style){let b=this.style.sheet,s=0,n=u=>{let i=this.rules[u];if(i){if(!i.natives.length)return n(u-1);let m=i.natives[i.natives.length-1].cssRule;for(let N=0;N<b.cssRules.length;N++)if(b.cssRules[N]===m){s=N+1;break}}};n(r-1);for(let u=0;u<o.natives.length;)try{let i=o.natives[u];b.insertRule(i.text,s),i.cssRule=b.cssRules[s++],u++}catch(i){console.error(i),o.natives.splice(u,1)}}this.handleRuleWithVariableNames(o),this.handleRuleWithAnimationNames(o),o.options.insert?.call(o)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){let o=a=>{let f=H({},a),d=c=>{for(let h in c){let p=c[h];typeof p=="object"&&!Array.isArray(p)?d(p):h&&!h.startsWith("@")&&(c[h]={"":p})}};return f.styles?d(f.styles):f.styles={},f.mediaQueries?d(f.mediaQueries):f.mediaQueries={},f.variables?d(f.variables):f.variables={},f},r=[];for(let a of t)(function f(d){if(d.extends?.length)for(let c of d.extends)f("config"in c?c.config:c);r.push(o(d))})(a);let l=r[0];for(let a=1;a<r.length;a++){let f=r[a];l=H(l,f),Object.prototype.hasOwnProperty.call(f,"animations")&&Object.assign(l.animations,f.animations)}return l}handleRuleWithAnimationNames(t){if(t.animationNames){let o=this.style?.sheet;for(let r of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,r))this.keyframesMap[r].count++;else{let l={text:`@keyframes ${r}{`+Object.entries(this.animations[r]).map(([f,d])=>`${f}{${Object.entries(d).map(([c,h])=>c+":"+h).join(";")}}`).join("")+"}"},a;if(Object.keys(this.keyframesMap).length?(a=this.rules[0]).natives.push(l):this.rules.splice(Object.keys(this.variablesMap).length?1:0,0,a={natives:[l],get text(){return this.natives.map(f=>f.text).join("")}}),o){let f;for(let d=0;d<o.cssRules.length;d++){let c=o.cssRules[d];if(c.constructor.name!=="CSSKeyframesRule")break;if(c.name===r){f=c;break}}if(f)l.cssRule=f;else{let d=a.natives.length-1;o.insertRule(l.text,d),l.cssRule=o.cssRules[d]}}this.keyframesMap[r]={nativeRule:l,count:1}}}}handleRuleWithVariableNames(t){if(t.variableNames){let o=this.style?.sheet;for(let r of t.variableNames)if(Object.prototype.hasOwnProperty.call(this.variablesMap,r))this.variablesMap[r].count++;else{let l=this.generalVariables[r]??this.colorVariables[r],a=Object.keys(l),f=a.some(d=>d===""||d.startsWith("@"))?a.map(d=>({text:`${d?this.config.themeDriver==="media"?`@media(prefers-color-scheme:${d.slice(1)})`:this.config.themeDriver==="host"?`:host(.${d.slice(1)})`:`.${d.slice(1)}`:":root"}{--${r}:${l[d].value}}`})):[{text:`:root{--${r}:{${l.value}}`}];if(Object.keys(this.variablesMap).length?this.rules[0].natives.push(...f):this.rules.splice(0,0,{natives:[...f],get text(){return this.natives.map(d=>d.text).join("")}}),o){let d=0;for(let c in this.variablesMap)d+=this.variablesMap[c].nativeRules.length;for(let c=0;c<f.length;c++){let h=f[c],p=d+c;o.insertRule(h.text,p),h.cssRule=o.cssRules[p]}}this.variablesMap[r]={nativeRules:f,count:1}}}}};typeof window<"u"&&(window.MasterCSS=U);var Ae=`/** @type {import('@master/css').Config} */
|
|
1
|
+
function se(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ae(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function oe(t){let e=[];return t.forEach(function(r,a){typeof r=="object"&&r!==null?Array.isArray(r)?e[a]=oe(r):se(r)?e[a]=ae(r):e[a]=H({},r):e[a]=r}),e}function re(t,e){return e==="__proto__"?void 0:t[e]}function H(...t){let e={},r,a;return t.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(s){if(a=re(e,s),r=re(n,s),r!==e)if(typeof r!="object"||r===null){e[s]=r;return}else if(Array.isArray(r)){e[s]=oe(r);return}else if(se(r)){e[s]=ae(r);return}else if(typeof a!="object"||a===null||Array.isArray(a)){e[s]=H({},r);return}else{e[s]=H(a,r);return}})}),e}var K={"(":")","'":"'",'"':'"',"{":"}"};function J(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,a=-1,n="",s,l=e.charCodeAt(0);if(r==1&&l==45)return"\\"+e;for(;++a<r;){if(s=e.charCodeAt(a),s==0){n+="\uFFFD";continue}if(s>=1&&s<=31||s==127||a==0&&s>=48&&s<=57||a==1&&s>=48&&s<=57&&l==45){n+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){n+=e.charAt(a);continue}n+="\\"+e.charAt(a)}return n}var ne=(n=>(n[n.NativeShorthand=-300]="NativeShorthand",n[n.Shorthand=-200]="Shorthand",n[n.Native=-100]="Native",n[n.Normal=0]="Normal",n))(ne||{}),le=(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))(le||{});var Re=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ee=class{constructor(e,r={},a){this.className=e;this.options=r;this.css=a;let{layer:n,unit:s,colored:l,resolvedPropName:f,analyze:o,transform:p,declare:c,create:m,order:h,id:g}=r;this.order=h,r.unit||(r.unit=""),r.separators||(r.separators=[","]);let{scope:y,important:v,themeDriver:d}=a.config,{selectors:i,mediaQueries:u,stylesBy:b,animations:R}=a,x=b[e];m&&m.call(this,e),this.declarations=r.declarations;let w,S;if(this.colored=l,n===-401)w=e.slice(g.length-1);else{let j;if(o)[j,S]=o.call(this,e);else{let k=e.indexOf(":");this.prefix=e.slice(0,k+1),j=e.slice(k+1)}this.valueComponents=[],w=j.slice(this.parseValue(this.valueComponents,0,j,s))}w[0]==="!"&&(this.important=!0,w=w.slice(1)),this.stateToken=w;let V=(j,k)=>{let I=(O,G,E,T)=>{for(let[L,Y]of G)if(L.test(O)){for(let F of Y)I(O.replace(L,F),G,E,!0);return}T&&E.push(O)},A=O=>{let G=O.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((Y,F)=>F%3?Y:Y.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),E=[],T="",L=0;for(let Y=0;Y<G.length;Y++){let F=G[Y];if(F==="\\"){T+=F+G[++Y];continue}!L&&F===","?(E.push(T),T=""):(T+=F,L&&F===")"?L--:F==="("&&L++)}return T&&E.push(T),E},z=[];""in i?I(j,i[""],z,!0):z.push(j);let $={};for(let[O,G]of Object.entries(i)){if(!O)continue;let E=[];for(let T of z)I(T,G,E,!1);E.length&&($[O]=E)}let _=(O,G)=>{let E=G.reduce((T,L)=>(T.push(...A(L)),T),[]);O in k?k[O].push(...E):k[O]=E},X=Object.keys($);if(X.length)for(let O of X)_(O,$[O]);else _("",z)};S?(this.vendorPrefixSelectors={},V(S,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let C=w.split("@"),N=C[0];if(N){this.vendorSuffixSelectors={},V(N,this.vendorSuffixSelectors);for(let j of Object.values(this.vendorSuffixSelectors))for(let k of j){this.hasWhere!==!1&&(this.hasWhere=k.includes(":where("));let I=[":disabled",":active",":focus",":hover"];for(let A=0;A<I.length;A++)if(k.includes(I[A])){(this.priority===-1||this.priority>A)&&(this.priority=A);break}}}else this.vendorSuffixSelectors={"":[""]};let B={},W=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),P=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(W)B[""]=P?[""]:Object.keys(this.vendorSuffixSelectors);else if(P)for(let j in this.vendorPrefixSelectors)B[j]=[""];else for(let j in this.vendorPrefixSelectors){let k=B[j]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,j))k.push(j);else for(let I in this.vendorSuffixSelectors)k.push(I)}for(let j=1;j<C.length;j++){let k=C[j];if(k)if(k==="rtl"||k==="ltr")this.direction=k;else{let I,A,z=Re.exec(k);if(z)I=z[1],A=k.slice(I.length);else{this.media={token:k,features:{}};let $=[],_=O=>{if(O==="all"||O==="print"||O==="screen"||O==="speech")this.media.type=O;else if(O==="\u{1F5A8}")this.media.type="print";else if(O==="landscape"||O==="portrait")$.push("(orientation:"+O+")");else if(O==="motion"||O==="reduced-motion")$.push("(prefers-reduced-motion:"+(O==="motion"?"no-preference":"reduce")+")");else{let G=u[O];if(G&&typeof G=="string")$.push(G);else{let E="",T="",L=0;O.startsWith("<=")?(T="<=",E="max-width"):O.startsWith(">=")||G?(T=">=",E="min-width"):O.startsWith(">")?(T=">",E="min-width",L=.02):O.startsWith("<")&&(T="<",E="max-width",L=-.02);let Y=T?O.replace(T,""):O,F=u[Y];switch(E){case"max-width":case"min-width":let Q={};typeof F=="number"?Q={type:"number",value:F+L,unit:"px"}:(Q=this.parseValueComponent(Y,"px"),Q.type==="number"&&Q.unit==="px"&&(Q.value+=L)),this.media.features[E]=Q,Q.type==="number"?$.push("("+E+":"+(Q.value+Q.unit)+")"):$.push("("+E+":"+Q.value+")");break}}}},X=k.includes("&");if(X){let O=k.split("&");for(let G of O)_(G)}else _(k);if(this.media.type&&(A=this.media.type),$.length&&(A=$.join(" and ")),A)I="media";else if(!X){this.theme=k;continue}}A&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+A.replace(/\|/g," "))}}let D;if(this.valueComponents)if(D=this.transformValueComponents(this.valueComponents,s,[]),p&&(D=p.call(this,D,this.css.config)),c){let j,k;this.declarations=c.call(this,k?j:D,k||"")}else f&&(this.declarations={[f]:D});let ie=[];for(let j in this.declarations){let k=z=>{if(R&&(z.startsWith("animation")||z.startsWith("animation-name"))){let $=z.split(":")[1].split("!important")[0].split(" ").filter(_=>_ in this.css.animations&&(!this.animationNames||!this.animationNames.includes(_)));$.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...$))}ie.push(z+((this.important||v)&&!z.endsWith("!important")?"!important":""))},I=j+":",A=this.declarations[j];if(typeof A=="object")for(let z of A)k(I+z.toString());else k(I+A.toString())}if(ie.length)for(let j in B)for(let k of B[j]){let I="";this.direction&&(I+="[dir="+this.direction+"] ");let A=this.vendorPrefixSelectors[j],z=this.vendorSuffixSelectors[k],$=A.map(O=>O+I),_=O=>$.map(G=>(this.theme&&d!=="media"?d==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(y?y+" ":"")+G).reduce((G,E)=>(G.push(z.reduce((T,L)=>(T.push(E+"."+J(O)+L),T),[]).join(",")),G),[]).join(","),X=_(e)+(x?x.reduce((O,G)=>O+","+_(G),""):"")+"{"+ie.join(";")+"}";for(let O of Object.keys(this.at).sort((G,E)=>E==="supports"?-1:1))X="@"+O+(O.includes(" ")?"":" ")+this.at[O]+"{"+X+"}";this.theme&&d==="media"&&(X=`@media(prefers-color-scheme:${this.theme}){`+X+"}"),this.natives.push({text:X})}}at={};priority=-1;natives=[];order=0;stateToken;declarations;colored=!1;animationNames;variableNames;transformValueComponents=(e,r,a)=>{let{functions:n}=this.css.config,s="";for(let l of e)switch(l.type){case"function":let f=n&&n[l.name];if(f?.transform){let p=f.transform.call(this,this.transformValueComponents(l.childrens,f.unit??r,a),a);s+=typeof p=="string"?p:this.transformValueComponents(p,f?.unit??r,a)}else s+=l.name+l.symbol+this.transformValueComponents(l.childrens,f?.unit??r,a)+K[l.symbol];break;case"variable":let o=this.css.variables[l.name];if(o){let p=(c,m)=>{if(o.themes)if(this.theme){let h=o.themes[this.theme]??o;h?.value&&c(h)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(l.name)||this.variableNames.push(l.name),m();else c(o)};switch(o.type){case"string":p(m=>{let h=[];this.parseValue(h,0,m.value,r,void 0,void 0,[...a,l.name]),s+=this.transformValueComponents(h,r,[...a,l.name])},()=>{s+=`var(--${l.name})`});break;case"number":p(m=>{let h=this.parseValueComponent(m.value,r);s+=h.value+(h.unit??"")},()=>{s+=r?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let c=l.alpha?"/"+l.alpha:"";p(m=>{s+=`${m.space}(${m.value}${c})`},()=>{s+=`${o.space}(var(--${l.name})${c})`});break}}else s+="var(--"+l.name+")";break;case"separator":s+=(l.prefix||"")+l.value+(l.suffix||"");break;case"number":s+=l.value+l.unit;break;default:s+=l.value;break}return s};get text(){return this.natives.map(e=>e.text).join("")}parseValue=(e,r,a,n,s,l=void 0,f=[])=>{let o=l===void 0,p=!o&&(l.endsWith("$")||l.endsWith("var")),m=(v=>v==="'"||v==='"')(s),h=[","];this.options.separators.length&&h.push(...this.options.separators);let g="",y=()=>{if(g){let v=!1;if(!p){let d=(i,u)=>{let b=Object.prototype.hasOwnProperty.call(this.options.resolvedVariables,i)?this.options.resolvedVariables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(b){let R=b.name??i;f.includes(R)||(v=!0,e.push({type:"variable",name:R,alpha:u}))}};if(d(g),!v&&this.colored){let[i,u]=g.split("/");d(i,u)}}v||e.push(this.parseValueComponent(g,n)),g=""}};for(;r<a.length;r++){let v=a[r];if(v===s){if(m){let d=0;for(let i=g.length-1;g[i]==="\\";i--)d++;if(d%2){g+=v;continue}else y()}else y();return r}else if(!m&&v in K){let d=g,i={type:"function",name:d,symbol:v,childrens:[]};e.push(i),g="";let u=v==="("&&this.css.config.functions?.[d];!this.colored&&u?.colored&&(this.colored=!0),r=this.parseValue(i.childrens,++r,a,u?.unit??n,K[v],d||l||"")}else if((v==="|"||v===" ")&&s!=="}"&&(!m||l==="path"))y(),e.push({type:"separator",value:" "});else{if(!m){if(v===".")if(isNaN(+a[r+1])){if(o)break}else a[r-1]==="-"&&(g+="0");else if(h.includes(v)){y(),e.push({type:"separator",value:v,prefix:v===","?"":" ",suffix:v===","?"":" "});continue}else if(o&&(v==="#"&&(g||e.length&&e[e.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(v)))break}g+=v}}return y(),r};resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}parseValueComponent(e,r=this.options.unit){let a=r??this.options.unit,n="",s;if(typeof e=="number")return a&&!n?((a==="rem"||a==="em")&&(s=e/this.css.config.rootSize),n=a||""):s=e,{value:s,unit:n,type:"number"};if(a){if(/^\d+\/\d+/.test(e)){let[f,o]=e.split("/");return{value:+f/+o*100,unit:"%",type:"number"}}let l=e.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(l)return s=+l[1],n=l[3]||"",n||((a==="rem"||a==="em")&&(s=s/this.css.config.rootSize),n=a||""),{value:s,unit:n,type:"number"}}return{value:e,type:"string"}}};var xe={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ce=xe;var Oe={"::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"},ue=Oe;var Ne={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"}},de=Ne;var Se={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"}}},fe=Se;function U(t){t.startsWith("#")&&(t=t.slice(1));let e,r,a,n;return t.length===3||t.length===4?(e=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),a=parseInt(t[2]+t[2],16),n=t.length===4?Math.round(parseInt(t[3]+t[3],16)/255*100)/100:1):(t.length===6||t.length===8)&&(e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16),n=t.length===8?Math.round(parseInt(t.slice(6,8),16)/255*100)/100:1),[e,r,a,n]}function pe(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function M(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let a in t)if(a&&+a>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let a=0,n="0"in t?U(t[0]):[0,0,0],s,l,f=[],o=()=>{let p=s-a,c=l.map((m,h)=>(m-n[h])/p);for(let m of f){let h=m-a,g=n.map((y,v)=>Math.round(y+c[v]*h));t[m]="#"+pe.call(this,...g)}};for(let p=1;p<100;p++)p in t?(f.length?(s=p,l=U(t[p]),o(),f.length=0,n=l):n=U(t[p]),a=p):f.push(p);f.length&&(s=100,l="100"in t?U(t[100]):[255,255,255],o())}return e||(t[""]=t[r?"500":"50"]),t}var we={fontFamily:{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"]},fontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},section:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},flexBasis:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},flexDirection:{col:"column","col-reverse":"column-reverse"},width:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},height:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},minWidth:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},boxSizing:{content:"content-box",border:"border-box"},maxHeight:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},position:{abs:"absolute",rel:"relative"},transformBox:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},animationDirection:{alt:"alternate","alt-reverse":"alternate-reverse"},backgroundClip:{content:"content-box",border:"border-box",padding:"padding-box"},backgroundOrigin:{content:"content-box",border:"border-box",padding:"padding-box"},gridAutoColumns:{min:"min-content",max:"max-content"},gridAutoRows:{min:"min-content",max:"max-content"},gridTemplateColumns:{min:"min-content",max:"max-content"},gridTemplateRows:{min:"min-content",max:"max-content"},order:{first:-999999,last:999999},shapeOutside:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},clipPath:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box",black:"#000000"},black:"#000000",white:"#ffffff",current:"currentColor",slate:M({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:M({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:M({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:M({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:M({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:M({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:M({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:M({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:M({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:M({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:M({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:M({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:M({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:M({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:M({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:M({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:M({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:M({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:M({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:M({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},me=we;var Z=["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Ce={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=o=>{let p=o.indexOf(":");p!==-1&&(e[o.slice(0,p)]=o.slice(p+1))},a=o=>{let p=c=>{let m=c.slice(J(o.className).length).match(/\{(.*)\}/)[1].split(";");for(let h of m)r(h)};for(let c of o.natives)p(c.text);if(o.animationNames){this.animationNames||(this.animationNames=[]);for(let c of o.animationNames)this.animationNames.includes(c)||this.animationNames.push(c)}if(o.variableNames){this.variableNames||(this.variableNames=[]);for(let c of o.variableNames)this.variableNames.includes(c)||this.variableNames.push(c)}},n=[],s="",l=()=>{s&&(n.push(s.replace(/ /g,"|")),s="")},f=1;(function o(p){for(;f<t.length;f++){let c=t[f];if(!p){if(c===";"){l();continue}if(c==="}")break}if(s+=c,p===c){if(p==="'"||p==='"'){let m=0;for(let h=s.length-2;s[h]==="\\";h--)m++;if(m%2)continue}break}else c in K&&p!=="'"&&p!=='"'&&(f++,o(K[c]))}})(void 0),l();for(let o of n){let p=this.css.create(o);if(p.length)for(let c of p)a(c);else r(o)}return e}},variable:{match:/^\$[\w-]+:./,colored:!0,layer:-1,declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-101},fontWeight:{match:["f(?:ont)?",["bolder"]],layer:-101},fontFamily:{match:["f(?:ont)?"],layer:-101},fontSmoothing:{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-101,declare(t){switch(t){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},fontVariant:{layer:-301},fontFeatureSettings:{match:/^font-feature:./,layer:-101},font:{match:/^f:./,layer:-301,variableGroups:["fontFamily","fontVariant","fontWeight","fontSize","fontStyle","lineHeight"]},color:{match:/^(?:color|fg|foreground):./,layer:-101,colored:!0},marginLeft:{match:/^ml:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginRight:{match:/^mr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginTop:{match:/^mt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginBottom:{match:/^mb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginX:{match:/^(?:mx|margin-x):./,unit:"rem",layer:-201,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}},variableGroups:["spacing"]},marginY:{match:/^(?:my|margin-y):./,unit:"rem",layer:-201,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}},variableGroups:["spacing"]},margin:{match:/^m:./,unit:"rem",layer:-301,variableGroups:["spacing"]},marginInlineStart:{match:/^mis:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginInlineEnd:{match:/^mie:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginInline:{match:/^mi:./,unit:"rem",layer:-301,variableGroups:["spacing"]},paddingLeft:{match:/^pl:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingRight:{match:/^pr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingTop:{match:/^pt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingBottom:{match:/^pb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingX:{match:/^(?:px|padding-x):./,unit:"rem",layer:-201,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}},variableGroups:["spacing"]},paddingY:{match:/^(?:py|padding-y):./,unit:"rem",layer:-201,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}},variableGroups:["spacing"]},padding:{match:/^p:./,unit:"rem",layer:-301,variableGroups:["spacing"]},paddingInlineStart:{match:/^pis:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingInlineEnd:{match:/^pie:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingInline:{match:/^pi:./,unit:"rem",layer:-301,variableGroups:["spacing"]},flexBasis:{variableGroups:["section"],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},flex:{layer:-301},display:{match:/^d:./,layer:-101},width:{match:/^w:./,unit:"rem",layer:-101,variableGroups:["section"]},height:{match:/^h:./,unit:"rem",layer:-101,variableGroups:["section"]},minWidth:{match:/^min-w:./,unit:"rem",layer:-101,variableGroups:["section"]},minHeight:{match:/^min-h:./,unit:"rem",layer:-101,variableGroups:["section"]},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(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:/^min:./,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:/^max:./,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},boxSizing:{match:/^box:./,layer:-101},boxDecorationBreak:{match:["section",["slice","clone"]],layer:-101,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},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,variableGroups:["spacing"]},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",variableGroups:["spacing"]},bottom:{layer:-101,unit:"rem",variableGroups:["spacing"]},left:{layer:-101,unit:"rem",variableGroups:["spacing"]},right:{layer:-101,unit:"rem",variableGroups:["spacing"]},inset:{unit:"rem",layer:-301,variableGroups:["spacing"]},lines:{match:/^lines:./,declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:/^max-h:./,unit:"rem",layer:-101,variableGroups:["section"]},maxWidth:{match:/^max-w:./,unit:"rem",layer:-101,variableGroups:["section"]},opacity:{layer:-101},visibility:{layer:-101},clear:{layer:-101},float:{layer:-101},isolation:{layer:-101},overflowX:{layer:-101,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},overflowY:{layer:-101,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{layer:-301,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},overscrollBehaviorX:{layer:-101},overscrollBehaviorY:{layer:-101},overscrollBehavior:{layer:-301},zIndex:{match:/^z:./,layer:-101},position:{layer:-101},cursor:{layer:-101},pointerEvents:{layer:-101},resize:{layer:-101},touchAction:{layer:-101},wordBreak:{layer:-101},wordSpacing:{layer:-101,unit:"em"},userDrag:{layer:-101,declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{layer:-101,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",layer:-101,colored:!0},textSize:{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{match:["(?:text-fill|text|t)"],layer:-101,colored:!0,declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-101,declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:["text-stroke"],layer:-101,colored:!0,declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",layer:-101,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:/^s(?:hadow)?:./,unit:"rem",layer:-101,colored:!0},tableLayout:{layer:-101},transformBox:{match:["transform"],layer:-101},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(t){return[t.startsWith("transform")?t.slice(10):t]},variableGroups:["spacing"]},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(t){if(t.startsWith("~"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},layer:-301},animationDelay:{match:/^@delay:./,layer:-101,unit:"ms"},animationDirection:{match:/^@direction:./,layer:-101},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(t){if(t.startsWith("@"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+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(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:["b(?:y|order-y(?:-color)?)"],layer:-201,colored:!0,declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},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(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:/^rb:./,unit:"rem",layer:-201,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:/^rl:./,unit:"rem",layer:-201,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:/^rr:./,unit:"rem",layer:-201,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},borderRadius:{match:/^r:./,unit:"rem",layer:-301},borderTopStyle:{match:["b(?:t|order-top(?:-style)?)",Z],layer:-101},borderBottomStyle:{match:["b(?:b|order-bottom(?:-style)?)",Z],layer:-101},borderLeftStyle:{match:["b(?:l|order-left(?:-style)?)",Z],layer:-101},borderRightStyle:{match:["b(?:r|order-right(?:-style)?)",Z],layer:-101},borderXStyle:{match:["b(?:x|order-x(?:-style)?)",Z],layer:-201,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:["b(?:y|order-y(?:-style)?)",Z],layer:-201,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},borderStyle:{match:["b(?:order)?(?:-style)?",Z],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(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},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},borderBottom:{match:/^bb:./,layer:-101,unit:"rem",colored:!0},borderLeft:{match:/^bl:./,layer:-101,unit:"rem",colored:!0},borderRight:{match:/^br:./,layer:-101,unit:"rem",colored:!0},borderX:{match:/^(?:bx|border-x):./,unit:"rem",colored:!0,layer:-201,declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:/^(?:by|border-y):./,unit:"rem",colored:!0,layer:-201,declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:/^b:./,unit:"rem",colored:!0,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(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}}},backgroundOrigin:{match:["(?:bg|background)"],layer:-101},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(t){return{"background-image":"linear-"+t}}},mixBlendMode:{match:/^blend:./,layer:-101},backdropFilter:{match:/^bd:./,layer:-101,colored:!0,declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},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,variableGroups:["spacing"]},strokeWidth:{match:["stroke(?:-width)?"],numeric:!0,layer:-101},stroke:{match:["stroke"],layer:-101,colored:!0},x:{layer:-101,variableGroups:["spacing"]},y:{layer:-101,variableGroups:["spacing"]},cx:{layer:-101,variableGroups:["spacing"]},cy:{layer:-101,variableGroups:["spacing"]},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(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:/^grid-cols:./,declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},gridRowStart:{layer:-101},gridRowEnd:{layer:-101},gridRow:{match:/^grid-row-span:./,layer:-301,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{match:/^grid-rows:./,declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},gridAutoColumns:{match:/^grid-auto-cols:./,layer:-101},gridAutoFlow:{match:/^grid-flow:./,layer:-101},gridAutoRows:{layer:-101},gridTemplateAreas:{layer:-101},gridTemplateColumns:{match:/^grid-template-cols:./,layer:-101,unit:"rem"},gridTemplateRows:{layer:-101,unit:"rem"},gridTemplate:{layer:-301},gridArea:{layer:-301},grid:{layer:-301},columnGap:{match:/^gap-x:./,unit:"rem",layer:-101,variableGroups:["spacing"]},rowGap:{match:/^gap-y:./,unit:"rem",layer:-101,variableGroups:["spacing"]},gap:{unit:"rem",layer:-301,variableGroups:["spacing"]},order:{match:/^o:./,layer:-101},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,variableGroups:["spacing"]},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,variableGroups:["outlineWidth","outlineStyle","outlineOffset","outlineColor"]},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",variableGroups:["spacing"]},scrollMarginRight:{match:/^scroll-mr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginTop:{match:/^scroll-mt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginBottom:{match:/^scroll-mb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginX:{match:/^(?:scroll-margin-x|scroll-mx):./,unit:"rem",layer:-201,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}},variableGroups:["spacing"]},scrollMarginY:{match:/^(?:scroll-margin-y|scroll-my):./,unit:"rem",layer:-201,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}},variableGroups:["spacing"]},scrollMargin:{match:/^scroll-m:./,unit:"rem",layer:-301,variableGroups:["spacing"]},scrollPaddingLeft:{match:/^scroll-pl:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingRight:{match:/^scroll-pr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingTop:{match:/^scroll-pt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingBottom:{match:/^scroll-pb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingX:{match:/^(?:scroll-padding-x|scroll-px):./,unit:"rem",layer:-201,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}},variableGroups:["spacing"]},scrollPaddingY:{match:/^(?:scroll-padding-y|scroll-py):./,unit:"rem",layer:-201,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}},variableGroups:["spacing"]},scrollPadding:{match:/^scroll-p:./,unit:"rem",layer:-301,variableGroups:["spacing"]},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},shapeMargin:{match:["shape"],numeric:!0,unit:"rem",layer:-101,variableGroups:["spacing"]},shapeImageThreshold:{layer:-101},clipPath:{match:/^clip:./,layer:-101},quotes:{layer:-101},maskImage:{layer:-101,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},he=Ce;var ke={$:{transform(t){return[{type:"variable",name:t}]}},calc:{transform(t,e){let r=[],a=this.css.config.functions,n=0,s=(l,f,o)=>{let p=!1,c="",m=(h,g="",y="")=>{c&&(!p&&!o?l.push(this.parseValueComponent(c,a.calc.unit)):l.push({type:"string",value:c}),c=""),h&&(g&&t[n-1]===" "&&(g=""),y&&t[n+1]===" "&&(y=""),f?l.push({type:"separator",value:h}):l.push({type:"separator",value:h,prefix:g,suffix:y})),p=!1};for(;n<t.length;n++){let h=t[n];if(h==="("){let g=/^([+-])/.exec(c);g&&l.push({type:"string",value:g[1]});let y=g?c.slice(1):c,v={type:"function",name:y,symbol:h,childrens:[]};l.push(v),c="",n++;let d=v.name==="$"||v.name==="var";s(v.childrens,y!==""&&y!=="calc"&&(d||Object.prototype.hasOwnProperty.call(a,y)),p||d)}else if(h===")"){m("");break}else if(h===",")m(h,""," ");else if(h===" ")m(h);else{let g=t[n-1];switch(h){case"+":!c&&g!==")"?c+=h:m(h," "," ");break;case"-":!c&&g!==")"?c+=h:m(h," "," ");break;case"*":m(h," "," ");break;case"/":m(h," "," "),p=!0;break;default:c+=h;break}}}m("")};return s(r,!1,!1),"calc("+this.transformValueComponents(r,a.calc.unit??this.options.unit,e)+")"}},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}},ge=ke;var te={mediaQueries:ce,selectors:ue,semantics:de,rules:he,functions:ge,animations:fe,variables:me,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var ye=[",",".","#","[","!","*",">","+","~",":","@"];var q=class t{constructor(e=te){this.customConfig=e;e?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(te,e),this.resolve(),t.instances.push(this)}static root;static config=te;static instances=[];static refresh=e=>{for(let r of this.instances)r.refresh(e)};rules=[];ruleBy={};countBy={};observing=!1;config;semanticRuleOptions=[];ruleOptions=[];observer;resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.ruleOptions.length=0,this.semanticRuleOptions.length=0,this.hasVariablesRule=!1,this.hasKeyframesRule=!1;let e={current:void 0,currentColor:void 0,transparent:void 0},{styles:r,selectors:a,variables:n,semantics:s,mediaQueries:l,rules:f,animations:o}=this.config;function p(i){return i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(i,u,b="",R={}){let x=C=>C?(b?b+"-":"")+C:b,w=Object.entries(i),S=[],V=[];for(let C of w){let N=C[1];(typeof N=="object"&&!Array.isArray(N)?S:V).push(C)}for(let[C,N]of S)c(N,u,x(C),R);if(u&&b)V.length&&(R[b]=V.reduce((C,[N,B])=>(C[N]=B,C),{}));else for(let[C,N]of V)R[x(C)]=N;return R}if(a)for(let[i,u]of Object.entries(c(a,!1))){let b=new RegExp(p(i)+"(?![a-z-])");for(let R of Array.isArray(u)?u:[u]){let x=R.match(/^::-[a-z]+-/m)?.[0]??"",w=this.selectors[x];w||(w=this.selectors[x]=[]);let S=w.find(([V])=>V===b);S||(S=[b,[]],w.push(S)),S[1].push(R)}}if(n){let i={};for(let u in n){let b=(R,x,w=void 0)=>{if(!R)return;let S=(C,N,B=void 0,W=void 0)=>{if(N===void 0)return;if(N.type==="color"){if(W){let D=N.value.indexOf("/");N={...N,value:D===-1?N.value+" / "+(W.startsWith("0.")?W.slice(1):W):N.value.slice(0,D+2)+(+N.value.slice(D+2)*+W).toString().slice(1)}}e[C]=void 0}let P=B??w;if(P!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,C)){let D=this.variables[C];P?(D.themes||(D.themes={}),D.themes[P]=N):(D.value=N.value,D.space=N.space)}else P?this.variables[C]={type:N.type,space:N.space,themes:{[P]:N}}:this.variables[C]=N;else this.variables[C]=N},V=typeof R;if(V==="object")if(Array.isArray(R))S(x,{type:"string",value:R.join(",")});else{let C=Object.keys(R);for(let N of C)N===""||N.startsWith("@")?b(R[N],x,N||C.some(B=>B.startsWith("@"))?N.slice(1):void 0):b(R[N],x+"-"+N)}else if(V==="number")S(x,{type:"number",value:R}),S("-"+x,{type:"number",value:R*-1});else if(V==="string"){let C=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(R);if(C)Object.prototype.hasOwnProperty.call(i,x)||(i[x]={}),i[x][w]=()=>{delete i[x][w];let[N,B]=C[1].split("@");if(N){if(Object.prototype.hasOwnProperty.call(i,N))for(let P of Object.keys(i[N]))i[N][P]?.();let W=this.variables[N];if(W)if(B===void 0&&W.themes){S(x,{type:W.type,value:W.value,space:W.space},"",C[2]);for(let P in W.themes)S(x,W.themes[P],P,C[2])}else{let P=B!==void 0?W.themes?.[B]:W;P&&S(x,{type:P.type,value:P.value,space:P.space},void 0,C[2])}}};else{let N=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(R);if(N){let[B,W,P,D]=U(N[1]);S(x,{type:"color",value:`${B} ${W} ${P}${D===1?"":" / "+D}`,space:"rgb"})}else{let B=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(R);if(B)S(x,{type:"color",value:B[1]+" "+B[2]+" "+B[3]+(B[4]?" / "+(B[4].startsWith("0.")?B[4].slice(1):B[4]):""),space:"rgb"});else{let W=/^hsl\((.*?)\)$/.exec(R);W?S(x,{type:"color",value:W[1],space:"hsl"}):S(x,{type:"string",value:R})}}}}};b(n[u],u)}for(let u of Object.keys(i))for(let b of Object.keys(i[u]))i[u][b]?.()}if(l&&(this.mediaQueries=c(l,!1)),o)for(let i in o){let u=this.animations[i]={},b=o[i];for(let R in b){let x=u[R]={},w=b[R];for(let S in w)x[S]=w[S]}}let m=r?c(r,!1):{},h=Object.keys(m),g=i=>{if(Object.prototype.hasOwnProperty.call(this.styles,i))return;let u=this.styles[i]=[],b=m[i];if(!b)return;let R=b.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let x of R){let w=S=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,S)){let V=this.stylesBy[S];V.includes(i)||V.push(i)}else this.stylesBy[S]=[i];u.includes(S)||u.push(S)};if(h.includes(x)){g(x);for(let S of this.styles[x])w(S)}else w(x)}};for(let i of h)g(i);s&&Object.entries(s).sort((i,u)=>i[0].localeCompare(u[0])).forEach(([i,u],b)=>{this.semanticRuleOptions.push({id:"."+i,resolvedMatch:new RegExp("^"+p(i)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:b,declarations:u,layer:-401})});let y=Object.entries(f).sort((i,u)=>i[1].layer!==u[1].layer?(u[1].layer||0)-(i[1].layer||0):u[0].localeCompare(i[0])),v=y.length,d=Object.keys(e);y.forEach(([i,u],b)=>{this.ruleOptions.push(u),u.order=this.semanticRuleOptions.length+v-1-b;let R=u.match;u.id=i,(u.layer===-100||u.layer===-300||u.layer===-101||u.layer===-301)&&(u.resolvedPropName=i.replace(/(?!^)[A-Z]/g,w=>"-"+w).toLowerCase()),u.resolvedVariables={};let x=w=>{Object.assign(u.resolvedVariables,Object.keys(this.variables).filter(S=>S.startsWith(w+"-")||S.startsWith("-"+w+"-")).reduce((S,V)=>(S[V.slice(w.length+(w.startsWith("-")?0:1))]={...this.variables[V],name:V},S),{}))};if(u.variableGroups)for(let w of u.variableGroups)x(w);if(x(i),R)if(Array.isArray(R)){let[w,S=[]]=R,V=[];S.length&&V.push(`(?:${S.join("|")})(?![a-zA-Z0-9-])`),Object.keys(u.resolvedVariables).length&&V.push(`(?:${Object.keys(u.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),u.colored&&V.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${d.join("|")})(?![a-zA-Z0-9-])`),u.numeric&&V.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),u.resolvedMatch=new RegExp(`^${w}:(?:${V.join("|")})[^|]*?(?:@|$)`)}else u.resolvedMatch=R})}observe(e,r={subtree:!0,childList:!0}){if(typeof window<"u"){if(e||(e=document),this.root===e)return this;this.root=e;let a=e===document;a&&(t.root=this),this.host=a?document.documentElement:this.root.host;let n=a?document.head:e,s=a?document.styleSheets:e.styleSheets;for(let f of s){let{ownerNode:o}=f;if(o&&o.id==="master"){this.style=o;break}}if(this.style)for(let f=0;f<this.style.sheet.cssRules.length;f++){let o=this.style.sheet.cssRules[f];if(o.constructor.name==="CSSKeyframesRule")continue;let p=m=>{if(m.selectorText){let g=m.selectorText.split(", ")[0].split(" ");for(let y=0;y<g.length;y++){let v=g[y];if(v[0]==="."){let d=v.slice(1),i="";for(let u=0;u<d.length;u++){let b=d[u],R=d[u+1];if(b==="\\"){if(u++,R!=="\\"){i+=R;continue}}else if(ye.includes(b))break;i+=b}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,i)&&!Object.prototype.hasOwnProperty.call(this.styles,i)){let u=this.create(i)[0];if(u)return u}}}}else if(m.cssRules)for(let h=0;h<m.cssRules.length;h++){let g=p(m.cssRules[h]);if(g)return g}},c=p(o);if(c){this.rules.push(c),this.ruleBy[c.className]=c;for(let m=0;m<c.natives.length;m++)c.natives[m].cssRule=this.style.sheet.cssRules[f+m];f+=c.natives.length-1,this.handleRuleWithVariableNames(c),this.handleRuleWithAnimationNames(c),c.options.insert?.call(c)}}else this.style=document.createElement("style"),this.style.id="master",n.append(this.style);let l=f=>{f.forEach(o=>{Object.prototype.hasOwnProperty.call(this.countBy,o)?this.countBy[o]++:(this.countBy[o]=1,this.insert(o))})};l(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(f=>l(f.classList)),this.observer=new MutationObserver(f=>{let o={},p=[],c=[],m=[],h=(d,i)=>{i?d.classList.forEach(y):d.classList.forEach(g);let u=d.children;for(let b=0;b<u.length;b++){let R=u[b];R.classList&&(c.push(R),h(R,i))}},g=d=>{Object.prototype.hasOwnProperty.call(o,d)?o[d]++:o[d]=1},y=d=>{Object.prototype.hasOwnProperty.call(o,d)?o[d]--:Object.prototype.hasOwnProperty.call(this.countBy,d)&&(o[d]=-1)},v=(d,i)=>{for(let u=0;u<d.length;u++){let b=d[u];b.classList&&!c.includes(b)&&!m.includes(b)&&(b.isConnected!==i?(c.push(b),h(b,i)):m.push(b))}};for(let d=0;d<f.length;d++){let i=f[d],{addedNodes:u,removedNodes:b,type:R,target:x}=i;if(R==="attributes"){if(p.find(w=>w.target===x))continue;p.push(i)}else v(u,!1),(!x.isConnected||!c.includes(x))&&v(b,!0)}if(!(!p.length&&!Object.keys(o).length)){for(let{oldValue:d,target:i}of p){let u=c.includes(i),b=i.classList,R=d?d.split(" "):[];if(u){if(i.isConnected)continue;for(let x of R)b.contains(x)||y(x)}else if(i.isConnected){b.forEach(x=>{R.includes(x)||g(x)});for(let x of R)b.contains(x)||y(x)}}for(let d in o){let i=o[d],u=(this.countBy[d]||0)+i;u===0?(delete this.countBy[d],this.delete(d)):(Object.prototype.hasOwnProperty.call(this.countBy,d)||this.insert(d),this.countBy[d]=u)}}}),this.observer.observe(e,{...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 e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r of this.ruleOptions)if(r.resolvedMatch&&r.resolvedMatch.test(e)||(r.layer===-100||r.layer===-300||r.layer===-101||r.layer===-301)&&e.startsWith(r.resolvedPropName+":"))return r;for(let r of this.semanticRuleOptions)if(r.resolvedMatch.test(e))return r}create(e){let r=a=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,a))return this.ruleBy[a];let n=this.match(a);if(n)return new ee(a,n,this)};return(Object.prototype.hasOwnProperty.call(this.styles,e)?this.styles[e].map(a=>r(a)):[r(e)]).filter(a=>a&&a.text)}refresh(e=this.customConfig){if(e?.override?this.config=this.getExtendedConfig(e):this.config=this.getExtendedConfig(te,e),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 a in this.countBy)this.insert(a)}destroy(){let e=t.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,a=n=>{let s=this.ruleBy[n];if(!(!s||Object.prototype.hasOwnProperty.call(this.stylesBy,n)&&this.stylesBy[n].some(l=>Object.prototype.hasOwnProperty.call(this.countBy,l)))){if(r&&s.natives.length){let l=s.natives[0];for(let f=0;f<r.cssRules.length;f++)if(r.cssRules[f]===l.cssRule){for(let p=0;p<s.natives.length;p++)r.deleteRule(f);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[n],s.variableNames){let l=this.rules[0];for(let f of s.variableNames){let o=this.variables[f];if(!--o.usage){let p=l.natives.indexOf(o.natives[0]);for(let c=0;c<o.natives.length;c++)this.style.sheet.deleteRule(p),l.natives.splice(p,1);o.natives=void 0}}l.natives.length||(this.rules.splice(0,1),this.hasVariablesRule=!1)}if(s.animationNames){let l=this.hasVariablesRule?1:0,f=this.hasVariablesRule?this.rules[0].natives.length:0,o=this.rules[l];for(let p of s.animationNames){let c=this.animations[p];if(!--c.usage){let m=o.natives.indexOf(c.native);this.style.sheet.deleteRule(f+m),o.natives.splice(m,1),c.native=void 0}}o.natives.length||(this.rules.splice(l,1),this.hasKeyframesRule=!1)}s.options.delete?.call(s,n)}};if(Object.prototype.hasOwnProperty.call(this.styles,e)){for(let n of this.styles[e])Object.prototype.hasOwnProperty.call(this.countBy,n)||a(n);delete this.ruleBy[e]}else a(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let a,n=this.rules.length-1,{media:s,order:l,priority:f,hasWhere:o,className:p}=r,c=(g,y,v)=>{let d=g;for(;d<=n;d++){let i=this.rules[d];if(y?.(i))return v?-1:d-1;if(v?.(i))return d}return v?-1:d-1},m,h;if(s){let g=this.rules.findIndex(y=>y.media);if(g===-1)a=n+1;else{let{"max-width":y,"min-width":v}=s.features;if(y||v){let d=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(d===-1)a=n+1;else if(y&&v){if(f===-1?(m=c(d,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),h=c(d,i=>i.priority!==-1)):(m=c(d,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),h=n),m!==-1){let i=y.value-v.value,u=h,b=m;for(m=void 0;u>=b;u--){let{"max-width":R,"min-width":x}=this.rules[u].media.features,w=R.value-x.value;if(w<i)h=u-1;else if(w===i)m=u;else break}}if(m!==-1){let i=y.value-v.value;for(let u=h;u>=m;u--){let{"max-width":b,"min-width":R}=this.rules[u].media.features,x=b.value-R.value;if(x<i)h=u-1;else if(x>i){m=u+1;break}}}}else if(v){if(f===-1?(m=c(d,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"]),h=c(d,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(m=c(d,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),h=c(d,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),m!==-1)for(let i=h;i>=m;i--){let u=this.rules[i].media.features["min-width"].value;if(u>v.value)h=i-1;else if(u<v.value){m=i+1;break}}}else if(f===-1?(m=c(d,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),h=c(d,i=>i.media.features["min-width"]||i.priority!==-1)):(m=c(d,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),h=c(d,i=>i.media.features["min-width"]&&i.priority!==-1)),m!==-1)for(let i=h;i>=m;i--){let u=this.rules[i].media.features["max-width"].value;if(u<y.value)h=i-1;else if(u>y.value){m=i+1;break}}}else f===-1?(m=g,h=c(g,d=>d.media?.features["max-width"]||d.media?.features["min-width"]||d.priority!==-1)):(m=c(g,d=>d.media?.features["max-width"]||d.media?.features["min-width"],d=>d.priority!==-1),h=c(g,d=>d.media?.features["max-width"]||d.media?.features["min-width"]))}}else{let g=this.hasVariablesRule?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;f===-1?(m=g,h=c(g,y=>y.media||y.priority!==-1)):(m=c(g,y=>y.media,y=>y.priority!==-1),h=c(g,y=>y.media))}if(a===void 0)if(m===-1)a=h+1;else{if(f===-1)for(let g=m;g<=h;g++){let y=this.rules[g];if(!(!o&&y.hasWhere)&&(o&&!y.hasWhere||y.order>=l)){a=g;break}}else for(let g=m;g<=h;g++){let y=this.rules[g];if(!(!o&&y.hasWhere)){if(o&&!y.hasWhere){a=g;break}if(y.priority<f){a=g;break}else if(y.priority===f){if(y.order>=l){a=g;break}}else a=g+1}}a===void 0&&(a=h+1)}if(this.rules.splice(a,0,r),this.ruleBy[p]=r,this.style){let g=this.style.sheet,y=0,v=d=>{let i=this.rules[d];if(i){if(!i.natives.length)return v(d-1);let u=i.natives[i.natives.length-1].cssRule;for(let b=0;b<g.cssRules.length;b++)if(g.cssRules[b]===u){y=b+1;break}}};v(a-1);for(let d=0;d<r.natives.length;)try{let i=r.natives[d];g.insertRule(i.text,y),i.cssRule=g.cssRules[y++],d++}catch(i){console.error(i),r.natives.splice(d,1)}}this.handleRuleWithVariableNames(r),this.handleRuleWithAnimationNames(r),r.options.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}getExtendedConfig(...e){let r=s=>{let l=H({},s),f=o=>{for(let p in o){let c=o[p];typeof c=="object"&&!Array.isArray(c)?f(c):p&&!p.startsWith("@")&&(o[p]={"":c})}};return l.styles?f(l.styles):l.styles={},l.mediaQueries?f(l.mediaQueries):l.mediaQueries={},l.variables?f(l.variables):l.variables={},l},a=[];for(let s of e)(function l(f){if(f.extends?.length)for(let o of f.extends)l("config"in o?o.config:o);a.push(r(f))})(s);let n=a[0];for(let s=1;s<a.length;s++){let l=a[s];n=H(n,l),Object.prototype.hasOwnProperty.call(l,"animations")&&Object.assign(n.animations,l.animations)}return n}handleRuleWithAnimationNames(e){if(e.animationNames){let r=this.style?.sheet;for(let a of e.animationNames){let n=this.animations[a];if(n.usage)n.usage++;else{let s={text:`@keyframes ${a}{`+Object.entries(n).filter(([f])=>f!=="usage"&&f!=="native").map(([f,o])=>`${f}{${Object.entries(o).map(([p,c])=>p+":"+c).join(";")}}`).join("")+"}"},l;if(this.hasKeyframesRule?(l=this.rules[0]).natives.push(s):(this.rules.splice(this.hasVariablesRule?1:0,0,l={natives:[s],get text(){return this.natives.map(f=>f.text).join("")}}),this.hasKeyframesRule=!0),r){let f;for(let o=0;o<r.cssRules.length;o++){let p=r.cssRules[o];if(p.constructor.name!=="CSSKeyframesRule")break;if(p.name===a){f=p;break}}if(f)s.cssRule=f;else{let o=l.natives.length-1;r.insertRule(s.text,o),s.cssRule=r.cssRules[o]}}n.usage=1,n.native=s}}}}handleRuleWithVariableNames(e){if(e.variableNames){let r=this.style?.sheet;for(let a of e.variableNames){let n=this.variables[a];if(n.usage)n.usage++;else{let s=[],l=(o,p)=>{p.value&&s.push({text:`${o?this.config.themeDriver==="media"?`@media(prefers-color-scheme:${o})`:this.config.themeDriver==="host"?`:host(.${o})`:`.${o}`:":root"}{--${a}:${p.value}}`})};if(l("",n),n.themes)for(let o in n.themes)l(o,n.themes[o]);let f=0;if(this.hasVariablesRule?(f=this.rules[0].natives.length,this.rules[0].natives.push(...s)):(this.rules.splice(0,0,{natives:[...s],get text(){return this.natives.map(o=>o.text).join("")}}),this.hasVariablesRule=!0),r)for(let o=0;o<s.length;o++){let p=s[o],c=f+o;r.insertRule(p.text,c),p.cssRule=r.cssRules[c]}n.usage=1,n.natives=s}}}}};typeof window<"u"&&(window.MasterCSS=q);var je=`/** @type {import('@master/css').Config} */
|
|
2
2
|
module.exports = {
|
|
3
3
|
styles: {},
|
|
4
4
|
rules: {},
|
|
@@ -9,7 +9,7 @@ module.exports = {
|
|
|
9
9
|
selectors: {},
|
|
10
10
|
functions: {}
|
|
11
11
|
}
|
|
12
|
-
`;var
|
|
12
|
+
`;var Ve=`/** @type {import('@master/css').Config} */
|
|
13
13
|
export default {
|
|
14
14
|
styles: {},
|
|
15
15
|
rules: {},
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
selectors: {},
|
|
21
21
|
functions: {}
|
|
22
22
|
}
|
|
23
|
-
`;var
|
|
23
|
+
`;var Be=`import type { Config } from '@master/css'
|
|
24
24
|
|
|
25
25
|
export default {
|
|
26
26
|
styles: {},
|
|
@@ -32,4 +32,4 @@ export default {
|
|
|
32
32
|
selectors: {},
|
|
33
33
|
functions: {}
|
|
34
34
|
} as Config
|
|
35
|
-
`;function
|
|
35
|
+
`;function be(t,e){return new q(t).observe(e)}function ve(t,e){if(!t.length)return;let r=new q(e);for(let a of t)r.insert(a);return r.rules.sort((a,n)=>{if(a.options.layer===-401&&n.options.layer!==-401)return-1;if(a.options.layer!==-401&&n.options.layer===-401)return 1;if(a.options.id!==n.options.id)return a.options.id.localeCompare(n.options.id);{let s=a.vendorSuffixSelectors?.[""]?.[0],l=n.vendorSuffixSelectors?.[""]?.[0],f=a.media?.token,o=n.media?.token;if(a.priority===-1&&n.priority===-1){if(s&&l)return s.localeCompare(l);if(f&&o&&!Object.keys(a.media.features||{}).length&&!Object.keys(n.media.features||{}).length)return f.localeCompare(o);if(s&&!l)return 1;if(!s&&l)return-1;if(f&&!o)return 1;if(!f&&o)return-1}return a.options.id===n.options.id&&a.stateToken===n.stateToken?a.className.localeCompare(n.className):a.order-n.order}}).map(a=>a.className)}export{Ve as CONFIG_ESM_TEXT,je as CONFIG_TEXT,Be as CONFIG_TS_TEXT,le as CoreLayer,ne as Layer,q as MasterCSS,ee as Rule,fe as animations,te as config,q as default,H as extend,M as fillColorScale,ge as functions,be as initRuntime,ce as mediaQueries,ve as reorderForReadableClasses,he as rules,ue as selectors,de as semantics,me as variables};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { MasterCSS, MasterCSS as default } from './core';
|
|
2
|
-
export { Rule, NativeRule,
|
|
2
|
+
export { Rule, NativeRule, MediaFeatureComponent, MediaQuery } from './rule';
|
|
3
3
|
export { CONFIG_TEXT } from './constants/config-text';
|
|
4
4
|
export { CONFIG_ESM_TEXT } from './constants/config-esm-text';
|
|
5
5
|
export { CONFIG_TS_TEXT } from './constants/config-ts-text';
|
package/dist/rule.d.ts
CHANGED
|
@@ -3,30 +3,7 @@ import { CSSDeclarations } from './types/css-declarations';
|
|
|
3
3
|
import { CoreLayer, Layer } from './layer';
|
|
4
4
|
export declare class Rule {
|
|
5
5
|
readonly className: string;
|
|
6
|
-
readonly options:
|
|
7
|
-
id?: string;
|
|
8
|
-
match?: RegExp | [string, string[]?];
|
|
9
|
-
resolvedMatch?: RegExp;
|
|
10
|
-
resolvedNormalVariables?: any;
|
|
11
|
-
resolvedColorVariables?: any;
|
|
12
|
-
variableGroups?: string[];
|
|
13
|
-
order?: number;
|
|
14
|
-
separators?: string[];
|
|
15
|
-
shorthand?: string;
|
|
16
|
-
colored?: boolean;
|
|
17
|
-
numeric?: boolean;
|
|
18
|
-
unit?: any;
|
|
19
|
-
native?: boolean;
|
|
20
|
-
declarations?: CSSDeclarations;
|
|
21
|
-
resolvedPropName?: string;
|
|
22
|
-
layer?: Layer | CoreLayer;
|
|
23
|
-
analyze?: (this: Rule, className: string) => [valueToken: string, prefixToken?: string];
|
|
24
|
-
transform?(this: Rule, value: string): string;
|
|
25
|
-
declare?(this: Rule, value: string, unit: string): CSSDeclarations;
|
|
26
|
-
delete?(this: Rule, className: string): void;
|
|
27
|
-
create?(this: Rule, className: string): void;
|
|
28
|
-
insert?(this: Rule): void;
|
|
29
|
-
};
|
|
6
|
+
readonly options: RuleOptions;
|
|
30
7
|
css: MasterCSS;
|
|
31
8
|
readonly at: Record<string, string>;
|
|
32
9
|
readonly priority: number;
|
|
@@ -37,36 +14,43 @@ export declare class Rule {
|
|
|
37
14
|
readonly colored: boolean;
|
|
38
15
|
animationNames: string[];
|
|
39
16
|
variableNames: string[];
|
|
40
|
-
constructor(className: string, options:
|
|
41
|
-
|
|
42
|
-
match?: RegExp | [string, string[]?];
|
|
43
|
-
resolvedMatch?: RegExp;
|
|
44
|
-
resolvedNormalVariables?: any;
|
|
45
|
-
resolvedColorVariables?: any;
|
|
46
|
-
variableGroups?: string[];
|
|
47
|
-
order?: number;
|
|
48
|
-
separators?: string[];
|
|
49
|
-
shorthand?: string;
|
|
50
|
-
colored?: boolean;
|
|
51
|
-
numeric?: boolean;
|
|
52
|
-
unit?: any;
|
|
53
|
-
native?: boolean;
|
|
54
|
-
declarations?: CSSDeclarations;
|
|
55
|
-
resolvedPropName?: string;
|
|
56
|
-
layer?: Layer | CoreLayer;
|
|
57
|
-
analyze?: (this: Rule, className: string) => [valueToken: string, prefixToken?: string];
|
|
58
|
-
transform?(this: Rule, value: string): string;
|
|
59
|
-
declare?(this: Rule, value: string, unit: string): CSSDeclarations;
|
|
60
|
-
delete?(this: Rule, className: string): void;
|
|
61
|
-
create?(this: Rule, className: string): void;
|
|
62
|
-
insert?(this: Rule): void;
|
|
63
|
-
}, css: MasterCSS);
|
|
17
|
+
constructor(className: string, options: RuleOptions, css: MasterCSS);
|
|
18
|
+
transformValueComponents: (valueComponents: ValueComponent[], unit: string, bypassVariableNames: string[]) => string;
|
|
64
19
|
get text(): string;
|
|
20
|
+
parseValue: (currentValueComponents: ValueComponent[], i: number, value: string, unit: string, endSymbol?: string, parentFunctionName?: any, bypassVariableNames?: string[]) => number;
|
|
65
21
|
resolveValue(value: any, unit: any): any;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
22
|
+
parseValueComponent(token: string | number, unit?: any): StringValueComponent | NumericValueComponent;
|
|
23
|
+
}
|
|
24
|
+
export type ValueComponent = StringValueComponent | NumericValueComponent | FunctionValueComponent | VariableValueComponent | SeparatorValueComponent;
|
|
25
|
+
export interface StringValueComponent {
|
|
26
|
+
token?: string;
|
|
27
|
+
type: 'string';
|
|
28
|
+
value: string;
|
|
29
|
+
}
|
|
30
|
+
export interface NumericValueComponent {
|
|
31
|
+
token?: string;
|
|
32
|
+
type: 'number';
|
|
33
|
+
value: number;
|
|
34
|
+
unit?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface FunctionValueComponent {
|
|
37
|
+
token?: string;
|
|
38
|
+
type: 'function';
|
|
39
|
+
name: string;
|
|
40
|
+
symbol: string;
|
|
41
|
+
childrens: ValueComponent[];
|
|
42
|
+
}
|
|
43
|
+
export interface VariableValueComponent {
|
|
44
|
+
token?: string;
|
|
45
|
+
type: 'variable';
|
|
46
|
+
name: string;
|
|
47
|
+
alpha?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface SeparatorValueComponent {
|
|
50
|
+
type: 'separator';
|
|
51
|
+
value: string;
|
|
52
|
+
prefix?: string;
|
|
53
|
+
suffix?: string;
|
|
70
54
|
}
|
|
71
55
|
export interface Rule {
|
|
72
56
|
prefix?: string;
|
|
@@ -79,44 +63,54 @@ export interface Rule {
|
|
|
79
63
|
theme?: string;
|
|
80
64
|
unitToken?: string;
|
|
81
65
|
hasWhere?: boolean;
|
|
82
|
-
|
|
83
|
-
type: 'function';
|
|
84
|
-
name: string;
|
|
85
|
-
symbol: string;
|
|
86
|
-
childrens: Rule['valueNodes'];
|
|
87
|
-
} | {
|
|
88
|
-
type: 'variable';
|
|
89
|
-
name: string;
|
|
90
|
-
alpha?: string;
|
|
91
|
-
} | {
|
|
92
|
-
type: 'separator';
|
|
93
|
-
value: string;
|
|
94
|
-
prefixWhite?: boolean;
|
|
95
|
-
suffixWhite?: boolean;
|
|
96
|
-
}>;
|
|
66
|
+
valueComponents?: Array<ValueComponent>;
|
|
97
67
|
constructor: {
|
|
98
68
|
match?(name: string, matches: RegExp, colors: Record<string, Record<string, string>>, colorNames: string[]): RuleMeta;
|
|
99
69
|
};
|
|
100
70
|
}
|
|
71
|
+
export interface RuleOptions {
|
|
72
|
+
id?: string;
|
|
73
|
+
match?: RegExp | [string, string[]?];
|
|
74
|
+
resolvedMatch?: RegExp;
|
|
75
|
+
resolvedVariables?: any;
|
|
76
|
+
variableGroups?: string[];
|
|
77
|
+
order?: number;
|
|
78
|
+
separators?: string[];
|
|
79
|
+
shorthand?: string;
|
|
80
|
+
colored?: boolean;
|
|
81
|
+
numeric?: boolean;
|
|
82
|
+
unit?: any;
|
|
83
|
+
native?: boolean;
|
|
84
|
+
declarations?: CSSDeclarations;
|
|
85
|
+
resolvedPropName?: string;
|
|
86
|
+
layer?: Layer | CoreLayer;
|
|
87
|
+
analyze?: (this: Rule, className: string) => [valueToken: string, prefixToken?: string];
|
|
88
|
+
transform?(this: Rule, value: string): string;
|
|
89
|
+
transformValueComponents?(this: Rule, valueComponents: ValueComponent[]): ValueComponent[];
|
|
90
|
+
declare?(this: Rule, value: string, unit: string): CSSDeclarations;
|
|
91
|
+
delete?(this: Rule, className: string): void;
|
|
92
|
+
create?(this: Rule, className: string): void;
|
|
93
|
+
insert?(this: Rule): void;
|
|
94
|
+
}
|
|
101
95
|
export interface NativeRule {
|
|
102
96
|
text: string;
|
|
103
97
|
cssRule?: CSSRule;
|
|
104
98
|
}
|
|
105
|
-
export
|
|
106
|
-
|
|
99
|
+
export type MediaFeatureComponent = {
|
|
100
|
+
type: string;
|
|
107
101
|
tokenType?: string;
|
|
108
102
|
operator?: string;
|
|
109
|
-
value
|
|
110
|
-
unit
|
|
111
|
-
}
|
|
103
|
+
value: number;
|
|
104
|
+
unit: string;
|
|
105
|
+
};
|
|
112
106
|
export interface MediaQuery {
|
|
113
107
|
token: string;
|
|
114
108
|
features?: {
|
|
115
|
-
[key: string]:
|
|
109
|
+
[key: string]: MediaFeatureComponent;
|
|
116
110
|
};
|
|
117
111
|
type?: string;
|
|
118
112
|
}
|
|
119
113
|
export interface RuleMeta {
|
|
120
114
|
value?: [string, string | Record<string, string>];
|
|
121
|
-
config?:
|
|
115
|
+
config?: RuleOptions;
|
|
122
116
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
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.
|
|
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.193","@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","css-shared":"^2.0.0-beta.193","csstype":"^3.1.2","puppeteer":"^21.0.1","vite":"^4.2.1"},"version":"2.0.0-beta.193"}
|