@master/css 2.0.0-beta.214 → 2.0.0-beta.215
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/README.md +4 -5
- package/dist/config/index.d.ts +1 -3
- package/dist/config/rules.d.ts +1 -1
- package/dist/config/variables.d.ts +460 -22
- package/dist/index.bundle.js +4 -4
- package/dist/index.bundle.mjs +4 -4
- package/dist/runtime.browser.bundle.js +1 -1
- package/package.json +1 -1
package/dist/index.bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ce=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Me=Object.prototype.hasOwnProperty;var Pe=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},Ae=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Ee(t))!Me.call(e,l)&&l!==r&&ce(e,l,{get:()=>t[l],enumerable:!(s=Te(t,l))||s.enumerable});return e};var $e=e=>Ae(ce({},"__esModule",{value:!0}),e);var Fe={};Pe(Fe,{CONFIG_ESM_TEXT:()=>Ve,CONFIG_TEXT:()=>ke,CONFIG_TS_TEXT:()=>Oe,Layer:()=>fe,MasterCSS:()=>H,Rule:()=>G,RuntimeCSS:()=>q,animations:()=>he,config:()=>K,default:()=>H,extend:()=>Q,fillColorScale:()=>T,functions:()=>ye,initRuntime:()=>be,mediaQueries:()=>Z,reorderForReadableClasses:()=>ve,rules:()=>pe,selectors:()=>ue,semantics:()=>de,variables:()=>me});module.exports=$e(Fe);var Y={"(":")","'":"'",'"':'"',"{":"}"};function ie(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,s=-1,l="",n,u=t.charCodeAt(0);if(r==1&&u==45)return"\\"+t;for(;++s<r;){if(n=t.charCodeAt(s),n==0){l+="\uFFFD";continue}if(n>=1&&n<=31||n==127||s==0&&n>=48&&n<=57||s==1&&n>=48&&n<=57&&u==45){l+="\\"+n.toString(16)+" ";continue}if(n>=128||n==45||n==95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){l+=t.charAt(s);continue}l+="\\"+t.charAt(s)}return l}var fe=(c=>(c[c.Semantic=-8]="Semantic",c[c.CoreNativeShorthand=-7]="CoreNativeShorthand",c[c.NativeShorthand=-6]="NativeShorthand",c[c.CoreShorthand=-5]="CoreShorthand",c[c.Shorthand=-4]="Shorthand",c[c.CoreNative=-3]="CoreNative",c[c.Native=-2]="Native",c[c.Core=-1]="Core",c[c.Normal=0]="Normal",c))(fe||{});var se=/^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m;var ze=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,G=class{constructor(t,r,s){this.className=t;this.css=s;Object.assign(this,r);let{id:l,definition:n}=r,{analyze:u,transformValue:a,declare:g,transformValueComponents:c,create:h,layer:b,unit:p,colored:o}=n;this.layer=b,this.colored=!!o,n.unit||(n.unit=""),n.separators||(n.separators=[","]);let{scope:m,important:f,themeDriver:i}=s.config,{selectors:d,mediaQueries:v,stylesBy:x,animations:D}=s,y=x[t];h&&h.call(this,t),this.declarations=n.declarations;let R,C;if(b===-8)R=t.slice(l.length-1);else{let O;if(u)[O,C]=u.call(this,t);else{let k=t.indexOf(":");this.prefix=t.slice(0,k+1),O=t.slice(k+1)}this.valueComponents=[],R=O.slice(this.parseValue(this.valueComponents,0,O,p,"",void 0,!1,l==="animation"||l==="animation-name"?Object.keys(this.css.animations):[]))}R[0]==="!"&&(this.important=!0,R=R.slice(1)),this.stateToken=R;let N=(O,k)=>{let M=(S,j,V,E)=>{for(let[z,I]of j)if(z.test(S)){for(let W of I)M(S.replace(z,W),j,V,!0);return}E&&V.push(S)},P=S=>{let j=S.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((I,W)=>W%3?I:I.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),V=[],E="",z=0;for(let I=0;I<j.length;I++){let W=j[I];if(W==="\\"){E+=W+j[++I];continue}!z&&W===","?(V.push(E),E=""):(E+=W,z&&W===")"?z--:W==="("&&z++)}return E&&V.push(E),V},A=[];""in d?M(O,d[""],A,!0):A.push(O);let $={};for(let[S,j]of Object.entries(d)){if(!S)continue;let V=[];for(let E of A)M(E,j,V,!1);V.length&&($[S]=V)}let B=(S,j)=>{let V=j.reduce((E,z)=>(E.push(...P(z)),E),[]);S in k?k[S].push(...V):k[S]=V},_=Object.keys($);if(_.length)for(let S of _)B(S,$[S]);else B("",A)};C?(this.vendorPrefixSelectors={},N(C,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let w=R.split("@"),J=w[0];if(J){this.vendorSuffixSelectors={},N(J,this.vendorSuffixSelectors);for(let O of Object.values(this.vendorSuffixSelectors))for(let k of O){this.hasWhere!==!1&&(this.hasWhere=k.includes(":where("));let M=[":disabled",":active",":focus",":hover"];for(let P=0;P<M.length;P++)if(k.includes(M[P])){(this.priority===-1||this.priority>P)&&(this.priority=P);break}}}else this.vendorSuffixSelectors={"":[""]};let ee={},je=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),Re=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(je)ee[""]=Re?[""]:Object.keys(this.vendorSuffixSelectors);else if(Re)for(let O in this.vendorPrefixSelectors)ee[O]=[""];else for(let O in this.vendorPrefixSelectors){let k=ee[O]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,O))k.push(O);else for(let M in this.vendorSuffixSelectors)k.push(M)}for(let O=1;O<w.length;O++){let k=w[O];if(k)if(k==="rtl"||k==="ltr")this.direction=k;else{let M="",P,A=ze.exec(k);if(A)M=A[1],P=k.slice(M.length);else{this.media={token:k,features:{}};let $=[],B=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 j=v[S];if(j&&typeof j=="string")$.push(j);else{let V="",E="",z=0;S.startsWith("<=")?(E="<=",V="max-width"):S.startsWith(">=")||j?(E=">=",V="min-width"):S.startsWith(">")?(E=">",V="min-width",z=.02):S.startsWith("<")&&(E="<",V="max-width",z=-.02);let I=E?S.replace(E,""):S,W=v[I];switch(V){case"max-width":case"min-width":let U={};typeof W=="number"?U={type:"number",value:W+z,unit:"px"}:(U=this.parseValueComponent(I,"px"),U.type==="number"&&U.unit==="px"&&(U.value+=z)),this.media.features[V]=U,U.type==="number"?$.push("("+V+":"+(U.value+U.unit)+")"):$.push("("+V+":"+U.value+")");break}}}},_=k.includes("&");if(_){let S=k.split("&");for(let j of S)B(j)}else B(k);if(this.media.type&&(P=this.media.type),$.length&&(P=$.join(" and ")),P)M="media";else if(!_){this.theme=k;continue}}P&&(this.at[M]=(M in this.at?this.at[M]+" and ":"")+P.replace(/\|/g," "))}}let te;this.valueComponents&&(c&&(this.valueComponents=c.call(this,this.valueComponents)),te=this.resolveValue(this.valueComponents,p,[],!1),a&&(te=a.call(this,te)),g?this.declarations=g.call(this,te,this.valueComponents):l&&(this.declarations={[l]:te}));let le=[];for(let O in this.declarations){let k=A=>{if(D&&(A.startsWith("animation")||A.startsWith("animation-name"))){let $=A.split(":")[1].split("!important")[0].split(" ").filter(B=>B in this.css.animations&&(!this.animationNames||!this.animationNames.includes(B)));$.length&&(this.animationNames||(this.animationNames=[]),this.animationNames=$)}le.push(A+((this.important||f)&&!A.endsWith("!important")?"!important":""))},M=O+":",P=this.declarations[O];if(Array.isArray(P))for(let A of P)k(M+String(A));else k(M+String(P))}if(le.length)for(let O in ee)for(let k of ee[O]){let M="";this.direction&&(M+="[dir="+this.direction+"] ");let P=this.vendorPrefixSelectors[O],A=this.vendorSuffixSelectors[k],$=P.map(S=>S+M),B=S=>$.map(j=>(this.theme&&i!=="media"?i==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(m?m+" ":"")+j).reduce((j,V)=>(j.push(A.reduce((E,z)=>(E.push(V+"."+ie(S)+z),E),[]).join(",")),j),[]).join(","),_=B(t)+(y?y.reduce((S,j)=>S+","+B(j),""):"")+"{"+le.join(";")+"}";for(let S of Object.keys(this.at).sort((j,V)=>V==="supports"?-1:1))_="@"+S+(S.includes(" ")?"":" ")+this.at[S]+"{"+_+"}";this.theme&&i==="media"&&(_=`@media(prefers-color-scheme:${this.theme}){`+_+"}"),this.natives.push({text:_})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;animationNames;variableNames;resolveValue=(t,r,s,l)=>{let{functions:n}=this.css.config,u="";for(let a of t)switch(a.type){case"function":let g=n&&n[a.name];if(g?.transform&&!a.bypassTransform){let h=g.transform.call(this,this.resolveValue(a.children,g.unit??r,s,l||a.name==="calc"),s);u+=a.text=typeof h=="string"?h:this.resolveValue(h,g?.unit??r,s,l)}else u+=a.text=a.name+a.symbol+this.resolveValue(a.children,g?.unit??r,s,l)+Y[a.symbol];break;case"variable":let c=this.css.variables[a.name];if(c){let h=(b,p)=>{if(c.themes)if(this.theme){let o=c.themes[this.theme]??c;o?.value&&b(o)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(a.name)||this.variableNames.push(a.name),p();else b(c)};switch(c.type){case"string":h(p=>{let o=[];this.parseValue(o,0,p.value,r,"",void 0,l,[...s,a.name]),u+=a.text=this.resolveValue(o,r,[...s,a.name],l)},()=>{u+=a.text=`var(--${a.name})`});break;case"number":h(p=>{if(l)u+=a.text=p.value;else{let o=this.parseValueComponent(p.value,r);u+=a.text=o.value+(o.unit??"")}},()=>{u+=a.text=r?`calc(var(--${a.name}) / 16 * 1rem)`:`var(--${a.name})`});break;case"color":let b=a.alpha?"/"+a.alpha:"";h(p=>{u+=a.text=`${p.space}(${p.value}${b})`},()=>{u+=a.text=`${c.space}(var(--${a.name})${b})`});break}}else u+=a.text=`var(--${a.name}${a.fallback?","+a.fallback:""})`;break;case"separator":u+=a.text?a.text:a.text=a.value;break;case"number":u+=a.text=a.value+(a.unit||"");break;default:u+=a.text=a.value;break}return u};get text(){return this.natives.map(t=>t.text).join("")}parseValue=(t,r,s,l,n,u,a=!1,g=[])=>{let c=u===void 0,h=!c&&(u.endsWith("$")||u.endsWith("var")),p=(i=>i==="'"||i==='"')(n),o=[","];this.definition.separators?.length&&o.push(...this.definition.separators);let m="",f=()=>{if(m){let i=!1;if(!h||t.length){let d=(v,x)=>{let D=Object.prototype.hasOwnProperty.call(this.variables,v)?this.variables[v]:Object.prototype.hasOwnProperty.call(this.css.variables,v)?this.css.variables[v]:void 0;if(D){let y=D.name??v;if(!g.includes(y)){i=!0;let R={type:"variable",name:y,variable:this.css.variables[y]};x&&(R.alpha=x),t.push(R)}}};if(d(m),!i&&this.colored){let[v,x]=m.split("/");d(v,x)}}if(!i){if(!h){let d=se.exec(m);d&&(m=String(+d[1]*(this.css.config.baseUnit??1)))}a?t.push({type:"string",value:m}):t.push(this.parseValueComponent(m,l))}m=""}};for(;r<s.length;r++){let i=s[r];if(i===n){if(p){let d=0;for(let v=m.length-1;m[v]==="\\";v--)d++;if(d%2){m+=i;continue}else f()}else f();return r}else if(!p&&i in Y){let d=m,v={type:"function",name:d,symbol:i,children:[]};t.push(v),m="";let x=i==="("?this.css.config.functions?.[d]:void 0;!this.colored&&x?.colored&&(this.colored=!0),r=this.parseValue(v.children,++r,s,x?.unit??l,Y[i],d||u||"",a||d==="calc")}else if((i==="|"||i===" ")&&n!=="}"&&(!p||u==="path"))f(),t.push({type:"separator",value:" "});else{if(!p){if(i===".")if(isNaN(+s[r+1])){if(c)break}else s[r-1]==="-"&&(m+="0");else if(o.includes(i)){f(),t.push({type:"separator",value:i,text:(i===","?"":" ")+i+(i===","?"":" ")});continue}else if(c&&(i==="#"&&(m||t.length&&t[t.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(i)))break}m+=i}}return f(),r};parseValueComponent(t,r=this.definition.unit){let s=r??this.definition.unit,l="",n;if(typeof t=="number")return s&&!l?((s==="rem"||s==="em")&&(n=t/(this.css.config.rootSize||1)),l=s||""):n=t,{value:n,unit:l,type:"number"};if(s){if(/^\d+\/\d+/.test(t)){let[a,g]=t.split("/");return{value:+a/+g*100,unit:"%",type:"number"}}let u=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(u)return n=+u[1],l=u[3]||"",l||((s==="rem"||s==="em")&&(n=n/(this.css.config.rootSize||1)),l=s||""),{value:n,unit:l,type:"number"}}return{value:t,type:"string"}}};var Z={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};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 Ie={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=Ie;var Be={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=Be;function X(e){e.startsWith("#")&&(e=e.slice(1));let t,r,s,l;return e.length===3||e.length===4?(t=parseInt(e[0]+e[0],16),r=parseInt(e[1]+e[1],16),s=parseInt(e[2]+e[2],16),l=e.length===4?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(e.length===6||e.length===8)&&(t=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16),l=e.length===8?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,r,s,l]}function xe(e,t,r){return((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1)}function T(e){typeof e=="string"&&(e={"":e});let t=""in e,r=!1;for(let s in e)if(s&&+s>=100){r=!0;break}if(!r&&(!t||Object.keys(e).length>1)){let s=0,l="0"in e?X(e[0]):[0,0,0],n,u,a=[],g=()=>{let c=n-s,h=u.map((b,p)=>(b-l[p])/c);for(let b of a){let p=b-s,o=l.map((m,f)=>Math.round(m+h[f]*p));e[b]="#"+xe(o[0],o[1],o[2])}};for(let c=1;c<100;c++)c in e?(a.length?(n=c,u=X(e[c]),g(),a.length=0,l=u):l=X(e[c]),s=c):a.push(c);a.length&&(n=100,u="100"in e?X(e[100]):[255,255,255],g())}return t||(e[""]=e[r?"500":"50"]),e}var _e={full:"100%",fit:"fit-content",max:"max-content",min:"min-content","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"]},screen:Z,"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"})},me=_e;var F=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],L=function(e){return e.length<2||e.find(r=>r.type==="string"&&F.includes(r.value)||r.type==="variable"&&F.includes(r.variable?.value))||e.push({type:"separator",value:" "},{type:"string",value:"solid"}),e},Ue={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},r=g=>{let c=g.indexOf(":");if(c!==-1){let h=g.slice(0,c);t[h]=g.slice(c+1)}},s=g=>{let c=h=>{let b=h.slice(ie(g.className).length).match(/\{(.*)\}/)?.[1].split(";");if(b)for(let p of b)r(p)};for(let h of g.natives)c(h.text);if(g.animationNames){this.animationNames||(this.animationNames=[]);for(let h of g.animationNames)this.animationNames.includes(h)||this.animationNames.push(h)}if(g.variableNames){this.variableNames||(this.variableNames=[]);for(let h of g.variableNames)this.variableNames.includes(h)||this.variableNames.push(h)}},l=[],n="",u=()=>{n&&(l.push(n.replace(/ /g,"|")),n="")},a=1;(function g(c){for(;a<e.length;a++){let h=e[a];if(!c){if(h===";"){u();continue}if(h==="}")break}if(n+=h,c===h){if(c==="'"||c==='"'){let b=0;for(let p=n.length-2;n[p]==="\\";p--)b++;if(b%2)continue}break}else h in Y&&c!=="'"&&c!=='"'&&(a++,g(Y[h]))}})(""),u();for(let g of l){let c=this.css.generate(g);if(c.length)for(let h of c)s(h);else r(g)}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){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":{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},height:{match:/^h:/,unit:"rem",layer:-3},"min-width":{match:/^min-w:/,unit:"rem",layer:-3},"min-height":{match:/^min-h:/,unit:"rem",layer:-3},size:{match:/^size:/,layer:-5,unit:"rem",declare(e,t){let r=t.length;return{width:t[0].text,height:r===1?t[0].text:t[2].text}}},"min-size":{match:/^min:/,layer:-5,unit:"rem",declare(e,t){let r=t.length;return{"min-width":t[0].text,"min-height":r===1?t[0].text:t[2].text}}},"max-size":{match:/^max:/,layer:-5,unit:"rem",declare(e,t){let r=t.length;return{"max-width":t[0].text,"max-height":r===1?t[0].text:t[2].text}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["box-decoration",["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},"max-width":{match:/^max-w:/,unit:"rem",layer:-3},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 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){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)?)",F],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",F],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",F],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",F],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",F],layer:-5,declare(e){return{"border-left-style":e,"border-right-style":e}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",F],layer:-5,declare(e){return{"border-top-style":e,"border-bottom-style":e}}},"border-style":{match:["b(?:order)?(?:-style)?",F],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:L},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:L},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:L},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:L},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:L,declare(e){return{"border-left":e,"border-right":e}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:L,declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:L},"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},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem"},"grid-template-rows":{layer:-3,unit:"rem"},"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",F],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:L},"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}}}},pe=Ue;var ge={$:{colored:!0,transform(e){let t,r,s=e.indexOf(",");return s!==-1?(t=e.slice(0,s),r=e.slice(s+1)):t=e,[{type:"variable",name:t,fallback:r}]}},calc:{transform(e,t){let r=[],s=0,l=(n,u,a,g,c)=>{let h=r!==n,b=[],p=!1,o=!1,m=!1,f=!1,i,d="",v=(y,R="",C="")=>{if(i===!1&&y!==" "&&this.definition.unit&&(i=void 0,f||x()),d){if(!c){let N=se.exec(d);N&&(d=(+N[1]*(this.css.config.baseUnit??1)).toString())}if(!p&&!a){let N=this.parseValueComponent(d);if(!o&&isNaN(+d)&&N.type==="number"&&(o=!0),f)isNaN(+d)?N.type==="number"?(n.push(N),m=!0):n.push(N):n.push({type:"number",value:+d});else if(h){let w={type:"string",value:d};b.push(w),n.push(w)}else n.push(N)}else n.push({type:"string",value:d});d=""}y&&((y==="+"||y==="-")&&D(),R&&e[s-1]===" "&&(R=""),C&&e[s+1]===" "&&(C=""),u?n.push({type:"separator",value:y,text:y}):n.push({type:"separator",value:y,text:R+y+C})),p=!1},x=()=>{(this.definition.unit==="rem"||this.definition.unit==="em")&&n.push({type:"separator",value:"/",text:" / "},{type:"number",value:this.css.config.rootSize}),n.push({type:"separator",value:"*",text:" * "},{type:"number",value:1,unit:this.definition.unit})},D=()=>{f&&!m&&!g&&(!h||o)&&x(),f=!1,m=!1};for(;s<e.length;s++){let y=e[s];if(y==="("){let R=/^([+-])/.exec(d);R&&n.push({type:"string",value:R[1]});let C=R?d.slice(1):d,N={type:"function",name:C,symbol:y,children:[],bypassTransform:C==="calc"};n.push(N),d="",s++;let w=C==="$"||C==="var";if(i=l(N.children,C!==""&&C!=="calc"&&(w||Object.prototype.hasOwnProperty.call(ge,C)),p||w||f&&m,f,w)||C==="var",!i&&C==="$"){let J=this.css.variables[N.children[0].value]?.type;i=!J||J==="string"}i&&(o=!0,m=!0)}else if(y===")"){if(v(""),o)for(let R of b)Object.assign(R,this.parseValueComponent(R.value));return o}else if(y===",")v(y,""," ");else if(y===" ")v(y);else{let R=e[s-1];switch(y){case"+":!d&&R!==")"?d+=y:v(y," "," ");break;case"-":!d&&R!==")"?d+=y:v(y," "," ");break;case"*":this.definition.unit&&(f=!0),v(y," "," ");break;case"/":this.definition.unit&&(f=!0),v(y," "," "),p=!0;break;default:d+=y;break}}}v(""),D()};return l(r,!1,!1,!1,!1),"calc("+this.resolveValue(r,ge.calc.unit??this.definition.unit,t,!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=ge;var K={mediaQueries:Z,selectors:ue,semantics:de,rules:pe,functions:ye,animations:he,variables:me,scope:"",rootSize:16,baseUnit:4,override:!1,important:!1,themeDriver:"class"};function re(e,t=""){return Object.entries(e).reduce((r,[s,l])=>{let n=t?`${t}${s?"-"+s:""}`:s;return typeof l=="object"&&!Array.isArray(l)?Object.assign(r,re(l,n)):r[n]=l,r},{})}function Se(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Ne(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 De(e){let t=[];return e.forEach(function(r,s){typeof r=="object"&&r!==null?Array.isArray(r)?t[s]=De(r):Se(r)?t[s]=Ne(r):t[s]=Q({},r):t[s]=r}),t}function Ce(e,t){return t==="__proto__"?void 0:e[t]}function Q(...e){let t={},r,s;return e.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(n){if(s=Ce(t,n),r=Ce(l,n),r!==t)if(typeof r!="object"||r===null){t[n]=r;return}else if(Array.isArray(r)){t[n]=De(r);return}else if(Se(r)){t[n]=Ne(r);return}else if(typeof s!="object"||s===null||Array.isArray(s)){t[n]=Q({},r);return}else{t[n]=Q(s,r);return}})}),t}function ne(...e){let t=l=>{let n=Q({},l),u=a=>{for(let g in a){let c=a[g];typeof c=="object"&&!Array.isArray(c)?u(c):g&&!g.startsWith("@")&&(a[g]={"":c})}};return n.styles?u(n.styles):n.styles={},n.mediaQueries?u(n.mediaQueries):n.mediaQueries={},n.variables?u(n.variables):n.variables={},n},r=[];for(let l of e)(function n(u){if(u.extends?.length)for(let a of u.extends)n("config"in a?a.config:a);r.push(t(u))})(l);let s=r[0];for(let l=1;l<r.length;l++){let n=r[l];s=Q(s,n),Object.prototype.hasOwnProperty.call(n,"animations")&&s.animations&&Object.assign(s.animations,n.animations)}return s}var H=class e{constructor(t=K){this.customConfig=t;t?.override?this.config=ne(t):this.config=ne(K,t),this.resolve(),this.constructor===e&&oe.push(this)}static config=K;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 t={current:void 0,currentColor:void 0,transparent:void 0},{styles:r,selectors:s,variables:l,semantics:n,mediaQueries:u,rules:a,animations:g}=this.config;function c(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(s){let o=re(s);for(let m in o){let f=o[m],i=new RegExp(c(m)+"(?![a-z-])");for(let d of Array.isArray(f)?f:[f]){let v=d.match(/^::-[a-z]+-/m)?.[0]??"",x=this.selectors[v];x||(x=this.selectors[v]=[]);let D=x.find(([y])=>y===i);D||(D=[i,[]],x.push(D)),D[1].push(d)}}}if(l){let o={},m=(f,i,d)=>{if(!f)return;let v=(D,y,R,C)=>{if(y===void 0)return;if(y.type==="color"){if(C){let w=y.value.indexOf("/");y={...y,value:w===-1?y.value+" / "+(C.startsWith("0.")?C.slice(1):C):y.value.slice(0,w+2)+String(+y.value.slice(w+2)*+C).slice(1)}}t[D]=void 0}let N=R??d;if(N!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,D)){let w=this.variables[D];N?(w.themes||(w.themes={}),w.themes[N]=y):(w.value=y.value,y.type==="color"&&(w.space=y.space))}else if(N){let w={type:y.type,themes:{[N]:y}};y.type==="color"&&(w.space=y.space),this.variables[D]=w}else this.variables[D]=y;else this.variables[D]=y},x=typeof f;if(x==="object")if(Array.isArray(f))v(i,{type:"string",value:f.join(",")});else{let D=Object.keys(f);for(let y of D)y===""||y.startsWith("@")?m(f[y],i,y||D.some(R=>R.startsWith("@"))?y.slice(1):void 0):m(f[y],i+"-"+y,void 0)}else if(x==="number")v(i,{type:"number",value:f}),v("-"+i,{type:"number",value:f*-1});else if(x==="string"){let D=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(f);if(D)Object.prototype.hasOwnProperty.call(o,i)||(o[i]={}),o[i][d]=()=>{delete o[i][d];let[y,R]=D[1].split("@");if(y){if(Object.prototype.hasOwnProperty.call(o,y))for(let N of Object.keys(o[y]))o[y][N]?.();let C=this.variables[y];if(C)if(R===void 0&&C.themes){v(i,{type:C.type,value:C.value,space:C.space},"",D[2]);for(let N in C.themes)v(i,C.themes[N],N,D[2])}else{let N=R!==void 0?C.themes?.[R]:C;if(N){let w={type:N.type,value:N.value};N.type==="color"&&(w.space=N.space),v(i,w,void 0,D[2])}}}};else{let y=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(f);if(y){let[R,C,N,w]=X(y[1]);v(i,{type:"color",value:`${R} ${C} ${N}${w===1?"":" / "+w}`,space:"rgb"})}else{let R=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(f);if(R)v(i,{type:"color",value:R[1]+" "+R[2]+" "+R[3]+(R[4]?" / "+(R[4].startsWith("0.")?R[4].slice(1):R[4]):""),space:"rgb"});else{let C=/^hsl\((.*?)\)$/.exec(f);C?v(i,{type:"color",value:C[1],space:"hsl"}):v(i,{type:"string",value:f})}}}}};for(let f in l)m(l[f],f);for(let f of Object.keys(o))for(let i of Object.keys(o[f]))o[f][i]?.()}if(u&&(this.mediaQueries=re(u)),g)for(let o in g){let m=this.animations[o]={},f=g[o];for(let i in f){let d=m[i]={},v=f[i];for(let x in v)d[x]=v[x]}}let h=r?re(r):{},b=Object.keys(h),p=o=>{if(Object.prototype.hasOwnProperty.call(this.styles,o))return;let m=this.styles[o]=[],f=h[o];if(!f)return;let i=f.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let d of i){let v=x=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,x)){let D=this.stylesBy[x];D.includes(o)||D.push(o)}else this.stylesBy[x]=[o];m.includes(x)||m.push(x)};if(b.includes(d)){p(d);for(let x of this.styles[d])v(x)}else v(d)}};for(let o of b)p(o);if(n&&Object.entries(n).sort((o,m)=>o[0].localeCompare(m[0])).forEach(([o,m],f)=>{this.RegisteredSemanticRules.push({id:"."+o,match:new RegExp("^"+c(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:f,definition:{declarations:m,layer:-8}})}),a){let o=Object.entries(a).sort((i,d)=>i[1].layer!==d[1].layer?(d[1].layer||0)-(i[1].layer||0):d[0].localeCompare(i[0])),m=o.length,f=Object.keys(t);o.forEach(([i,d],v)=>{let x={id:i,variables:{},order:this.RegisteredSemanticRules.length+m-1-v,definition:d};this.RegisteredRules.push(x);let D=d.match,y=R=>{for(let C in this.variables)if(C.startsWith(R+"-")||C.startsWith("-"+R+"-")){let N=C.slice(R.length+(R.startsWith("-")?0:1));x.variables[N]={...this.variables[C],name:C}}};if(d.variables)for(let R of d.variables)y(R);if(y(i),D)if(Array.isArray(D)){let[R,C=[]]=D,N=[];C.length&&N.push(`(?:${C.join("|")})(?![a-zA-Z0-9-])`),Object.keys(x.variables).length&&N.push(`(?:${Object.keys(x.variables).join("|")})(?![a-zA-Z0-9-])`),d.colored&&N.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${f.join("|")})(?![a-zA-Z0-9-])`),d.numeric&&N.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),N.length&&(x.match=new RegExp(`^${R}:(?:${N.join("|")})[^|]*?(?:@|$)`))}else x.match=D})}}match(t){for(let r of this.RegisteredRules)if(r.match?.test(t)||(r.definition.layer===-2||r.definition.layer===-6||r.definition.layer===-3||r.definition.layer===-7)&&t.startsWith(r.id+":"))return r;for(let r of this.RegisteredSemanticRules)if(r.match?.test(t))return r}generate(t){return(Object.prototype.hasOwnProperty.call(this.styles,t)?this.styles[t].map(r=>this.create(r)):[this.create(t)]).filter(r=>r&&r.text)}create(t){if(Object.prototype.hasOwnProperty.call(this.ruleBy,t))return this.ruleBy[t];let r=this.match(t);if(r)return new G(t,r,this)}refresh(t=this.customConfig){t?.override?this.config=ne(t):this.config=ne(K,t),this.resolve(),this.rules.length=0,this.ruleBy={};for(let r in this.classesUsage)this.add(r);return this}reset(){this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules={};for(let t in this.animations){let r=this.animations[t];r.usage=0,r.native=void 0}for(let t in this.variables){let r=this.variables[t];r.usage=0}return this}destroy(){return this.reset(),oe.splice(oe.indexOf(this),1),this}add(...t){for(let r of t){let s=this.generate(r);if(s.length)for(let l of s)this.insert(l)}return this}delete(...t){let r=this.style?.sheet,s=l=>{let n=this.ruleBy[l];if(!(!n||Object.prototype.hasOwnProperty.call(this.stylesBy,l)&&this.stylesBy[l].some(u=>Object.prototype.hasOwnProperty.call(this.classesUsage,u)))){if(r&&n.natives.length){let u=n.natives[0];for(let a=0;a<r.cssRules.length;a++)if(r.cssRules[a]===u.cssRule){for(let c=0;c<n.natives.length;c++)r.deleteRule(a);break}}if(this.rules.splice(this.rules.indexOf(n),1),delete this.ruleBy[l],n.variableNames)for(let u of n.variableNames){let a=this.variables[u];if(a.usage||(a.usage=0),!--a.usage){let g=c=>{let h=this.variablesNativeRules[c];if(h.cssRule.style.removeProperty("--"+u),!h.cssRule.style.length){let b=this.rules[0],p=b.natives.indexOf(h);r?.deleteRule(p),b.natives.splice(p,1),delete this.variablesNativeRules[c],b.natives.length||(this.rules.splice(0,1),this.variablesNativeRules={})}};if(a.value&&g(""),a.themes)for(let c in a.themes)g(c)}}if(n.animationNames){let u=Object.keys(this.variablesNativeRules).length?1:0,a=this.rules[u];for(let g of n.animationNames){let c=this.animations[g];if(c.usage||(c.usage=0),!--c.usage&&c.native){let h=a.natives.indexOf(c.native);this.style.sheet?.deleteRule(Object.keys(this.variablesNativeRules).length+h),a.natives.splice(h,1),c.native=void 0}}a.natives.length||(this.rules.splice(u,1),this.hasKeyframesRule=!1)}n.definition.delete?.call(n,l)}};for(let l of t)if(Object.prototype.hasOwnProperty.call(this.styles,l)){for(let n of this.styles[l])Object.prototype.hasOwnProperty.call(this.classesUsage,n)||s(n);delete this.ruleBy[l]}else s(l)}insert(t){if(this.ruleBy[t.className])return;let r,s=this.rules.length-1,{media:l,order:n,priority:u,hasWhere:a,className:g}=t,c=(p,o,m)=>{let f=p;for(;f<=s;f++){let i=this.rules[f];if(o?.(i))return m?-1:f-1;if(m?.(i))return f}return m?-1:f-1},h,b;if(l){let p=this.rules.findIndex(o=>o.media);if(p===-1)r=s+1;else{let{"max-width":o,"min-width":m}=l.features;if(o||m){let f=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(f===-1)r=s+1;else if(o&&m){if(u===-1?(h=c(f,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),b=c(f,i=>i.priority!==-1)):(h=c(f,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),b=s),h!==-1){let i=o.value-m.value,d=b,v=h;for(h=void 0;d>=v;d--){let{"max-width":x,"min-width":D}=this.rules[d].media.features,y=x.value-D.value;if(y<i)b=d-1;else if(y===i)h=d;else break}}if(h!==-1&&h!==void 0){let i=o.value-m.value;for(let d=b;d>=h;d--){let{"max-width":v,"min-width":x}=this.rules[d].media.features,D=v.value-x.value;if(D<i)b=d-1;else if(D>i){h=d+1;break}}}}else if(m){if(u===-1?(h=c(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),b=c(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(h=c(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),b=c(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),h!==-1)for(let i=b;i>=h;i--){let d=this.rules[i].media.features["min-width"].value;if(d>m.value)b=i-1;else if(d<m.value){h=i+1;break}}}else if(u===-1?(h=c(f,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),b=c(f,i=>i.media.features["min-width"]||i.priority!==-1)):(h=c(f,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),b=c(f,i=>i.media.features["min-width"]&&i.priority!==-1)),h!==-1)for(let i=b;i>=h;i--){let d=this.rules[i].media.features["max-width"].value;if(d<o.value)b=i-1;else if(d>o.value){h=i+1;break}}}else u===-1?(h=p,b=c(p,f=>f.media?.features["max-width"]||f.media?.features["min-width"]||f.priority!==-1)):(h=c(p,f=>f.media?.features["max-width"]||f.media?.features["min-width"],f=>f.priority!==-1),b=c(p,f=>f.media?.features["max-width"]||f.media?.features["min-width"]))}}else{let p=Object.keys(this.variablesNativeRules).length?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;u===-1?(h=p,b=c(p,o=>o.media||o.priority!==-1)):(h=c(p,o=>o.media,o=>o.priority!==-1),b=c(p,o=>o.media))}if(r===void 0&&b!==void 0&&h!==void 0)if(h===-1)r=b+1;else{if(u===-1)for(let p=h;p<=b;p++){let o=this.rules[p];if(!(!a&&o.hasWhere)&&(a&&!o.hasWhere||o.order>=n)){r=p;break}}else for(let p=h;p<=b;p++){let o=this.rules[p];if(!(!a&&o.hasWhere)){if(a&&!o.hasWhere){r=p;break}if(o.priority<u){r=p;break}else if(o.priority===u){if(o.order>=n){r=p;break}}else r=p+1}}r===void 0&&(r=b+1)}if(this.rules.splice(r,0,t),this.ruleBy[g]=t,this.style){let p=this.style.sheet,o=0,m=f=>{let i=this.rules[f];if(i){if(!i.natives.length)return m(f-1);let d=i.natives[i.natives.length-1],v=d.cssRule?.parentRule??d.cssRule;if(p){for(let x=0;x<p.cssRules.length;x++)if(p.cssRules[x]===v){o=x+1;break}}}};m(r-1);for(let f=0;f<t.natives.length;)try{let i=t.natives[f];p?.insertRule(i.text,o),i.cssRule=p?.cssRules[o++],f++}catch(i){console.error(i),t.natives.splice(f,1)}}this.handleRuleWithVariableNames(t),this.handleRuleWithAnimationNames(t),t.definition.insert?.call(t)}get text(){return this.rules.map(t=>t.text).join("")}handleRuleWithAnimationNames(t,r=!1){if(t.animationNames){let s=this.style?.sheet;for(let l of t.animationNames){let n=this.animations[l];if(n.usage)n.usage++;else{let u={text:`@keyframes ${l}{`+Object.entries(n).filter(([c])=>c!=="usage"&&c!=="native").map(([c,h])=>`${c}{${Object.entries(h).map(([b,p])=>b+":"+p).join(";")}}`).join("")+"}"},a=Object.keys(this.variablesNativeRules).length?1:0,g;if(this.hasKeyframesRule?(g=this.rules[a]).natives.push(u):(this.rules.splice(a,0,g={natives:[u],get text(){return this.natives.map(c=>c.text).join("")}}),this.hasKeyframesRule=!0),s){let c;if(r)for(let h=0;h<s.cssRules.length;h++){let b=s.cssRules[h];if(b.constructor.name==="CSSKeyframesRule"&&b.name===l){c=b;break}}if(c)u.cssRule=c;else{let h=Object.keys(this.variablesNativeRules).length+g.natives.length-1;s.insertRule(u.text,h),u.cssRule=s.cssRules[h]}}n.usage=1,n.native=u}}}}handleRuleWithVariableNames(t,r=!1){if(t.variableNames){let s=this.style?.sheet;for(let l of t.variableNames){let n=this.variables[l];if(n.usage)n.usage++;else{let u=(a,g)=>{let c=this.variablesNativeRules[a];if(!c){let b,p,o;if(a)switch(this.config.themeDriver){case"media":p=`@media(prefers-color-scheme:${a})`,o=":root";break;case"host":o=`:host(.${a})`;break;default:o=`.${a}`;break}else o=":root";if(s){let m=Object.keys(this.variablesNativeRules).length?this.rules[0].natives.length:0;s.insertRule((p?p+"{":"")+o+"{}"+(p?p+"}":""),m),b=p?s.cssRules[m].cssRules[0]:s.cssRules[m]}else{let m=new Map,f=Object.defineProperties({},{getPropertyValue:{value:i=>m.get(i)},removeProperty:{value:i=>{m.delete(i);for(let d=0;d<f.length;d++)f[d]===i&&delete f[d]}},setProperty:{value:(i,d)=>{f[f.length]=i,m.set(i,d)}},length:{get(){return Object.keys(f).length}}});b={selectorText:o,style:f,styleMap:m},p&&(b.parentRule={conditionText:p})}c=this.pushVariableNativeRule(a,b)}let h="--"+l;(!r||!c.cssRule.style.getPropertyValue(h))&&c.cssRule.style.setProperty(h,String(g.value))};if(n.value&&u("",n),n.themes)for(let a in n.themes)u(a,n.themes[a]);n.usage=1}}}}pushVariableNativeRule(t,r){if(!Object.keys(this.variablesNativeRules).length){this.variablesNativeRules={};let u={natives:[],get text(){return this.natives.map(a=>a.text).join("")}};this.rules.splice(0,0,u)}let s="",l="}";r.parentRule&&(s+=r.parentRule.conditionText.replace(/ /g,"")+"{",l+="}"),s+=r.selectorText+"{";let n={cssRule:r,get text(){let u=[];for(let a=0;a<r.style.length;a++){let g=r.style[a];u.push(g+":"+r.style.getPropertyValue(g))}return s+u.join(";")+l}};return this.rules[0].natives.push(this.variablesNativeRules[t]=n),n}},oe=[];globalThis.MasterCSS=H,globalThis.masterCSSs=oe;var we=[",",".","#","[","!","*",">","+","~",":","@"];var q=class extends H{constructor(r=document,s=K){super(s);this.root=r;this.customConfig=s;r||(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),ae.push(this)}host;observing=!1;container;observer;observe(r={subtree:!0,childList:!0}){if(this.observing||!this.root)return this;if(ae.find(l=>l!==this&&l.root===this.root))return console.warn("Cannot observe the same root element repeatedly."),this;if(this.root?.styleSheets)for(let l of this.root.styleSheets){let{ownerNode:n}=l;if(n&&n.id==="master"){this.style=n;break}}if(this.style?.sheet){let l=0;for(;l<this.style.sheet.cssRules.length;l++){let n=this.style.sheet.cssRules[l];switch(n.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let a=/\(prefers-color-scheme: (.*?)\)/.exec(n.conditionText);if(a){let g=n.cssRules[0];if(g?.constructor.name==="CSSStyleRule"&&g.selectorText===":root"){this.pushVariableNativeRule(a[1],g);continue}}}break;case"CSSStyleRule":let u=n.selectorText;if(n.style.length){let a=!0;for(let g=0;g<n.style.length;g++)if(!n.style[g]?.startsWith("--")){a=!1;break}if(a){if(u===":root"){this.pushVariableNativeRule("",n);continue}else if(this.config.themeDriver==="host"){let g=/:host(.*?)/.exec(u);if(g){this.pushVariableNativeRule(g[1],n);continue}}else if(!u.startsWith(".\\$")){this.pushVariableNativeRule(u.slice(1),n);continue}}}break}break}for(;l<this.style.sheet.cssRules.length;l++){let n=a=>{if(a.selectorText){let c=a.selectorText.split(", ")[0].split(" ");for(let h=0;h<c.length;h++){let b=c[h];if(b[0]==="."){let p=b.slice(1),o="";for(let m=0;m<p.length;m++){let f=p[m],i=p[m+1];if(f==="\\"){if(m++,i!=="\\"){o+=i;continue}}else if(we.includes(f))break;o+=f}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,o)&&!Object.prototype.hasOwnProperty.call(this.styles,o)){let m=this.generate(o)[0];if(m)return m}}}}else if(a.cssRules)for(let g=0;g<a.cssRules.length;g++){let c=n(a.cssRules[g]);if(c)return c}},u=n(this.style.sheet.cssRules[l]);if(u){this.rules.push(u),this.ruleBy[u.className]=u;for(let a=0;a<u.natives.length;a++)u.natives[a].cssRule=this.style.sheet.cssRules[l+a];l+=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=l=>{l.forEach(n=>{Object.prototype.hasOwnProperty.call(this.classesUsage,n)?this.classesUsage[n]++:(this.classesUsage[n]=1,this.add(n))})};return s(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(l=>s(l.classList)),this.observer=new MutationObserver(l=>{let n={},u=[],a=[],g=[],c=(o,m)=>{m?o.classList.forEach(b):o.classList.forEach(h);let f=o.children;for(let i=0;i<f.length;i++){let d=f[i];d.classList&&(a.push(d),c(d,m))}},h=o=>{Object.prototype.hasOwnProperty.call(n,o)?n[o]++:n[o]=1},b=o=>{Object.prototype.hasOwnProperty.call(n,o)?n[o]--:Object.prototype.hasOwnProperty.call(this.classesUsage,o)&&(n[o]=-1)},p=(o,m)=>{for(let f=0;f<o.length;f++){let i=o[f];i.classList&&!a.includes(i)&&!g.includes(i)&&(i.isConnected!==m?(a.push(i),c(i,m)):g.push(i))}};for(let o=0;o<l.length;o++){let m=l[o],{addedNodes:f,removedNodes:i,type:d,target:v}=m;if(d==="attributes"){if(u.find(x=>x.target===v))continue;u.push(m)}else p(f,!1),(!v.isConnected||!a.includes(v))&&p(i,!0)}if(!(!u.length&&!Object.keys(n).length)){for(let{oldValue:o,target:m}of u){let f=a.includes(m),i=m.classList,d=o?o.split(" "):[];if(f){if(m.isConnected)continue;for(let v of d)i.contains(v)||b(v)}else if(m.isConnected){i.forEach(v=>{d.includes(v)||h(v)});for(let v of d)i.contains(v)||b(v)}}for(let o in n){let m=n[o],f=(this.classesUsage[o]||0)+m;f===0?(delete this.classesUsage[o],this.delete(o)):(Object.prototype.hasOwnProperty.call(this.classesUsage,o)||this.add(o),this.classesUsage[o]=f)}}}),this.observer.observe(this.root,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.removeProperty("display"),this.observing=!0,this}refresh(r=this.customConfig){let s=document.createElement("style");return s.id="master",this.style.replaceWith(s),this.style=s,super.refresh(r),this}reset(){super.reset();let r=this.style?.sheet;if(r?.cssRules)for(let s=r.cssRules.length-1;s>=0;s--)r.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(),ae.splice(ae.indexOf(this),1),this}},ae=[];globalThis.RuntimeCSS=q,globalThis.runtimeCSSs=ae;var ke=`/** @type {import('@master/css').Config} */
|
|
1
|
+
"use strict";var le=Object.defineProperty;var je=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var Ee=Object.prototype.hasOwnProperty;var Me=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},Pe=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Te(t))!Ee.call(e,l)&&l!==r&&le(e,l,{get:()=>t[l],enumerable:!(s=je(t,l))||s.enumerable});return e};var Ae=e=>Pe(le({},"__esModule",{value:!0}),e);var Fe={};Me(Fe,{CONFIG_ESM_TEXT:()=>ke,CONFIG_TEXT:()=>we,CONFIG_TS_TEXT:()=>$e,Layer:()=>ce,MasterCSS:()=>F,Rule:()=>q,RuntimeCSS:()=>X,animations:()=>de,config:()=>L,default:()=>F,extend:()=>K,fillColorScale:()=>ye,functions:()=>ge,initRuntime:()=>be,mediaQueries:()=>G,reorderForReadableClasses:()=>ve,rules:()=>me,selectors:()=>fe,semantics:()=>ue,variables:()=>he});module.exports=Ae(Fe);var Q={"(":")","'":"'",'"':'"',"{":"}"};function te(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,s=-1,l="",a,u=t.charCodeAt(0);if(r==1&&u==45)return"\\"+t;for(;++s<r;){if(a=t.charCodeAt(s),a==0){l+="\uFFFD";continue}if(a>=1&&a<=31||a==127||s==0&&a>=48&&a<=57||s==1&&a>=48&&a<=57&&u==45){l+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){l+=t.charAt(s);continue}l+="\\"+t.charAt(s)}return l}var ce=(c=>(c[c.Semantic=-8]="Semantic",c[c.CoreNativeShorthand=-7]="CoreNativeShorthand",c[c.NativeShorthand=-6]="NativeShorthand",c[c.CoreShorthand=-5]="CoreShorthand",c[c.Shorthand=-4]="Shorthand",c[c.CoreNative=-3]="CoreNative",c[c.Native=-2]="Native",c[c.Core=-1]="Core",c[c.Normal=0]="Normal",c))(ce||{});var ne=/^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m;var ze=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,q=class{constructor(t,r,s){this.className=t;this.css=s;Object.assign(this,r);let{id:l,definition:a}=r,{analyze:u,transformValue:n,declare:g,transformValueComponents:c,create:h,layer:b,unit:p,colored:o}=a;this.layer=b,this.colored=!!o,a.unit||(a.unit=""),a.separators||(a.separators=[","]);let{scope:m,important:f,themeDriver:i}=s.config,{selectors:d,mediaQueries:v,stylesBy:x,animations:D}=s,y=x[t];h&&h.call(this,t),this.declarations=a.declarations;let R,C;if(b===-8)R=t.slice(l.length-1);else{let V;if(u)[V,C]=u.call(this,t);else{let k=t.indexOf(":");this.prefix=t.slice(0,k+1),V=t.slice(k+1)}this.valueComponents=[],R=V.slice(this.parseValue(this.valueComponents,0,V,p,"",void 0,!1,l==="animation"||l==="animation-name"?Object.keys(this.css.animations):[]))}R[0]==="!"&&(this.important=!0,R=R.slice(1)),this.stateToken=R;let N=(V,k)=>{let T=(S,O,$,j)=>{for(let[A,W]of O)if(A.test(S)){for(let z of W)T(S.replace(A,z),O,$,!0);return}j&&$.push(S)},E=S=>{let O=S.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((W,z)=>z%3?W:W.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),$=[],j="",A=0;for(let W=0;W<O.length;W++){let z=O[W];if(z==="\\"){j+=z+O[++W];continue}!A&&z===","?($.push(j),j=""):(j+=z,A&&z===")"?A--:z==="("&&A++)}return j&&$.push(j),$},M=[];""in d?T(V,d[""],M,!0):M.push(V);let P={};for(let[S,O]of Object.entries(d)){if(!S)continue;let $=[];for(let j of M)T(j,O,$,!1);$.length&&(P[S]=$)}let I=(S,O)=>{let $=O.reduce((j,A)=>(j.push(...E(A)),j),[]);S in k?k[S].push(...$):k[S]=$},B=Object.keys(P);if(B.length)for(let S of B)I(S,P[S]);else I("",M)};C?(this.vendorPrefixSelectors={},N(C,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let w=R.split("@"),Z=w[0];if(Z){this.vendorSuffixSelectors={},N(Z,this.vendorSuffixSelectors);for(let V of Object.values(this.vendorSuffixSelectors))for(let k of V){this.hasWhere!==!1&&(this.hasWhere=k.includes(":where("));let T=[":disabled",":active",":focus",":hover"];for(let E=0;E<T.length;E++)if(k.includes(T[E])){(this.priority===-1||this.priority>E)&&(this.priority=E);break}}}else this.vendorSuffixSelectors={"":[""]};let J={},Oe=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),Re=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(Oe)J[""]=Re?[""]:Object.keys(this.vendorSuffixSelectors);else if(Re)for(let V in this.vendorPrefixSelectors)J[V]=[""];else for(let V in this.vendorPrefixSelectors){let k=J[V]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,V))k.push(V);else for(let T in this.vendorSuffixSelectors)k.push(T)}for(let V=1;V<w.length;V++){let k=w[V];if(k)if(k==="rtl"||k==="ltr")this.direction=k;else{let T="",E,M=ze.exec(k);if(M)T=M[1],E=k.slice(T.length);else{this.media={token:k,features:{}};let P=[],I=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")P.push("(orientation:"+S+")");else if(S==="motion"||S==="reduced-motion")P.push("(prefers-reduced-motion:"+(S==="motion"?"no-preference":"reduce")+")");else{let O=v[S];if(O&&typeof O=="string")P.push(O);else{let $="",j="",A=0;S.startsWith("<=")?(j="<=",$="max-width"):S.startsWith(">=")||O?(j=">=",$="min-width"):S.startsWith(">")?(j=">",$="min-width",A=.02):S.startsWith("<")&&(j="<",$="max-width",A=-.02);let W=j?S.replace(j,""):S,z=v[W];switch($){case"max-width":case"min-width":let _={};typeof z=="number"?_={type:"number",value:z+A,unit:"px"}:(_=this.parseValueComponent(W,"px"),_.type==="number"&&_.unit==="px"&&(_.value+=A)),this.media.features[$]=_,_.type==="number"?P.push("("+$+":"+(_.value+_.unit)+")"):P.push("("+$+":"+_.value+")");break}}}},B=k.includes("&");if(B){let S=k.split("&");for(let O of S)I(O)}else I(k);if(this.media.type&&(E=this.media.type),P.length&&(E=P.join(" and ")),E)T="media";else if(!B){this.theme=k;continue}}E&&(this.at[T]=(T in this.at?this.at[T]+" and ":"")+E.replace(/\|/g," "))}}let ee;this.valueComponents&&(c&&(this.valueComponents=c.call(this,this.valueComponents)),ee=this.resolveValue(this.valueComponents,p,[],!1),n&&(ee=n.call(this,ee)),g?this.declarations=g.call(this,ee,this.valueComponents):l&&(this.declarations={[l]:ee}));let oe=[];for(let V in this.declarations){let k=M=>{if(D&&(M.startsWith("animation")||M.startsWith("animation-name"))){let P=M.split(":")[1].split("!important")[0].split(" ").filter(I=>I in this.css.animations&&(!this.animationNames||!this.animationNames.includes(I)));P.length&&(this.animationNames||(this.animationNames=[]),this.animationNames=P)}oe.push(M+((this.important||f)&&!M.endsWith("!important")?"!important":""))},T=V+":",E=this.declarations[V];if(Array.isArray(E))for(let M of E)k(T+String(M));else k(T+String(E))}if(oe.length)for(let V in J)for(let k of J[V]){let T="";this.direction&&(T+="[dir="+this.direction+"] ");let E=this.vendorPrefixSelectors[V],M=this.vendorSuffixSelectors[k],P=E.map(S=>S+T),I=S=>P.map(O=>(this.theme&&i!=="media"?i==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(m?m+" ":"")+O).reduce((O,$)=>(O.push(M.reduce((j,A)=>(j.push($+"."+te(S)+A),j),[]).join(",")),O),[]).join(","),B=I(t)+(y?y.reduce((S,O)=>S+","+I(O),""):"")+"{"+oe.join(";")+"}";for(let S of Object.keys(this.at).sort((O,$)=>$==="supports"?-1:1))B="@"+S+(S.includes(" ")?"":" ")+this.at[S]+"{"+B+"}";this.theme&&i==="media"&&(B=`@media(prefers-color-scheme:${this.theme}){`+B+"}"),this.natives.push({text:B})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;animationNames;variableNames;resolveValue=(t,r,s,l)=>{let{functions:a}=this.css.config,u="";for(let n of t)switch(n.type){case"function":let g=a&&a[n.name];if(g?.transform&&!n.bypassTransform){let h=g.transform.call(this,this.resolveValue(n.children,g.unit??r,s,l||n.name==="calc"),s);u+=n.text=typeof h=="string"?h:this.resolveValue(h,g?.unit??r,s,l)}else u+=n.text=n.name+n.symbol+this.resolveValue(n.children,g?.unit??r,s,l)+Q[n.symbol];break;case"variable":let c=this.css.variables[n.name];if(c){let h=(b,p)=>{if(c.themes)if(this.theme){let o=c.themes[this.theme]??c;o?.value&&b(o)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(n.name)||this.variableNames.push(n.name),p();else b(c)};switch(c.type){case"string":h(p=>{let o=[];this.parseValue(o,0,p.value,r,"",void 0,l,[...s,n.name]),u+=n.text=this.resolveValue(o,r,[...s,n.name],l)},()=>{u+=n.text=`var(--${n.name})`});break;case"number":h(p=>{if(l)u+=n.text=p.value;else{let o=this.parseValueComponent(p.value,r);u+=n.text=o.value+(o.unit??"")}},()=>{u+=n.text=r?`calc(var(--${n.name}) / 16 * 1rem)`:`var(--${n.name})`});break;case"color":let b=n.alpha?"/"+n.alpha:"";h(p=>{u+=n.text=`${p.space}(${p.value}${b})`},()=>{u+=n.text=`${c.space}(var(--${n.name})${b})`});break}}else u+=n.text=`var(--${n.name}${n.fallback?","+n.fallback:""})`;break;case"separator":u+=n.text?n.text:n.text=n.value;break;case"number":u+=n.text=n.value+(n.unit||"");break;default:u+=n.text=n.value;break}return u};get text(){return this.natives.map(t=>t.text).join("")}parseValue=(t,r,s,l,a,u,n=!1,g=[])=>{let c=u===void 0,h=!c&&(u.endsWith("$")||u.endsWith("var")),p=(i=>i==="'"||i==='"')(a),o=[","];this.definition.separators?.length&&o.push(...this.definition.separators);let m="",f=()=>{if(m){let i=!1;if(!h||t.length){let d=(v,x)=>{let D=Object.prototype.hasOwnProperty.call(this.variables,v)?this.variables[v]:Object.prototype.hasOwnProperty.call(this.css.variables,v)?this.css.variables[v]:void 0;if(D){let y=D.name??v;if(!g.includes(y)){i=!0;let R={type:"variable",name:y,variable:this.css.variables[y]};x&&(R.alpha=x),t.push(R)}}};if(d(m),!i&&this.colored){let[v,x]=m.split("/");d(v,x)}}if(!i){if(!h){let d=ne.exec(m);d&&(m=String(+d[1]*(this.css.config.baseUnit??1)))}n?t.push({type:"string",value:m}):t.push(this.parseValueComponent(m,l))}m=""}};for(;r<s.length;r++){let i=s[r];if(i===a){if(p){let d=0;for(let v=m.length-1;m[v]==="\\";v--)d++;if(d%2){m+=i;continue}else f()}else f();return r}else if(!p&&i in Q){let d=m,v={type:"function",name:d,symbol:i,children:[]};t.push(v),m="";let x=i==="("?this.css.config.functions?.[d]:void 0;!this.colored&&x?.colored&&(this.colored=!0),r=this.parseValue(v.children,++r,s,x?.unit??l,Q[i],d||u||"",n||d==="calc")}else if((i==="|"||i===" ")&&a!=="}"&&(!p||u==="path"))f(),t.push({type:"separator",value:" "});else{if(!p){if(i===".")if(isNaN(+s[r+1])){if(c)break}else s[r-1]==="-"&&(m+="0");else if(o.includes(i)){f(),t.push({type:"separator",value:i,text:(i===","?"":" ")+i+(i===","?"":" ")});continue}else if(c&&(i==="#"&&(m||t.length&&t[t.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(i)))break}m+=i}}return f(),r};parseValueComponent(t,r=this.definition.unit){let s=r??this.definition.unit,l="",a;if(typeof t=="number")return s&&!l?((s==="rem"||s==="em")&&(a=t/(this.css.config.rootSize||1)),l=s||""):a=t,{value:a,unit:l,type:"number"};if(s){if(/^\d+\/\d+/.test(t)){let[n,g]=t.split("/");return{value:+n/+g*100,unit:"%",type:"number"}}let u=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(u)return a=+u[1],l=u[3]||"",l||((s==="rem"||s==="em")&&(a=a/(this.css.config.rootSize||1)),l=s||""),{value:a,unit:l,type:"number"}}return{value:t,type:"string"}}};var G={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};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"},fe=We;var Ie={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"}},ue=Ie;var Be={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"}}},de=Be;var _e={full:"100%",fit:"fit-content",max:"max-content",min:"min-content","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"]},screen:G,"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"},current:"currentColor",text:{strong:{"@light":"$(slate-95)","@dark":"$(gray-10)"},neutral:{"@light":"$(slate-70)","@dark":"$(gray-30)"},lightest:{"@light":"$(slate-30)","@dark":"$(gray-60)"},lighter:{"@light":"$(slate-40)","@dark":"$(gray-50)"},light:{"@light":"$(slate-50)","@dark":"$(gray-40)"},gray:{"@light":"$(gray-60)","@dark":"$(gray-30)"},slate:{"@light":"$(slate-60)","@dark":"$(slate-30)"},brown:{"@light":"$(brown-60)","@dark":"$(brown-30)"},orange:{"@light":"$(orange-60)","@dark":"$(orange-30)"},amber:{"@light":"$(amber-60)","@dark":"$(amber-40)"},yellow:{"@light":"$(yellow-60)","@dark":"$(yellow-40)"},lime:{"@light":"$(lime-60)","@dark":"$(lime-40)"},green:{"@light":"$(green-60)","@dark":"$(green-40)"},beryl:{"@light":"$(beryl-60)","@dark":"$(beryl-40)"},teal:{"@light":"$(teal-60)","@dark":"$(teal-40)"},cyan:{"@light":"$(cyan-60)","@dark":"$(cyan-40)"},sky:{"@light":"$(sky-60)","@dark":"$(sky-30)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-30)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-30)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-30)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-30)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-30)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-30)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-30)"},red:{"@light":"$(red-60)","@dark":"$(red-30)"}},base:{"@light":"$(white)","@dark":"$(gray-95)"},canvas:{"@light":"$(slate-5)","@dark":"$(gray-90)"},surface:{"@light":"$(white)","@dark":"$(gray-80)"},white:"#ffffff",black:"#000000",frame:{"@light":"$(slate-60)","@dark":"$(gray-30)"},gray:{5:"#f6f5f7",10:"#efeef0",20:"#cdccce",30:"#a2a1a3",40:"#888789",50:"#737274",60:"#585759",70:"#444345",80:"#323133",90:"#29282a",95:"#222123","":{"@light":"$(gray-30)","@dark":"$(gray-40)"}},slate:{5:"#f8f9fb",10:"#eff2f9",20:"#c8d0e3",30:"#9fabc6",40:"#7c8cab",50:"#5f7395",60:"#455572",70:"#37455d",80:"#283348",90:"#1d273a",95:"#182030","":{"@light":"$(slate-30)","@dark":"$(slate-40)"}},brown:{5:"#fff6f0",10:"#feefe3",20:"#f3bea4",30:"#e7976e",40:"#da7c4d",50:"#cc6633",60:"#b65325",70:"#9d4119",80:"#833111",90:"#692007",95:"#431304","":{"@light":"$(brown-40)","@dark":"$(brown-50)"}},orange:{5:"#fff5ea",10:"#fff5df",20:"#ffcb9e",30:"#ff9b47",40:"#ff8528",50:"#ff6c0a",60:"#e05200",70:"#bc3e00",80:"#992d00",90:"#701d00",95:"#471100","":{"@light":"$(orange-40)","@dark":"$(orange-50)"}},amber:{5:"#fff9eb",10:"#fff4db",20:"#ffe099",30:"#ffc133",40:"#ffb10a",50:"#f99e00",60:"#e57e00",70:"#c15d00",80:"#a34900",90:"#753200",95:"#4c1f00","":{"@light":"$(amber-40)","@dark":"$(amber-50)"}},yellow:{5:"#fffae5",10:"#fffed1",20:"#ffe993",30:"#ffd233",40:"#ffc300",50:"#efaf00",60:"#d69200",70:"#b77400",80:"#9e5c00",90:"#753c00",95:"#4c2600","":{"@light":"$(yellow-40)","@dark":"$(yellow-50)"}},lime:{5:"#f5ffe5",10:"#f5ffd6",20:"#d1fb8d",30:"#acec46",40:"#91d91a",50:"#77c012",60:"#61a60c",70:"#4c8d07",80:"#367604",90:"#256000",95:"#1b3d00","":{"@light":"$(lime-40)","@dark":"$(lime-50)"}},green:{5:"#e7fdea",10:"#dbfee4",20:"#a5f7b8",30:"#35ed66",40:"#00d655",50:"#00c147",60:"#00ad3f",70:"#008e34",80:"#007a2c",90:"#006023",95:"#003d16","":{"@light":"$(green-40)","@dark":"$(green-50)"}},beryl:{5:"#e0fef2",10:"#d2fff7",20:"#6cffd4",30:"#0fefa4",40:"#04e09e",50:"#04cb8f",60:"#00b277",70:"#009360",80:"#007f50",90:"#00663e",95:"#003d24","":{"@light":"$(beryl-40)","@dark":"$(beryl-50)"}},teal:{5:"#dbfefd",10:"#cfffff",20:"#7ffff6",30:"#00f4e4",40:"#00e4d4",50:"#00ccc8",60:"#00aeb7",70:"#0092a3",80:"#00798e",90:"#005d75",95:"#003747","":{"@light":"$(teal-40)","@dark":"$(teal-50)"}},cyan:{5:"#e0ffff",10:"#d1ffff",20:"#7ff6ff",30:"#1ee1ff",40:"#00ccf9",50:"#00b3ea",60:"#0099d6",70:"#007dbc",80:"#0067a8",90:"#005089",95:"#003156","":{"@light":"$(cyan-40)","@dark":"$(cyan-50)"}},sky:{5:"#e5f5ff",10:"#d9f8ff",20:"#a3deff",30:"#6bc6ff",40:"#34b2fd",50:"#059fff",60:"#008df9",70:"#0073e0",80:"#005cc6",90:"#0041a3",95:"#002566","":{"@light":"$(sky-60)","@dark":"$(sky-50)"}},blue:{5:"#e5f3fe",10:"#dbf2fe",20:"#add7ff",30:"#70b0ff",40:"#4c93fd",50:"#3a7cff",60:"#2563fd",70:"#1b53ec",80:"#1947d1",90:"#1735a2",95:"#102069","":{"@light":"$(blue-60)","@dark":"$(blue-50)"}},indigo:{5:"#f0f1fe",10:"#e9ecfe",20:"#c8cdfe",30:"#939eff",40:"#7e81fe",50:"#7068ff",60:"#5b4cfd",70:"#4e39ed",80:"#4732d2",90:"#3623a3",95:"#26176c","":{"@light":"$(indigo-60)","@dark":"$(indigo-50)"}},violet:{5:"#f2efff",10:"#efe8ff",20:"#d7c5ff",30:"#b198fe",40:"#9a70ff",50:"#8e56fe",60:"#812fff",70:"#7407f2",80:"#6405d1",90:"#4f05a3",95:"#35036e","":{"@light":"$(violet-60)","@dark":"$(violet-50)"}},purple:{5:"#f6f0ff",10:"#f6e8fe",20:"#e2bffe",30:"#c492fd",40:"#b266ff",50:"#a849fe",60:"#9514ff",70:"#8200e5",80:"#7100c1",90:"#58008e",95:"#3e0060","":{"@light":"$(purple-60)","@dark":"$(purple-50)"}},fuchsia:{5:"#faf0ff",10:"#fde8fe",20:"#f0baff",30:"#dd89fe",40:"#d760fe",50:"#cf33ff",60:"#b700e5",70:"#a200c6",80:"#8700a3",90:"#660175",95:"#480051","":{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-50)"}},pink:{5:"#fef1f9",10:"#fee9f8",20:"#ffb8df",30:"#f986c1",40:"#fa65b2",50:"#f747a2",60:"#ef2188",70:"#d61673",80:"#b80c5c",90:"#8f0543",95:"#64032f","":{"@light":"$(pink-60)","@dark":"$(pink-50)"}},crimson:{5:"#ffeff2",10:"#ffe8ec",20:"#ffbac7",30:"#ff849d",40:"#ff6684",50:"#fc4065",60:"#ed2a51",70:"#d7173e",80:"#bb1536",90:"#8f132c",95:"#620e1f","":{"@light":"$(crimson-60)","@dark":"$(crimson-50)"}},red:{5:"#ffefef",10:"#fee8e8",20:"#ffbcbc",30:"#ff8787",40:"#fd5f5f",50:"#f73f3f",60:"#e52e2e",70:"#d01b1b",80:"#b81919",90:"#921515",95:"#650f0f","":{"@light":"$(red-60)","@dark":"$(red-50)"}}},he=_e;var U=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],H=function(e){return e.length<2||e.find(r=>r.type==="string"&&U.includes(r.value)||r.type==="variable"&&U.includes(r.variable?.value))||e.push({type:"separator",value:" "},{type:"string",value:"solid"}),e},Ue={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},r=g=>{let c=g.indexOf(":");if(c!==-1){let h=g.slice(0,c);t[h]=g.slice(c+1)}},s=g=>{let c=h=>{let b=h.slice(te(g.className).length).match(/\{(.*)\}/)?.[1].split(";");if(b)for(let p of b)r(p)};for(let h of g.natives)c(h.text);if(g.animationNames){this.animationNames||(this.animationNames=[]);for(let h of g.animationNames)this.animationNames.includes(h)||this.animationNames.push(h)}if(g.variableNames){this.variableNames||(this.variableNames=[]);for(let h of g.variableNames)this.variableNames.includes(h)||this.variableNames.push(h)}},l=[],a="",u=()=>{a&&(l.push(a.replace(/ /g,"|")),a="")},n=1;(function g(c){for(;n<e.length;n++){let h=e[n];if(!c){if(h===";"){u();continue}if(h==="}")break}if(a+=h,c===h){if(c==="'"||c==='"'){let b=0;for(let p=a.length-2;a[p]==="\\";p--)b++;if(b%2)continue}break}else h in Q&&c!=="'"&&c!=='"'&&(n++,g(Q[h]))}})(""),u();for(let g of l){let c=this.css.generate(g);if(c.length)for(let h of c)s(h);else r(g)}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):/,layer:-3,colored:!0,variables:["text"]},"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":{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},height:{match:/^h:/,unit:"rem",layer:-3},"min-width":{match:/^min-w:/,unit:"rem",layer:-3},"min-height":{match:/^min-h:/,unit:"rem",layer:-3},size:{match:/^size:/,layer:-5,unit:"rem",declare(e,t){let r=t.length;return{width:t[0].text,height:r===1?t[0].text:t[2].text}}},"min-size":{match:/^min:/,layer:-5,unit:"rem",declare(e,t){let r=t.length;return{"min-width":t[0].text,"min-height":r===1?t[0].text:t[2].text}}},"max-size":{match:/^max:/,layer:-5,unit:"rem",declare(e,t){let r=t.length;return{"max-width":t[0].text,"max-height":r===1?t[0].text:t[2].text}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["box-decoration",["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:["text"]},"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:["text"]},"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},"max-width":{match:/^max-w:/,unit:"rem",layer:-3},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:["text"],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:["text"],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},"transition-timing-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){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)?)",U],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",U],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",U],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",U],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",U],layer:-5,declare(e){return{"border-left-style":e,"border-right-style":e}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",U],layer:-5,declare(e){return{"border-top-style":e,"border-bottom-style":e}}},"border-style":{match:["b(?:order)?(?:-style)?",U],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:H},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:H},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:H},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:H},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:H,declare(e){return{"border-left":e,"border-right":e}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:H,declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:H},"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},"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},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(?:umn)?-start:/,layer:-3},"grid-column-end":{match:/^grid-col(?:umn)?-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-col(?:umn)?s:/,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},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem"},"grid-template-rows":{layer:-3,unit:"rem"},"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",U],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:H},"accent-color":{match:/^accent:/,layer:-3,colored:!0},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0,variables:["text"]},"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}}}},me=Ue;var pe={$:{colored:!0,transform(e){let t,r,s=e.indexOf(",");return s!==-1?(t=e.slice(0,s),r=e.slice(s+1)):t=e,[{type:"variable",name:t,fallback:r}]}},calc:{transform(e,t){let r=[],s=0,l=(a,u,n,g,c)=>{let h=r!==a,b=[],p=!1,o=!1,m=!1,f=!1,i,d="",v=(y,R="",C="")=>{if(i===!1&&y!==" "&&this.definition.unit&&(i=void 0,f||x()),d){if(!c){let N=ne.exec(d);N&&(d=(+N[1]*(this.css.config.baseUnit??1)).toString())}if(!p&&!n){let N=this.parseValueComponent(d);if(!o&&isNaN(+d)&&N.type==="number"&&(o=!0),f)isNaN(+d)?N.type==="number"?(a.push(N),m=!0):a.push(N):a.push({type:"number",value:+d});else if(h){let w={type:"string",value:d};b.push(w),a.push(w)}else a.push(N)}else a.push({type:"string",value:d});d=""}y&&((y==="+"||y==="-")&&D(),R&&e[s-1]===" "&&(R=""),C&&e[s+1]===" "&&(C=""),u?a.push({type:"separator",value:y,text:y}):a.push({type:"separator",value:y,text:R+y+C})),p=!1},x=()=>{(this.definition.unit==="rem"||this.definition.unit==="em")&&a.push({type:"separator",value:"/",text:" / "},{type:"number",value:this.css.config.rootSize}),a.push({type:"separator",value:"*",text:" * "},{type:"number",value:1,unit:this.definition.unit})},D=()=>{f&&!m&&!g&&(!h||o)&&x(),f=!1,m=!1};for(;s<e.length;s++){let y=e[s];if(y==="("){let R=/^([+-])/.exec(d);R&&a.push({type:"string",value:R[1]});let C=R?d.slice(1):d,N={type:"function",name:C,symbol:y,children:[],bypassTransform:C==="calc"};a.push(N),d="",s++;let w=C==="$"||C==="var";if(i=l(N.children,C!==""&&C!=="calc"&&(w||Object.prototype.hasOwnProperty.call(pe,C)),p||w||f&&m,f,w)||C==="var",!i&&C==="$"){let Z=this.css.variables[N.children[0].value]?.type;i=!Z||Z==="string"}i&&(o=!0,m=!0)}else if(y===")"){if(v(""),o)for(let R of b)Object.assign(R,this.parseValueComponent(R.value));return o}else if(y===",")v(y,""," ");else if(y===" ")v(y);else{let R=e[s-1];switch(y){case"+":!d&&R!==")"?d+=y:v(y," "," ");break;case"-":!d&&R!==")"?d+=y:v(y," "," ");break;case"*":this.definition.unit&&(f=!0),v(y," "," ");break;case"/":this.definition.unit&&(f=!0),v(y," "," "),p=!0;break;default:d+=y;break}}}v(""),D()};return l(r,!1,!1,!1,!1),"calc("+this.resolveValue(r,pe.calc.unit??this.definition.unit,t,!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}},ge=pe;var L={mediaQueries:G,selectors:fe,semantics:ue,rules:me,functions:ge,animations:de,variables:he,scope:"",rootSize:16,baseUnit:4,override:!1,important:!1,themeDriver:"class"};function Y(e){e.startsWith("#")&&(e=e.slice(1));let t,r,s,l;return e.length===3||e.length===4?(t=parseInt(e[0]+e[0],16),r=parseInt(e[1]+e[1],16),s=parseInt(e[2]+e[2],16),l=e.length===4?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(e.length===6||e.length===8)&&(t=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16),l=e.length===8?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,r,s,l]}function ie(e,t=""){return Object.entries(e).reduce((r,[s,l])=>{let a=t?`${t}${s?"-"+s:""}`:s;return typeof l=="object"&&!Array.isArray(l)?Object.assign(r,ie(l,a)):r[a]=l,r},{})}function Ce(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Se(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 Ne(e){let t=[];return e.forEach(function(r,s){typeof r=="object"&&r!==null?Array.isArray(r)?t[s]=Ne(r):Ce(r)?t[s]=Se(r):t[s]=K({},r):t[s]=r}),t}function xe(e,t){return t==="__proto__"?void 0:e[t]}function K(...e){let t={},r,s;return e.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(a){if(s=xe(t,a),r=xe(l,a),r!==t)if(typeof r!="object"||r===null){t[a]=r;return}else if(Array.isArray(r)){t[a]=Ne(r);return}else if(Ce(r)){t[a]=Se(r);return}else if(typeof s!="object"||s===null||Array.isArray(s)){t[a]=K({},r);return}else{t[a]=K(s,r);return}})}),t}function re(...e){let t=l=>{let a=K({},l),u=n=>{for(let g in n){let c=n[g];typeof c=="object"&&!Array.isArray(c)?u(c):g&&!g.startsWith("@")&&(n[g]={"":c})}};return a.styles?u(a.styles):a.styles={},a.mediaQueries?u(a.mediaQueries):a.mediaQueries={},a.variables?u(a.variables):a.variables={},a},r=[];for(let l of e)(function a(u){if(u.extends?.length)for(let n of u.extends)a("config"in n?n.config:n);r.push(t(u))})(l);let s=r[0];for(let l=1;l<r.length;l++){let a=r[l];s=K(s,a),Object.prototype.hasOwnProperty.call(a,"animations")&&s.animations&&Object.assign(s.animations,a.animations)}return s}var F=class e{constructor(t=L){this.customConfig=t;t?.override?this.config=re(t):this.config=re(L,t),this.resolve(),this.constructor===e&&se.push(this)}static config=L;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 t={current:void 0,currentColor:void 0,transparent:void 0},{styles:r,selectors:s,variables:l,semantics:a,mediaQueries:u,rules:n,animations:g}=this.config;function c(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(s){let o=ie(s);for(let m in o){let f=o[m],i=new RegExp(c(m)+"(?![a-z-])");for(let d of Array.isArray(f)?f:[f]){let v=d.match(/^::-[a-z]+-/m)?.[0]??"",x=this.selectors[v];x||(x=this.selectors[v]=[]);let D=x.find(([y])=>y===i);D||(D=[i,[]],x.push(D)),D[1].push(d)}}}if(l){let o={},m=(f,i,d)=>{if(!f)return;let v=(D,y,R,C)=>{if(y===void 0)return;if(y.type==="color"){if(C){let w=y.value.indexOf("/");y={...y,value:w===-1?y.value+" / "+(C.startsWith("0.")?C.slice(1):C):y.value.slice(0,w+2)+String(+y.value.slice(w+2)*+C).slice(1)}}t[D]=void 0}let N=R??d;if(N!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,D)){let w=this.variables[D];N?(w.themes||(w.themes={}),w.themes[N]=y):(w.value=y.value,y.type==="color"&&(w.space=y.space))}else if(N){let w={type:y.type,themes:{[N]:y}};y.type==="color"&&(w.space=y.space),this.variables[D]=w}else this.variables[D]=y;else this.variables[D]=y},x=typeof f;if(x==="object")if(Array.isArray(f))v(i,{type:"string",value:f.join(",")});else{let D=Object.keys(f);for(let y of D)y===""||y.startsWith("@")?m(f[y],i,y||D.some(R=>R.startsWith("@"))?y.slice(1):void 0):m(f[y],i+"-"+y,void 0)}else if(x==="number")v(i,{type:"number",value:f}),v("-"+i,{type:"number",value:f*-1});else if(x==="string"){let D=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(f);if(D)Object.prototype.hasOwnProperty.call(o,i)||(o[i]={}),o[i][d]=()=>{delete o[i][d];let[y,R]=D[1].split("@");if(y){if(Object.prototype.hasOwnProperty.call(o,y))for(let N of Object.keys(o[y]))o[y][N]?.();let C=this.variables[y];if(C)if(R===void 0&&C.themes){v(i,{type:C.type,value:C.value,space:C.space},"",D[2]);for(let N in C.themes)v(i,C.themes[N],N,D[2])}else{let N=R!==void 0?C.themes?.[R]:C;if(N){let w={type:N.type,value:N.value};N.type==="color"&&(w.space=N.space),v(i,w,void 0,D[2])}}}};else{let y=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(f);if(y){let[R,C,N,w]=Y(y[1]);v(i,{type:"color",value:`${R} ${C} ${N}${w===1?"":" / "+w}`,space:"rgb"})}else{let R=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(f);if(R)v(i,{type:"color",value:R[1]+" "+R[2]+" "+R[3]+(R[4]?" / "+(R[4].startsWith("0.")?R[4].slice(1):R[4]):""),space:"rgb"});else{let C=/^hsl\((.*?)\)$/.exec(f);C?v(i,{type:"color",value:C[1],space:"hsl"}):v(i,{type:"string",value:f})}}}}};for(let f in l)m(l[f],f);for(let f of Object.keys(o))for(let i of Object.keys(o[f]))o[f][i]?.()}if(u&&(this.mediaQueries=ie(u)),g)for(let o in g){let m=this.animations[o]={},f=g[o];for(let i in f){let d=m[i]={},v=f[i];for(let x in v)d[x]=v[x]}}let h=r?ie(r):{},b=Object.keys(h),p=o=>{if(Object.prototype.hasOwnProperty.call(this.styles,o))return;let m=this.styles[o]=[],f=h[o];if(!f)return;let i=f.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let d of i){let v=x=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,x)){let D=this.stylesBy[x];D.includes(o)||D.push(o)}else this.stylesBy[x]=[o];m.includes(x)||m.push(x)};if(b.includes(d)){p(d);for(let x of this.styles[d])v(x)}else v(d)}};for(let o of b)p(o);if(a&&Object.entries(a).sort((o,m)=>o[0].localeCompare(m[0])).forEach(([o,m],f)=>{this.RegisteredSemanticRules.push({id:"."+o,match:new RegExp("^"+c(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:f,definition:{declarations:m,layer:-8}})}),n){let o=Object.entries(n).sort((i,d)=>i[1].layer!==d[1].layer?(d[1].layer||0)-(i[1].layer||0):d[0].localeCompare(i[0])),m=o.length,f=Object.keys(t);o.forEach(([i,d],v)=>{let x={id:i,variables:{},order:this.RegisteredSemanticRules.length+m-1-v,definition:d};this.RegisteredRules.push(x);let D=d.match,y=R=>{for(let C in this.variables)if(C.startsWith(R+"-")||C.startsWith("-"+R+"-")){let N=C.slice(R.length+(R.startsWith("-")?0:1));x.variables[N]={...this.variables[C],name:C}}};if(d.variables)for(let R of d.variables)y(R);if(y(i),D)if(Array.isArray(D)){let[R,C=[]]=D,N=[];C.length&&N.push(`(?:${C.join("|")})(?![a-zA-Z0-9-])`),Object.keys(x.variables).length&&N.push(`(?:${Object.keys(x.variables).join("|")})(?![a-zA-Z0-9-])`),d.colored&&N.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${f.join("|")})(?![a-zA-Z0-9-])`),d.numeric&&N.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),N.length&&(x.match=new RegExp(`^${R}:(?:${N.join("|")})[^|]*?(?:@|$)`))}else x.match=D})}}match(t){for(let r of this.RegisteredRules)if(r.match?.test(t)||(r.definition.layer===-2||r.definition.layer===-6||r.definition.layer===-3||r.definition.layer===-7)&&t.startsWith(r.id+":"))return r;for(let r of this.RegisteredSemanticRules)if(r.match?.test(t))return r}generate(t){return(Object.prototype.hasOwnProperty.call(this.styles,t)?this.styles[t].map(r=>this.create(r)):[this.create(t)]).filter(r=>r&&r.text)}create(t){if(Object.prototype.hasOwnProperty.call(this.ruleBy,t))return this.ruleBy[t];let r=this.match(t);if(r)return new q(t,r,this)}refresh(t=this.customConfig){t?.override?this.config=re(t):this.config=re(L,t),this.resolve(),this.rules.length=0,this.ruleBy={};for(let r in this.classesUsage)this.add(r);return this}reset(){this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules={};for(let t in this.animations){let r=this.animations[t];r.usage=0,r.native=void 0}for(let t in this.variables){let r=this.variables[t];r.usage=0}return this}destroy(){return this.reset(),se.splice(se.indexOf(this),1),this}add(...t){for(let r of t){let s=this.generate(r);if(s.length)for(let l of s)this.insert(l)}return this}delete(...t){let r=this.style?.sheet,s=l=>{let a=this.ruleBy[l];if(!(!a||Object.prototype.hasOwnProperty.call(this.stylesBy,l)&&this.stylesBy[l].some(u=>Object.prototype.hasOwnProperty.call(this.classesUsage,u)))){if(r&&a.natives.length){let u=a.natives[0];for(let n=0;n<r.cssRules.length;n++)if(r.cssRules[n]===u.cssRule){for(let c=0;c<a.natives.length;c++)r.deleteRule(n);break}}if(this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[l],a.variableNames)for(let u of a.variableNames){let n=this.variables[u];if(n.usage||(n.usage=0),!--n.usage){let g=c=>{let h=this.variablesNativeRules[c];if(h.cssRule.style.removeProperty("--"+u),!h.cssRule.style.length){let b=this.rules[0],p=b.natives.indexOf(h);r?.deleteRule(p),b.natives.splice(p,1),delete this.variablesNativeRules[c],b.natives.length||(this.rules.splice(0,1),this.variablesNativeRules={})}};if(n.value&&g(""),n.themes)for(let c in n.themes)g(c)}}if(a.animationNames){let u=Object.keys(this.variablesNativeRules).length?1:0,n=this.rules[u];for(let g of a.animationNames){let c=this.animations[g];if(c.usage||(c.usage=0),!--c.usage&&c.native){let h=n.natives.indexOf(c.native);this.style.sheet?.deleteRule(Object.keys(this.variablesNativeRules).length+h),n.natives.splice(h,1),c.native=void 0}}n.natives.length||(this.rules.splice(u,1),this.hasKeyframesRule=!1)}a.definition.delete?.call(a,l)}};for(let l of t)if(Object.prototype.hasOwnProperty.call(this.styles,l)){for(let a of this.styles[l])Object.prototype.hasOwnProperty.call(this.classesUsage,a)||s(a);delete this.ruleBy[l]}else s(l)}insert(t){if(this.ruleBy[t.className])return;let r,s=this.rules.length-1,{media:l,order:a,priority:u,hasWhere:n,className:g}=t,c=(p,o,m)=>{let f=p;for(;f<=s;f++){let i=this.rules[f];if(o?.(i))return m?-1:f-1;if(m?.(i))return f}return m?-1:f-1},h,b;if(l){let p=this.rules.findIndex(o=>o.media);if(p===-1)r=s+1;else{let{"max-width":o,"min-width":m}=l.features;if(o||m){let f=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(f===-1)r=s+1;else if(o&&m){if(u===-1?(h=c(f,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),b=c(f,i=>i.priority!==-1)):(h=c(f,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),b=s),h!==-1){let i=o.value-m.value,d=b,v=h;for(h=void 0;d>=v;d--){let{"max-width":x,"min-width":D}=this.rules[d].media.features,y=x.value-D.value;if(y<i)b=d-1;else if(y===i)h=d;else break}}if(h!==-1&&h!==void 0){let i=o.value-m.value;for(let d=b;d>=h;d--){let{"max-width":v,"min-width":x}=this.rules[d].media.features,D=v.value-x.value;if(D<i)b=d-1;else if(D>i){h=d+1;break}}}}else if(m){if(u===-1?(h=c(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),b=c(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(h=c(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),b=c(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),h!==-1)for(let i=b;i>=h;i--){let d=this.rules[i].media.features["min-width"].value;if(d>m.value)b=i-1;else if(d<m.value){h=i+1;break}}}else if(u===-1?(h=c(f,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),b=c(f,i=>i.media.features["min-width"]||i.priority!==-1)):(h=c(f,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),b=c(f,i=>i.media.features["min-width"]&&i.priority!==-1)),h!==-1)for(let i=b;i>=h;i--){let d=this.rules[i].media.features["max-width"].value;if(d<o.value)b=i-1;else if(d>o.value){h=i+1;break}}}else u===-1?(h=p,b=c(p,f=>f.media?.features["max-width"]||f.media?.features["min-width"]||f.priority!==-1)):(h=c(p,f=>f.media?.features["max-width"]||f.media?.features["min-width"],f=>f.priority!==-1),b=c(p,f=>f.media?.features["max-width"]||f.media?.features["min-width"]))}}else{let p=Object.keys(this.variablesNativeRules).length?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;u===-1?(h=p,b=c(p,o=>o.media||o.priority!==-1)):(h=c(p,o=>o.media,o=>o.priority!==-1),b=c(p,o=>o.media))}if(r===void 0&&b!==void 0&&h!==void 0)if(h===-1)r=b+1;else{if(u===-1)for(let p=h;p<=b;p++){let o=this.rules[p];if(!(!n&&o.hasWhere)&&(n&&!o.hasWhere||o.order>=a)){r=p;break}}else for(let p=h;p<=b;p++){let o=this.rules[p];if(!(!n&&o.hasWhere)){if(n&&!o.hasWhere){r=p;break}if(o.priority<u){r=p;break}else if(o.priority===u){if(o.order>=a){r=p;break}}else r=p+1}}r===void 0&&(r=b+1)}if(this.rules.splice(r,0,t),this.ruleBy[g]=t,this.style){let p=this.style.sheet,o=0,m=f=>{let i=this.rules[f];if(i){if(!i.natives.length)return m(f-1);let d=i.natives[i.natives.length-1],v=d.cssRule?.parentRule??d.cssRule;if(p){for(let x=0;x<p.cssRules.length;x++)if(p.cssRules[x]===v){o=x+1;break}}}};m(r-1);for(let f=0;f<t.natives.length;)try{let i=t.natives[f];p?.insertRule(i.text,o),i.cssRule=p?.cssRules[o++],f++}catch(i){console.error(i),t.natives.splice(f,1)}}this.handleRuleWithVariableNames(t),this.handleRuleWithAnimationNames(t),t.definition.insert?.call(t)}get text(){return this.rules.map(t=>t.text).join("")}handleRuleWithAnimationNames(t,r=!1){if(t.animationNames){let s=this.style?.sheet;for(let l of t.animationNames){let a=this.animations[l];if(a.usage)a.usage++;else{let u={text:`@keyframes ${l}{`+Object.entries(a).filter(([c])=>c!=="usage"&&c!=="native").map(([c,h])=>`${c}{${Object.entries(h).map(([b,p])=>b+":"+p).join(";")}}`).join("")+"}"},n=Object.keys(this.variablesNativeRules).length?1:0,g;if(this.hasKeyframesRule?(g=this.rules[n]).natives.push(u):(this.rules.splice(n,0,g={natives:[u],get text(){return this.natives.map(c=>c.text).join("")}}),this.hasKeyframesRule=!0),s){let c;if(r)for(let h=0;h<s.cssRules.length;h++){let b=s.cssRules[h];if(b.constructor.name==="CSSKeyframesRule"&&b.name===l){c=b;break}}if(c)u.cssRule=c;else{let h=Object.keys(this.variablesNativeRules).length+g.natives.length-1;s.insertRule(u.text,h),u.cssRule=s.cssRules[h]}}a.usage=1,a.native=u}}}}handleRuleWithVariableNames(t,r=!1){if(t.variableNames){let s=this.style?.sheet;for(let l of t.variableNames){let a=this.variables[l];if(a.usage)a.usage++;else{let u=(n,g)=>{let c=this.variablesNativeRules[n];if(!c){let b,p,o;if(n)switch(this.config.themeDriver){case"media":p=`@media(prefers-color-scheme:${n})`,o=":root";break;case"host":o=`:host(.${n})`;break;default:o=`.${n}`;break}else o=":root";if(s){let m=Object.keys(this.variablesNativeRules).length?this.rules[0].natives.length:0;s.insertRule((p?p+"{":"")+o+"{}"+(p?p+"}":""),m),b=p?s.cssRules[m].cssRules[0]:s.cssRules[m]}else{let m=new Map,f=Object.defineProperties({},{getPropertyValue:{value:i=>m.get(i)},removeProperty:{value:i=>{m.delete(i);for(let d=0;d<f.length;d++)f[d]===i&&delete f[d]}},setProperty:{value:(i,d)=>{f[f.length]=i,m.set(i,d)}},length:{get(){return Object.keys(f).length}}});b={selectorText:o,style:f,styleMap:m},p&&(b.parentRule={conditionText:p})}c=this.pushVariableNativeRule(n,b)}let h="--"+l;(!r||!c.cssRule.style.getPropertyValue(h))&&c.cssRule.style.setProperty(h,String(g.value))};if(a.value&&u("",a),a.themes)for(let n in a.themes)u(n,a.themes[n]);a.usage=1}}}}pushVariableNativeRule(t,r){if(!Object.keys(this.variablesNativeRules).length){this.variablesNativeRules={};let u={natives:[],get text(){return this.natives.map(n=>n.text).join("")}};this.rules.splice(0,0,u)}let s="",l="}";r.parentRule&&(s+=r.parentRule.conditionText.replace(/ /g,"")+"{",l+="}"),s+=r.selectorText+"{";let a={cssRule:r,get text(){let u=[];for(let n=0;n<r.style.length;n++){let g=r.style[n];u.push(g+":"+r.style.getPropertyValue(g))}return s+u.join(";")+l}};return this.rules[0].natives.push(this.variablesNativeRules[t]=a),a}},se=[];globalThis.MasterCSS=F,globalThis.masterCSSs=se;var De=[",",".","#","[","!","*",">","+","~",":","@"];var X=class extends F{constructor(r=document,s=L){super(s);this.root=r;this.customConfig=s;r||(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),ae.push(this)}host;observing=!1;container;observer;observe(r={subtree:!0,childList:!0}){if(this.observing||!this.root)return this;if(ae.find(l=>l!==this&&l.root===this.root))return console.warn("Cannot observe the same root element repeatedly."),this;if(this.root?.styleSheets)for(let l of this.root.styleSheets){let{ownerNode:a}=l;if(a&&a.id==="master"){this.style=a;break}}if(this.style?.sheet){let l=0;for(;l<this.style.sheet.cssRules.length;l++){let a=this.style.sheet.cssRules[l];switch(a.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let n=/\(prefers-color-scheme: (.*?)\)/.exec(a.conditionText);if(n){let g=a.cssRules[0];if(g?.constructor.name==="CSSStyleRule"&&g.selectorText===":root"){this.pushVariableNativeRule(n[1],g);continue}}}break;case"CSSStyleRule":let u=a.selectorText;if(a.style.length){let n=!0;for(let g=0;g<a.style.length;g++)if(!a.style[g]?.startsWith("--")){n=!1;break}if(n){if(u===":root"){this.pushVariableNativeRule("",a);continue}else if(this.config.themeDriver==="host"){let g=/:host(.*?)/.exec(u);if(g){this.pushVariableNativeRule(g[1],a);continue}}else if(!u.startsWith(".\\$")){this.pushVariableNativeRule(u.slice(1),a);continue}}}break}break}for(;l<this.style.sheet.cssRules.length;l++){let a=n=>{if(n.selectorText){let c=n.selectorText.split(", ")[0].split(" ");for(let h=0;h<c.length;h++){let b=c[h];if(b[0]==="."){let p=b.slice(1),o="";for(let m=0;m<p.length;m++){let f=p[m],i=p[m+1];if(f==="\\"){if(m++,i!=="\\"){o+=i;continue}}else if(De.includes(f))break;o+=f}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,o)&&!Object.prototype.hasOwnProperty.call(this.styles,o)){let m=this.generate(o)[0];if(m)return m}}}}else if(n.cssRules)for(let g=0;g<n.cssRules.length;g++){let c=a(n.cssRules[g]);if(c)return c}},u=a(this.style.sheet.cssRules[l]);if(u){this.rules.push(u),this.ruleBy[u.className]=u;for(let n=0;n<u.natives.length;n++)u.natives[n].cssRule=this.style.sheet.cssRules[l+n];l+=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=l=>{l.forEach(a=>{Object.prototype.hasOwnProperty.call(this.classesUsage,a)?this.classesUsage[a]++:(this.classesUsage[a]=1,this.add(a))})};return s(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(l=>s(l.classList)),this.observer=new MutationObserver(l=>{let a={},u=[],n=[],g=[],c=(o,m)=>{m?o.classList.forEach(b):o.classList.forEach(h);let f=o.children;for(let i=0;i<f.length;i++){let d=f[i];d.classList&&(n.push(d),c(d,m))}},h=o=>{Object.prototype.hasOwnProperty.call(a,o)?a[o]++:a[o]=1},b=o=>{Object.prototype.hasOwnProperty.call(a,o)?a[o]--:Object.prototype.hasOwnProperty.call(this.classesUsage,o)&&(a[o]=-1)},p=(o,m)=>{for(let f=0;f<o.length;f++){let i=o[f];i.classList&&!n.includes(i)&&!g.includes(i)&&(i.isConnected!==m?(n.push(i),c(i,m)):g.push(i))}};for(let o=0;o<l.length;o++){let m=l[o],{addedNodes:f,removedNodes:i,type:d,target:v}=m;if(d==="attributes"){if(u.find(x=>x.target===v))continue;u.push(m)}else p(f,!1),(!v.isConnected||!n.includes(v))&&p(i,!0)}if(!(!u.length&&!Object.keys(a).length)){for(let{oldValue:o,target:m}of u){let f=n.includes(m),i=m.classList,d=o?o.split(" "):[];if(f){if(m.isConnected)continue;for(let v of d)i.contains(v)||b(v)}else if(m.isConnected){i.forEach(v=>{d.includes(v)||h(v)});for(let v of d)i.contains(v)||b(v)}}for(let o in a){let m=a[o],f=(this.classesUsage[o]||0)+m;f===0?(delete this.classesUsage[o],this.delete(o)):(Object.prototype.hasOwnProperty.call(this.classesUsage,o)||this.add(o),this.classesUsage[o]=f)}}}),this.observer.observe(this.root,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.removeProperty("display"),this.observing=!0,this}refresh(r=this.customConfig){let s=document.createElement("style");return s.id="master",this.style.replaceWith(s),this.style=s,super.refresh(r),this}reset(){super.reset();let r=this.style?.sheet;if(r?.cssRules)for(let s=r.cssRules.length-1;s>=0;s--)r.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(),ae.splice(ae.indexOf(this),1),this}},ae=[];globalThis.RuntimeCSS=X,globalThis.runtimeCSSs=ae;var we=`/** @type {import('@master/css').Config} */
|
|
2
2
|
module.exports = {
|
|
3
3
|
styles: {},
|
|
4
4
|
rules: {},
|
|
@@ -9,7 +9,7 @@ module.exports = {
|
|
|
9
9
|
selectors: {},
|
|
10
10
|
functions: {}
|
|
11
11
|
}
|
|
12
|
-
`;var
|
|
12
|
+
`;var ke=`/** @type {import('@master/css').Config} */
|
|
13
13
|
export default {
|
|
14
14
|
styles: {},
|
|
15
15
|
rules: {},
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
selectors: {},
|
|
21
21
|
functions: {}
|
|
22
22
|
}
|
|
23
|
-
`;var
|
|
23
|
+
`;var $e=`import type { Config } from '@master/css'
|
|
24
24
|
|
|
25
25
|
export default {
|
|
26
26
|
styles: {},
|
|
@@ -32,4 +32,4 @@ export default {
|
|
|
32
32
|
selectors: {},
|
|
33
33
|
functions: {}
|
|
34
34
|
} as Config
|
|
35
|
-
`;function be(e){return new
|
|
35
|
+
`;function Ve(e,t,r){return((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1)}function ye(e){typeof e=="string"&&(e={"":e});let t=""in e,r=!1;for(let s in e)if(s&&+s>=100){r=!0;break}if(!r&&(!t||Object.keys(e).length>1)){let s=0,l="0"in e?Y(e[0]):[0,0,0],a,u,n=[],g=()=>{let c=a-s,h=u.map((b,p)=>(b-l[p])/c);for(let b of n){let p=b-s,o=l.map((m,f)=>Math.round(m+h[f]*p));e[b]="#"+Ve(o[0],o[1],o[2])}};for(let c=1;c<100;c++)c in e?(n.length?(a=c,u=Y(e[c]),g(),n.length=0,l=u):l=Y(e[c]),s=c):n.push(c);n.length&&(a=100,u="100"in e?Y(e[100]):[255,255,255],g())}return t||(e[""]=e[r?"500":"50"]),e}function be(e){return new X(document,e).observe()}function ve(e,t){let r;t?.css?r=t?.css:r=new F(t?.config);for(let s of e)r.add(s);return r.rules.filter(s=>s.layer).sort((s,l)=>{if(s.layer===-8&&l.layer!==-8)return-1;if(s.layer!==-8&&l.layer===-8)return 1;if(s.id!==l.id)return s.className.localeCompare(l.className);{let a=s.vendorSuffixSelectors?.[""]?.[0],u=l.vendorSuffixSelectors?.[""]?.[0],n=s.media?.token,g=l.media?.token;if(s.priority===-1&&l.priority===-1){if(a&&u)return a.localeCompare(u);if(n&&g&&!Object.keys(s.media.features||{}).length&&!Object.keys(l.media.features||{}).length)return n.localeCompare(g);if(a&&!u)return 1;if(!a&&u)return-1;if(n&&!g)return 1;if(!n&&g)return-1}return s.id===l.id&&s.stateToken===l.stateToken?s.className.localeCompare(l.className):s.order-l.order}}).map(s=>s.className)}
|