@master/css 2.0.0-beta.158 → 2.0.0-beta.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var Ye=Object.defineProperty;var Ve=(t,e,r)=>e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var oe=(t,e,r)=>(Ve(t,typeof e!="symbol"?e+"":e,r),r);function ye(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ke(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function we(t){let e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=we(r):ye(r)?e[n]=ke(r):e[n]=re({},r):e[n]=r}),e}function xe(t,e){return e==="__proto__"?void 0:t[e]}function re(...t){let e={},r,n;return t.forEach(function(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(a){if(n=xe(e,a),r=xe(c,a),r!==e)if(typeof r!="object"||r===null){e[a]=r;return}else if(Array.isArray(r)){e[a]=we(r);return}else if(ye(r)){e[a]=ke(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[a]=re({},r);return}else{e[a]=re(n,r);return}})}),e}var ie={"(":")","'":"'",'"':'"',"{":"}"};function le(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,n=-1,c="",a,k=e.charCodeAt(0);if(r==1&&k==45)return"\\"+e;for(;++n<r;){if(a=e.charCodeAt(n),a==0){c+="\uFFFD";continue}if(a>=1&&a<=31||a==127||n==0&&a>=48&&a<=57||n==1&&a>=48&&a<=57&&k==45){c+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){c+=e.charAt(n);continue}c+="\\"+e.charAt(n)}return c}var Xe={unit:"",order:0,separators:[","]},ce=class{constructor(e,r={},n){this.className=e;this.meta=r;this.css=n;this.config=re(Xe,r.config);let{unit:c,order:a,colored:k,native:h,analyze:y,transform:m,declare:v,create:s}=this.config,{scope:u,important:d,functions:b,themeDriver:S}=n.config,{themeNames:g,colorNames:l,colorThemesMap:i,selectors:o,breakpoints:f,mediaQueries:w,themeAffectedClassesBy:R,globalValues:T}=n,A=R[e];s&&s.call(this,e);let I,X,L,U,Z;if(r.origin==="semantics"){let[z,j]=r.value;U=e.slice(z.length),I=j}else{let z;if(y)[z,L]=y.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),z=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],z=e.slice(1));Z=[];let j=this,E=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let C="",x=0;(function M(p,O,B,$=void 0,N=[],H=[],W){let Q=$===void 0,P,ee=D=>D==="'"||D==='"',te=()=>P=C.length,K=()=>{if(C){let D=C,Y=Q?D:C.slice(P);if(C="",q="",E&&Y in E&&!N.includes(Y)){let _=x;x=0,M(E[Y].toString(),O,void 0,$,[...N,Y],H,W),x=_,Q||(C=C.slice(0,P)+C)}else if(T&&Y in T&&!H.includes(Y)){let _=x;x=0,M(T[Y].toString(),O,void 0,$,N,[...H,Y],W),x=_,Q||(C=C.slice(0,P)+C)}else if(Q){let _=!W&&j.analyzeUnitValue(Y,O);Z.push({value:_?.value??Y,unit:_?.unit})}else{let _=!W&&j.analyzeUnitValue(Y,O);C=_?D.slice(0,P)+_.value+_.unit:D}te()}},J=ee(B);te();let q="";for(;x<p.length;x++){let D=p[x];if(D===B){if(J){C+=D;let Y=0;for(let _=C.length-2;C[_]==="\\";_--)Y++;if(Y%2)continue}else K(),C+=D;return}else if(!J&&D in ie){let Y=D==="("&&q&&b?.[q];Y?.name&&(C=C.slice(0,C.length-q.length)+Y.name,q=Y.name),C+=D,x++;let _=ie[D];M(p,Y?.unit??O,_,q||$||"",N,H,W||!!Y?.transform),Y?.transform&&(C=C.slice(0,P+q.length+1)+Y.transform.call(j,C.slice(P+q.length+1,-1))+C.slice(-1)),Q&&(ee(_)?(Z.push(C),C=""):K()),q=""}else if((D==="|"||D===" ")&&B!=="}"&&(!J||$==="path"))K(),Q||(C+=" ",P++);else{if(!J){if(D==="."){if(isNaN(+p[x+1]))break;p[x-1]==="-"&&(C+="0")}else if(F.includes(D)){K(),Q?Z.push(D):(C+=D,P++);continue}else if(Q&&(D==="#"&&(C||Z.length&&p[x-1]!=="|"&&Z[x-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;q+=D}C+=D}}$===void 0&&K()})(z,c),U=z.slice(x)}this.order=typeof a=="function"?a.call(this,this.prefix):a,U[0]==="!"&&(this.important=!0,U=U.slice(1));let ve=z=>{let j=z.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((x,M)=>M%3?x:x.replace(/_/g," ")).join(""),E=[],F="",C=0;for(let x=0;x<j.length;x++){let M=j[x];if(M==="\\"){F+=M+j[++x];continue}!C&&M===","?(E.push(F),F=""):(F+=M,C&&M===")"?C--:M==="("&&C++)}return F&&E.push(F),E};this.prefixSelectors=L?ve(L):[""];let fe=U.split("@"),me=fe[0];if(me){this.vendorSuffixSelectors={};let z=(x,M,p,O)=>{for(let[B,$]of M)if(B.test(x)){for(let N of $)z(x.replace(B,N),M,p,!0);return}O&&p.push(x)},j=[];""in o?z(me,o[""],j,!0):j.push(me);let E={};for(let[x,M]of Object.entries(o)){if(!x)continue;let p=[];for(let O of j)z(O,M,p,!1);p.length&&(E[x]=p)}let F=(x,M)=>{let p=M.reduce((O,B)=>(O.push(...ve(B)),O),[]);x in this.vendorSuffixSelectors?this.vendorSuffixSelectors[x].push(...p):this.vendorSuffixSelectors[x]=p},C=Object.keys(E);if(C.length)for(let x of C)F(x,E[x]);else F("",j);for(let x of Object.values(this.vendorSuffixSelectors))for(let M of x){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));let p=[":disabled",":active",":focus",":hover"];for(let O=0;O<p.length;O++)if(M.includes(p[O])){(this.priority===-1||this.priority>O)&&(this.priority=O);break}}}else this.vendorSuffixSelectors={"":[""]};for(let z=1;z<fe.length;z++){let j=fe[z];if(j)if(g.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let E,F,C=j.indexOf("(");if(C!==-1)E=j.slice(0,C).replace(/\|/g," "),F=j.slice(C);else{let x=j.indexOf("|");x!==-1&&(E=j.slice(0,x),F=j.slice(x))}if(!E){E="media";let x=[];this.media={token:j,features:{}};let M=j.split("&");for(let p of M)if(p==="all"||p==="print"||p==="screen"||p==="speech")this.media.type=p;else if(p==="\u{1F5A8}")this.media.type="print";else if(p==="landscape"||p==="portrait")x.push("(orientation:"+p+")");else if(p==="motion"||p==="reduced-motion")x.push("(prefers-reduced-motion:"+(p==="motion"?"no-preference":"reduce")+")");else if(w&&p in w)x.push(w[p]);else{let O={token:p},B="",$="",N=0;p.startsWith("<=")?($="<=",B="max-width"):p.startsWith(">=")||f[p]?($=">=",B="min-width"):p.startsWith(">")?($=">",B="min-width",N=.02):p.startsWith("<")&&($="<",B="max-width",N=-.02);let H=$?p.replace($,""):p,W=f[H];switch(B){case"max-width":case"min-width":W?Object.assign(O,this.analyzeUnitValue(W.toString(),"px")):Object.assign(O,this.analyzeUnitValue(H,"px")),O.unit==="px"&&(O.value+=N),this.media.features[B]=O,x.push("("+B+":"+(O.value+O.unit)+")");break}}F="",this.media.type&&(F=this.media.type),x.length&&(F+=(F?" and ":"")+x.join(" and "))}F&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+F.replace(/\|/g," "))}}let he=(z,j)=>{let E,F=(M,p,O)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let $=this.prefixSelectors.map(W=>W+B),N=(W,Q)=>$.map(P=>(W&&S!=="media"?S==="host"?`:host(.${W}) `:`.${W} `:"")+(u?u+" ":"")+P).reduce((P,ee)=>(P.push(O.reduce((te,K)=>(te.push(ee+"."+le(Q)+K),te),[]).join(",")),P),[]).join(","),H=N(p,e)+(A?Object.entries(A).filter(([W])=>this.theme||!k||!p||!W||W===p).map(([W,Q])=>Q.reduce((P,ee)=>P+","+N(this.theme??((k||X)&&p||W),ee),"")).join(""):"")+"{"+M+"}";for(let W of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))H="@"+W+(W.includes(" ")?"":" ")+this.at[W]+"{"+H+"}";return p&&S==="media"&&(H=`@media(prefers-color-scheme:${p}){`+H+"}"),H},C=[];if(Z){let M=[this.theme??z,""],p,O=!1;for(let B of Z)if(typeof B=="string")C.push(B);else{let $=B.value;if(B.unit)$+=B.unit;else if(k&&i&&l){let N=!1;$=$.replace(new RegExp(`(^|,| |\\()((?:${l.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(H,W,Q,P)=>{let ee=i[Q];if(ee){let te,K;for(let J of M)if(te=ee[J]){K=J;break}if(te){N=!j||K===z,p||(p=N);let J=te;if(P){let q=P.endsWith("%")?parseFloat(P)/100:+P;q=isNaN(q)?1:Math.min(Math.max(q,0),1),J+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return W+J}else O=!0}return H})}C.push($)}if(j&&(O||(p===void 0?z:!p)))return;if(E=C.reduce((B,$,N)=>B+$+($===","||Z[N+1]===","||N===Z.length-1?"":" "),""),m&&(E=m.call(this,E,this.css.config)),k&&E==="current"&&(E="currentColor"),v){let B,$;if(Z.length===1){let N=Z[0];typeof N=="object"&&(B=N.value,$=N.unit)}I=v.call(this,$?B:E,$||"")}else I={[h]:E}}let x={};for(let M in I){let p=($,N)=>{let H=N+((this.important||d)&&!N.endsWith("!important")?"!important":"");$ in x?x[$].push(H):x[$]=[H]},O=M+":",B=I[M];if(typeof B=="object")if(Array.isArray(B))for(let $ of B)p(z,O+$.toString());else{X=!0;for(let $ in B)p($,O+B[$])}else p(z,O+B.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let p in x)this.natives.push({text:F(x[p].join(";"),p,M),theme:p})};if(this.theme)he(this.theme,!1);else if(k)for(let z of g)he(z,!0);else he("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let n=r??this.config.unit;if(n){let c="",a=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(a)if(e.includes("/")){let[k,h]=e.split("/");return{value:+k/+h*100+"%",unit:c}}else{let k=+a[1];return c=a[3]||"",c||((n==="rem"||n==="em")&&(k=k/this.css.config.rootSize),c=n||""),{value:k,unit:c}}}}};var Se={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function se(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function ue(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function V(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let n in t)if(n&&+n>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let n=0,c="0"in t?se(t[0]):[0,0,0],a,k,h=[],y=()=>{let m=a-n,v=k.map((s,u)=>(s-c[u])/m);for(let s of h){let u=s-n,d=c.map((b,S)=>Math.round(b+v[S]*u));t[s]="#"+ue.call(this,...d)}};for(let m=1;m<100;m++)m in t?(h.length?(a=m,k=se(t[m]),y(),h.length=0,c=k):c=se(t[m]),n=m):h.push(m);h.length&&(a=100,k="100"in t?se(t[100]):[255,255,255],y())}return e||(t[""]=t[r?"500":"50"]),t}var Ce={black:"#000000",white:"#ffffff",slate:V({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:V({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:V({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:V({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:V({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:V({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:V({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:V({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:V({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:V({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:V({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:V({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:V({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:V({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:V({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:V({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:V({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:V({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:V({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:V({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Re=16;var $e="";var Te={"::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("};var Be={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"}};var Me=["dark","light"];var He={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(m,v)=>{let s=v.indexOf(":");if(s!==-1){m in e||(e[m]={});let u=e[m],d=v.slice(0,s);d in u||(u[d]=v.slice(s+1))}},n=m=>{let v=(s,u)=>{let d=u.slice(le(m.className).length).match(/\{(.*)\}/)[1].split(";");for(let b of d)r(s,b)};if(this.theme){let s=m.natives.find(u=>u.theme===this.theme)??m.natives.find(u=>!u.theme);s&&v(this.theme,s.text)}else for(let s of m.natives)v(s.theme,s.text);if(m.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let s of m.keyframeNames)this.keyframeNames.includes(s)||this.keyframeNames.push(s)}},c=[],a="",k=()=>{a&&(c.push(a.replace(/ /g,"|")),a="")},h=1;(function m(v){for(;h<t.length;h++){let s=t[h];if(!v){if(s===";"){k();continue}if(s==="}")break}if(a+=s,v===s){if(v==="'"||v==='"'){let u=0;for(let d=a.length-2;a[d]==="\\";d--)u++;if(u%2)continue}break}else s in ie&&v!=="'"&&v!=='"'&&(h++,m(ie[s]))}})(void 0),k();for(let m of c){let v=this.css.create(m);if(Array.isArray(v))for(let s of v)n(s);else v?n(v):r(this.theme??"",m)}let y={};for(let m in e)for(let[v,s]of Object.entries(e[m]))v in y?y[v][m]=s:y[v]={[m]:s};return y},delete(){return ge.call(this)},insert(){return pe.call(this)}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},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:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$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},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(t,e){return{"margin-left":t+e,"margin-right":t+e}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}}},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(t,e){return{"padding-left":t+e,"padding-right":t+e}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,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","3xs":360,"2xs":480,xs:600,sm:768,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","3xs":360,"2xs":480,xs:600,sm:768,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","3xs":360,"2xs":480,xs:600,sm:768,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","3xs":360,"2xs":480,xs:600,sm:768,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(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},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(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},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(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},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(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,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","3xs":360,"2xs":480,xs:600,sm:768,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(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},overflowY:{native:!0,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{native:!0,order:-1,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},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(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},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},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:{symbol:"~",native:!0,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,create(t){return Oe.call(this,t)},delete(){return ge.call(this)},insert(){return pe.call(this)}},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Oe.call(this,t)},delete(){return ge.call(this)},insert(){return pe.call(this)}},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(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},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(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},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(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},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(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},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"}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},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(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},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(t){if(t.startsWith("gradient"))return["linear-"+t];let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+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(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",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(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{match:"^grid-rows:.",declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},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(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},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"}},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:"^sml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^smr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^smt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^smb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:smx|scroll-margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}}},scrollMarginY:{match:"^(?:smy|scroll-margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}}},scrollMargin:{match:"^sm:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^spl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^spr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^spt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^spb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:spx|scroll-padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}}},scrollPaddingY:{match:"^(?:spy|scroll-padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}}},scrollPadding:{match:"^sp:.",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(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},je=He;function Oe(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function ge(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let n=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(n),t.natives.splice(n,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function pe(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:n}=this.css,c=r?.sheet;for(let a of this.keyframeNames)if(a in e)e[a].count++;else{let k={text:`@keyframes ${a}{`+Object.entries(t.keyframes[a]).map(([y,m])=>`${y}{${Object.entries(m).map(([v,s])=>v+":"+s).join(";")}}`).join("")+"}",theme:""},h;if(Object.keys(e).length?(h=n[0]).natives.push(k):n.splice(0,0,h={natives:[k],get text(){return this.natives.map(y=>y.text).join("")}}),c){let y;for(let m=0;m<c.cssRules.length;m++){let v=c.cssRules[m];if(v.constructor.name!=="CSSKeyframesRule")break;if(v.name===a){y=v;break}}if(y)k.cssRule=y;else{let m=h.natives.length-1;c.insertRule(k.text,m),k.cssRule=c.cssRules[m]}}e[a]={native:k,count:1}}}}var Ae=!1;var Ie=!0;var Le=!1;var Ee={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}};var Ne={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=this.values,r=this.css.globalValues,n=this.css.config.functions,c=this,a=0,k="",h="";return function y(m,v){let s=!1,u=(d,b=!1,S=!1)=>{if(d!=="("&&(e&&h in e?h=e[h].toString():r&&h in r&&(h=r[h].toString())),h&&!s&&!v){let g=c.analyzeUnitValue(h,n.calc.unit);g&&(h=g.value+g.unit)}k+=h+(b&&t[a-1]!==" "?" ":"")+d+(S&&t[a+1]!==" "?" ":""),h="",s=!1};for(;a<t.length;a++){let d=t[a];if(d==="("){let b=h,S=s,g=k.length;if(u(d),a++,y(b,S||v),b!=="calc"){let l=n[b];if(l){let i=k.slice(g+2,k.length-1);k=k.slice(0,g-b.length+1)+(l.name??b)+"("+(l.transform?.(i)??i)+")"}}}else if(d===")"){u(d);break}else if(d===",")u(d,!1,!0);else if(d===" ")u(d);else{let b=t[a-1];switch(d){case"+":!h&&b!==")"?h+=d:u(d,!0,!0);break;case"-":m==="var"||!h&&b!==")"?h+=d:u(d,!0,!0);break;case"*":u(d,!0,!0);break;case"/":u(d,!0,!0),s=!0;break;default:h+=d;break}}}a>=t.length-1&&u("")}("",!1),k}},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:""}};var We="class";var ae={breakpoints:Se,colors:Ce,rootSize:16,scope:$e,selectors:Te,semantics:Be,themes:Me,rules:je,override:!1,observe:!0,important:!1,functions:Ne,keyframes:Ee,themeDriver:We};var ze=[",",".","#","[","!","*",">","+","~",":","@"];var be=typeof window<"u",De=()=>{let t=document.createElement("style");return t.id="master",t},ne=class{constructor(e=ae){this.config=e;e?.override||(this.config=re(ae,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),be&&this.config.observe&&this.observe(document),ne.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:n,themes:c,colors:a,values:k,breakpoints:h,mediaQueries:y,rules:m}=this.config;function v(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(o,f,w="",R={}){let T=L=>L?(w?w+"-":"")+L:w,A=Object.entries(o),I=[],X=[];for(let L of A){let U=L[1];(typeof U=="object"&&!Array.isArray(U)?I:X).push(L)}for(let[L,U]of I)s(U,f,T(L),R);if(f&&w)X.length&&(R[w]=X.reduce((L,[U,Z])=>(L[U]=Z,L),{}));else for(let[L,U]of X)R[T(L)]=U;return R}function u(o){for(let[f,w]of Object.entries(o))/^[0-9]+x$/.test(f)&&typeof w=="number"&&(o["-"+f]=w*-1);return o}if(e)for(let[o,f]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+v(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[o,f]]);if(n)for(let[o,f]of Object.entries(s(n,!1))){let w=new RegExp(v(o)+"(?![a-z-])");for(let R of Array.isArray(f)?f:[f]){let T=R.match(/^::-[a-z]+-/m)?.[0]??"",A=this.selectors[T];A||(A=this.selectors[T]=[]);let I=A.find(([X])=>X===w);I||(I=[w,[]],A.push(I)),I[1].push(R)}}k&&(this.globalValues=u(s(k,!1))),h&&(this.breakpoints=s(h,!1)),y&&(this.mediaQueries=s(y,!1));let d=r?s(r,!1):{},b=c&&!Array.isArray(c)?Object.entries(c).filter(([,{classes:o}])=>o).reduce((o,[f,{classes:w}])=>(o[f]=s(w,!1),o),{}):{},S=[...Object.keys(d),...Object.entries(b).flatMap(([o,f])=>Object.keys(f))],g=o=>{if(o in this.classes)return;let f=this.classes[o]=[],w=(R,T)=>{if(!T)return;let A=Array.isArray(T)?T:T.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let I of A){let X=L=>{L in this.themeAffectedClassesBy?R in this.themeAffectedClassesBy[L]?this.themeAffectedClassesBy[L][R].push(o):this.themeAffectedClassesBy[L][R]=[o]:this.themeAffectedClassesBy[L]={[R]:[o]},f.includes(L)||f.push(L)};if(S.includes(I)){g(I);for(let L of this.classes[I])X(L)}else X(I)}};w("",d?.[o]);for(let[R,T]of Object.entries(b))w(R,T?.[o])};for(let o of S)g(o);for(let o in this.themeAffectedClassesBy){let f=this.classesBy[o]=[];for(let w of Object.values(this.themeAffectedClassesBy[o]))for(let R of w)f.includes(R)||f.push(R)}let l=(o,f)=>{if(!f)return;let w=s(f,!0);for(let[R,T]of Object.entries(w)){let A=typeof T=="string"?{"":T}:T;for(let[I,X]of Object.entries(A)){let L=R+(I?"-"+I:"");L in this.colorThemesMap?this.colorThemesMap[L][o]=X:this.colorThemesMap[L]={[o]:X}}}for(let R in f)this.colorNames.includes(R)||this.colorNames.push(R)};if(l("",a),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let o in c){let f=c[o];l(o,f.colors),this.themeNames.push(o)}let i=o=>{for(let[f,w]of Object.entries(this.colorThemesMap))for(let[R,T]of Object.entries(w))T.startsWith("#")||o(f,w,R,T)};if(i((o,f,w,R)=>{let T=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(R);if(T){let A="#"+ue(+T[1],+T[2],+T[3]);T[4]&&(A+=Math.round(255*+T[4]).toString(16)),f[w]=A}}),i((o,f,w,R)=>{let[T,A]=R.split("/"),I=this.colorThemesMap[T];if(I){let X=(w?I[w]:void 0)??I[""];f[w]=A?X.slice(0,7)+Math.round(255*+A).toString(16):X}else console.warn(`\`${R}\` doesn't exist in the extended config \`.colors\``),delete f[w],Object.keys(f).length||delete this.colorThemesMap[o]}),m)for(let o in m){let f=m[o],{native:w,values:R,colored:T}=f,A=f.match;if(f.id=o,f.native=w===!0?o.replace(/(?!^)[A-Z]/g,I=>"-"+I).toLowerCase():void 0,R&&(this.values[o]=u(s(R,!1))),A){let I=Object.keys(this.values[o]??{});A.includes("$values")&&(A=I.length?A.replace(/\$values/,I.join("|")):A.replace(/(?:\|)?\$values/,"")),T&&A.includes("$colors")&&(A=this.colorNames.length?A.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):A.replace(/(?:\|)?\$colors/,"")),this.matches[o]=new RegExp(A)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(be&&e){this.root=e;let n=e===document;n&&(ne.root=this),this.host=n?document.documentElement:this.root.host;let c=n?document.head:e,a=n?document.styleSheets:e.styleSheets;for(let h of a){let{ownerNode:y}=h;if(y&&y.id==="master"){this.style=y;break}}if(this.style)for(let h=0;h<this.style.sheet.cssRules.length;h++){let y=this.style.sheet.cssRules[h];if(y.constructor.name==="CSSKeyframesRule")continue;let m=s=>{if(s.selectorText){let d=s.selectorText.split(", ")[0].split(" ");for(let b=0;b<d.length;b++){let S=d[b];if(S[0]==="."){let g=S.slice(1),l="";for(let i=0;i<g.length;i++){let o=g[i],f=g[i+1];if(o==="\\"){if(i++,f!=="\\"){l+=f;continue}}else if(ze.includes(o))break;l+=o}if(!(l in this.ruleBy)&&!(l in this.classes)){let i=this.create(l)[0];if(i)return i}}}}else if(s.cssRules)for(let u=0;u<s.cssRules.length;u++){let d=m(s.cssRules[u]);if(d)return d}},v=m(y);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let s=0;s<v.natives.length;s++)v.natives[s].cssRule=this.style.sheet.cssRules[h+s];h+=v.natives.length-1,v.config.insert?.call(v)}}else this.style=De(),c.append(this.style);let k=h=>{h.forEach(y=>{y in this.countBy?this.countBy[y]++:(this.countBy[y]=1,this.insert(y))})};k(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(h=>k(h.classList)),this.observer=new MutationObserver(h=>{let y={},m=[],v=[],s=[],u=(g,l)=>{l?g.classList.forEach(b):g.classList.forEach(d);let i=g.children;for(let o=0;o<i.length;o++){let f=i[o];f.classList&&(v.push(f),u(f,l))}},d=g=>{g in y?y[g]++:y[g]=1},b=g=>{g in y?y[g]--:g in this.countBy&&(y[g]=-1)},S=(g,l)=>{for(let i=0;i<g.length;i++){let o=g[i];o.classList&&!v.includes(o)&&!s.includes(o)&&(o.isConnected!==l?(v.push(o),u(o,l)):s.push(o))}};for(let g=0;g<h.length;g++){let l=h[g],{addedNodes:i,removedNodes:o,type:f,target:w}=l;if(f==="attributes"){if(m.find(R=>R.target===w))continue;m.push(l)}else S(i,!1),(!w.isConnected||!v.includes(w))&&S(o,!0)}if(!(!m.length&&!Object.keys(y).length)){for(let{oldValue:g,target:l}of m){let i=v.includes(l),o=l.classList,f=g?g.split(" "):[];if(i){if(l.isConnected)continue;for(let w of f)o.contains(w)||b(w)}else if(l.isConnected){o.forEach(w=>{f.includes(w)||d(w)});for(let w of f)o.contains(w)||b(w)}}for(let g in y){let l=y[g],i=(this.countBy[g]||0)+l;i===0?(delete this.countBy[g],this.delete(g)):(g in this.countBy||this.insert(g),this.countBy[g]=i)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r in this.config.rules){let n=this.config.rules[r],c=this.matches[r],{symbol:a,native:k}=n;if(c&&c.test(e))return{origin:"match",config:n};if(a&&e.startsWith(a))return{origin:"symbol",config:n};if(k&&e.startsWith(k+":"))return{origin:"match",config:n}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=n=>{if(n in this.ruleBy)return this.ruleBy[n];let c=this.match(n);if(c)return new ce(n,c,this)};return(e in this.classes?this.classes[e].map(n=>r(n)):[r(e)]).filter(n=>n&&n.text)}refresh(e){if(e?.override?this.config=e:this.config=re(ae,e),this.cache(),!this.style)return;let r=De();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let n in this.countBy)this.insert(n)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,n=c=>{let a=this.ruleBy[c];if(!(!a||c in this.classesBy&&this.classesBy[c].some(k=>k in this.countBy))){if(r&&a.natives.length){let k=a.natives[0];for(let h=0;h<r.cssRules.length;h++)if(r.cssRules[h]===k.cssRule){for(let m=0;m<a.natives.length;m++)r.deleteRule(h);break}}this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[c],a.config.delete&&a.config.delete.call(a,c)}};if(e in this.classes){for(let c of this.classes[e])c in this.countBy||n(c);delete this.ruleBy[e]}else n(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let n,c=Object.keys(this.keyframes).length,a=this.rules.length-1,{media:k,order:h,priority:y,hasWhere:m,className:v}=r,s=(b,S,g)=>{let l=b;for(;l<=a;l++){let i=this.rules[l];if(S?.(i))return g?-1:l-1;if(g?.(i))return l}return g?-1:l-1},u,d;if(k){let b=this.rules.findIndex(S=>S.media);if(b===-1)n=a+1;else{let{"max-width":S,"min-width":g}=k.features;if(S||g){let l=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(l===-1)n=a+1;else if(S&&g){if(y===-1?(u=s(l,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),d=s(l,i=>i.priority!==-1)):(u=s(l,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),d=a),u!==-1){let i=S.value-g.value,o=d,f=u;for(u=void 0;o>=f;o--){let{"max-width":w,"min-width":R}=this.rules[o].media.features,T=w.value-R.value;if(T<i)d=o-1;else if(T===i)u=o;else break}}if(u!==-1){let i=S.value-g.value;for(let o=d;o>=u;o--){let{"max-width":f,"min-width":w}=this.rules[o].media.features,R=f.value-w.value;if(R<i)d=o-1;else if(R>i){u=o+1;break}}}}else if(g){if(y===-1?(u=s(l,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),d=s(l,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(u=s(l,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),d=s(l,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),u!==-1)for(let i=d;i>=u;i--){let o=this.rules[i].media.features["min-width"].value;if(o>g.value)d=i-1;else if(o<g.value){u=i+1;break}}}else if(y===-1?(u=s(l,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),d=s(l,i=>i.media.features["min-width"]||i.priority!==-1)):(u=s(l,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),d=s(l,i=>i.media.features["min-width"]&&i.priority!==-1)),u!==-1)for(let i=d;i>=u;i--){let o=this.rules[i].media.features["max-width"].value;if(o<S.value)d=i-1;else if(o>S.value){u=i+1;break}}}else y===-1?(u=b,d=s(b,l=>l.media?.features["max-width"]||l.media?.features["min-width"]||l.priority!==-1)):(u=s(b,l=>l.media?.features["max-width"]||l.media?.features["min-width"],l=>l.priority!==-1),d=s(b,l=>l.media?.features["max-width"]||l.media?.features["min-width"]))}}else{let b=c?1:0;y===-1?(u=b,d=s(b,S=>S.media||S.priority!==-1)):(u=s(b,S=>S.media,S=>S.priority!==-1),d=s(b,S=>S.media))}if(n===void 0)if(u===-1)n=d+1;else{if(y===-1)for(let b=u;b<=d;b++){let S=this.rules[b];if(!(!m&&S.hasWhere)&&(m&&!S.hasWhere||S.order>=h)){n=b;break}}else for(let b=u;b<=d;b++){let S=this.rules[b];if(!(!m&&S.hasWhere)){if(m&&!S.hasWhere){n=b;break}if(S.priority<y){n=b;break}else if(S.priority===y){if(S.order>=h){n=b;break}}else n=b+1}}n===void 0&&(n=d+1)}if(this.rules.splice(n,0,r),this.ruleBy[v]=r,this.style){let b=this.style.sheet,S=0,g=l=>{let i=this.rules[l];if(i){if(!i.natives.length)return g(l-1);let o=i.natives[i.natives.length-1].cssRule;for(let f=0;f<b.cssRules.length;f++)if(b.cssRules[f]===o){S=f+1;break}}};g(n-1);for(let l=0;l<r.natives.length;)try{let i=r.natives[l];b.insertRule(i.text,S),i.cssRule=b.cssRules[S++],l++}catch(i){console.error(i),r.natives.splice(l,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},G=ne;oe(G,"root"),oe(G,"config",ae),oe(G,"instances",[]),oe(G,"refresh",e=>{for(let r of ne.instances)r.refresh(e)});be&&(window.MasterCSS=G);var Zt=`/** @type {import('@master/css').Config} */
1
+ var Ye=Object.defineProperty;var Ve=(t,e,r)=>e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var oe=(t,e,r)=>(Ve(t,typeof e!="symbol"?e+"":e,r),r);function ye(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ke(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function we(t){let e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=we(r):ye(r)?e[n]=ke(r):e[n]=re({},r):e[n]=r}),e}function xe(t,e){return e==="__proto__"?void 0:t[e]}function re(...t){let e={},r,n;return t.forEach(function(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(a){if(n=xe(e,a),r=xe(c,a),r!==e)if(typeof r!="object"||r===null){e[a]=r;return}else if(Array.isArray(r)){e[a]=we(r);return}else if(ye(r)){e[a]=ke(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[a]=re({},r);return}else{e[a]=re(n,r);return}})}),e}var ie={"(":")","'":"'",'"':'"',"{":"}"};function le(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,n=-1,c="",a,k=e.charCodeAt(0);if(r==1&&k==45)return"\\"+e;for(;++n<r;){if(a=e.charCodeAt(n),a==0){c+="\uFFFD";continue}if(a>=1&&a<=31||a==127||n==0&&a>=48&&a<=57||n==1&&a>=48&&a<=57&&k==45){c+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){c+=e.charAt(n);continue}c+="\\"+e.charAt(n)}return c}var Xe={unit:"",order:0,separators:[","]},ce=class{constructor(e,r={},n){this.className=e;this.meta=r;this.css=n;this.config=re(Xe,r.config);let{unit:c,order:a,colored:k,native:h,analyze:y,transform:m,declare:v,create:s}=this.config,{scope:u,important:d,functions:b,themeDriver:S}=n.config,{themeNames:g,colorNames:l,colorThemesMap:i,selectors:o,breakpoints:f,mediaQueries:w,themeAffectedClassesBy:R,globalValues:T}=n,A=R[e];s&&s.call(this,e);let I,X,L,U,Z;if(r.origin==="semantics"){let[z,j]=r.value;U=e.slice(z.length),I=j}else{let z;if(y)[z,L]=y.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),z=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],z=e.slice(1));Z=[];let j=this,E=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let C="",x=0;(function M(p,O,B,$=void 0,N=[],H=[],W){let Q=$===void 0,P,ee=D=>D==="'"||D==='"',te=()=>P=C.length,K=()=>{if(C){let D=C,Y=Q?D:C.slice(P);if(C="",q="",E&&Y in E&&!N.includes(Y)){let _=x;x=0,M(E[Y].toString(),O,void 0,$,[...N,Y],H,W),x=_,Q||(C=C.slice(0,P)+C)}else if(T&&Y in T&&!H.includes(Y)){let _=x;x=0,M(T[Y].toString(),O,void 0,$,N,[...H,Y],W),x=_,Q||(C=C.slice(0,P)+C)}else if(Q){let _=!W&&j.analyzeUnitValue(Y,O);Z.push({value:_?.value??Y,unit:_?.unit})}else{let _=!W&&j.analyzeUnitValue(Y,O);C=_?D.slice(0,P)+_.value+_.unit:D}te()}},J=ee(B);te();let q="";for(;x<p.length;x++){let D=p[x];if(D===B){if(J){C+=D;let Y=0;for(let _=C.length-2;C[_]==="\\";_--)Y++;if(Y%2)continue}else K(),C+=D;return}else if(!J&&D in ie){let Y=D==="("&&q&&b?.[q];Y?.name&&(C=C.slice(0,C.length-q.length)+Y.name,q=Y.name),C+=D,x++;let _=ie[D];M(p,Y?.unit??O,_,q||$||"",N,H,W||!!Y?.transform),Y?.transform&&(C=C.slice(0,P+q.length+1)+Y.transform.call(j,C.slice(P+q.length+1,-1))+C.slice(-1)),Q&&(ee(_)?(Z.push(C),C=""):K()),q=""}else if((D==="|"||D===" ")&&B!=="}"&&(!J||$==="path"))K(),Q||(C+=" ",P++);else{if(!J){if(D==="."){if(isNaN(+p[x+1]))break;p[x-1]==="-"&&(C+="0")}else if(F.includes(D)){K(),Q?Z.push(D):(C+=D,P++);continue}else if(Q&&(D==="#"&&(C||Z.length&&p[x-1]!=="|"&&Z[x-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;q+=D}C+=D}}$===void 0&&K()})(z,c),U=z.slice(x)}this.order=typeof a=="function"?a.call(this,this.prefix):a,U[0]==="!"&&(this.important=!0,U=U.slice(1));let ve=z=>{let j=z.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((x,M)=>M%3?x:x.replace(/_/g," ")).join(""),E=[],F="",C=0;for(let x=0;x<j.length;x++){let M=j[x];if(M==="\\"){F+=M+j[++x];continue}!C&&M===","?(E.push(F),F=""):(F+=M,C&&M===")"?C--:M==="("&&C++)}return F&&E.push(F),E};this.prefixSelectors=L?ve(L):[""];let fe=U.split("@"),me=fe[0];if(me){this.vendorSuffixSelectors={};let z=(x,M,p,O)=>{for(let[B,$]of M)if(B.test(x)){for(let N of $)z(x.replace(B,N),M,p,!0);return}O&&p.push(x)},j=[];""in o?z(me,o[""],j,!0):j.push(me);let E={};for(let[x,M]of Object.entries(o)){if(!x)continue;let p=[];for(let O of j)z(O,M,p,!1);p.length&&(E[x]=p)}let F=(x,M)=>{let p=M.reduce((O,B)=>(O.push(...ve(B)),O),[]);x in this.vendorSuffixSelectors?this.vendorSuffixSelectors[x].push(...p):this.vendorSuffixSelectors[x]=p},C=Object.keys(E);if(C.length)for(let x of C)F(x,E[x]);else F("",j);for(let x of Object.values(this.vendorSuffixSelectors))for(let M of x){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));let p=[":disabled",":active",":focus",":hover"];for(let O=0;O<p.length;O++)if(M.includes(p[O])){(this.priority===-1||this.priority>O)&&(this.priority=O);break}}}else this.vendorSuffixSelectors={"":[""]};for(let z=1;z<fe.length;z++){let j=fe[z];if(j)if(g.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let E,F,C=j.indexOf("(");if(C!==-1)E=j.slice(0,C).replace(/\|/g," "),F=j.slice(C);else{let x=j.indexOf("|");x!==-1&&(E=j.slice(0,x),F=j.slice(x))}if(!E){E="media";let x=[];this.media={token:j,features:{}};let M=j.split("&");for(let p of M)if(p==="all"||p==="print"||p==="screen"||p==="speech")this.media.type=p;else if(p==="\u{1F5A8}")this.media.type="print";else if(p==="landscape"||p==="portrait")x.push("(orientation:"+p+")");else if(p==="motion"||p==="reduced-motion")x.push("(prefers-reduced-motion:"+(p==="motion"?"no-preference":"reduce")+")");else if(w&&p in w)x.push(w[p]);else{let O={token:p},B="",$="",N=0;p.startsWith("<=")?($="<=",B="max-width"):p.startsWith(">=")||f[p]?($=">=",B="min-width"):p.startsWith(">")?($=">",B="min-width",N=.02):p.startsWith("<")&&($="<",B="max-width",N=-.02);let H=$?p.replace($,""):p,W=f[H];switch(B){case"max-width":case"min-width":W?Object.assign(O,this.analyzeUnitValue(W.toString(),"px")):Object.assign(O,this.analyzeUnitValue(H,"px")),O.unit==="px"&&(O.value+=N),this.media.features[B]=O,x.push("("+B+":"+(O.value+O.unit)+")");break}}F="",this.media.type&&(F=this.media.type),x.length&&(F+=(F?" and ":"")+x.join(" and "))}F&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+F.replace(/\|/g," "))}}let he=(z,j)=>{let E,F=(M,p,O)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let $=this.prefixSelectors.map(W=>W+B),N=(W,Q)=>$.map(P=>(W&&S!=="media"?S==="host"?`:host(.${W}) `:`.${W} `:"")+(u?u+" ":"")+P).reduce((P,ee)=>(P.push(O.reduce((te,K)=>(te.push(ee+"."+le(Q)+K),te),[]).join(",")),P),[]).join(","),H=N(p,e)+(A?Object.entries(A).filter(([W])=>this.theme||!k||!p||!W||W===p).map(([W,Q])=>Q.reduce((P,ee)=>P+","+N(this.theme??((k||X)&&p||W),ee),"")).join(""):"")+"{"+M+"}";for(let W of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))H="@"+W+(W.includes(" ")?"":" ")+this.at[W]+"{"+H+"}";return p&&S==="media"&&(H=`@media(prefers-color-scheme:${p}){`+H+"}"),H},C=[];if(Z){let M=[this.theme??z,""],p,O=!1;for(let B of Z)if(typeof B=="string")C.push(B);else{let $=B.value;if(B.unit)$+=B.unit;else if(k&&i&&l){let N=!1;$=$.replace(new RegExp(`(^|,| |\\()((?:${l.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(H,W,Q,P)=>{let ee=i[Q];if(ee){let te,K;for(let J of M)if(te=ee[J]){K=J;break}if(te){N=!j||K===z,p||(p=N);let J=te;if(P){let q=P.endsWith("%")?parseFloat(P)/100:+P;q=isNaN(q)?1:Math.min(Math.max(q,0),1),J+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return W+J}else O=!0}return H})}C.push($)}if(j&&(O||(p===void 0?z:!p)))return;if(E=C.reduce((B,$,N)=>B+$+($===","||Z[N+1]===","||N===Z.length-1?"":" "),""),m&&(E=m.call(this,E,this.css.config)),k&&E==="current"&&(E="currentColor"),v){let B,$;if(Z.length===1){let N=Z[0];typeof N=="object"&&(B=N.value,$=N.unit)}I=v.call(this,$?B:E,$||"")}else I={[h]:E}}let x={};for(let M in I){let p=($,N)=>{let H=N+((this.important||d)&&!N.endsWith("!important")?"!important":"");$ in x?x[$].push(H):x[$]=[H]},O=M+":",B=I[M];if(typeof B=="object")if(Array.isArray(B))for(let $ of B)p(z,O+$.toString());else{X=!0;for(let $ in B)p($,O+B[$])}else p(z,O+B.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let p in x)this.natives.push({text:F(x[p].join(";"),p,M),theme:p})};if(this.theme)he(this.theme,!1);else if(k)for(let z of g)he(z,!0);else he("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let n=r??this.config.unit;if(n){let c="",a=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(a)if(e.includes("/")){let[k,h]=e.split("/");return{value:+k/+h*100+"%",unit:c}}else{let k=+a[1];return c=a[3]||"",c||((n==="rem"||n==="em")&&(k=k/this.css.config.rootSize),c=n||""),{value:k,unit:c}}}}};var Se={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function se(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function ue(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function V(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let n in t)if(n&&+n>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let n=0,c="0"in t?se(t[0]):[0,0,0],a,k,h=[],y=()=>{let m=a-n,v=k.map((s,u)=>(s-c[u])/m);for(let s of h){let u=s-n,d=c.map((b,S)=>Math.round(b+v[S]*u));t[s]="#"+ue.call(this,...d)}};for(let m=1;m<100;m++)m in t?(h.length?(a=m,k=se(t[m]),y(),h.length=0,c=k):c=se(t[m]),n=m):h.push(m);h.length&&(a=100,k="100"in t?se(t[100]):[255,255,255],y())}return e||(t[""]=t[r?"500":"50"]),t}var Ce={black:"#000000",white:"#ffffff",slate:V({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:V({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:V({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:V({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:V({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:V({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:V({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:V({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:V({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:V({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:V({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:V({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:V({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:V({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:V({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:V({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:V({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:V({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:V({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:V({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Re=16;var $e="";var Te={"::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("};var Be={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"}};var Me=["dark","light"];var He={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(m,v)=>{let s=v.indexOf(":");if(s!==-1){m in e||(e[m]={});let u=e[m],d=v.slice(0,s);d in u||(u[d]=v.slice(s+1))}},n=m=>{let v=(s,u)=>{let d=u.slice(le(m.className).length).match(/\{(.*)\}/)[1].split(";");for(let b of d)r(s,b)};if(this.theme){let s=m.natives.find(u=>u.theme===this.theme)??m.natives.find(u=>!u.theme);s&&v(this.theme,s.text)}else for(let s of m.natives)v(s.theme,s.text);if(m.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let s of m.keyframeNames)this.keyframeNames.includes(s)||this.keyframeNames.push(s)}},c=[],a="",k=()=>{a&&(c.push(a.replace(/ /g,"|")),a="")},h=1;(function m(v){for(;h<t.length;h++){let s=t[h];if(!v){if(s===";"){k();continue}if(s==="}")break}if(a+=s,v===s){if(v==="'"||v==='"'){let u=0;for(let d=a.length-2;a[d]==="\\";d--)u++;if(u%2)continue}break}else s in ie&&v!=="'"&&v!=='"'&&(h++,m(ie[s]))}})(void 0),k();for(let m of c){let v=this.css.create(m);if(Array.isArray(v))if(v.length)for(let s of v)n(s);else r(this.theme??"",m);else n(v)}let y={};for(let m in e)for(let[v,s]of Object.entries(e[m]))v in y?y[v][m]=s:y[v]={[m]:s};return y},delete(){return ge.call(this)},insert(){return pe.call(this)}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},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:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$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},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(t,e){return{"margin-left":t+e,"margin-right":t+e}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}}},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(t,e){return{"padding-left":t+e,"padding-right":t+e}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,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","3xs":360,"2xs":480,xs:600,sm:768,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","3xs":360,"2xs":480,xs:600,sm:768,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","3xs":360,"2xs":480,xs:600,sm:768,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","3xs":360,"2xs":480,xs:600,sm:768,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(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},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(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},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(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},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(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,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","3xs":360,"2xs":480,xs:600,sm:768,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(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},overflowY:{native:!0,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{native:!0,order:-1,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},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(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},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},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:{symbol:"~",native:!0,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,create(t){return Oe.call(this,t)},delete(){return ge.call(this)},insert(){return pe.call(this)}},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Oe.call(this,t)},delete(){return ge.call(this)},insert(){return pe.call(this)}},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(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},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(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},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(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},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(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},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"}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},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(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},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(t){if(t.startsWith("gradient"))return["linear-"+t];let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+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(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",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(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{match:"^grid-rows:.",declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},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(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},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"}},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:"^sml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^smr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^smt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^smb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:smx|scroll-margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}}},scrollMarginY:{match:"^(?:smy|scroll-margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}}},scrollMargin:{match:"^sm:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^spl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^spr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^spt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^spb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:spx|scroll-padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}}},scrollPaddingY:{match:"^(?:spy|scroll-padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}}},scrollPadding:{match:"^sp:.",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(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},je=He;function Oe(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function ge(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let n=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(n),t.natives.splice(n,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function pe(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:n}=this.css,c=r?.sheet;for(let a of this.keyframeNames)if(a in e)e[a].count++;else{let k={text:`@keyframes ${a}{`+Object.entries(t.keyframes[a]).map(([y,m])=>`${y}{${Object.entries(m).map(([v,s])=>v+":"+s).join(";")}}`).join("")+"}",theme:""},h;if(Object.keys(e).length?(h=n[0]).natives.push(k):n.splice(0,0,h={natives:[k],get text(){return this.natives.map(y=>y.text).join("")}}),c){let y;for(let m=0;m<c.cssRules.length;m++){let v=c.cssRules[m];if(v.constructor.name!=="CSSKeyframesRule")break;if(v.name===a){y=v;break}}if(y)k.cssRule=y;else{let m=h.natives.length-1;c.insertRule(k.text,m),k.cssRule=c.cssRules[m]}}e[a]={native:k,count:1}}}}var Ae=!1;var Ie=!0;var Le=!1;var Ee={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}};var Ne={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=this.values,r=this.css.globalValues,n=this.css.config.functions,c=this,a=0,k="",h="";return function y(m,v){let s=!1,u=(d,b=!1,S=!1)=>{if(d!=="("&&(e&&h in e?h=e[h].toString():r&&h in r&&(h=r[h].toString())),h&&!s&&!v){let g=c.analyzeUnitValue(h,n.calc.unit);g&&(h=g.value+g.unit)}k+=h+(b&&t[a-1]!==" "?" ":"")+d+(S&&t[a+1]!==" "?" ":""),h="",s=!1};for(;a<t.length;a++){let d=t[a];if(d==="("){let b=h,S=s,g=k.length;if(u(d),a++,y(b,S||v),b!=="calc"){let l=n[b];if(l){let i=k.slice(g+2,k.length-1);k=k.slice(0,g-b.length+1)+(l.name??b)+"("+(l.transform?.(i)??i)+")"}}}else if(d===")"){u(d);break}else if(d===",")u(d,!1,!0);else if(d===" ")u(d);else{let b=t[a-1];switch(d){case"+":!h&&b!==")"?h+=d:u(d,!0,!0);break;case"-":m==="var"||!h&&b!==")"?h+=d:u(d,!0,!0);break;case"*":u(d,!0,!0);break;case"/":u(d,!0,!0),s=!0;break;default:h+=d;break}}}a>=t.length-1&&u("")}("",!1),k}},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:""}};var We="class";var ae={breakpoints:Se,colors:Ce,rootSize:16,scope:$e,selectors:Te,semantics:Be,themes:Me,rules:je,override:!1,observe:!0,important:!1,functions:Ne,keyframes:Ee,themeDriver:We};var ze=[",",".","#","[","!","*",">","+","~",":","@"];var be=typeof window<"u",De=()=>{let t=document.createElement("style");return t.id="master",t},ne=class{constructor(e=ae){this.config=e;e?.override||(this.config=re(ae,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),be&&this.config.observe&&this.observe(document),ne.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:n,themes:c,colors:a,values:k,breakpoints:h,mediaQueries:y,rules:m}=this.config;function v(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(o,f,w="",R={}){let T=L=>L?(w?w+"-":"")+L:w,A=Object.entries(o),I=[],X=[];for(let L of A){let U=L[1];(typeof U=="object"&&!Array.isArray(U)?I:X).push(L)}for(let[L,U]of I)s(U,f,T(L),R);if(f&&w)X.length&&(R[w]=X.reduce((L,[U,Z])=>(L[U]=Z,L),{}));else for(let[L,U]of X)R[T(L)]=U;return R}function u(o){for(let[f,w]of Object.entries(o))/^[0-9]+x$/.test(f)&&typeof w=="number"&&(o["-"+f]=w*-1);return o}if(e)for(let[o,f]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+v(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[o,f]]);if(n)for(let[o,f]of Object.entries(s(n,!1))){let w=new RegExp(v(o)+"(?![a-z-])");for(let R of Array.isArray(f)?f:[f]){let T=R.match(/^::-[a-z]+-/m)?.[0]??"",A=this.selectors[T];A||(A=this.selectors[T]=[]);let I=A.find(([X])=>X===w);I||(I=[w,[]],A.push(I)),I[1].push(R)}}k&&(this.globalValues=u(s(k,!1))),h&&(this.breakpoints=s(h,!1)),y&&(this.mediaQueries=s(y,!1));let d=r?s(r,!1):{},b=c&&!Array.isArray(c)?Object.entries(c).filter(([,{classes:o}])=>o).reduce((o,[f,{classes:w}])=>(o[f]=s(w,!1),o),{}):{},S=[...Object.keys(d),...Object.entries(b).flatMap(([o,f])=>Object.keys(f))],g=o=>{if(o in this.classes)return;let f=this.classes[o]=[],w=(R,T)=>{if(!T)return;let A=Array.isArray(T)?T:T.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let I of A){let X=L=>{L in this.themeAffectedClassesBy?R in this.themeAffectedClassesBy[L]?this.themeAffectedClassesBy[L][R].push(o):this.themeAffectedClassesBy[L][R]=[o]:this.themeAffectedClassesBy[L]={[R]:[o]},f.includes(L)||f.push(L)};if(S.includes(I)){g(I);for(let L of this.classes[I])X(L)}else X(I)}};w("",d?.[o]);for(let[R,T]of Object.entries(b))w(R,T?.[o])};for(let o of S)g(o);for(let o in this.themeAffectedClassesBy){let f=this.classesBy[o]=[];for(let w of Object.values(this.themeAffectedClassesBy[o]))for(let R of w)f.includes(R)||f.push(R)}let l=(o,f)=>{if(!f)return;let w=s(f,!0);for(let[R,T]of Object.entries(w)){let A=typeof T=="string"?{"":T}:T;for(let[I,X]of Object.entries(A)){let L=R+(I?"-"+I:"");L in this.colorThemesMap?this.colorThemesMap[L][o]=X:this.colorThemesMap[L]={[o]:X}}}for(let R in f)this.colorNames.includes(R)||this.colorNames.push(R)};if(l("",a),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let o in c){let f=c[o];l(o,f.colors),this.themeNames.push(o)}let i=o=>{for(let[f,w]of Object.entries(this.colorThemesMap))for(let[R,T]of Object.entries(w))T.startsWith("#")||o(f,w,R,T)};if(i((o,f,w,R)=>{let T=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(R);if(T){let A="#"+ue(+T[1],+T[2],+T[3]);T[4]&&(A+=Math.round(255*+T[4]).toString(16)),f[w]=A}}),i((o,f,w,R)=>{let[T,A]=R.split("/"),I=this.colorThemesMap[T];if(I){let X=(w?I[w]:void 0)??I[""];f[w]=A?X.slice(0,7)+Math.round(255*+A).toString(16):X}else console.warn(`\`${R}\` doesn't exist in the extended config \`.colors\``),delete f[w],Object.keys(f).length||delete this.colorThemesMap[o]}),m)for(let o in m){let f=m[o],{native:w,values:R,colored:T}=f,A=f.match;if(f.id=o,f.native=w===!0?o.replace(/(?!^)[A-Z]/g,I=>"-"+I).toLowerCase():void 0,R&&(this.values[o]=u(s(R,!1))),A){let I=Object.keys(this.values[o]??{});A.includes("$values")&&(A=I.length?A.replace(/\$values/,I.join("|")):A.replace(/(?:\|)?\$values/,"")),T&&A.includes("$colors")&&(A=this.colorNames.length?A.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):A.replace(/(?:\|)?\$colors/,"")),this.matches[o]=new RegExp(A)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(be&&e){this.root=e;let n=e===document;n&&(ne.root=this),this.host=n?document.documentElement:this.root.host;let c=n?document.head:e,a=n?document.styleSheets:e.styleSheets;for(let h of a){let{ownerNode:y}=h;if(y&&y.id==="master"){this.style=y;break}}if(this.style)for(let h=0;h<this.style.sheet.cssRules.length;h++){let y=this.style.sheet.cssRules[h];if(y.constructor.name==="CSSKeyframesRule")continue;let m=s=>{if(s.selectorText){let d=s.selectorText.split(", ")[0].split(" ");for(let b=0;b<d.length;b++){let S=d[b];if(S[0]==="."){let g=S.slice(1),l="";for(let i=0;i<g.length;i++){let o=g[i],f=g[i+1];if(o==="\\"){if(i++,f!=="\\"){l+=f;continue}}else if(ze.includes(o))break;l+=o}if(!(l in this.ruleBy)&&!(l in this.classes)){let i=this.create(l)[0];if(i)return i}}}}else if(s.cssRules)for(let u=0;u<s.cssRules.length;u++){let d=m(s.cssRules[u]);if(d)return d}},v=m(y);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let s=0;s<v.natives.length;s++)v.natives[s].cssRule=this.style.sheet.cssRules[h+s];h+=v.natives.length-1,v.config.insert?.call(v)}}else this.style=De(),c.append(this.style);let k=h=>{h.forEach(y=>{y in this.countBy?this.countBy[y]++:(this.countBy[y]=1,this.insert(y))})};k(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(h=>k(h.classList)),this.observer=new MutationObserver(h=>{let y={},m=[],v=[],s=[],u=(g,l)=>{l?g.classList.forEach(b):g.classList.forEach(d);let i=g.children;for(let o=0;o<i.length;o++){let f=i[o];f.classList&&(v.push(f),u(f,l))}},d=g=>{g in y?y[g]++:y[g]=1},b=g=>{g in y?y[g]--:g in this.countBy&&(y[g]=-1)},S=(g,l)=>{for(let i=0;i<g.length;i++){let o=g[i];o.classList&&!v.includes(o)&&!s.includes(o)&&(o.isConnected!==l?(v.push(o),u(o,l)):s.push(o))}};for(let g=0;g<h.length;g++){let l=h[g],{addedNodes:i,removedNodes:o,type:f,target:w}=l;if(f==="attributes"){if(m.find(R=>R.target===w))continue;m.push(l)}else S(i,!1),(!w.isConnected||!v.includes(w))&&S(o,!0)}if(!(!m.length&&!Object.keys(y).length)){for(let{oldValue:g,target:l}of m){let i=v.includes(l),o=l.classList,f=g?g.split(" "):[];if(i){if(l.isConnected)continue;for(let w of f)o.contains(w)||b(w)}else if(l.isConnected){o.forEach(w=>{f.includes(w)||d(w)});for(let w of f)o.contains(w)||b(w)}}for(let g in y){let l=y[g],i=(this.countBy[g]||0)+l;i===0?(delete this.countBy[g],this.delete(g)):(g in this.countBy||this.insert(g),this.countBy[g]=i)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r in this.config.rules){let n=this.config.rules[r],c=this.matches[r],{symbol:a,native:k}=n;if(c&&c.test(e))return{origin:"match",config:n};if(a&&e.startsWith(a))return{origin:"symbol",config:n};if(k&&e.startsWith(k+":"))return{origin:"match",config:n}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=n=>{if(n in this.ruleBy)return this.ruleBy[n];let c=this.match(n);if(c)return new ce(n,c,this)};return(e in this.classes?this.classes[e].map(n=>r(n)):[r(e)]).filter(n=>n&&n.text)}refresh(e){if(e?.override?this.config=e:this.config=re(ae,e),this.cache(),!this.style)return;let r=De();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let n in this.countBy)this.insert(n)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,n=c=>{let a=this.ruleBy[c];if(!(!a||c in this.classesBy&&this.classesBy[c].some(k=>k in this.countBy))){if(r&&a.natives.length){let k=a.natives[0];for(let h=0;h<r.cssRules.length;h++)if(r.cssRules[h]===k.cssRule){for(let m=0;m<a.natives.length;m++)r.deleteRule(h);break}}this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[c],a.config.delete&&a.config.delete.call(a,c)}};if(e in this.classes){for(let c of this.classes[e])c in this.countBy||n(c);delete this.ruleBy[e]}else n(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let n,c=Object.keys(this.keyframes).length,a=this.rules.length-1,{media:k,order:h,priority:y,hasWhere:m,className:v}=r,s=(b,S,g)=>{let l=b;for(;l<=a;l++){let i=this.rules[l];if(S?.(i))return g?-1:l-1;if(g?.(i))return l}return g?-1:l-1},u,d;if(k){let b=this.rules.findIndex(S=>S.media);if(b===-1)n=a+1;else{let{"max-width":S,"min-width":g}=k.features;if(S||g){let l=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(l===-1)n=a+1;else if(S&&g){if(y===-1?(u=s(l,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),d=s(l,i=>i.priority!==-1)):(u=s(l,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),d=a),u!==-1){let i=S.value-g.value,o=d,f=u;for(u=void 0;o>=f;o--){let{"max-width":w,"min-width":R}=this.rules[o].media.features,T=w.value-R.value;if(T<i)d=o-1;else if(T===i)u=o;else break}}if(u!==-1){let i=S.value-g.value;for(let o=d;o>=u;o--){let{"max-width":f,"min-width":w}=this.rules[o].media.features,R=f.value-w.value;if(R<i)d=o-1;else if(R>i){u=o+1;break}}}}else if(g){if(y===-1?(u=s(l,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),d=s(l,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(u=s(l,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),d=s(l,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),u!==-1)for(let i=d;i>=u;i--){let o=this.rules[i].media.features["min-width"].value;if(o>g.value)d=i-1;else if(o<g.value){u=i+1;break}}}else if(y===-1?(u=s(l,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),d=s(l,i=>i.media.features["min-width"]||i.priority!==-1)):(u=s(l,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),d=s(l,i=>i.media.features["min-width"]&&i.priority!==-1)),u!==-1)for(let i=d;i>=u;i--){let o=this.rules[i].media.features["max-width"].value;if(o<S.value)d=i-1;else if(o>S.value){u=i+1;break}}}else y===-1?(u=b,d=s(b,l=>l.media?.features["max-width"]||l.media?.features["min-width"]||l.priority!==-1)):(u=s(b,l=>l.media?.features["max-width"]||l.media?.features["min-width"],l=>l.priority!==-1),d=s(b,l=>l.media?.features["max-width"]||l.media?.features["min-width"]))}}else{let b=c?1:0;y===-1?(u=b,d=s(b,S=>S.media||S.priority!==-1)):(u=s(b,S=>S.media,S=>S.priority!==-1),d=s(b,S=>S.media))}if(n===void 0)if(u===-1)n=d+1;else{if(y===-1)for(let b=u;b<=d;b++){let S=this.rules[b];if(!(!m&&S.hasWhere)&&(m&&!S.hasWhere||S.order>=h)){n=b;break}}else for(let b=u;b<=d;b++){let S=this.rules[b];if(!(!m&&S.hasWhere)){if(m&&!S.hasWhere){n=b;break}if(S.priority<y){n=b;break}else if(S.priority===y){if(S.order>=h){n=b;break}}else n=b+1}}n===void 0&&(n=d+1)}if(this.rules.splice(n,0,r),this.ruleBy[v]=r,this.style){let b=this.style.sheet,S=0,g=l=>{let i=this.rules[l];if(i){if(!i.natives.length)return g(l-1);let o=i.natives[i.natives.length-1].cssRule;for(let f=0;f<b.cssRules.length;f++)if(b.cssRules[f]===o){S=f+1;break}}};g(n-1);for(let l=0;l<r.natives.length;)try{let i=r.natives[l];b.insertRule(i.text,S),i.cssRule=b.cssRules[S++],l++}catch(i){console.error(i),r.natives.splice(l,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},G=ne;oe(G,"root"),oe(G,"config",ae),oe(G,"instances",[]),oe(G,"refresh",e=>{for(let r of ne.instances)r.refresh(e)});be&&(window.MasterCSS=G);var Zt=`/** @type {import('@master/css').Config} */
2
2
  module.exports = {
3
3
  classes: {},
4
4
  colors: {},
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@master/css","scripts":{"build":"techor pack --extra-external @master/css-compiler --shakable","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","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":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.158","@techor/fs":"^2.1.15","@techor/log":"^2.1.15","chokidar":"^3.5.3","commander":"^10.0.0","fast-glob":"^3.2.12","techor":"^2.1.15"},"devDependencies":{"@techor/extend":"^2.1.15","vite":"^4.2.1"},"version":"2.0.0-beta.158"}
1
+ {"name":"@master/css","scripts":{"build":"techor pack --extra-external @master/css-compiler --shakable","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","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":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.159","@techor/fs":"^2.1.15","@techor/log":"^2.1.15","chokidar":"^3.5.3","commander":"^10.0.0","fast-glob":"^3.2.12","techor":"^2.1.15"},"devDependencies":{"@techor/extend":"^2.1.15","vite":"^4.2.1"},"version":"2.0.0-beta.159"}