@master/css 2.0.0-beta.174 → 2.0.0-beta.176

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