@master/css 2.0.0-beta.206 → 2.0.0-beta.207
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/bin/index.bundle.js +4 -4
- package/dist/config/functions.d.ts +2 -129
- package/dist/config/index.d.ts +2 -4
- package/dist/core.d.ts +7 -17
- package/dist/index.bundle.js +4 -4
- package/dist/index.bundle.mjs +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/rule.d.ts +30 -34
- package/dist/runtime.browser.bundle.js +1 -1
- package/dist/runtime.browser.d.ts +1 -3
- package/dist/runtime.d.ts +3 -10
- package/dist/types/css-declarations.d.ts +3 -1
- package/dist/types/global.d.ts +11 -0
- package/dist/utils/hex-to-rgb.d.ts +1 -1
- package/dist/utils/rgb-to-hex.d.ts +1 -1
- package/package.json +1 -1
- package/dist/variables.d.ts +0 -113
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var Y={"(":")","'":"'",'"':'"',"{":"}"};function G(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),i=t.length,s=-1,c="",r,l=t.charCodeAt(0);if(i==1&&l==45)return"\\"+t;for(;++s<i;){if(r=t.charCodeAt(s),r==0){c+="\uFFFD";continue}if(r>=1&&r<=31||r==127||s==0&&r>=48&&r<=57||s==1&&r>=48&&r<=57&&l==45){c+="\\"+r.toString(16)+" ";continue}if(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){c+=t.charAt(s);continue}c+="\\"+t.charAt(s)}return c}var Ce=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,re=class{constructor(t,i={},s){this.className=t;this.definition=i;this.css=s;let{layer:c,unit:r,colored:l,analyze:d,transformValue:y,declare:h,transformValueComponents:m,create:g,order:p,id:n}=i;this.order=p,this.layer=c,i.unit||(i.unit=""),i.separators||(i.separators=[","]);let{scope:u,important:f,themeDriver:o}=s.config,{selectors:a,mediaQueries:b,stylesBy:C,animations:N}=s,x=C[t];g&&g.call(this,t),this.declarations=i.declarations;let v,D;if(this.colored=l,c===-8)v=t.slice(n.length-1);else{let w;if(d)[w,D]=d.call(this,t);else{let S=t.indexOf(":");this.prefix=t.slice(0,S+1),w=t.slice(S+1)}this.valueComponents=[],v=w.slice(this.parseValue(this.valueComponents,0,w,r))}v[0]==="!"&&(this.important=!0,v=v.slice(1)),this.stateToken=v;let O=(w,S)=>{let T=(R,V,k,j)=>{for(let[W,L]of V)if(W.test(R)){for(let B of L)T(R.replace(W,B),V,k,!0);return}j&&k.push(R)},E=R=>{let V=R.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((L,B)=>B%3?L:L.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),k=[],j="",W=0;for(let L=0;L<V.length;L++){let B=V[L];if(B==="\\"){j+=B+V[++L];continue}!W&&B===","?(k.push(j),j=""):(j+=B,W&&B===")"?W--:B==="("&&W++)}return j&&k.push(j),k},P=[];""in a?T(w,a[""],P,!0):P.push(w);let $={};for(let[R,V]of Object.entries(a)){if(!R)continue;let k=[];for(let j of P)T(j,V,k,!1);k.length&&($[R]=k)}let I=(R,V)=>{let k=V.reduce((j,W)=>(j.push(...E(W)),j),[]);R in S?S[R].push(...k):S[R]=k},U=Object.keys($);if(U.length)for(let R of U)I(R,$[R]);else I("",P)};D?(this.vendorPrefixSelectors={},O(D,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let z=v.split("@"),A=z[0];if(A){this.vendorSuffixSelectors={},O(A,this.vendorSuffixSelectors);for(let w of Object.values(this.vendorSuffixSelectors))for(let S of w){this.hasWhere!==!1&&(this.hasWhere=S.includes(":where("));let T=[":disabled",":active",":focus",":hover"];for(let E=0;E<T.length;E++)if(S.includes(T[E])){(this.priority===-1||this.priority>E)&&(this.priority=E);break}}}else this.vendorSuffixSelectors={"":[""]};let X={},Re=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),se=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(Re)X[""]=se?[""]:Object.keys(this.vendorSuffixSelectors);else if(se)for(let w in this.vendorPrefixSelectors)X[w]=[""];else for(let w in this.vendorPrefixSelectors){let S=X[w]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,w))S.push(w);else for(let T in this.vendorSuffixSelectors)S.push(T)}for(let w=1;w<z.length;w++){let S=z[w];if(S)if(S==="rtl"||S==="ltr")this.direction=S;else{let T,E,P=Ce.exec(S);if(P)T=P[1],E=S.slice(T.length);else{this.media={token:S,features:{}};let $=[],I=R=>{if(R==="all"||R==="print"||R==="screen"||R==="speech")this.media.type=R;else if(R==="\u{1F5A8}")this.media.type="print";else if(R==="landscape"||R==="portrait")$.push("(orientation:"+R+")");else if(R==="motion"||R==="reduced-motion")$.push("(prefers-reduced-motion:"+(R==="motion"?"no-preference":"reduce")+")");else{let V=b[R];if(V&&typeof V=="string")$.push(V);else{let k="",j="",W=0;R.startsWith("<=")?(j="<=",k="max-width"):R.startsWith(">=")||V?(j=">=",k="min-width"):R.startsWith(">")?(j=">",k="min-width",W=.02):R.startsWith("<")&&(j="<",k="max-width",W=-.02);let L=j?R.replace(j,""):R,B=b[L];switch(k){case"max-width":case"min-width":let K={};typeof B=="number"?K={type:"number",value:B+W,unit:"px"}:(K=this.parseValueComponent(L,"px"),K.type==="number"&&K.unit==="px"&&(K.value+=W)),this.media.features[k]=K,K.type==="number"?$.push("("+k+":"+(K.value+K.unit)+")"):$.push("("+k+":"+K.value+")");break}}}},U=S.includes("&");if(U){let R=S.split("&");for(let V of R)I(V)}else I(S);if(this.media.type&&(E=this.media.type),$.length&&(E=$.join(" and ")),E)T="media";else if(!U){this.theme=S;continue}}E&&(this.at[T]=(T in this.at?this.at[T]+" and ":"")+E.replace(/\|/g," "))}}let Z;if(this.valueComponents)if(m&&(this.valueComponents=m.call(this,this.valueComponents)),Z=this.resolveValue(this.valueComponents,r,[]),y&&(Z=y.call(this,Z,this.css.config)),h){let w,S;this.declarations=h.call(this,S?w:Z,S||"")}else n&&(this.declarations={[n]:Z});let ae=[];for(let w in this.declarations){let S=P=>{if(N&&(P.startsWith("animation")||P.startsWith("animation-name"))){let $=P.split(":")[1].split("!important")[0].split(" ").filter(I=>I in this.css.animations&&(!this.animationNames||!this.animationNames.includes(I)));$.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...$))}ae.push(P+((this.important||f)&&!P.endsWith("!important")?"!important":""))},T=w+":",E=this.declarations[w];if(typeof E=="object")for(let P of E)S(T+P.toString());else S(T+E.toString())}if(ae.length)for(let w in X)for(let S of X[w]){let T="";this.direction&&(T+="[dir="+this.direction+"] ");let E=this.vendorPrefixSelectors[w],P=this.vendorSuffixSelectors[S],$=E.map(R=>R+T),I=R=>$.map(V=>(this.theme&&o!=="media"?o==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(u?u+" ":"")+V).reduce((V,k)=>(V.push(P.reduce((j,W)=>(j.push(k+"."+G(R)+W),j),[]).join(",")),V),[]).join(","),U=I(t)+(x?x.reduce((R,V)=>R+","+I(V),""):"")+"{"+ae.join(";")+"}";for(let R of Object.keys(this.at).sort((V,k)=>k==="supports"?-1:1))U="@"+R+(R.includes(" ")?"":" ")+this.at[R]+"{"+U+"}";this.theme&&o==="media"&&(U=`@media(prefers-color-scheme:${this.theme}){`+U+"}"),this.natives.push({text:U})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;colored=!1;animationNames;variableNames;resolveValue=(t,i,s)=>{let{functions:c}=this.css.config,r="";for(let l of t)switch(l.type){case"function":let d=c&&c[l.name];if(d?.transform){let h=d.transform.call(this,this.resolveValue(l.children,d.unit??i,s),s);r+=typeof h=="string"?h:this.resolveValue(h,d?.unit??i,s)}else r+=l.name+l.symbol+this.resolveValue(l.children,d?.unit??i,s)+Y[l.symbol];break;case"variable":let y=this.css.variables[l.name];if(y){let h=(m,g)=>{if(y.themes)if(this.theme){let p=y.themes[this.theme]??y;p?.value&&m(p)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(l.name)||this.variableNames.push(l.name),g();else m(y)};switch(y.type){case"string":h(g=>{let p=[];this.parseValue(p,0,g.value,i,void 0,void 0,[...s,l.name]),r+=this.resolveValue(p,i,[...s,l.name])},()=>{r+=`var(--${l.name})`});break;case"number":h(g=>{let p=this.parseValueComponent(g.value,i);r+=p.value+(p.unit??"")},()=>{r+=i?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let m=l.alpha?"/"+l.alpha:"";h(g=>{r+=`${g.space}(${g.value}${m})`},()=>{r+=`${y.space}(var(--${l.name})${m})`});break}}else r+=`var(--${l.name}${l.fallback?","+l.fallback:""})`;break;case"separator":r+=l.text||l.value;break;case"number":r+=l.value+l.unit;break;default:r+=l.value;break}return r};get text(){return this.natives.map(t=>t.text).join("")}parseValue=(t,i,s,c,r,l=void 0,d=[])=>{let y=l===void 0,h=!y&&(l.endsWith("$")||l.endsWith("var")),g=(f=>f==="'"||f==='"')(r),p=[","];this.definition.separators.length&&p.push(...this.definition.separators);let n="",u=()=>{if(n){let f=!1;if(!h||t.length){let o=(a,b)=>{let C=Object.prototype.hasOwnProperty.call(this.definition.resolvedVariables,a)?this.definition.resolvedVariables[a]:Object.prototype.hasOwnProperty.call(this.css.variables,a)?this.css.variables[a]:void 0;if(C){let N=C.name??a;if(!d.includes(N)){f=!0;let x={type:"variable",name:N,variable:this.css.variables[N]};b&&(x.alpha=b),t.push(x)}}};if(o(n),!f&&this.colored){let[a,b]=n.split("/");o(a,b)}}f||t.push(this.parseValueComponent(n,c)),n=""}};for(;i<s.length;i++){let f=s[i];if(f===r){if(g){let o=0;for(let a=n.length-1;n[a]==="\\";a--)o++;if(o%2){n+=f;continue}else u()}else u();return i}else if(!g&&f in Y){let o=n,a={type:"function",name:o,symbol:f,children:[]};t.push(a),n="";let b=f==="("&&this.css.config.functions?.[o];!this.colored&&b?.colored&&(this.colored=!0),i=this.parseValue(a.children,++i,s,b?.unit??c,Y[f],o||l||"")}else if((f==="|"||f===" ")&&r!=="}"&&(!g||l==="path"))u(),t.push({type:"separator",value:" "});else{if(!g){if(f===".")if(isNaN(+s[i+1])){if(y)break}else s[i-1]==="-"&&(n+="0");else if(p.includes(f)){u(),t.push({type:"separator",value:f,text:(f===","?"":" ")+f+(f===","?"":" ")});continue}else if(y&&(f==="#"&&(n||t.length&&t[t.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(f)))break}n+=f}}return u(),i};parseValueComponent(t,i=this.definition.unit){let s=i??this.definition.unit,c="",r;if(typeof t=="number")return s&&!c?((s==="rem"||s==="em")&&(r=t/this.css.config.rootSize),c=s||""):r=t,{value:r,unit:c,type:"number"};if(s){if(/^\d+\/\d+/.test(t)){let[d,y]=t.split("/");return{value:+d/+y*100,unit:"%",type:"number"}}let l=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(l)return r=+l[1],c=l[3]||"",c||((s==="rem"||s==="em")&&(r=r/this.css.config.rootSize),c=s||""),{value:r,unit:c,type:"number"}}return{value:t,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},oe=xe;var Se={"::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"},le=Se;var De={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"}},ce=De;var Ne={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=Ne;function q(e){e.startsWith("#")&&(e=e.slice(1));let t,i,s,c;return e.length===3||e.length===4?(t=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),s=parseInt(e[2]+e[2],16),c=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),i=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16),c=e.length===8?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,i,s,c]}function ue(e,t,i){return((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)}function M(e){typeof e=="string"&&(e={"":e});let t=""in e,i=!1;for(let s in e)if(s&&+s>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let s=0,c="0"in e?q(e[0]):[0,0,0],r,l,d=[],y=()=>{let h=r-s,m=l.map((g,p)=>(g-c[p])/h);for(let g of d){let p=g-s,n=c.map((u,f)=>Math.round(u+m[f]*p));e[g]="#"+ue.call(this,...n)}};for(let h=1;h<100;h++)h in e?(d.length?(r=h,l=q(e[h]),y(),d.length=0,c=l):c=q(e[h]),s=h):d.push(h);d.length&&(r=100,l="100"in e?q(e[100]):[255,255,255],y())}return t||(e[""]=e[i?"500":"50"]),e}var we={"font-family":{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"]},"box-size":{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{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"})},de=we;var _=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Q=function(e){return e.length<2||e.find(i=>i.type==="string"&&_.includes(i.value)||i.type==="variable"&&_.includes(i.variable.value))||e.push({type:"separator",value:" "},{type:"string",value:"solid"}),e},ke={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={},i=y=>{let h=y.indexOf(":");h!==-1&&(t[y.slice(0,h)]=y.slice(h+1))},s=y=>{let h=m=>{let g=m.slice(G(y.className).length).match(/\{(.*)\}/)[1].split(";");for(let p of g)i(p)};for(let m of y.natives)h(m.text);if(y.animationNames){this.animationNames||(this.animationNames=[]);for(let m of y.animationNames)this.animationNames.includes(m)||this.animationNames.push(m)}if(y.variableNames){this.variableNames||(this.variableNames=[]);for(let m of y.variableNames)this.variableNames.includes(m)||this.variableNames.push(m)}},c=[],r="",l=()=>{r&&(c.push(r.replace(/ /g,"|")),r="")},d=1;(function y(h){for(;d<e.length;d++){let m=e[d];if(!h){if(m===";"){l();continue}if(m==="}")break}if(r+=m,h===m){if(h==="'"||h==='"'){let g=0;for(let p=r.length-2;r[p]==="\\";p--)g++;if(g%2)continue}break}else m in Y&&h!=="'"&&h!=='"'&&(d++,y(Y[m]))}})(void 0),l();for(let y of c){let h=this.css.create(y);if(h.length)for(let m of h)s(m);else i(y)}return t}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},"font-size":{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-3},"font-weight":{match:["f(?:ont)?",["bolder"]],layer:-3},"font-family":{match:["f(?:ont)?"],layer:-3},"font-smoothing":{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-3,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"}}}},"font-style":{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-3,unit:"deg"},"font-variant-numeric":{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-3},"font-variant":{layer:-7},"font-feature-settings":{match:/^font-feature:/,layer:-3},font:{match:/^f:/,layer:-7,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},color:{match:/^(?:color|fg|foreground):/,layer:-3,colored:!0,variables:["foreground"]},"margin-left":{match:/^ml:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-right":{match:/^mr:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-top":{match:/^mt:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-bottom":{match:/^mb:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-x":{match:/^(?:mx|margin-x):/,unit:"rem",layer:-5,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}},variables:["spacing"]},"margin-y":{match:/^(?:my|margin-y):/,unit:"rem",layer:-5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}},variables:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-7,variables:["spacing"]},"margin-inline-start":{match:/^mis:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline-end":{match:/^mie:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline":{match:/^mi:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-left":{match:/^pl:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-right":{match:/^pr:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-top":{match:/^pt:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-bottom":{match:/^pb:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-x":{match:/^(?:px|padding-x):/,unit:"rem",layer:-5,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}},variables:["spacing"]},"padding-y":{match:/^(?:py|padding-y):/,unit:"rem",layer:-5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}},variables:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-inline-start":{match:/^pis:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline-end":{match:/^pie:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline":{match:/^pi:/,unit:"rem",layer:-7,variables:["spacing"]},"flex-basis":{variables:["box-size"],unit:"rem",layer:-3},"flex-wrap":{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-3},"flex-grow":{layer:-3},"flex-shrink":{layer:-3},"flex-direction":{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-3},flex:{layer:-7},display:{match:/^d:/,layer:-3},width:{match:/^w:/,unit:"rem",layer:-3,variables:["box-size"]},height:{match:/^h:/,unit:"rem",layer:-3,variables:["box-size"]},"min-width":{match:/^min-w:/,unit:"rem",layer:-3,variables:["box-size"]},"min-height":{match:/^min-h:/,unit:"rem",layer:-3,variables:["box-size"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},"min-box":{match:/^min:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"min-height":i}}},"max-box":{match:/^max:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"max-height":i}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["box-size",["slice","clone"]],layer:-3,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},contain:{layer:-3},content:{layer:-3},"counter-increment":{layer:-3},"counter-reset":{layer:-3},"letter-spacing":{match:/^ls:/,layer:-3,unit:"em"},"line-height":{match:/^lh:/,layer:-3},"object-fit":{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-3},"object-position":{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-3},"text-align":{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-3},"text-decoration-color":{match:["text-decoration"],layer:-3,colored:!0,variables:["foreground"]},"text-decoration-style":{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-3},"text-decoration-thickness":{match:["text-decoration",["from-font"]],numeric:!0,layer:-3,unit:"em"},"text-decoration-line":{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-3},"text-decoration":{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-7,variables:["foreground"]},"text-underline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"text-overflow":{match:["t(?:ext)?",["ellipsis","clip"]],layer:-3},"text-orientation":{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-3},"text-transform":{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-3},"text-rendering":{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-3},"text-indent":{unit:"rem",layer:-3},"vertical-align":{match:/^(?:v|vertical):/,layer:-3},columns:{match:/^(?:columns|cols):/,layer:-7},"white-space":{layer:-3},top:{layer:-3,unit:"rem",variables:["spacing"]},bottom:{layer:-3,unit:"rem",variables:["spacing"]},left:{layer:-3,unit:"rem",variables:["spacing"]},right:{layer:-3,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-7,variables:["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}}},"max-height":{match:/^max-h:/,unit:"rem",layer:-3,variables:["box-size"]},"max-width":{match:/^max-w:/,unit:"rem",layer:-3,variables:["box-size"]},opacity:{layer:-3},visibility:{layer:-3},clear:{layer:-3},float:{layer:-3},isolation:{layer:-3},"overflow-x":{layer:-3,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},"overflow-y":{layer:-3,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-7,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},"overscroll-behavior-x":{layer:-3},"overscroll-behavior-y":{layer:-3},"overscroll-behavior":{layer:-7},"z-index":{match:/^z:/,layer:-3},position:{layer:-3},cursor:{layer:-3},"pointer-events":{layer:-3},resize:{layer:-3},"touch-action":{layer:-3},"word-break":{layer:-3},"word-spacing":{layer:-3,unit:"em"},"user-drag":{layer:-3,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},"user-select":{layer:-3,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},"text-shadow":{unit:"rem",layer:-3,colored:!0},"text-size":{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)`}}},"text-fill-color":{match:["(?:text-fill|text|t)"],layer:-3,colored:!0,variables:["foreground"],declare(e,t){return{"-webkit-text-fill-color":e+t}}},"text-stroke-width":{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-3,declare(e,t){return{"-webkit-text-stroke-width":e+t}}},"text-stroke-color":{match:["text-stroke"],layer:-3,colored:!0,variables:["foreground"],declare(e,t){return{"-webkit-text-stroke-color":e+t}}},"text-stroke":{unit:"rem",layer:-3,declare(e,t){return{"-webkit-text-stroke":e+t}}},"box-shadow":{match:/^s(?:hadow)?:/,unit:"rem",layer:-3,colored:!0},"table-layout":{layer:-3},"transform-box":{match:["transform"],layer:-3},"transform-style":{match:["transform",["flat","preserve-3d"]],layer:-3},"transform-origin":{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-3},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-3,analyze(e){return[e.startsWith("transform")?e.slice(10):e]},variables:["spacing"]},"transition-property":{match:/^~property:/,layer:-3},"transitionTiming-function":{match:/^~easing:/,layer:-3},"transition-duration":{match:/^~duration:/,layer:-3,unit:"ms"},"transition-delay":{match:/^~delay:/,layer:-3,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:-7},"animation-delay":{match:/^@delay:/,layer:-3,unit:"ms"},"animation-direction":{match:/^@direction:/,layer:-3},"animation-duration":{match:/^@duration:/,layer:-3,unit:"ms"},"animation-fill-mode":{match:/^@fill:/,layer:-3},"animation-iteration-count":{match:/^@iteration:/,layer:-3},"animation-name":{match:/^@name:/,layer:-3},"animation-play-state":{match:/^@play:/,layer:-3},"animation-timing-function":{match:/^@easing:/,layer:-3},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-7,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)]}}},"border-collapse":{match:["b(?:order)?",["collapse","separate"]],layer:-3},"border-spacing":{unit:"rem",layer:-3},"border-top-color":{match:["b(?:t|order-top(?:-color)?)"],layer:-3,colored:!0},"border-bottom-color":{match:["b(?:b|order-bottom(?:-color)?)"],layer:-3,colored:!0},"border-left-color":{match:["b(?:l|order-left(?:-color)?)"],layer:-3,colored:!0},"border-right-color":{match:["b(?:r|order-right(?:-color)?)"],layer:-3,colored:!0},"border-x-color":{match:["b(?:x|order-x(?:-color)?)"],layer:-5,colored:!0,declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},"border-y-color":{match:["b(?:y|order-y(?:-color)?)"],layer:-5,colored:!0,declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},"border-color":{match:["b(?:order)?(?:-color)?"],layer:-7,colored:!0},"border-top-left-radius":{match:/^r(?:tl|lt):/,unit:"rem",layer:-3},"border-top-right-radius":{match:/^r(?:tr|rt):/,unit:"rem",layer:-3},"border-bottom-left-radius":{match:/^r(?:bl|lb):/,unit:"rem",layer:-3},"border-bottom-right-radius":{match:/^r(?:br|rb):/,unit:"rem",layer:-3},"border-top-radius":{match:/^rt:/,unit:"rem",layer:-5,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},"border-bottom-radius":{match:/^rb:/,unit:"rem",layer:-5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},"border-left-radius":{match:/^rl:/,unit:"rem",layer:-5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},"border-right-radius":{match:/^rr:/,unit:"rem",layer:-5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},"border-radius":{match:/^r:/,unit:"rem",layer:-7},"border-top-style":{match:["b(?:t|order-top(?:-style)?)",_],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",_],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",_],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",_],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",_],layer:-5,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",_],layer:-5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},"border-style":{match:["b(?:order)?(?:-style)?",_],layer:-7},"border-top-width":{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-bottom-width":{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-left-width":{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-right-width":{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-x-width":{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},"border-y-width":{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},"border-width":{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-7},"border-image-outset":{unit:"rem",layer:-3},"border-image-repeat":{match:["border-image",["stretch","repeat","round","space"]],layer:-3},"border-image-slice":{layer:-3},"border-image-source":{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-3},"border-image-width":{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-3},"border-image":{layer:-7},"border-top":{match:/^bt:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:Q,declare(e){return{"border-left":e,"border-right":e}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:Q,declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:Q},"background-attachment":{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-3},"background-blend-mode":{layer:-3},"background-color":{match:["(?:bg|background)"],layer:-3,colored:!0},"background-clip":{match:["(?:bg|background)",["text"]],layer:-3,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}}},"background-origin":{match:["(?:bg|background)"],layer:-3},"background-position":{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-3,unit:"px"},"background-repeat":{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-3},"background-size":{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-3},"background-image":{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},background:{match:/^bg:/,colored:!0,layer:-7},gradient:{match:/^gradient\(/,layer:-3,colored:!0,declare(e){return{"background-image":"linear-"+e}}},"mix-blend-mode":{match:/^blend:/,layer:-3},"backdrop-filter":{match:/^bd:/,layer:-3,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:-3,colored:!0},fill:{match:/^fill:/,layer:-3,colored:!0,variables:["foreground"]},"stroke-dasharray":{layer:-3},"stroke-dashoffset":{layer:-3,variables:["spacing"]},"stroke-width":{match:["stroke(?:-width)?"],numeric:!0,layer:-3},stroke:{match:["stroke"],layer:-3,colored:!0,variables:["foreground"]},x:{layer:-3,variables:["spacing"]},y:{layer:-3,variables:["spacing"]},cx:{layer:-3,variables:["spacing"]},cy:{layer:-3,variables:["spacing"]},rx:{layer:-3},ry:{layer:-3},"grid-column-start":{match:/^grid-col-start:/,layer:-3},"grid-column-end":{match:/^grid-col-end:/,layer:-3},"grid-column":{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-columns":{match:/^grid-cols:/,declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}},layer:-1},"grid-row-start":{layer:-3},"grid-row-end":{layer:-3},"grid-row":{match:/^grid-row-span:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-rows":{match:/^grid-rows:/,declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}},layer:-1},"grid-auto-columns":{match:/^grid-auto-cols:/,layer:-3,variables:["box-size"]},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3,variables:["box-size"]},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem",variables:["box-size"]},"grid-template-rows":{layer:-3,unit:"rem",variables:["box-size"]},"grid-template":{layer:-7},"grid-area":{layer:-7},grid:{layer:-7},"column-gap":{match:/^gap-x:/,unit:"rem",layer:-3,variables:["spacing"]},"row-gap":{match:/^gap-y:/,unit:"rem",layer:-3,variables:["spacing"]},gap:{unit:"rem",layer:-7,variables:["spacing"]},order:{match:/^o:/,layer:-3},"break-inside":{layer:-3},"break-before":{layer:-3},"break-after":{layer:-3},"aspect-ratio":{match:/^aspect:/,layer:-3},"column-span":{match:/^col-span:/,layer:-3},"align-content":{match:/^ac:/,layer:-3},"align-items":{match:/^ai:/,layer:-3},"align-self":{match:/^as:/,layer:-3},"justify-content":{match:/^jc:/,layer:-3},"justify-items":{match:/^ji:/,layer:-3},"justify-self":{match:/^js:/,layer:-3},"place-content":{layer:-7},"place-items":{layer:-7},"place-self":{layer:-7},"list-style-position":{match:["list-style",["inside","outside"]],layer:-3},"list-style-type":{match:["list-style",["disc","decimal"]],layer:-3},"list-style-image":{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},"list-style":{layer:-7},"outline-color":{match:["outline"],layer:-3,colored:!0},"outline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"outline-style":{match:["outline",_],layer:-3},"outline-width":{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-3},outline:{unit:"rem",layer:-7,colored:!0,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:Q},"accent-color":{match:/^accent:/,layer:-3,colored:!0,variables:["foreground"]},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0,variables:["foreground"]},"scroll-behavior":{layer:-3},"scroll-margin-left":{match:/^scroll-ml:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-right":{match:/^scroll-mr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-top":{match:/^scroll-mt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{match:/^scroll-mb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-x":{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}},variables:["spacing"]},"scroll-margin-y":{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}},variables:["spacing"]},"scroll-margin":{match:/^scroll-m:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-padding-left":{match:/^scroll-pl:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-right":{match:/^scroll-pr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-top":{match:/^scroll-pt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{match:/^scroll-pb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-x":{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}},variables:["spacing"]},"scroll-padding-y":{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}},variables:["spacing"]},"scroll-padding":{match:/^scroll-p:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-snap-align":{match:["scroll-snap",["start","end","center"]],layer:-3},"scroll-snap-stop":{match:["scroll-snap",["normal","always"]],layer:-3},"scroll-snap-type":{match:["scroll-snap",["x","y","block","inline","both"]],layer:-3},"will-change":{layer:-3},"writing-mode":{match:/^writing:/,layer:-3},direction:{layer:-3},"shape-outside":{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-3},"shape-margin":{match:["shape"],numeric:!0,unit:"rem",layer:-3,variables:["spacing"]},"shape-image-threshold":{layer:-3},"clip-path":{match:/^clip:/,layer:-3},quotes:{layer:-3},"mask-image":{layer:-3,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},he=ke;var Ve={$:{colored:!0,transform(e){let t,i,s=e.indexOf(",");return s!==-1?(t=e.slice(0,s),i=e.slice(s+1)):t=e,[{type:"variable",name:t,fallback:i}]}},calc:{transform(e,t){let i=[],s=this.css.config.functions,c=0,r=(l,d,y)=>{let h=!1,m="",g=(p,n="",u="")=>{m&&(!h&&!y?l.push(this.parseValueComponent(m,s.calc.unit)):l.push({type:"string",value:m}),m=""),p&&(n&&e[c-1]===" "&&(n=""),u&&e[c+1]===" "&&(u=""),d?l.push({type:"separator",value:p,text:p}):l.push({type:"separator",value:p,text:n+p+u})),h=!1};for(;c<e.length;c++){let p=e[c];if(p==="("){let n=/^([+-])/.exec(m);n&&l.push({type:"string",value:n[1]});let u=n?m.slice(1):m,f={type:"function",name:u,symbol:p,children:[]};l.push(f),m="",c++;let o=f.name==="$"||f.name==="var";r(f.children,u!==""&&u!=="calc"&&(o||Object.prototype.hasOwnProperty.call(s,u)),h||o)}else if(p===")"){g("");break}else if(p===",")g(p,""," ");else if(p===" ")g(p);else{let n=e[c-1];switch(p){case"+":!m&&n!==")"?m+=p:g(p," "," ");break;case"-":!m&&n!==")"?m+=p:g(p," "," ");break;case"*":g(p," "," ");break;case"/":g(p," "," "),h=!0;break;default:m+=p;break}}}g("")};return r(i,!1,!1),"calc("+this.resolveValue(i,s.calc.unit??this.definition.unit,t)+")"}},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}},me=Ve;var F={mediaQueries:oe,selectors:le,semantics:ce,rules:he,functions:me,animations:fe,variables:de,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};function J(e,t=""){return Object.entries(e).reduce((i,[s,c])=>{let r=t?`${t}${s?"-"+s:""}`:s;return typeof c=="object"&&!Array.isArray(c)?Object.assign(i,J(c,r)):i[r]=c,i},{})}function ge(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function ye(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 be(e){let t=[];return e.forEach(function(i,s){typeof i=="object"&&i!==null?Array.isArray(i)?t[s]=be(i):ge(i)?t[s]=ye(i):t[s]=H({},i):t[s]=i}),t}function pe(e,t){return t==="__proto__"?void 0:e[t]}function H(...e){let t={},i,s;return e.forEach(function(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(r){if(s=pe(t,r),i=pe(c,r),i!==t)if(typeof i!="object"||i===null){t[r]=i;return}else if(Array.isArray(i)){t[r]=be(i);return}else if(ge(i)){t[r]=ye(i);return}else if(typeof s!="object"||s===null||Array.isArray(s)){t[r]=H({},i);return}else{t[r]=H(s,i);return}})}),t}function ee(...e){let t=c=>{let r=H({},c),l=d=>{for(let y in d){let h=d[y];typeof h=="object"&&!Array.isArray(h)?l(h):y&&!y.startsWith("@")&&(d[y]={"":h})}};return r.styles?l(r.styles):r.styles={},r.mediaQueries?l(r.mediaQueries):r.mediaQueries={},r.variables?l(r.variables):r.variables={},r},i=[];for(let c of e)(function r(l){if(l.extends?.length)for(let d of l.extends)r("config"in d?d.config:d);i.push(t(l))})(c);let s=i[0];for(let c=1;c<i.length;c++){let r=i[c];s=H(s,r),Object.prototype.hasOwnProperty.call(r,"animations")&&Object.assign(s.animations,r.animations)}return s}var te=class e{constructor(t=F){this.customConfig=t;t?.override?this.config=ee(t):this.config=ee(F,t),this.resolve(),this.constructor===e&&globalThis.masterCSSs.push(this)}static config=F;rules=[];ruleBy={};classesUsage={};config;semanticRuleOptions=[];ruleDefinitions=[];resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.ruleDefinitions.length=0,this.semanticRuleOptions.length=0,this.variablesNativeRules=void 0,this.hasKeyframesRule=!1;let t={current:void 0,currentColor:void 0,transparent:void 0},{styles:i,selectors:s,variables:c,semantics:r,mediaQueries:l,rules:d,animations:y}=this.config;function h(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(s){let n=J(s);for(let u in n){let f=n[u],o=new RegExp(h(u)+"(?![a-z-])");for(let a of Array.isArray(f)?f:[f]){let b=a.match(/^::-[a-z]+-/m)?.[0]??"",C=this.selectors[b];C||(C=this.selectors[b]=[]);let N=C.find(([x])=>x===o);N||(N=[o,[]],C.push(N)),N[1].push(a)}}}if(c){let n={},u=(f,o,a=void 0,b)=>{if(!f)return;let C=(x,v,D=void 0,O=void 0)=>{if(v===void 0)return;if(v.type==="color"){if(O){let A=v.value.indexOf("/");v={...v,value:A===-1?v.value+" / "+(O.startsWith("0.")?O.slice(1):O):v.value.slice(0,A+2)+(+v.value.slice(A+2)*+O).toString().slice(1)}}t[x]=void 0}let z=D??a;if(z!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,x)){let A=this.variables[x];z?(A.themes||(A.themes={}),A.themes[z]=v):(A.value=v.value,A.space=v.space)}else z?this.variables[x]={type:v.type,space:v.space,themes:{[z]:v}}:this.variables[x]=v;else this.variables[x]=v},N=typeof f;if(N==="object")if(Array.isArray(f))C(o,{type:"string",value:f.join(",")});else{let x=Object.keys(f);for(let v of x)v===""||v.startsWith("@")?u(f[v],o,v||x.some(D=>D.startsWith("@"))?v.slice(1):void 0,o):u(f[v],o+"-"+v,void 0,o)}else if(N==="number")C(o,{type:"number",value:f}),C("-"+o,{type:"number",value:f*-1});else if(N==="string"){let x=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(f);if(x)Object.prototype.hasOwnProperty.call(n,o)||(n[o]={}),n[o][a]=()=>{delete n[o][a];let[v,D]=x[1].split("@");if(v){if(Object.prototype.hasOwnProperty.call(n,v))for(let z of Object.keys(n[v]))n[v][z]?.();let O=this.variables[v];if(O)if(D===void 0&&O.themes){C(o,{type:O.type,value:O.value,space:O.space},"",x[2]);for(let z in O.themes)C(o,O.themes[z],z,x[2])}else{let z=D!==void 0?O.themes?.[D]:O;z&&C(o,{type:z.type,value:z.value,space:z.space},void 0,x[2])}}};else{let v=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(f);if(v){let[D,O,z,A]=q(v[1]);C(o,{type:"color",value:`${D} ${O} ${z}${A===1?"":" / "+A}`,space:"rgb"})}else{let D=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(f);if(D)C(o,{type:"color",value:D[1]+" "+D[2]+" "+D[3]+(D[4]?" / "+(D[4].startsWith("0.")?D[4].slice(1):D[4]):""),space:"rgb"});else{let O=/^hsl\((.*?)\)$/.exec(f);O?C(o,{type:"color",value:O[1],space:"hsl"}):C(o,{type:"string",value:f})}}}}};for(let f in c)u(c[f],f);for(let f of Object.keys(n))for(let o of Object.keys(n[f]))n[f][o]?.()}if(l&&(this.mediaQueries=J(l)),y)for(let n in y){let u=this.animations[n]={},f=y[n];for(let o in f){let a=u[o]={},b=f[o];for(let C in b)a[C]=b[C]}}let m=i?J(i):{},g=Object.keys(m),p=n=>{if(Object.prototype.hasOwnProperty.call(this.styles,n))return;let u=this.styles[n]=[],f=m[n];if(!f)return;let o=f.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let a of o){let b=C=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,C)){let N=this.stylesBy[C];N.includes(n)||N.push(n)}else this.stylesBy[C]=[n];u.includes(C)||u.push(C)};if(g.includes(a)){p(a);for(let C of this.styles[a])b(C)}else b(a)}};for(let n of g)p(n);if(r&&Object.entries(r).sort((n,u)=>n[0].localeCompare(u[0])).forEach(([n,u],f)=>{this.semanticRuleOptions.push({id:"."+n,resolvedMatch:new RegExp("^"+h(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:f,declarations:u,layer:-8})}),d){let n=Object.entries(d).sort((o,a)=>o[1].layer!==a[1].layer?(a[1].layer||0)-(o[1].layer||0):a[0].localeCompare(o[0])),u=n.length,f=Object.keys(t);n.forEach(([o,a],b)=>{this.ruleDefinitions.push(a),a.order=this.semanticRuleOptions.length+u-1-b;let C=a.match;a.id=o,a.resolvedVariables={};let N=x=>{for(let v in this.variables)if(v.startsWith(x+"-")||v.startsWith("-"+x+"-")){let D=v.slice(x.length+(x.startsWith("-")?0:1));a.resolvedVariables[D]={...this.variables[v],name:v}}};if(a.variables)for(let x of a.variables)N(x);if(N(o),C)if(Array.isArray(C)){let[x,v=[]]=C,D=[];v.length&&D.push(`(?:${v.join("|")})(?![a-zA-Z0-9-])`),Object.keys(a.resolvedVariables).length&&D.push(`(?:${Object.keys(a.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),a.colored&&D.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${f.join("|")})(?![a-zA-Z0-9-])`),a.numeric&&D.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),D.length&&(a.resolvedMatch=new RegExp(`^${x}:(?:${D.join("|")})[^|]*?(?:@|$)`))}else a.resolvedMatch=C})}}match(t){for(let i of this.ruleDefinitions)if(i.resolvedMatch&&i.resolvedMatch.test(t)||(i.layer===-2||i.layer===-6||i.layer===-3||i.layer===-7)&&t.startsWith(i.id+":"))return i;for(let i of this.semanticRuleOptions)if(i.resolvedMatch.test(t))return i}create(t){let i=s=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,s))return this.ruleBy[s];let c=this.match(s);if(c)return new re(s,c,this)};return(Object.prototype.hasOwnProperty.call(this.styles,t)?this.styles[t].map(s=>i(s)):[i(t)]).filter(s=>s&&s.text)}refresh(t=this.customConfig){t?.override?this.config=ee(t):this.config=ee(F,t),this.resolve(),this.rules.length=0,this.ruleBy={};for(let i in this.classesUsage)this.add(i);return this}reset(){this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules=void 0;for(let t in this.animations){let i=this.animations[t];i.usage=void 0,i.native=void 0}for(let t in this.variables){let i=this.variables[t];i.usage=void 0}return this}destroy(){return this.reset(),globalThis.masterCSSs.splice(globalThis.masterCSSs.indexOf(this),1),this}add(t){let i=this.create(t);return i.length?(this.insert(i),!0):!1}delete(t){let i=this.style?.sheet,s=c=>{let r=this.ruleBy[c];if(!(!r||Object.prototype.hasOwnProperty.call(this.stylesBy,c)&&this.stylesBy[c].some(l=>Object.prototype.hasOwnProperty.call(this.classesUsage,l)))){if(i&&r.natives.length){let l=r.natives[0];for(let d=0;d<i.cssRules.length;d++)if(i.cssRules[d]===l.cssRule){for(let h=0;h<r.natives.length;h++)i.deleteRule(d);break}}if(this.rules.splice(this.rules.indexOf(r),1),delete this.ruleBy[c],r.variableNames)for(let l of r.variableNames){let d=this.variables[l];if(!--d.usage){let y=h=>{let m=this.variablesNativeRules[h];if(m.cssRule.style.removeProperty("--"+l),!m.cssRule.style.length){let g=this.rules[0],p=g.natives.indexOf(m);i?.deleteRule(p),g.natives.splice(p,1),delete this.variablesNativeRules[h],g.natives.length||(this.rules.splice(0,1),this.variablesNativeRules=void 0)}};if(d.value&&y(""),d.themes)for(let h in d.themes)y(h)}}if(r.animationNames){let l=this.variablesNativeRules?1:0,d=this.rules[l];for(let y of r.animationNames){let h=this.animations[y];if(!--h.usage){let m=d.natives.indexOf(h.native);this.style.sheet.deleteRule((this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+m),d.natives.splice(m,1),h.native=void 0}}d.natives.length||(this.rules.splice(l,1),this.hasKeyframesRule=!1)}r.definition.delete?.call(r,c)}};if(Object.prototype.hasOwnProperty.call(this.styles,t)){for(let c of this.styles[t])Object.prototype.hasOwnProperty.call(this.classesUsage,c)||s(c);delete this.ruleBy[t]}else s(t)}insert(t){for(let i of t){if(this.ruleBy[i.className])continue;let s,c=this.rules.length-1,{media:r,order:l,priority:d,hasWhere:y,className:h}=i,m=(n,u,f)=>{let o=n;for(;o<=c;o++){let a=this.rules[o];if(u?.(a))return f?-1:o-1;if(f?.(a))return o}return f?-1:o-1},g,p;if(r){let n=this.rules.findIndex(u=>u.media);if(n===-1)s=c+1;else{let{"max-width":u,"min-width":f}=r.features;if(u||f){let o=this.rules.findIndex(a=>a.media?.features["max-width"]||a.media?.features["min-width"]);if(o===-1)s=c+1;else if(u&&f){if(d===-1?(g=m(o,a=>a.priority!==-1,a=>a.media.features["max-width"]&&a.media.features["min-width"]),p=m(o,a=>a.priority!==-1)):(g=m(o,void 0,a=>a.media.features["max-width"]&&a.media.features["min-width"]&&a.priority!==-1),p=c),g!==-1){let a=u.value-f.value,b=p,C=g;for(g=void 0;b>=C;b--){let{"max-width":N,"min-width":x}=this.rules[b].media.features,v=N.value-x.value;if(v<a)p=b-1;else if(v===a)g=b;else break}}if(g!==-1){let a=u.value-f.value;for(let b=p;b>=g;b--){let{"max-width":C,"min-width":N}=this.rules[b].media.features,x=C.value-N.value;if(x<a)p=b-1;else if(x>a){g=b+1;break}}}}else if(f){if(d===-1?(g=m(o,a=>a.media.features["max-width"]&&a.media.features["min-width"]||a.priority!==-1,a=>!a.media.features["max-width"]&&a.media.features["min-width"]),p=m(o,a=>a.media.features["max-width"]&&a.media.features["min-width"]||a.priority!==-1)):(g=m(o,a=>a.media.features["max-width"]&&a.media.features["min-width"]&&a.priority!==-1,a=>!a.media.features["max-width"]&&a.media.features["min-width"]&&a.priority!==-1),p=m(o,a=>a.media.features["max-width"]&&a.media.features["min-width"]&&a.priority!==-1)),g!==-1)for(let a=p;a>=g;a--){let b=this.rules[a].media.features["min-width"].value;if(b>f.value)p=a-1;else if(b<f.value){g=a+1;break}}}else if(d===-1?(g=m(o,a=>a.media.features["min-width"]||a.priority!==-1,a=>a.media.features["max-width"]),p=m(o,a=>a.media.features["min-width"]||a.priority!==-1)):(g=m(o,a=>a.media.features["min-width"]&&a.priority!==-1,a=>a.media.features["max-width"]&&a.priority!==-1),p=m(o,a=>a.media.features["min-width"]&&a.priority!==-1)),g!==-1)for(let a=p;a>=g;a--){let b=this.rules[a].media.features["max-width"].value;if(b<u.value)p=a-1;else if(b>u.value){g=a+1;break}}}else d===-1?(g=n,p=m(n,o=>o.media?.features["max-width"]||o.media?.features["min-width"]||o.priority!==-1)):(g=m(n,o=>o.media?.features["max-width"]||o.media?.features["min-width"],o=>o.priority!==-1),p=m(n,o=>o.media?.features["max-width"]||o.media?.features["min-width"]))}}else{let n=this.variablesNativeRules?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;d===-1?(g=n,p=m(n,u=>u.media||u.priority!==-1)):(g=m(n,u=>u.media,u=>u.priority!==-1),p=m(n,u=>u.media))}if(s===void 0)if(g===-1)s=p+1;else{if(d===-1)for(let n=g;n<=p;n++){let u=this.rules[n];if(!(!y&&u.hasWhere)&&(y&&!u.hasWhere||u.order>=l)){s=n;break}}else for(let n=g;n<=p;n++){let u=this.rules[n];if(!(!y&&u.hasWhere)){if(y&&!u.hasWhere){s=n;break}if(u.priority<d){s=n;break}else if(u.priority===d){if(u.order>=l){s=n;break}}else s=n+1}}s===void 0&&(s=p+1)}if(this.rules.splice(s,0,i),this.ruleBy[h]=i,this.style){let n=this.style.sheet,u=0,f=o=>{let a=this.rules[o];if(a){if(!a.natives.length)return f(o-1);let b=a.natives[a.natives.length-1],C=b.cssRule.parentRule??b.cssRule;for(let N=0;N<n.cssRules.length;N++)if(n.cssRules[N]===C){u=N+1;break}}};f(s-1);for(let o=0;o<i.natives.length;)try{let a=i.natives[o];n.insertRule(a.text,u),a.cssRule=n.cssRules[u++],o++}catch(a){console.error(a),i.natives.splice(o,1)}}this.handleRuleWithVariableNames(i),this.handleRuleWithAnimationNames(i),i.definition.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}handleRuleWithAnimationNames(t,i=!1){if(t.animationNames){let s=this.style?.sheet;for(let c of t.animationNames){let r=this.animations[c];if(r.usage)r.usage++;else{let l={text:`@keyframes ${c}{`+Object.entries(r).filter(([h])=>h!=="usage"&&h!=="native").map(([h,m])=>`${h}{${Object.entries(m).map(([g,p])=>g+":"+p).join(";")}}`).join("")+"}"},d=this.variablesNativeRules?1:0,y;if(this.hasKeyframesRule?(y=this.rules[d]).natives.push(l):(this.rules.splice(d,0,y={natives:[l],get text(){return this.natives.map(h=>h.text).join("")}}),this.hasKeyframesRule=!0),s){let h;if(i)for(let m=0;m<s.cssRules.length;m++){let g=s.cssRules[m];if(g.constructor.name==="CSSKeyframesRule"&&g.name===c){h=g;break}}if(h)l.cssRule=h;else{let m=(this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+y.natives.length-1;s.insertRule(l.text,m),l.cssRule=s.cssRules[m]}}r.usage=1,r.native=l}}}}handleRuleWithVariableNames(t,i=!1){if(t.variableNames){let s=this.style?.sheet;for(let c of t.variableNames){let r=this.variables[c];if(r.usage)r.usage++;else{let l=(d,y)=>{let h=this.variablesNativeRules?.[d];if(!h){let g,p,n;if(d)switch(this.config.themeDriver){case"media":p=`@media(prefers-color-scheme:${d})`,n=":root";break;case"host":n=`:host(.${d})`;break;default:n=`.${d}`;break}else n=":root";if(s){let u=this.variablesNativeRules?this.rules[0].natives.length:0;s.insertRule((p?p+"{":"")+n+"{}"+(p?p+"}":""),u),g=p?s.cssRules[u].cssRules[0]:s.cssRules[u]}else{let u=new Map,f=Object.defineProperties({},{getPropertyValue:{value:o=>u.get(o)},removeProperty:{value:o=>{u.delete(o);for(let a=0;a<f.length;a++)f[a]===o&&delete f[a]}},setProperty:{value:(o,a)=>{f[f.length]=o,u.set(o,a)}},length:{get(){return Object.keys(f).length}}});g={selectorText:n,style:f,styleMap:u},p&&(g.parentRule={conditionText:p})}h=this.pushVariableNativeRule(d,g)}let m="--"+c;(!i||!h.cssRule.style.getPropertyValue(m))&&h.cssRule.style.setProperty(m,y.value.toString())};if(r.value&&l("",r),r.themes)for(let d in r.themes)l(d,r.themes[d]);r.usage=1}}}}pushVariableNativeRule(t,i){this.variablesNativeRules||(this.variablesNativeRules={},this.rules.splice(0,0,{natives:[],get text(){return this.natives.map(l=>l.text).join("")}}));let s="",c="}";i.parentRule&&(s+=i.parentRule.conditionText.replace(/ /g,"")+"{",c+="}"),s+=i.selectorText+"{";let r={cssRule:i,get text(){let l=[];for(let d=0;d<i.style.length;d++){let y=i.style[d];l.push(y+":"+i.style.getPropertyValue(y))}return s+l.join(";")+c}};return this.rules[0].natives.push(this.variablesNativeRules[t]=r),r}};globalThis.MasterCSS=te,globalThis.masterCSSs||(globalThis.masterCSSs=[]);var ve=[",",".","#","[","!","*",">","+","~",":","@"];var ie=class extends te{constructor(i=document,s=F){super(s);this.root=i;this.customConfig=s;i||(this.root=document),this.root===document?(globalThis.runtimeCSS=this,this.container=document.head,this.host=document.documentElement):(this.container=this.root,this.host=this.root.host,this.styleSheets=this.root.styleSheets),this.styleSheets=this.root.styleSheets,globalThis.runtimeCSSs.push(this)}host;observing=!1;container;styleSheets;observer;observe(i={subtree:!0,childList:!0}){if(this.observing)return;if(globalThis.runtimeCSSs.find(c=>c!==this&&c.root===this.root)){console.warn("Cannot observe the same root element repeatedly.");return}for(let c of this.styleSheets){let{ownerNode:r}=c;if(r&&r.id==="master"){this.style=r;break}}if(this.style){let c=0;for(;c<this.style.sheet.cssRules.length;c++){let r=this.style.sheet.cssRules[c];switch(r.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let d=/\(prefers-color-scheme: (.*?)\)/.exec(r.conditionText);if(d){let y=r.cssRules[0];if(y?.constructor.name==="CSSStyleRule"&&y.selectorText===":root"){this.pushVariableNativeRule(d[1],y);continue}}}break;case"CSSStyleRule":let l=r.selectorText;if(r.style.length){let d=!0;for(let y=0;y<r.style.length;y++)if(!r.style[y]?.startsWith("--")){d=!1;break}if(d){if(l===":root"){this.pushVariableNativeRule("",r);continue}else if(this.config.themeDriver==="host"){let y=/:host(.*?)/.exec(l);if(y){this.pushVariableNativeRule(y[1],r);continue}}else if(!l.startsWith(".\\$")){this.pushVariableNativeRule(l.slice(1),r);continue}}}break}break}for(;c<this.style.sheet.cssRules.length;c++){let r=d=>{if(d.selectorText){let h=d.selectorText.split(", ")[0].split(" ");for(let m=0;m<h.length;m++){let g=h[m];if(g[0]==="."){let p=g.slice(1),n="";for(let u=0;u<p.length;u++){let f=p[u],o=p[u+1];if(f==="\\"){if(u++,o!=="\\"){n+=o;continue}}else if(ve.includes(f))break;n+=f}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(d.cssRules)for(let y=0;y<d.cssRules.length;y++){let h=r(d.cssRules[y]);if(h)return h}},l=r(this.style.sheet.cssRules[c]);if(l){this.rules.push(l),this.ruleBy[l.className]=l;for(let d=0;d<l.natives.length;d++)l.natives[d].cssRule=this.style.sheet.cssRules[c+d];c+=l.natives.length-1,this.handleRuleWithVariableNames(l,!0),this.handleRuleWithAnimationNames(l,!0),l.definition.insert?.call(l)}}}else this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style);let s=c=>{c.forEach(r=>{Object.prototype.hasOwnProperty.call(this.classesUsage,r)?this.classesUsage[r]++:(this.classesUsage[r]=1,this.add(r))})};return s(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(c=>s(c.classList)),this.observer=new MutationObserver(c=>{let r={},l=[],d=[],y=[],h=(n,u)=>{u?n.classList.forEach(g):n.classList.forEach(m);let f=n.children;for(let o=0;o<f.length;o++){let a=f[o];a.classList&&(d.push(a),h(a,u))}},m=n=>{Object.prototype.hasOwnProperty.call(r,n)?r[n]++:r[n]=1},g=n=>{Object.prototype.hasOwnProperty.call(r,n)?r[n]--:Object.prototype.hasOwnProperty.call(this.classesUsage,n)&&(r[n]=-1)},p=(n,u)=>{for(let f=0;f<n.length;f++){let o=n[f];o.classList&&!d.includes(o)&&!y.includes(o)&&(o.isConnected!==u?(d.push(o),h(o,u)):y.push(o))}};for(let n=0;n<c.length;n++){let u=c[n],{addedNodes:f,removedNodes:o,type:a,target:b}=u;if(a==="attributes"){if(l.find(C=>C.target===b))continue;l.push(u)}else p(f,!1),(!b.isConnected||!d.includes(b))&&p(o,!0)}if(!(!l.length&&!Object.keys(r).length)){for(let{oldValue:n,target:u}of l){let f=d.includes(u),o=u.classList,a=n?n.split(" "):[];if(f){if(u.isConnected)continue;for(let b of a)o.contains(b)||g(b)}else if(u.isConnected){o.forEach(b=>{a.includes(b)||m(b)});for(let b of a)o.contains(b)||g(b)}}for(let n in r){let u=r[n],f=(this.classesUsage[n]||0)+u;f===0?(delete this.classesUsage[n],this.delete(n)):(Object.prototype.hasOwnProperty.call(this.classesUsage,n)||this.add(n),this.classesUsage[n]=f)}}}),this.observer.observe(this.root,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0,this}refresh(i=this.customConfig){let s=document.createElement("style");return s.id="master",this.style.replaceWith(s),this.style=s,super.refresh(i),this}reset(){super.reset();let i=this.style?.sheet;if(i?.cssRules)for(let s=i.cssRules.length-1;s>=0;s--)i.deleteRule(s);return this.style?.remove(),this.style=null,this}disconnect(){return this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.reset(),this}destroy(){return this.disconnect(),globalThis.runtimeCSSs.splice(globalThis.runtimeCSSs.indexOf(this),1),this}};globalThis.RuntimeCSS=ie,globalThis.runtimeCSSs||(globalThis.runtimeCSSs=[]);function ne(e){return new ie(document,e).observe()}ne(window.masterCSSConfig);})();
|
|
1
|
+
"use strict";(()=>{var F={"(":")","'":"'",'"':'"',"{":"}"};function Z(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let a=String(e),i=a.length,s=-1,f="",t,u=a.charCodeAt(0);if(i==1&&u==45)return"\\"+a;for(;++s<i;){if(t=a.charCodeAt(s),t==0){f+="\uFFFD";continue}if(t>=1&&t<=31||t==127||s==0&&t>=48&&t<=57||s==1&&t>=48&&t<=57&&u==45){f+="\\"+t.toString(16)+" ";continue}if(t>=128||t==45||t==95||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){f+=a.charAt(s);continue}f+="\\"+a.charAt(s)}return f}var De=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,re=class{constructor(a,i,s){this.className=a;this.css=s;Object.assign(this,i);let{id:f,definition:t}=i,{analyze:u,transformValue:l,declare:p,transformValueComponents:d,create:m,layer:y,unit:g,colored:o}=t;this.layer=y,this.colored=!!o,t.unit||(t.unit=""),t.separators||(t.separators=[","]);let{scope:c,important:h,themeDriver:n}=s.config,{selectors:r,mediaQueries:b,stylesBy:x,animations:v}=s,R=x[a];m&&m.call(this,a),this.declarations=t.declarations;let C,D;if(y===-8)C=a.slice(f.length-1);else{let V;if(u)[V,D]=u.call(this,a);else{let w=a.indexOf(":");this.prefix=a.slice(0,w+1),V=a.slice(w+1)}this.valueComponents=[],C=V.slice(this.parseValue(this.valueComponents,0,V,g,""))}C[0]==="!"&&(this.important=!0,C=C.slice(1)),this.stateToken=C;let N=(V,w)=>{let E=(S,O,k,j)=>{for(let[P,B]of O)if(P.test(S)){for(let W of B)E(S.replace(P,W),O,k,!0);return}j&&k.push(S)},M=S=>{let O=S.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((B,W)=>W%3?B:B.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),k=[],j="",P=0;for(let B=0;B<O.length;B++){let W=O[B];if(W==="\\"){j+=W+O[++B];continue}!P&&W===","?(k.push(j),j=""):(j+=W,P&&W===")"?P--:W==="("&&P++)}return j&&k.push(j),k},A=[];""in r?E(V,r[""],A,!0):A.push(V);let $={};for(let[S,O]of Object.entries(r)){if(!S)continue;let k=[];for(let j of A)E(j,O,k,!1);k.length&&($[S]=k)}let L=(S,O)=>{let k=O.reduce((j,P)=>(j.push(...M(P)),j),[]);S in w?w[S].push(...k):w[S]=k},I=Object.keys($);if(I.length)for(let S of I)L(S,$[S]);else L("",A)};D?(this.vendorPrefixSelectors={},N(D,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let z=C.split("@"),le=z[0];if(le){this.vendorSuffixSelectors={},N(le,this.vendorSuffixSelectors);for(let V of Object.values(this.vendorSuffixSelectors))for(let w of V){this.hasWhere!==!1&&(this.hasWhere=w.includes(":where("));let E=[":disabled",":active",":focus",":hover"];for(let M=0;M<E.length;M++)if(w.includes(E[M])){(this.priority===-1||this.priority>M)&&(this.priority=M);break}}}else this.vendorSuffixSelectors={"":[""]};let H={},Se=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),ce=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(Se)H[""]=ce?[""]:Object.keys(this.vendorSuffixSelectors);else if(ce)for(let V in this.vendorPrefixSelectors)H[V]=[""];else for(let V in this.vendorPrefixSelectors){let w=H[V]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,V))w.push(V);else for(let E in this.vendorSuffixSelectors)w.push(E)}for(let V=1;V<z.length;V++){let w=z[V];if(w)if(w==="rtl"||w==="ltr")this.direction=w;else{let E="",M,A=De.exec(w);if(A)E=A[1],M=w.slice(E.length);else{this.media={token:w,features:{}};let $=[],L=S=>{if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")$.push("(orientation:"+S+")");else if(S==="motion"||S==="reduced-motion")$.push("(prefers-reduced-motion:"+(S==="motion"?"no-preference":"reduce")+")");else{let O=b[S];if(O&&typeof O=="string")$.push(O);else{let k="",j="",P=0;S.startsWith("<=")?(j="<=",k="max-width"):S.startsWith(">=")||O?(j=">=",k="min-width"):S.startsWith(">")?(j=">",k="min-width",P=.02):S.startsWith("<")&&(j="<",k="max-width",P=-.02);let B=j?S.replace(j,""):S,W=b[B];switch(k){case"max-width":case"min-width":let U={};typeof W=="number"?U={type:"number",value:W+P,unit:"px"}:(U=this.parseValueComponent(B,"px"),U.type==="number"&&U.unit==="px"&&(U.value+=P)),this.media.features[k]=U,U.type==="number"?$.push("("+k+":"+(U.value+U.unit)+")"):$.push("("+k+":"+U.value+")");break}}}},I=w.includes("&");if(I){let S=w.split("&");for(let O of S)L(O)}else L(w);if(this.media.type&&(M=this.media.type),$.length&&(M=$.join(" and ")),M)E="media";else if(!I){this.theme=w;continue}}M&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+M.replace(/\|/g," "))}}let X;this.valueComponents&&(d&&(this.valueComponents=d.call(this,this.valueComponents)),X=this.resolveValue(this.valueComponents,g,[],!1),l&&(X=l.call(this,X)),p?this.declarations=p.call(this,X):f&&(this.declarations={[f]:X}));let ne=[];for(let V in this.declarations){let w=A=>{if(v&&(A.startsWith("animation")||A.startsWith("animation-name"))){let $=A.split(":")[1].split("!important")[0].split(" ").filter(L=>L in this.css.animations&&(!this.animationNames||!this.animationNames.includes(L)));$.length&&(this.animationNames||(this.animationNames=[]),this.animationNames=$)}ne.push(A+((this.important||h)&&!A.endsWith("!important")?"!important":""))},E=V+":",M=this.declarations[V];if(Array.isArray(M))for(let A of M)w(E+A.toString());else w(E+M.toString())}if(ne.length)for(let V in H)for(let w of H[V]){let E="";this.direction&&(E+="[dir="+this.direction+"] ");let M=this.vendorPrefixSelectors[V],A=this.vendorSuffixSelectors[w],$=M.map(S=>S+E),L=S=>$.map(O=>(this.theme&&n!=="media"?n==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(c?c+" ":"")+O).reduce((O,k)=>(O.push(A.reduce((j,P)=>(j.push(k+"."+Z(S)+P),j),[]).join(",")),O),[]).join(","),I=L(a)+(R?R.reduce((S,O)=>S+","+L(O),""):"")+"{"+ne.join(";")+"}";for(let S of Object.keys(this.at).sort((O,k)=>k==="supports"?-1:1))I="@"+S+(S.includes(" ")?"":" ")+this.at[S]+"{"+I+"}";this.theme&&n==="media"&&(I=`@media(prefers-color-scheme:${this.theme}){`+I+"}"),this.natives.push({text:I})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;animationNames;variableNames;resolveValue=(a,i,s,f)=>{let{functions:t}=this.css.config,u="";for(let l of a)switch(l.type){case"function":let p=t&&t[l.name];if(p?.transform&&!l.bypassTransform){let m=p.transform.call(this,this.resolveValue(l.children,p.unit??i,s,f||l.name==="calc"),s);u+=typeof m=="string"?m:this.resolveValue(m,p?.unit??i,s,f)}else u+=l.name+l.symbol+this.resolveValue(l.children,p?.unit??i,s,f)+F[l.symbol];break;case"variable":let d=this.css.variables[l.name];if(d){let m=(y,g)=>{if(d.themes)if(this.theme){let o=d.themes[this.theme]??d;o?.value&&y(o)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(l.name)||this.variableNames.push(l.name),g();else y(d)};switch(d.type){case"string":m(g=>{let o=[];this.parseValue(o,0,g.value,i,"",void 0,f,[...s,l.name]),u+=this.resolveValue(o,i,[...s,l.name],f)},()=>{u+=`var(--${l.name})`});break;case"number":m(g=>{if(f)u+=g.value;else{let o=this.parseValueComponent(g.value,i);u+=o.value+(o.unit??"")}},()=>{u+=i?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let y=l.alpha?"/"+l.alpha:"";m(g=>{u+=`${g.space}(${g.value}${y})`},()=>{u+=`${d.space}(var(--${l.name})${y})`});break}}else u+=`var(--${l.name}${l.fallback?","+l.fallback:""})`;break;case"separator":u+=l.text||l.value;break;case"number":u+=l.value+(l.unit||"");break;default:u+=l.value;break}return u};get text(){return this.natives.map(a=>a.text).join("")}parseValue=(a,i,s,f,t,u,l=!1,p=[])=>{let d=u===void 0,m=!d&&(u.endsWith("$")||u.endsWith("var")),g=(n=>n==="'"||n==='"')(t),o=[","];this.definition.separators?.length&&o.push(...this.definition.separators);let c="",h=()=>{if(c){let n=!1;if(!m||a.length){let r=(b,x)=>{let v=Object.prototype.hasOwnProperty.call(this.variables,b)?this.variables[b]:Object.prototype.hasOwnProperty.call(this.css.variables,b)?this.css.variables[b]:void 0;if(v){let R=v.name??b;if(!p.includes(R)){n=!0;let C={type:"variable",name:R,variable:this.css.variables[R]};x&&(C.alpha=x),a.push(C)}}};if(r(c),!n&&this.colored){let[b,x]=c.split("/");r(b,x)}}n||(l?a.push({type:"string",value:c}):a.push(this.parseValueComponent(c,f))),c=""}};for(;i<s.length;i++){let n=s[i];if(n===t){if(g){let r=0;for(let b=c.length-1;c[b]==="\\";b--)r++;if(r%2){c+=n;continue}else h()}else h();return i}else if(!g&&n in F){let r=c,b={type:"function",name:r,symbol:n,children:[]};a.push(b),c="";let x=n==="("?this.css.config.functions?.[r]:void 0;!this.colored&&x?.colored&&(this.colored=!0),i=this.parseValue(b.children,++i,s,x?.unit??f,F[n],r||u||"",l||r==="calc")}else if((n==="|"||n===" ")&&t!=="}"&&(!g||u==="path"))h(),a.push({type:"separator",value:" "});else{if(!g){if(n===".")if(isNaN(+s[i+1])){if(d)break}else s[i-1]==="-"&&(c+="0");else if(o.includes(n)){h(),a.push({type:"separator",value:n,text:(n===","?"":" ")+n+(n===","?"":" ")});continue}else if(d&&(n==="#"&&(c||a.length&&a[a.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(n)))break}c+=n}}return h(),i};parseValueComponent(a,i=this.definition.unit){let s=i??this.definition.unit,f="",t;if(typeof a=="number")return s&&!f?((s==="rem"||s==="em")&&(t=a/(this.css.config.rootSize||1)),f=s||""):t=a,{value:t,unit:f,type:"number"};if(s){if(/^\d+\/\d+/.test(a)){let[l,p]=a.split("/");return{value:+l/+p*100,unit:"%",type:"number"}}let u=a.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(u)return t=+u[1],f=u[3]||"",f||((s==="rem"||s==="em")&&(t=t/(this.css.config.rootSize||1)),f=s||""),{value:t,unit:f,type:"number"}}return{value:a,type:"string"}}};var Ne={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},fe=Ne;var we={"::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=we;var ke={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=ke;var Ve={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"}}},he=Ve;function K(e){e.startsWith("#")&&(e=e.slice(1));let a,i,s,f;return e.length===3||e.length===4?(a=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),s=parseInt(e[2]+e[2],16),f=e.length===4?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(e.length===6||e.length===8)&&(a=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16),f=e.length===8?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[a,i,s,f]}function me(e,a,i){return((1<<24)+(e<<16)+(a<<8)+i).toString(16).slice(1)}function T(e){typeof e=="string"&&(e={"":e});let a=""in e,i=!1;for(let s in e)if(s&&+s>=100){i=!0;break}if(!i&&(!a||Object.keys(e).length>1)){let s=0,f="0"in e?K(e[0]):[0,0,0],t,u,l=[],p=()=>{let d=t-s,m=u.map((y,g)=>(y-f[g])/d);for(let y of l){let g=y-s,o=f.map((c,h)=>Math.round(c+m[h]*g));e[y]="#"+me(o[0],o[1],o[2])}};for(let d=1;d<100;d++)d in e?(l.length?(t=d,u=K(e[d]),p(),l.length=0,f=u):f=K(e[d]),s=d):l.push(d);l.length&&(t=100,u="100"in e?K(e[100]):[255,255,255],p())}return a||(e[""]=e[i?"500":"50"]),e}var Oe={"font-family":{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"]},"box-size":{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{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:T({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:T({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:T({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:T({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:T({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:T({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:T({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:T({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:T({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:T({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:T({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:T({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:T({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:T({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:T({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:T({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:T({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:T({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:T({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:T({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},pe=Oe;var _=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Y=function(e){return e.length<2||e.find(i=>i.type==="string"&&_.includes(i.value)||i.type==="variable"&&_.includes(i.variable?.value))||e.push({type:"separator",value:" "},{type:"string",value:"solid"}),e},je={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(e){let a=0;for(;a<e.length&&!(e[a]==="{"&&e[a-1]!=="\\");a++);return[e.slice(a),e.slice(0,a)]},declare(e){let a={},i=p=>{let d=p.indexOf(":");if(d!==-1){let m=p.slice(0,d);a[m]=p.slice(d+1)}},s=p=>{let d=m=>{let y=m.slice(Z(p.className).length).match(/\{(.*)\}/)?.[1].split(";");if(y)for(let g of y)i(g)};for(let m of p.natives)d(m.text);if(p.animationNames){this.animationNames||(this.animationNames=[]);for(let m of p.animationNames)this.animationNames.includes(m)||this.animationNames.push(m)}if(p.variableNames){this.variableNames||(this.variableNames=[]);for(let m of p.variableNames)this.variableNames.includes(m)||this.variableNames.push(m)}},f=[],t="",u=()=>{t&&(f.push(t.replace(/ /g,"|")),t="")},l=1;(function p(d){for(;l<e.length;l++){let m=e[l];if(!d){if(m===";"){u();continue}if(m==="}")break}if(t+=m,d===m){if(d==="'"||d==='"'){let y=0;for(let g=t.length-2;t[g]==="\\";g--)y++;if(y%2)continue}break}else m in F&&d!=="'"&&d!=='"'&&(l++,p(F[m]))}})(""),u();for(let p of f){let d=this.css.create(p);if(d.length)for(let m of d)s(m);else i(p)}return a}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},"font-size":{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-3},"font-weight":{match:["f(?:ont)?",["bolder"]],layer:-3},"font-family":{match:["f(?:ont)?"],layer:-3},"font-smoothing":{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-3,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"}}}},"font-style":{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-3,unit:"deg"},"font-variant-numeric":{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-3},"font-variant":{layer:-7},"font-feature-settings":{match:/^font-feature:/,layer:-3},font:{match:/^f:/,layer:-7,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},color:{match:/^(?:color|fg|foreground):/,layer:-3,colored:!0,variables:["foreground"]},"margin-left":{match:/^ml:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-right":{match:/^mr:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-top":{match:/^mt:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-bottom":{match:/^mb:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-x":{match:/^(?:mx|margin-x):/,unit:"rem",layer:-5,declare(e){return{"margin-left":e,"margin-right":e}},variables:["spacing"]},"margin-y":{match:/^(?:my|margin-y):/,unit:"rem",layer:-5,declare(e){return{"margin-top":e,"margin-bottom":e}},variables:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-7,variables:["spacing"]},"margin-inline-start":{match:/^mis:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline-end":{match:/^mie:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline":{match:/^mi:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-left":{match:/^pl:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-right":{match:/^pr:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-top":{match:/^pt:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-bottom":{match:/^pb:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-x":{match:/^(?:px|padding-x):/,unit:"rem",layer:-5,declare(e){return{"padding-left":e,"padding-right":e}},variables:["spacing"]},"padding-y":{match:/^(?:py|padding-y):/,unit:"rem",layer:-5,declare(e){return{"padding-top":e,"padding-bottom":e}},variables:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-inline-start":{match:/^pis:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline-end":{match:/^pie:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline":{match:/^pi:/,unit:"rem",layer:-7,variables:["spacing"]},"flex-basis":{variables:["box-size"],unit:"rem",layer:-3},"flex-wrap":{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-3},"flex-grow":{layer:-3},"flex-shrink":{layer:-3},"flex-direction":{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-3},flex:{layer:-7},display:{match:/^d:/,layer:-3},width:{match:/^w:/,unit:"rem",layer:-3,variables:["box-size"]},height:{match:/^h:/,unit:"rem",layer:-3,variables:["box-size"]},"min-width":{match:/^min-w:/,unit:"rem",layer:-3,variables:["box-size"]},"min-height":{match:/^min-h:/,unit:"rem",layer:-3,variables:["box-size"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[a,i]=e.split(" x ");return{width:a,height:i}}},"min-box":{match:/^min:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[a,i]=e.split(" x ");return{"min-width":a,"min-height":i}}},"max-box":{match:/^max:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[a,i]=e.split(" x ");return{"max-width":a,"max-height":i}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["box-size",["slice","clone"]],layer:-3,declare(e){return{"box-decoration-break":e,"-webkit-box-decoration-break":e}}},contain:{layer:-3},content:{layer:-3},"counter-increment":{layer:-3},"counter-reset":{layer:-3},"letter-spacing":{match:/^ls:/,layer:-3,unit:"em"},"line-height":{match:/^lh:/,layer:-3},"object-fit":{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-3},"object-position":{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-3},"text-align":{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-3},"text-decoration-color":{match:["text-decoration"],layer:-3,colored:!0,variables:["foreground"]},"text-decoration-style":{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-3},"text-decoration-thickness":{match:["text-decoration",["from-font"]],numeric:!0,layer:-3,unit:"em"},"text-decoration-line":{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-3},"text-decoration":{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-7,variables:["foreground"]},"text-underline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"text-overflow":{match:["t(?:ext)?",["ellipsis","clip"]],layer:-3},"text-orientation":{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-3},"text-transform":{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-3},"text-rendering":{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-3},"text-indent":{unit:"rem",layer:-3},"vertical-align":{match:/^(?:v|vertical):/,layer:-3},columns:{match:/^(?:columns|cols):/,layer:-7},"white-space":{layer:-3},top:{layer:-3,unit:"rem",variables:["spacing"]},bottom:{layer:-3,unit:"rem",variables:["spacing"]},left:{layer:-3,unit:"rem",variables:["spacing"]},right:{layer:-3,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-7,variables:["spacing"]},lines:{match:/^lines:/,declare(e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e}}},"max-height":{match:/^max-h:/,unit:"rem",layer:-3,variables:["box-size"]},"max-width":{match:/^max-w:/,unit:"rem",layer:-3,variables:["box-size"]},opacity:{layer:-3},visibility:{layer:-3},clear:{layer:-3},float:{layer:-3},isolation:{layer:-3},"overflow-x":{layer:-3,declare(e){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},"overflow-y":{layer:-3,declare(e){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-7,declare(e){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},"overscroll-behavior-x":{layer:-3},"overscroll-behavior-y":{layer:-3},"overscroll-behavior":{layer:-7},"z-index":{match:/^z:/,layer:-3},position:{layer:-3},cursor:{layer:-3},"pointer-events":{layer:-3},resize:{layer:-3},"touch-action":{layer:-3},"word-break":{layer:-3},"word-spacing":{layer:-3,unit:"em"},"user-drag":{layer:-3,declare(e){return{"user-drag":e,"-webkit-user-drag":e}}},"user-select":{layer:-3,declare(e){return{"user-select":e,"-webkit-user-select":e}}},"text-shadow":{unit:"rem",layer:-3,colored:!0},"text-size":{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(e){return{"font-size":e,"line-height":`calc(${e} + ${.875}em)`}}},"text-fill-color":{match:["(?:text-fill|text|t)"],layer:-3,colored:!0,variables:["foreground"],declare(e){return{"-webkit-text-fill-color":e}}},"text-stroke-width":{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-3,declare(e){return{"-webkit-text-stroke-width":e}}},"text-stroke-color":{match:["text-stroke"],layer:-3,colored:!0,variables:["foreground"],declare(e){return{"-webkit-text-stroke-color":e}}},"text-stroke":{unit:"rem",layer:-3,declare(e){return{"-webkit-text-stroke":e}}},"box-shadow":{match:/^s(?:hadow)?:/,unit:"rem",layer:-3,colored:!0},"table-layout":{layer:-3},"transform-box":{match:["transform"],layer:-3},"transform-style":{match:["transform",["flat","preserve-3d"]],layer:-3},"transform-origin":{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-3},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-3,analyze(e){return[e.startsWith("transform")?e.slice(10):e]},variables:["spacing"]},"transition-property":{match:/^~property:/,layer:-3},"transitionTiming-function":{match:/^~easing:/,layer:-3},"transition-duration":{match:/^~duration:/,layer:-3,unit:"ms"},"transition-delay":{match:/^~delay:/,layer:-3,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let a=e.indexOf(":");return this.prefix=e.slice(0,a+1),[e.slice(a+1)]}},layer:-7},"animation-delay":{match:/^@delay:/,layer:-3,unit:"ms"},"animation-direction":{match:/^@direction:/,layer:-3},"animation-duration":{match:/^@duration:/,layer:-3,unit:"ms"},"animation-fill-mode":{match:/^@fill:/,layer:-3},"animation-iteration-count":{match:/^@iteration:/,layer:-3},"animation-name":{match:/^@name:/,layer:-3},"animation-play-state":{match:/^@play:/,layer:-3},"animation-timing-function":{match:/^@easing:/,layer:-3},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-7,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let a=e.indexOf(":");return this.prefix=e.slice(0,a+1),[e.slice(a+1)]}}},"border-collapse":{match:["b(?:order)?",["collapse","separate"]],layer:-3},"border-spacing":{unit:"rem",layer:-3},"border-top-color":{match:["b(?:t|order-top(?:-color)?)"],layer:-3,colored:!0},"border-bottom-color":{match:["b(?:b|order-bottom(?:-color)?)"],layer:-3,colored:!0},"border-left-color":{match:["b(?:l|order-left(?:-color)?)"],layer:-3,colored:!0},"border-right-color":{match:["b(?:r|order-right(?:-color)?)"],layer:-3,colored:!0},"border-x-color":{match:["b(?:x|order-x(?:-color)?)"],layer:-5,colored:!0,declare(e){return{"border-left-color":e,"border-right-color":e}}},"border-y-color":{match:["b(?:y|order-y(?:-color)?)"],layer:-5,colored:!0,declare(e){return{"border-top-color":e,"border-bottom-color":e}}},"border-color":{match:["b(?:order)?(?:-color)?"],layer:-7,colored:!0},"border-top-left-radius":{match:/^r(?:tl|lt):/,unit:"rem",layer:-3},"border-top-right-radius":{match:/^r(?:tr|rt):/,unit:"rem",layer:-3},"border-bottom-left-radius":{match:/^r(?:bl|lb):/,unit:"rem",layer:-3},"border-bottom-right-radius":{match:/^r(?:br|rb):/,unit:"rem",layer:-3},"border-top-radius":{match:/^rt:/,unit:"rem",layer:-5,declare(e){return{"border-top-left-radius":e,"border-top-right-radius":e}}},"border-bottom-radius":{match:/^rb:/,unit:"rem",layer:-5,declare(e){return{"border-bottom-left-radius":e,"border-bottom-right-radius":e}}},"border-left-radius":{match:/^rl:/,unit:"rem",layer:-5,declare(e){return{"border-top-left-radius":e,"border-bottom-left-radius":e}}},"border-right-radius":{match:/^rr:/,unit:"rem",layer:-5,declare(e){return{"border-top-right-radius":e,"border-bottom-right-radius":e}}},"border-radius":{match:/^r:/,unit:"rem",layer:-7},"border-top-style":{match:["b(?:t|order-top(?:-style)?)",_],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",_],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",_],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",_],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",_],layer:-5,declare(e){return{"border-left-style":e,"border-right-style":e}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",_],layer:-5,declare(e){return{"border-top-style":e,"border-bottom-style":e}}},"border-style":{match:["b(?:order)?(?:-style)?",_],layer:-7},"border-top-width":{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-bottom-width":{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-left-width":{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-right-width":{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-x-width":{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e){return{"border-left-width":e,"border-right-width":e}}},"border-y-width":{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e){return{"border-top-width":e,"border-bottom-width":e}}},"border-width":{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-7},"border-image-outset":{unit:"rem",layer:-3},"border-image-repeat":{match:["border-image",["stretch","repeat","round","space"]],layer:-3},"border-image-slice":{layer:-3},"border-image-source":{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-3},"border-image-width":{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-3},"border-image":{layer:-7},"border-top":{match:/^bt:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Y},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Y},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Y},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Y},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:Y,declare(e){return{"border-left":e,"border-right":e}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:Y,declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:Y},"background-attachment":{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-3},"background-blend-mode":{layer:-3},"background-color":{match:["(?:bg|background)"],layer:-3,colored:!0},"background-clip":{match:["(?:bg|background)",["text"]],layer:-3,declare(e){return{"-webkit-background-clip":e,"background-clip":e}}},"background-origin":{match:["(?:bg|background)"],layer:-3},"background-position":{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-3,unit:"px"},"background-repeat":{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-3},"background-size":{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-3},"background-image":{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},background:{match:/^bg:/,colored:!0,layer:-7},gradient:{match:/^gradient\(/,layer:-3,colored:!0,declare(e){return{"background-image":"linear-"+e}}},"mix-blend-mode":{match:/^blend:/,layer:-3},"backdrop-filter":{match:/^bd:/,layer:-3,colored:!0,declare(e){return{"backdrop-filter":e,"-webkit-backdrop-filter":e}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-3,colored:!0},fill:{match:/^fill:/,layer:-3,colored:!0,variables:["foreground"]},"stroke-dasharray":{layer:-3},"stroke-dashoffset":{layer:-3,variables:["spacing"]},"stroke-width":{match:["stroke(?:-width)?"],numeric:!0,layer:-3},stroke:{match:["stroke"],layer:-3,colored:!0,variables:["foreground"]},x:{layer:-3,variables:["spacing"]},y:{layer:-3,variables:["spacing"]},cx:{layer:-3,variables:["spacing"]},cy:{layer:-3,variables:["spacing"]},rx:{layer:-3},ry:{layer:-3},"grid-column-start":{match:/^grid-col-start:/,layer:-3},"grid-column-end":{match:/^grid-col-end:/,layer:-3},"grid-column":{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-columns":{match:/^grid-cols:/,declare(e){return{display:"grid","grid-template-columns":"repeat("+e+",minmax(0,1fr))"}},layer:-1},"grid-row-start":{layer:-3},"grid-row-end":{layer:-3},"grid-row":{match:/^grid-row-span:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-rows":{match:/^grid-rows:/,declare(e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+",minmax(0,1fr))"}},layer:-1},"grid-auto-columns":{match:/^grid-auto-cols:/,layer:-3,variables:["box-size"]},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3,variables:["box-size"]},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem",variables:["box-size"]},"grid-template-rows":{layer:-3,unit:"rem",variables:["box-size"]},"grid-template":{layer:-7},"grid-area":{layer:-7},grid:{layer:-7},"column-gap":{match:/^gap-x:/,unit:"rem",layer:-3,variables:["spacing"]},"row-gap":{match:/^gap-y:/,unit:"rem",layer:-3,variables:["spacing"]},gap:{unit:"rem",layer:-7,variables:["spacing"]},order:{match:/^o:/,layer:-3},"break-inside":{layer:-3},"break-before":{layer:-3},"break-after":{layer:-3},"aspect-ratio":{match:/^aspect:/,layer:-3},"column-span":{match:/^col-span:/,layer:-3},"align-content":{match:/^ac:/,layer:-3},"align-items":{match:/^ai:/,layer:-3},"align-self":{match:/^as:/,layer:-3},"justify-content":{match:/^jc:/,layer:-3},"justify-items":{match:/^ji:/,layer:-3},"justify-self":{match:/^js:/,layer:-3},"place-content":{layer:-7},"place-items":{layer:-7},"place-self":{layer:-7},"list-style-position":{match:["list-style",["inside","outside"]],layer:-3},"list-style-type":{match:["list-style",["disc","decimal"]],layer:-3},"list-style-image":{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},"list-style":{layer:-7},"outline-color":{match:["outline"],layer:-3,colored:!0},"outline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"outline-style":{match:["outline",_],layer:-3},"outline-width":{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-3},outline:{unit:"rem",layer:-7,colored:!0,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:Y},"accent-color":{match:/^accent:/,layer:-3,colored:!0,variables:["foreground"]},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0,variables:["foreground"]},"scroll-behavior":{layer:-3},"scroll-margin-left":{match:/^scroll-ml:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-right":{match:/^scroll-mr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-top":{match:/^scroll-mt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{match:/^scroll-mb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-x":{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-5,declare(e){return{"scroll-margin-left":e,"scroll-margin-right":e}},variables:["spacing"]},"scroll-margin-y":{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-5,declare(e){return{"scroll-margin-top":e,"scroll-margin-bottom":e}},variables:["spacing"]},"scroll-margin":{match:/^scroll-m:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-padding-left":{match:/^scroll-pl:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-right":{match:/^scroll-pr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-top":{match:/^scroll-pt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{match:/^scroll-pb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-x":{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-5,declare(e){return{"scroll-padding-left":e,"scroll-padding-right":e}},variables:["spacing"]},"scroll-padding-y":{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-5,declare(e){return{"scroll-padding-top":e,"scroll-padding-bottom":e}},variables:["spacing"]},"scroll-padding":{match:/^scroll-p:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-snap-align":{match:["scroll-snap",["start","end","center"]],layer:-3},"scroll-snap-stop":{match:["scroll-snap",["normal","always"]],layer:-3},"scroll-snap-type":{match:["scroll-snap",["x","y","block","inline","both"]],layer:-3},"will-change":{layer:-3},"writing-mode":{match:/^writing:/,layer:-3},direction:{layer:-3},"shape-outside":{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-3},"shape-margin":{match:["shape"],numeric:!0,unit:"rem",layer:-3,variables:["spacing"]},"shape-image-threshold":{layer:-3},"clip-path":{match:/^clip:/,layer:-3},quotes:{layer:-3},"mask-image":{layer:-3,declare(e){return{"mask-image":e,"-webkit-mask-image":e}}}},ge=je;var se={$:{colored:!0,transform(e){let a,i,s=e.indexOf(",");return s!==-1?(a=e.slice(0,s),i=e.slice(s+1)):a=e,[{type:"variable",name:a,fallback:i}]}},calc:{transform(e,a){let i=[],s=0,f=(t,u,l,p)=>{let d=i!==t,m=[],y=!1,g=!1,o=!1,c=!1,h,n="",r=(v,R="",C="")=>{if(h===!1&&v!==" "&&this.definition.unit&&(h=void 0,c||b()),n){if(!y&&!l){let D=this.parseValueComponent(n);if(!g&&isNaN(+n)&&D.type==="number"&&D.unit!=="%"&&(g=!0),c)isNaN(+n)?D.type==="number"?(t.push(D),D.unit!=="%"&&(o=!0)):t.push(D):t.push({type:"number",value:+n});else if(d){let N={type:"string",value:n};m.push(N),t.push(N)}else t.push(D)}else t.push({type:"string",value:n});n=""}v&&((v==="+"||v==="-")&&x(),R&&e[s-1]===" "&&(R=""),C&&e[s+1]===" "&&(C=""),u?t.push({type:"separator",value:v,text:v}):t.push({type:"separator",value:v,text:R+v+C})),y=!1},b=()=>{(this.definition.unit==="rem"||this.definition.unit==="em")&&t.push({type:"separator",value:"/",text:" / "},{type:"number",value:this.css.config.rootSize}),t.push({type:"separator",value:"*",text:" * "},{type:"number",value:1,unit:this.definition.unit})},x=()=>{c&&!o&&!p&&(!d||g)&&b(),c=!1,o=!1};for(;s<e.length;s++){let v=e[s];if(v==="("){let R=/^([+-])/.exec(n);R&&t.push({type:"string",value:R[1]});let C=R?n.slice(1):n,D={type:"function",name:C,symbol:v,children:[],bypassTransform:C==="calc"};t.push(D),n="",s++;let N=C==="$"||C==="var";h=f(D.children,C!==""&&C!=="calc"&&(N||Object.prototype.hasOwnProperty.call(se,C)),y||N||c&&o,c),!h&&C==="$"&&(h=this.css.variables[D.children[0].value]?.type==="string"),h&&(g=!0,o=!0)}else if(v===")"){if(r(""),g)for(let R of m)Object.assign(R,this.parseValueComponent(R.value));return g}else if(v===",")r(v,""," ");else if(v===" ")r(v);else{let R=e[s-1];switch(v){case"+":!n&&R!==")"?n+=v:r(v," "," ");break;case"-":!n&&R!==")"?n+=v:r(v," "," ");break;case"*":this.definition.unit&&(c=!0),r(v," "," ");break;case"/":this.definition.unit&&(c=!0),r(v," "," "),y=!0;break;default:n+=v;break}}}r(""),x()};return f(i,!1,!1,!1),"calc("+this.resolveValue(i,se.calc.unit??this.definition.unit,a,!0)+")"}},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}},ye=se;var Q={mediaQueries:fe,selectors:ue,semantics:de,rules:ge,functions:ye,animations:he,variables:pe,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};function G(e,a=""){return Object.entries(e).reduce((i,[s,f])=>{let t=a?`${a}${s?"-"+s:""}`:s;return typeof f=="object"&&!Array.isArray(f)?Object.assign(i,G(f,t)):i[t]=f,i},{})}function ve(e){let a=typeof Buffer<"u"?Buffer:null;return!!(a&&e instanceof a||e instanceof Date||e instanceof RegExp)}function Re(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let a=Buffer.alloc(e.length);return e.copy(a),a}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function Ce(e){let a=[];return e.forEach(function(i,s){typeof i=="object"&&i!==null?Array.isArray(i)?a[s]=Ce(i):ve(i)?a[s]=Re(i):a[s]=q({},i):a[s]=i}),a}function be(e,a){return a==="__proto__"?void 0:e[a]}function q(...e){let a={},i,s;return e.forEach(function(f){typeof f!="object"||f===null||Array.isArray(f)||Object.keys(f).forEach(function(t){if(s=be(a,t),i=be(f,t),i!==a)if(typeof i!="object"||i===null){a[t]=i;return}else if(Array.isArray(i)){a[t]=Ce(i);return}else if(ve(i)){a[t]=Re(i);return}else if(typeof s!="object"||s===null||Array.isArray(s)){a[t]=q({},i);return}else{a[t]=q(s,i);return}})}),a}function J(...e){let a=f=>{let t=q({},f),u=l=>{for(let p in l){let d=l[p];typeof d=="object"&&!Array.isArray(d)?u(d):p&&!p.startsWith("@")&&(l[p]={"":d})}};return t.styles?u(t.styles):t.styles={},t.mediaQueries?u(t.mediaQueries):t.mediaQueries={},t.variables?u(t.variables):t.variables={},t},i=[];for(let f of e)(function t(u){if(u.extends?.length)for(let l of u.extends)t("config"in l?l.config:l);i.push(a(u))})(f);let s=i[0];for(let f=1;f<i.length;f++){let t=i[f];s=q(s,t),Object.prototype.hasOwnProperty.call(t,"animations")&&s.animations&&Object.assign(s.animations,t.animations)}return s}var ee=class e{constructor(a=Q){this.customConfig=a;a?.override?this.config=J(a):this.config=J(Q,a),this.resolve(),this.constructor===e&&ae.push(this)}static config=Q;rules=[];ruleBy={};classesUsage={};config;RegisteredSemanticRules=[];RegisteredRules=[];resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.RegisteredRules.length=0,this.RegisteredSemanticRules.length=0,this.variablesNativeRules={},this.hasKeyframesRule=!1;let a={current:void 0,currentColor:void 0,transparent:void 0},{styles:i,selectors:s,variables:f,semantics:t,mediaQueries:u,rules:l,animations:p}=this.config;function d(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(s){let o=G(s);for(let c in o){let h=o[c],n=new RegExp(d(c)+"(?![a-z-])");for(let r of Array.isArray(h)?h:[h]){let b=r.match(/^::-[a-z]+-/m)?.[0]??"",x=this.selectors[b];x||(x=this.selectors[b]=[]);let v=x.find(([R])=>R===n);v||(v=[n,[]],x.push(v)),v[1].push(r)}}}if(f){let o={},c=(h,n,r)=>{if(!h)return;let b=(v,R,C,D)=>{if(R===void 0)return;if(R.type==="color"){if(D){let z=R.value.indexOf("/");R={...R,value:z===-1?R.value+" / "+(D.startsWith("0.")?D.slice(1):D):R.value.slice(0,z+2)+(+R.value.slice(z+2)*+D).toString().slice(1)}}a[v]=void 0}let N=C??r;if(N!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,v)){let z=this.variables[v];N?(z.themes||(z.themes={}),z.themes[N]=R):(z.value=R.value,R.type==="color"&&(z.space=R.space))}else if(N){let z={type:R.type,themes:{[N]:R}};R.type==="color"&&(z.space=R.space),this.variables[v]=z}else this.variables[v]=R;else this.variables[v]=R},x=typeof h;if(x==="object")if(Array.isArray(h))b(n,{type:"string",value:h.join(",")});else{let v=Object.keys(h);for(let R of v)R===""||R.startsWith("@")?c(h[R],n,R||v.some(C=>C.startsWith("@"))?R.slice(1):void 0):c(h[R],n+"-"+R,void 0)}else if(x==="number")b(n,{type:"number",value:h}),b("-"+n,{type:"number",value:h*-1});else if(x==="string"){let v=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(h);if(v)Object.prototype.hasOwnProperty.call(o,n)||(o[n]={}),o[n][r]=()=>{delete o[n][r];let[R,C]=v[1].split("@");if(R){if(Object.prototype.hasOwnProperty.call(o,R))for(let N of Object.keys(o[R]))o[R][N]?.();let D=this.variables[R];if(D)if(C===void 0&&D.themes){b(n,{type:D.type,value:D.value,space:D.space},"",v[2]);for(let N in D.themes)b(n,D.themes[N],N,v[2])}else{let N=C!==void 0?D.themes?.[C]:D;if(N){let z={type:N.type,value:N.value};N.type==="color"&&(z.space=N.space),b(n,z,void 0,v[2])}}}};else{let R=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(h);if(R){let[C,D,N,z]=K(R[1]);b(n,{type:"color",value:`${C} ${D} ${N}${z===1?"":" / "+z}`,space:"rgb"})}else{let C=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(h);if(C)b(n,{type:"color",value:C[1]+" "+C[2]+" "+C[3]+(C[4]?" / "+(C[4].startsWith("0.")?C[4].slice(1):C[4]):""),space:"rgb"});else{let D=/^hsl\((.*?)\)$/.exec(h);D?b(n,{type:"color",value:D[1],space:"hsl"}):b(n,{type:"string",value:h})}}}}};for(let h in f)c(f[h],h);for(let h of Object.keys(o))for(let n of Object.keys(o[h]))o[h][n]?.()}if(u&&(this.mediaQueries=G(u)),p)for(let o in p){let c=this.animations[o]={},h=p[o];for(let n in h){let r=c[n]={},b=h[n];for(let x in b)r[x]=b[x]}}let m=i?G(i):{},y=Object.keys(m),g=o=>{if(Object.prototype.hasOwnProperty.call(this.styles,o))return;let c=this.styles[o]=[],h=m[o];if(!h)return;let n=h.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let r of n){let b=x=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,x)){let v=this.stylesBy[x];v.includes(o)||v.push(o)}else this.stylesBy[x]=[o];c.includes(x)||c.push(x)};if(y.includes(r)){g(r);for(let x of this.styles[r])b(x)}else b(r)}};for(let o of y)g(o);if(t&&Object.entries(t).sort((o,c)=>o[0].localeCompare(c[0])).forEach(([o,c],h)=>{this.RegisteredSemanticRules.push({id:"."+o,match:new RegExp("^"+d(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:h,definition:{declarations:c,layer:-8}})}),l){let o=Object.entries(l).sort((n,r)=>n[1].layer!==r[1].layer?(r[1].layer||0)-(n[1].layer||0):r[0].localeCompare(n[0])),c=o.length,h=Object.keys(a);o.forEach(([n,r],b)=>{let x={id:n,variables:{},order:this.RegisteredSemanticRules.length+c-1-b,definition:r};this.RegisteredRules.push(x);let v=r.match,R=C=>{for(let D in this.variables)if(D.startsWith(C+"-")||D.startsWith("-"+C+"-")){let N=D.slice(C.length+(C.startsWith("-")?0:1));x.variables[N]={...this.variables[D],name:D}}};if(r.variables)for(let C of r.variables)R(C);if(R(n),v)if(Array.isArray(v)){let[C,D=[]]=v,N=[];D.length&&N.push(`(?:${D.join("|")})(?![a-zA-Z0-9-])`),Object.keys(x.variables).length&&N.push(`(?:${Object.keys(x.variables).join("|")})(?![a-zA-Z0-9-])`),r.colored&&N.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${h.join("|")})(?![a-zA-Z0-9-])`),r.numeric&&N.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),N.length&&(x.match=new RegExp(`^${C}:(?:${N.join("|")})[^|]*?(?:@|$)`))}else x.match=v})}}match(a){for(let i of this.RegisteredRules)if(i.match?.test(a)||(i.definition.layer===-2||i.definition.layer===-6||i.definition.layer===-3||i.definition.layer===-7)&&a.startsWith(i.id+":"))return i;for(let i of this.RegisteredSemanticRules)if(i.match?.test(a))return i}create(a){let i=s=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,s))return this.ruleBy[s];let f=this.match(s);if(f)return new re(s,f,this)};return(Object.prototype.hasOwnProperty.call(this.styles,a)?this.styles[a].map(s=>i(s)):[i(a)]).filter(s=>s&&s.text)}refresh(a=this.customConfig){a?.override?this.config=J(a):this.config=J(Q,a),this.resolve(),this.rules.length=0,this.ruleBy={};for(let i in this.classesUsage)this.add(i);return this}reset(){this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules={};for(let a in this.animations){let i=this.animations[a];i.usage=0,i.native=void 0}for(let a in this.variables){let i=this.variables[a];i.usage=0}return this}destroy(){return this.reset(),ae.splice(ae.indexOf(this),1),this}add(a){let i=this.create(a);return i.length?(this.insert(i),!0):!1}delete(a){let i=this.style?.sheet,s=f=>{let t=this.ruleBy[f];if(!(!t||Object.prototype.hasOwnProperty.call(this.stylesBy,f)&&this.stylesBy[f].some(u=>Object.prototype.hasOwnProperty.call(this.classesUsage,u)))){if(i&&t.natives.length){let u=t.natives[0];for(let l=0;l<i.cssRules.length;l++)if(i.cssRules[l]===u.cssRule){for(let d=0;d<t.natives.length;d++)i.deleteRule(l);break}}if(this.rules.splice(this.rules.indexOf(t),1),delete this.ruleBy[f],t.variableNames)for(let u of t.variableNames){let l=this.variables[u];if(l.usage||(l.usage=0),!--l.usage){let p=d=>{let m=this.variablesNativeRules[d];if(m.cssRule.style.removeProperty("--"+u),!m.cssRule.style.length){let y=this.rules[0],g=y.natives.indexOf(m);i?.deleteRule(g),y.natives.splice(g,1),delete this.variablesNativeRules[d],y.natives.length||(this.rules.splice(0,1),this.variablesNativeRules={})}};if(l.value&&p(""),l.themes)for(let d in l.themes)p(d)}}if(t.animationNames){let u=Object.keys(this.variablesNativeRules).length?1:0,l=this.rules[u];for(let p of t.animationNames){let d=this.animations[p];if(d.usage||(d.usage=0),!--d.usage&&d.native){let m=l.natives.indexOf(d.native);this.style.sheet?.deleteRule(Object.keys(this.variablesNativeRules).length+m),l.natives.splice(m,1),d.native=void 0}}l.natives.length||(this.rules.splice(u,1),this.hasKeyframesRule=!1)}t.definition.delete?.call(t,f)}};if(Object.prototype.hasOwnProperty.call(this.styles,a)){for(let f of this.styles[a])Object.prototype.hasOwnProperty.call(this.classesUsage,f)||s(f);delete this.ruleBy[a]}else s(a)}insert(a){for(let i of a){if(this.ruleBy[i.className])continue;let s,f=this.rules.length-1,{media:t,order:u,priority:l,hasWhere:p,className:d}=i,m=(o,c,h)=>{let n=o;for(;n<=f;n++){let r=this.rules[n];if(c?.(r))return h?-1:n-1;if(h?.(r))return n}return h?-1:n-1},y,g;if(t){let o=this.rules.findIndex(c=>c.media);if(o===-1)s=f+1;else{let{"max-width":c,"min-width":h}=t.features;if(c||h){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)s=f+1;else if(c&&h){if(l===-1?(y=m(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),g=m(n,r=>r.priority!==-1)):(y=m(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),g=f),y!==-1){let r=c.value-h.value,b=g,x=y;for(y=void 0;b>=x;b--){let{"max-width":v,"min-width":R}=this.rules[b].media.features,C=v.value-R.value;if(C<r)g=b-1;else if(C===r)y=b;else break}}if(y!==-1&&y!==void 0){let r=c.value-h.value;for(let b=g;b>=y;b--){let{"max-width":x,"min-width":v}=this.rules[b].media.features,R=x.value-v.value;if(R<r)g=b-1;else if(R>r){y=b+1;break}}}}else if(h){if(l===-1?(y=m(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),g=m(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(y=m(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),g=m(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),y!==-1)for(let r=g;r>=y;r--){let b=this.rules[r].media.features["min-width"].value;if(b>h.value)g=r-1;else if(b<h.value){y=r+1;break}}}else if(l===-1?(y=m(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),g=m(n,r=>r.media.features["min-width"]||r.priority!==-1)):(y=m(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),g=m(n,r=>r.media.features["min-width"]&&r.priority!==-1)),y!==-1)for(let r=g;r>=y;r--){let b=this.rules[r].media.features["max-width"].value;if(b<c.value)g=r-1;else if(b>c.value){y=r+1;break}}}else l===-1?(y=o,g=m(o,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(y=m(o,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),g=m(o,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let o=Object.keys(this.variablesNativeRules).length?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;l===-1?(y=o,g=m(o,c=>c.media||c.priority!==-1)):(y=m(o,c=>c.media,c=>c.priority!==-1),g=m(o,c=>c.media))}if(s===void 0&&g!==void 0&&y!==void 0)if(y===-1)s=g+1;else{if(l===-1)for(let o=y;o<=g;o++){let c=this.rules[o];if(!(!p&&c.hasWhere)&&(p&&!c.hasWhere||c.order>=u)){s=o;break}}else for(let o=y;o<=g;o++){let c=this.rules[o];if(!(!p&&c.hasWhere)){if(p&&!c.hasWhere){s=o;break}if(c.priority<l){s=o;break}else if(c.priority===l){if(c.order>=u){s=o;break}}else s=o+1}}s===void 0&&(s=g+1)}if(this.rules.splice(s,0,i),this.ruleBy[d]=i,this.style){let o=this.style.sheet,c=0,h=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return h(n-1);let b=r.natives[r.natives.length-1],x=b.cssRule?.parentRule??b.cssRule;if(o){for(let v=0;v<o.cssRules.length;v++)if(o.cssRules[v]===x){c=v+1;break}}}};h(s-1);for(let n=0;n<i.natives.length;)try{let r=i.natives[n];o?.insertRule(r.text,c),r.cssRule=o?.cssRules[c++],n++}catch(r){console.error(r),i.natives.splice(n,1)}}this.handleRuleWithVariableNames(i),this.handleRuleWithAnimationNames(i),i.definition.insert?.call(i)}}get text(){return this.rules.map(a=>a.text).join("")}handleRuleWithAnimationNames(a,i=!1){if(a.animationNames){let s=this.style?.sheet;for(let f of a.animationNames){let t=this.animations[f];if(t.usage)t.usage++;else{let u={text:`@keyframes ${f}{`+Object.entries(t).filter(([d])=>d!=="usage"&&d!=="native").map(([d,m])=>`${d}{${Object.entries(m).map(([y,g])=>y+":"+g).join(";")}}`).join("")+"}"},l=Object.keys(this.variablesNativeRules).length?1:0,p;if(this.hasKeyframesRule?(p=this.rules[l]).natives.push(u):(this.rules.splice(l,0,p={natives:[u],get text(){return this.natives.map(d=>d.text).join("")}}),this.hasKeyframesRule=!0),s){let d;if(i)for(let m=0;m<s.cssRules.length;m++){let y=s.cssRules[m];if(y.constructor.name==="CSSKeyframesRule"&&y.name===f){d=y;break}}if(d)u.cssRule=d;else{let m=Object.keys(this.variablesNativeRules).length+p.natives.length-1;s.insertRule(u.text,m),u.cssRule=s.cssRules[m]}}t.usage=1,t.native=u}}}}handleRuleWithVariableNames(a,i=!1){if(a.variableNames){let s=this.style?.sheet;for(let f of a.variableNames){let t=this.variables[f];if(t.usage)t.usage++;else{let u=(l,p)=>{let d=this.variablesNativeRules[l];if(!d){let y,g,o;if(l)switch(this.config.themeDriver){case"media":g=`@media(prefers-color-scheme:${l})`,o=":root";break;case"host":o=`:host(.${l})`;break;default:o=`.${l}`;break}else o=":root";if(s){let c=Object.keys(this.variablesNativeRules).length?this.rules[0].natives.length:0;s.insertRule((g?g+"{":"")+o+"{}"+(g?g+"}":""),c),y=g?s.cssRules[c].cssRules[0]:s.cssRules[c]}else{let c=new Map,h=Object.defineProperties({},{getPropertyValue:{value:n=>c.get(n)},removeProperty:{value:n=>{c.delete(n);for(let r=0;r<h.length;r++)h[r]===n&&delete h[r]}},setProperty:{value:(n,r)=>{h[h.length]=n,c.set(n,r)}},length:{get(){return Object.keys(h).length}}});y={selectorText:o,style:h,styleMap:c},g&&(y.parentRule={conditionText:g})}d=this.pushVariableNativeRule(l,y)}let m="--"+f;(!i||!d.cssRule.style.getPropertyValue(m))&&d.cssRule.style.setProperty(m,p.value.toString())};if(t.value&&u("",t),t.themes)for(let l in t.themes)u(l,t.themes[l]);t.usage=1}}}}pushVariableNativeRule(a,i){if(!Object.keys(this.variablesNativeRules).length){this.variablesNativeRules={};let u={natives:[],get text(){return this.natives.map(l=>l.text).join("")}};this.rules.splice(0,0,u)}let s="",f="}";i.parentRule&&(s+=i.parentRule.conditionText.replace(/ /g,"")+"{",f+="}"),s+=i.selectorText+"{";let t={cssRule:i,get text(){let u=[];for(let l=0;l<i.style.length;l++){let p=i.style[l];u.push(p+":"+i.style.getPropertyValue(p))}return s+u.join(";")+f}};return this.rules[0].natives.push(this.variablesNativeRules[a]=t),t}},ae=[];globalThis.MasterCSS=ee,globalThis.masterCSSs=ae;var xe=[",",".","#","[","!","*",">","+","~",":","@"];var ie=class extends ee{constructor(i=document,s=Q){super(s);this.root=i;this.customConfig=s;i||(this.root=document),this.root===document?(globalThis.runtimeCSS=this,this.container=document.head,this.host=document.documentElement):(this.container=this.root,this.host=this.root.host),te.push(this)}host;observing=!1;container;observer;observe(i={subtree:!0,childList:!0}){if(this.observing||!this.root)return this;if(te.find(f=>f!==this&&f.root===this.root))return console.warn("Cannot observe the same root element repeatedly."),this;if(this.root?.styleSheets)for(let f of this.root.styleSheets){let{ownerNode:t}=f;if(t&&t.id==="master"){this.style=t;break}}if(this.style?.sheet){let f=0;for(;f<this.style.sheet.cssRules.length;f++){let t=this.style.sheet.cssRules[f];switch(t.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let l=/\(prefers-color-scheme: (.*?)\)/.exec(t.conditionText);if(l){let p=t.cssRules[0];if(p?.constructor.name==="CSSStyleRule"&&p.selectorText===":root"){this.pushVariableNativeRule(l[1],p);continue}}}break;case"CSSStyleRule":let u=t.selectorText;if(t.style.length){let l=!0;for(let p=0;p<t.style.length;p++)if(!t.style[p]?.startsWith("--")){l=!1;break}if(l){if(u===":root"){this.pushVariableNativeRule("",t);continue}else if(this.config.themeDriver==="host"){let p=/:host(.*?)/.exec(u);if(p){this.pushVariableNativeRule(p[1],t);continue}}else if(!u.startsWith(".\\$")){this.pushVariableNativeRule(u.slice(1),t);continue}}}break}break}for(;f<this.style.sheet.cssRules.length;f++){let t=l=>{if(l.selectorText){let d=l.selectorText.split(", ")[0].split(" ");for(let m=0;m<d.length;m++){let y=d[m];if(y[0]==="."){let g=y.slice(1),o="";for(let c=0;c<g.length;c++){let h=g[c],n=g[c+1];if(h==="\\"){if(c++,n!=="\\"){o+=n;continue}}else if(xe.includes(h))break;o+=h}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,o)&&!Object.prototype.hasOwnProperty.call(this.styles,o)){let c=this.create(o)[0];if(c)return c}}}}else if(l.cssRules)for(let p=0;p<l.cssRules.length;p++){let d=t(l.cssRules[p]);if(d)return d}},u=t(this.style.sheet.cssRules[f]);if(u){this.rules.push(u),this.ruleBy[u.className]=u;for(let l=0;l<u.natives.length;l++)u.natives[l].cssRule=this.style.sheet.cssRules[f+l];f+=u.natives.length-1,this.handleRuleWithVariableNames(u,!0),this.handleRuleWithAnimationNames(u,!0),u.definition.insert?.call(u)}}}else this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style);let s=f=>{f.forEach(t=>{Object.prototype.hasOwnProperty.call(this.classesUsage,t)?this.classesUsage[t]++:(this.classesUsage[t]=1,this.add(t))})};return s(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(f=>s(f.classList)),this.observer=new MutationObserver(f=>{let t={},u=[],l=[],p=[],d=(o,c)=>{c?o.classList.forEach(y):o.classList.forEach(m);let h=o.children;for(let n=0;n<h.length;n++){let r=h[n];r.classList&&(l.push(r),d(r,c))}},m=o=>{Object.prototype.hasOwnProperty.call(t,o)?t[o]++:t[o]=1},y=o=>{Object.prototype.hasOwnProperty.call(t,o)?t[o]--:Object.prototype.hasOwnProperty.call(this.classesUsage,o)&&(t[o]=-1)},g=(o,c)=>{for(let h=0;h<o.length;h++){let n=o[h];n.classList&&!l.includes(n)&&!p.includes(n)&&(n.isConnected!==c?(l.push(n),d(n,c)):p.push(n))}};for(let o=0;o<f.length;o++){let c=f[o],{addedNodes:h,removedNodes:n,type:r,target:b}=c;if(r==="attributes"){if(u.find(x=>x.target===b))continue;u.push(c)}else g(h,!1),(!b.isConnected||!l.includes(b))&&g(n,!0)}if(!(!u.length&&!Object.keys(t).length)){for(let{oldValue:o,target:c}of u){let h=l.includes(c),n=c.classList,r=o?o.split(" "):[];if(h){if(c.isConnected)continue;for(let b of r)n.contains(b)||y(b)}else if(c.isConnected){n.forEach(b=>{r.includes(b)||m(b)});for(let b of r)n.contains(b)||y(b)}}for(let o in t){let c=t[o],h=(this.classesUsage[o]||0)+c;h===0?(delete this.classesUsage[o],this.delete(o)):(Object.prototype.hasOwnProperty.call(this.classesUsage,o)||this.add(o),this.classesUsage[o]=h)}}}),this.observer.observe(this.root,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.removeProperty("display"),this.observing=!0,this}refresh(i=this.customConfig){let s=document.createElement("style");return s.id="master",this.style.replaceWith(s),this.style=s,super.refresh(i),this}reset(){super.reset();let i=this.style?.sheet;if(i?.cssRules)for(let s=i.cssRules.length-1;s>=0;s--)i.deleteRule(s);return this.style?.remove(),this.style=null,this}disconnect(){return this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.reset(),this}destroy(){return this.disconnect(),te.splice(te.indexOf(this),1),this}},te=[];globalThis.RuntimeCSS=ie,globalThis.runtimeCSSs=te;function oe(e){return new ie(document,e).observe()}oe(window.masterCSSConfig);})();
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Config } from './config';
|
|
2
2
|
import { MasterCSS } from './core';
|
|
3
|
+
import './types/global';
|
|
3
4
|
export declare class RuntimeCSS extends MasterCSS {
|
|
4
5
|
root: Document | ShadowRoot | undefined | null;
|
|
5
6
|
customConfig: Config;
|
|
6
7
|
readonly host: Element;
|
|
7
8
|
readonly observing = false;
|
|
8
9
|
readonly container: HTMLElement | ShadowRoot;
|
|
9
|
-
|
|
10
|
-
observer: MutationObserver;
|
|
10
|
+
observer?: MutationObserver | null;
|
|
11
11
|
constructor(root?: Document | ShadowRoot | undefined | null, customConfig?: Config);
|
|
12
12
|
/**
|
|
13
13
|
* Observe the DOM for changes and update the running stylesheet. (browser only)
|
|
@@ -20,11 +20,4 @@ export declare class RuntimeCSS extends MasterCSS {
|
|
|
20
20
|
disconnect(): this;
|
|
21
21
|
destroy(): this;
|
|
22
22
|
}
|
|
23
|
-
declare
|
|
24
|
-
interface Window {
|
|
25
|
-
RuntimeCSS: typeof RuntimeCSS;
|
|
26
|
-
masterCSSConfig: Config;
|
|
27
|
-
runtimeCSSs: RuntimeCSS[];
|
|
28
|
-
runtimeCSS: RuntimeCSS;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
23
|
+
export declare const runtimeCSSs: RuntimeCSS[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Config } from '../config';
|
|
2
|
+
import type { RuntimeCSS as _RuntimeCSS } from '../runtime';
|
|
3
|
+
import type { MasterCSS as _MasterCSS } from '../core';
|
|
4
|
+
declare global {
|
|
5
|
+
var MasterCSS: typeof _MasterCSS;
|
|
6
|
+
var masterCSSs: _MasterCSS[];
|
|
7
|
+
var RuntimeCSS: typeof _RuntimeCSS;
|
|
8
|
+
var runtimeCSSs: _RuntimeCSS[];
|
|
9
|
+
var runtimeCSS: _RuntimeCSS;
|
|
10
|
+
var masterCSSConfig: Config;
|
|
11
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function hexToRgb(hex: string): number[];
|
|
1
|
+
export declare function hexToRgb(hex: string): (number | undefined)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function rgbToHex(r:
|
|
1
|
+
export declare function rgbToHex(r: number, g: number, b: number): string;
|
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/runtime.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/runtime.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/runtime.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/runtime.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.207","@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.207","csstype":"^3.1.2","puppeteer":"^21.0.1","vite":"^4.2.1"},"version":"2.0.0-beta.207"}
|
package/dist/variables.d.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
declare const variables: {
|
|
2
|
-
'font-family': {
|
|
3
|
-
mono: string[];
|
|
4
|
-
sans: string[];
|
|
5
|
-
serif: string[];
|
|
6
|
-
};
|
|
7
|
-
'box-size': {
|
|
8
|
-
'4xs': number;
|
|
9
|
-
'3xs': number;
|
|
10
|
-
'2xs': number;
|
|
11
|
-
xs: number;
|
|
12
|
-
sm: number;
|
|
13
|
-
md: number;
|
|
14
|
-
lg: number;
|
|
15
|
-
xl: number;
|
|
16
|
-
'2xl': number;
|
|
17
|
-
'3xl': number;
|
|
18
|
-
'4xl': number;
|
|
19
|
-
full: string;
|
|
20
|
-
fit: string;
|
|
21
|
-
max: string;
|
|
22
|
-
min: string;
|
|
23
|
-
};
|
|
24
|
-
'font-weight': {
|
|
25
|
-
thin: number;
|
|
26
|
-
extralight: number;
|
|
27
|
-
light: number;
|
|
28
|
-
regular: number;
|
|
29
|
-
medium: number;
|
|
30
|
-
semibold: number;
|
|
31
|
-
bold: number;
|
|
32
|
-
extrabold: number;
|
|
33
|
-
heavy: number;
|
|
34
|
-
};
|
|
35
|
-
'flex-direction': {
|
|
36
|
-
col: string;
|
|
37
|
-
'col-reverse': string;
|
|
38
|
-
};
|
|
39
|
-
'box-sizing': {
|
|
40
|
-
content: string;
|
|
41
|
-
border: string;
|
|
42
|
-
};
|
|
43
|
-
position: {
|
|
44
|
-
abs: string;
|
|
45
|
-
rel: string;
|
|
46
|
-
};
|
|
47
|
-
'transform-box': {
|
|
48
|
-
content: string;
|
|
49
|
-
border: string;
|
|
50
|
-
padding: string;
|
|
51
|
-
fill: string;
|
|
52
|
-
stroke: string;
|
|
53
|
-
view: string;
|
|
54
|
-
};
|
|
55
|
-
'animation-direction': {
|
|
56
|
-
alt: string;
|
|
57
|
-
'alt-reverse': string;
|
|
58
|
-
};
|
|
59
|
-
'background-clip': {
|
|
60
|
-
content: string;
|
|
61
|
-
border: string;
|
|
62
|
-
padding: string;
|
|
63
|
-
};
|
|
64
|
-
'background-origin': {
|
|
65
|
-
content: string;
|
|
66
|
-
border: string;
|
|
67
|
-
padding: string;
|
|
68
|
-
};
|
|
69
|
-
order: {
|
|
70
|
-
first: number;
|
|
71
|
-
last: number;
|
|
72
|
-
};
|
|
73
|
-
'shape-outside': {
|
|
74
|
-
content: string;
|
|
75
|
-
border: string;
|
|
76
|
-
padding: string;
|
|
77
|
-
margin: string;
|
|
78
|
-
};
|
|
79
|
-
'clip-path': {
|
|
80
|
-
content: string;
|
|
81
|
-
border: string;
|
|
82
|
-
padding: string;
|
|
83
|
-
margin: string;
|
|
84
|
-
fill: string;
|
|
85
|
-
stroke: string;
|
|
86
|
-
view: string;
|
|
87
|
-
black: string;
|
|
88
|
-
};
|
|
89
|
-
black: string;
|
|
90
|
-
white: string;
|
|
91
|
-
current: string;
|
|
92
|
-
slate: any;
|
|
93
|
-
gray: any;
|
|
94
|
-
brown: any;
|
|
95
|
-
orange: any;
|
|
96
|
-
gold: any;
|
|
97
|
-
yellow: any;
|
|
98
|
-
grass: any;
|
|
99
|
-
green: any;
|
|
100
|
-
beryl: any;
|
|
101
|
-
teal: any;
|
|
102
|
-
cyan: any;
|
|
103
|
-
sky: any;
|
|
104
|
-
blue: any;
|
|
105
|
-
indigo: any;
|
|
106
|
-
violet: any;
|
|
107
|
-
purple: any;
|
|
108
|
-
fuchsia: any;
|
|
109
|
-
pink: any;
|
|
110
|
-
crimson: any;
|
|
111
|
-
red: any;
|
|
112
|
-
};
|
|
113
|
-
export default variables;
|