@master/css 2.0.0-beta.140 → 2.0.0-beta.141
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/cjs/bin/index.js +1 -1
- package/dist/cjs/config/rules.js +1 -1
- package/dist/cjs/constants/config-esm-text.js +17 -0
- package/dist/cjs/constants/config-text.js +15 -0
- package/dist/cjs/constants/config-ts-text.js +17 -0
- package/dist/cjs/constants/index.js +1 -0
- package/dist/cjs/constants/start-symbol.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/methods/index.js +1 -1
- package/dist/cjs/rule.js +1 -1
- package/dist/constants/config-esm-text.d.ts +1 -0
- package/dist/constants/config-text.d.ts +1 -0
- package/dist/constants/config-ts-text.d.ts +1 -0
- package/dist/constants/index.d.ts +5 -0
- package/dist/constants/start-symbol.d.ts +1 -1
- package/dist/esm/bin/index.mjs +1 -1
- package/dist/esm/config/rules.mjs +1 -1
- package/dist/esm/constants/config-esm-text.mjs +17 -0
- package/dist/esm/constants/config-text.mjs +15 -0
- package/dist/esm/constants/config-ts-text.mjs +17 -0
- package/dist/esm/constants/index.mjs +1 -0
- package/dist/esm/constants/start-symbol.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/methods/index.mjs +1 -1
- package/dist/esm/rule.mjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +47 -25
- package/dist/index.mjs +47 -25
- package/dist/methods/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/methods/define-content.js +0 -25
- package/dist/esm/methods/define-content.mjs +0 -25
- package/dist/methods/define-content.d.ts +0 -5
package/dist/index.mjs
CHANGED
|
@@ -1,25 +1,47 @@
|
|
|
1
|
-
var Xe=Object.defineProperty;var He=(t,e,i)=>e in t?Xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var ne=(t,e,i)=>(He(t,typeof e!="symbol"?e+"":e,i),i);function xe(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ye(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 ke(t){let e=[];return t.forEach(function(i,n){typeof i=="object"&&i!==null?Array.isArray(i)?e[n]=ke(i):xe(i)?e[n]=ye(i):e[n]=K({},i):e[n]=i}),e}function ve(t,e){return e==="__proto__"?void 0:t[e]}function K(...t){let e={},i,n;return t.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(s){if(n=ve(e,s),i=ve(l,s),i!==e)if(typeof i!="object"||i===null){e[s]=i;return}else if(Array.isArray(i)){e[s]=ke(i);return}else if(xe(i)){e[s]=ye(i);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[s]=K({},i);return}else{e[s]=K(n,i);return}})}),e}var re={"(":")","'":"'",'"':'"',"{":"}"};function ae(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),i=e.length,n=-1,l="",s,p=e.charCodeAt(0);if(i==1&&p==45)return"\\"+e;for(;++n<i;){if(s=e.charCodeAt(n),s==0){l+="\uFFFD";continue}if(s>=1&&s<=31||s==127||n==0&&s>=48&&s<=57||n==1&&s>=48&&s<=57&&p==45){l+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){l+=e.charAt(n);continue}l+="\\"+e.charAt(n)}return l}var Qe={unit:"",order:0,separators:[","]},le=class{constructor(e,i={},n){this.className=e;this.meta=i;this.css=n;this.config=K(Qe,i.config);let{unit:l,order:s,colored:p,native:m,analyze:u,transform:a,declare:h,create:o}=this.config,{scope:f,important:k,functions:S}=n.config,{themeNames:w,colorNames:v,colorThemesMap:d,selectors:r,breakpoints:c,mediaQueries:x,themeAffectedClassesBy:y,globalValues:R}=n,O=y[e];o&&o.call(this,e);let L,Y,E,Q,_;if(i.origin==="semantics"){let[W,j]=i.value;Q=e.slice(W.length),L=j}else{let W;if(u)[W,E]=u.call(this,e);else if(i.origin==="match"){let $=e.indexOf(":");this.prefix=e.slice(0,$+1),this.prefix.includes("(")?(this.prefix=void 0,W=e):W=e.slice($+1)}else i.origin==="symbol"&&(this.symbol=e[0],W=e.slice(1));_=[];let j=this,I=this.values,N=[","];this.config.separators.length&&N.push(...this.config.separators);let C="",b=0;(function $(g,M,B,T=void 0,A=[],X=[],z){let U=T===void 0,F,ee=D=>D==="'"||D==='"',te=()=>F=C.length,G=()=>{if(C){let D=C,P=U?D:C.slice(F);if(C="",q="",I&&P in I&&!A.includes(P)){let H=b;b=0,$(I[P].toString(),M,void 0,T,[...A,P],X,z),b=H,U||(C=C.slice(0,F)+C)}else if(R&&P in R&&!X.includes(P)){let H=b;b=0,$(R[P].toString(),M,void 0,T,A,[...X,P],z),b=H,U||(C=C.slice(0,F)+C)}else if(U){let H=!z&&j.analyzeUnitValue(P,M);_.push({value:H?.value??P,unit:H?.unit})}else{let H=!z&&j.analyzeUnitValue(P,M);C=H?D.slice(0,F)+H.value+H.unit:D}te()}},J=ee(B);te();let q="";for(;b<g.length;b++){let D=g[b];if(D===B){if(J){C+=D;let P=0;for(let H=C.length-2;C[H]==="\\";H--)P++;if(P%2)continue}else G(),C+=D;return}else if(!J&&D in re){let P=D==="("&&q&&S?.[q];P?.name&&(C=C.slice(0,C.length-q.length)+P.name,q=P.name),C+=D,b++;let H=re[D];$(g,P?.unit??M,H,q||T||"",A,X,z||!!P?.transform),P?.transform&&(C=C.slice(0,F+q.length+1)+P.transform.call(j,C.slice(F+q.length+1,-1))+C.slice(-1)),U&&(ee(H)?(_.push(C),C=""):G()),q=""}else if((D==="|"||D===" ")&&B!=="}"&&(!J||T==="path"))G(),U||(C+=" ",F++);else{if(!J){if(D==="."){if(isNaN(+g[b+1]))break;g[b-1]==="-"&&(C+="0")}else if(N.includes(D)){G(),U?_.push(D):(C+=D,F++);continue}else if(U&&(D==="#"&&(C||_.length&&g[b-1]!=="|"&&_[b-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;q+=D}C+=D}}T===void 0&&G()})(W,l),Q=W.slice(b)}this.order=typeof s=="function"?s.call(this,this.prefix):s,Q[0]==="!"&&(this.important=!0,Q=Q.slice(1));let be=W=>{let j=W.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((b,$)=>$%3?b:b.replace(/_/g," ")).join(""),I=[],N="",C=0;for(let b=0;b<j.length;b++){let $=j[b];if($==="\\"){N+=$+j[++b];continue}!C&&$===","?(I.push(N),N=""):(N+=$,C&&$===")"?C--:$==="("&&C++)}return N&&I.push(N),I};this.prefixSelectors=E?be(E):[""];let de=Q.split("@"),fe=de[0];if(fe){this.vendorSuffixSelectors={};let W=(b,$,g,M)=>{for(let[B,T]of $)if(B.test(b)){for(let A of T)W(b.replace(B,A),$,g,!0);return}M&&g.push(b)},j=[];""in r?W(fe,r[""],j,!0):j.push(fe);let I={};for(let[b,$]of Object.entries(r)){if(!b)continue;let g=[];for(let M of j)W(M,$,g,!1);g.length&&(I[b]=g)}let N=(b,$)=>{let g=$.reduce((M,B)=>(M.push(...be(B)),M),[]);b in this.vendorSuffixSelectors?this.vendorSuffixSelectors[b].push(...g):this.vendorSuffixSelectors[b]=g},C=Object.keys(I);if(C.length)for(let b of C)N(b,I[b]);else N("",j);for(let b of Object.values(this.vendorSuffixSelectors))for(let $ of b){this.hasWhere!==!1&&(this.hasWhere=$.includes(":where("));let g=[":disabled",":active",":focus",":hover"];for(let M=0;M<g.length;M++)if($.includes(g[M])){(this.priority===-1||this.priority>M)&&(this.priority=M);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<de.length;W++){let j=de[W];if(j)if(w.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let I,N,C=j.indexOf("_");if(C!==-1)I=j.slice(0,C),N=j.slice(C);else{let b=j.indexOf("(");b!==-1&&(I=j.slice(0,b),N=j.slice(b))}if(!I){I="media";let b=[];this.media={token:j,features:{}};let $=j.split("&");for(let g of $)if(g==="all"||g==="print"||g==="screen"||g==="speech")this.media.type=g;else if(g==="\u{1F5A8}")this.media.type="print";else if(g==="landscape"||g==="portrait")b.push("(orientation:"+g+")");else if(g==="motion"||g==="reduced-motion")b.push("(prefers-reduced-motion:"+(g==="motion"?"no-preference":"reduce")+")");else if(x&&g in x)b.push(x[g]);else{let M={token:g},B="",T="",A=0;g.startsWith("<=")?(T="<=",B="max-width"):g.startsWith(">=")||c[g]?(T=">=",B="min-width"):g.startsWith(">")?(T=">",B="min-width",A=.02):g.startsWith("<")&&(T="<",B="max-width",A=-.02);let X=T?g.replace(T,""):g,z=c[X];switch(B){case"max-width":case"min-width":z?Object.assign(M,this.analyzeUnitValue(z.toString(),"px")):Object.assign(M,this.analyzeUnitValue(X,"px")),M.unit==="px"&&(M.value+=A),this.media.features[B]=M,b.push("("+B+":"+(M.value+M.unit)+")");break}}N="",this.media.type&&(N=this.media.type),b.length&&(N+=(N?" and ":"")+b.join(" and "))}N&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+N.replace(/_/g," "))}}let me=(W,j)=>{let I,N=($,g,M)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let T=this.prefixSelectors.map(z=>z+B),A=(z,U)=>T.map(F=>(z?"."+z+" ":"")+(f?f+" ":"")+F).reduce((F,ee)=>(F.push(M.reduce((te,G)=>(te.push(ee+"."+ae(U)+G),te),[]).join(",")),F),[]).join(","),X=A(g,e)+(O?Object.entries(O).filter(([z])=>this.theme||!p||!g||!z||z===g).map(([z,U])=>U.reduce((F,ee)=>F+","+A(this.theme??((p||Y)&&g||z),ee),"")).join(""):"")+"{"+$+"}";for(let z of Object.keys(this.at).sort((U,F)=>F==="supports"?-1:1))X="@"+z+" "+this.at[z]+"{"+X+"}";return X},C=[];if(_){let $=[this.theme??W,""],g,M=!1;for(let B of _)if(typeof B=="string")C.push(B);else{let T=B.value;if(B.unit)T+=B.unit;else if(p&&d&&v){let A=!1;T=T.replace(new RegExp(`(^|,| |\\()((?:${v.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(X,z,U,F)=>{let ee=d[U];if(ee){let te,G;for(let J of $)if(te=ee[J]){G=J;break}if(te){A=!j||G===W,g||(g=A);let J=te;if(F){let q=F.endsWith("%")?parseFloat(F)/100:+F;q=isNaN(q)?1:Math.min(Math.max(q,0),1),J+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return z+J}else M=!0}return X})}C.push(T)}if(j&&(M||(g===void 0?W:!g)))return;if(I=C.reduce((B,T,A)=>B+T+(T===","||_[A+1]===","||A===_.length-1?"":" "),""),a&&(I=a.call(this,I,this.css.config)),p&&I==="current"&&(I="currentColor"),h){let B,T;if(_.length===1){let A=_[0];typeof A=="object"&&(B=A.value,T=A.unit)}L=h.call(this,T?B:I,T||"")}else L={[m]:I}}let b={};for(let $ in L){let g=(T,A)=>{let X=A+((this.important||k)&&!A.endsWith("!important")?"!important":"");T in b?b[T].push(X):b[T]=[X]},M=$+":",B=L[$];if(typeof B=="object"){Y=!0;for(let T in B)g(T,M+B[T])}else g(W,M+B.toString())}for(let $ of Object.values(this.vendorSuffixSelectors))for(let g in b)this.natives.push({text:N(b[g].join(";"),g,$),theme:g})};if(this.theme)me(this.theme,!1);else if(p)for(let W of w)me(W,!0);else me("",!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,i){return Number.isNaN(+e)?e:e/(i==="rem"||i==="em"?this.css.config.rootSize:1)+i}analyzeUnitValue(e,i){let n=i??this.config.unit;if(n){let l="",s=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(e.includes("/")){let[p,m]=e.split("/");return{value:+p/+m*100+"%",unit:l}}else{let p=+s[1];return l=s[3]||"",l||((n==="rem"||n==="em")&&(p=p/this.css.config.rootSize),l=n||""),{value:p,unit:l}}}}};var Se={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function oe(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 ce(t,e,i){return((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)}function V(t){typeof t=="string"&&(t={"":t});let e=""in t,i=!1;for(let n in t)if(n&&+n>=100){i=!0;break}if(!i&&(!e||Object.keys(t).length>1)){let n=0,l="0"in t?oe(t[0]):[0,0,0],s,p,m=[],u=()=>{let a=s-n,h=p.map((o,f)=>(o-l[f])/a);for(let o of m){let f=o-n,k=l.map((S,w)=>Math.round(S+h[w]*f));t[o]="#"+ce.call(this,...k)}};for(let a=1;a<100;a++)a in t?(m.length?(s=a,p=oe(t[a]),u(),m.length=0,l=p):l=oe(t[a]),n=a):m.push(a);m.length&&(s=100,p="100"in t?oe(t[100]):[255,255,255],u())}return e||(t[""]=t[i?"500":"50"]),t}var we={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 Ce=16;var Re="";var $e={"::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 Te={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}};var Be=["dark","light"];var Ue={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={},i=(a,h)=>{let o=h.indexOf(":");if(o!==-1){a in e||(e[a]={});let f=e[a],k=h.slice(0,o);k in f||(f[k]=h.slice(o+1))}},n=a=>{let h=(o,f)=>{let k=f.slice(ae(a.className).length).match(/\{(.*)\}/)[1].split(";");for(let S of k)i(o,S)};if(this.theme){let o=a.natives.find(f=>f.theme===this.theme)??a.natives.find(f=>!f.theme);o&&h(this.theme,o.text)}else for(let o of a.natives)h(o.theme,o.text)},l=[],s="",p=()=>{s&&(l.push(s.replace(/ /g,"")),s="")},m=1;(function a(h){for(;m<t.length;m++){let o=t[m];if(!h){if(o===";"){p();continue}if(o==="}")break}if(s+=o,h===o){if(h==="'"||h==='"'){let f=0;for(let k=s.length-2;s[k]==="\\";k--)f++;if(f%2)continue}break}else o in re&&h!=="'"&&h!=='"'&&(m++,a(re[o]))}})(void 0),p();for(let a of l){let h=this.css.create(a);if(Array.isArray(h))for(let o of h)n(o);else h?n(h):i(this.theme??"",a)}let u={};for(let a in e)for(let[h,o]of Object.entries(e[a]))h in u?u[h][a]=o:u[h]={[a]:o};return u}},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,i]=t.split(" x ");return{width:e,height:i}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,i]=t.split(" x ");return{"min-width":e,"min-height":i}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,i]=t.split(" x ");return{"max-width":e,"max-height":i}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},lines:{match:"^lines:.",declare(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},overflowY:{native:!0},overflow:{native:!0,order:-1},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:{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},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return Me.call(this,t)},delete(t){return Oe.call(this,t)},insert(){return je.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Me.call(this,t)},delete(t){return Oe.call(this,t)},insert(){return je.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)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},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:{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}}}},Le=Ue;function Me(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(i=>i in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function Oe(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let i=this.css.keyframes[e];if(!--i.count){let n=t.natives.indexOf(i.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 je(){if(this.keyframeNames){let{config:t,keyframes:e,style:i,rules:n}=this.css,l=i?.sheet;for(let s of this.keyframeNames)if(s in e)e[s].count++;else{let p={text:`@keyframes ${s}{`+Object.entries(t.keyframes[s]).map(([u,a])=>`${u}{${Object.entries(a).map(([h,o])=>h+":"+o).join(";")}}`).join("")+"}",theme:""},m;if(Object.keys(e).length?(m=n[0]).natives.push(p):n.splice(0,0,m={natives:[p],get text(){return this.natives.map(u=>u.text).join("")}}),l){let u;for(let a=0;a<l.cssRules.length;a++){let h=l.cssRules[a];if(h.constructor.name!=="CSSKeyframesRule")break;if(h.name===s){u=h;break}}if(u)p.cssRule=u;else{let a=m.natives.length-1;l.insertRule(p.text,a),p.cssRule=l.cssRules[a]}}e[s]={native:p,count:1}}}}var Ee=!1;var Ie=!0;var Ae=!1;var We={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 he={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=u=>u==="+"||u==="-"||u==="*"||u==="/",i="",n,l="",s=!1,p=!1,m=(u,a="",h="")=>{if(n===2&&!p){let o=this.analyzeUnitValue(l,he.calc.unit);o&&(l=o.value+o.unit)}i+=l+a+u+h,n=null,p=!1,l=""};for(let u=0;u<t.length;u++){let a=t[u];if(a==="("||a===")")s=a===")",m(a);else if(a===",")m(a,""," ");else{switch(n){case 1:break;case 2:if(e(a)){m(a," "," ");continue}else/[0-9]/.test(a)||(p=!0);break;default:s&&(i+=" "),isNaN(+a)?e(a)||(n=1):n=2;break}n?l+=a:i+=a}}return m(""),i}},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 se={breakpoints:Se,colors:we,rootSize:16,scope:Re,selectors:$e,semantics:Te,themes:Be,rules:Le,override:!1,observe:!0,important:!1,functions:he,keyframes:We};var ze=[",",".","#","[","!","*",">","+","~",":","@"];var ge=typeof window<"u",De=()=>{let t=document.createElement("style");return t.id="master",t},ie=class{constructor(e=se){this.config=e;e?.override||(this.config=K(se,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),ge&&this.config.observe&&this.observe(document),ie.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:i,selectors:n,themes:l,colors:s,values:p,breakpoints:m,mediaQueries:u,rules:a}=this.config;function h(r){return r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(r,c,x="",y={}){let R=E=>E?(x?x+"-":"")+E:x,O=Object.entries(r),L=[],Y=[];for(let E of O){let Q=E[1];(typeof Q=="object"&&!Array.isArray(Q)?L:Y).push(E)}for(let[E,Q]of L)o(Q,c,R(E),y);if(c&&x)Y.length&&(y[x]=Y.reduce((E,[Q,_])=>(E[Q]=_,E),{}));else for(let[E,Q]of Y)y[R(E)]=Q;return y}if(e)for(let[r,c]of Object.entries(o(e,!0)))this.semantics.push([new RegExp("^"+h(r)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[r,c]]);if(n)for(let[r,c]of Object.entries(o(n,!1))){let x=new RegExp(h(r)+"(?![a-z-])");for(let y of Array.isArray(c)?c:[c]){let R=y.match(/^::-[a-z]+-/m)?.[0]??"",O=this.selectors[R];O||(O=this.selectors[R]=[]);let L=O.find(([Y])=>Y===x);L||(L=[x,[]],O.push(L)),L[1].push(y)}}p&&(this.globalValues=o(p,!1)),m&&(this.breakpoints=o(m,!1)),u&&(this.mediaQueries=o(u,!1));let f=i?o(i,!1):{},k=l&&!Array.isArray(l)?Object.entries(l).filter(([,{classes:r}])=>r).reduce((r,[c,{classes:x}])=>(r[c]=o(x,!1),r),{}):{},S=[...Object.keys(f),...Object.entries(k).flatMap(([r,c])=>Object.keys(c))],w=r=>{if(r in this.classes)return;let c=this.classes[r]=[],x=(y,R)=>{if(!R)return;let O=Array.isArray(R)?R:R.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let L of O){let Y=E=>{E in this.themeAffectedClassesBy?y in this.themeAffectedClassesBy[E]?this.themeAffectedClassesBy[E][y].push(r):this.themeAffectedClassesBy[E][y]=[r]:this.themeAffectedClassesBy[E]={[y]:[r]},c.includes(E)||c.push(E)};if(S.includes(L)){w(L);for(let E of this.classes[L])Y(E)}else Y(L)}};x("",f?.[r]);for(let[y,R]of Object.entries(k))x(y,R?.[r])};for(let r of S)w(r);for(let r in this.themeAffectedClassesBy){let c=this.classesBy[r]=[];for(let x of Object.values(this.themeAffectedClassesBy[r]))for(let y of x)c.includes(y)||c.push(y)}let v=(r,c)=>{if(!c)return;let x=o(c,!0);for(let[y,R]of Object.entries(x)){let O=typeof R=="string"?{"":R}:R;for(let[L,Y]of Object.entries(O)){let E=y+(L?"-"+L:"");E in this.colorThemesMap?this.colorThemesMap[E][r]=Y:this.colorThemesMap[E]={[r]:Y}}}for(let y in c)this.colorNames.includes(y)||this.colorNames.push(y)};if(v("",s),l)if(Array.isArray(l))this.themeNames.push(...l);else for(let r in l){let c=l[r];v(r,c.colors),this.themeNames.push(r)}let d=r=>{for(let[c,x]of Object.entries(this.colorThemesMap))for(let[y,R]of Object.entries(x))R.startsWith("#")||r(c,x,y,R)};if(d((r,c,x,y)=>{let R=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(y);if(R){let O="#"+ce(+R[1],+R[2],+R[3]);R[4]&&(O+=Math.round(255*+R[4]).toString(16)),c[x]=O}}),d((r,c,x,y)=>{let[R,O]=y.split("/"),L=this.colorThemesMap[R];if(L){let Y=(x?L[x]:void 0)??L[""];c[x]=O?Y.slice(0,7)+Math.round(255*+O).toString(16):Y}else console.warn(`\`${y}\` doesn't exist in the extended config \`.colors\``),delete c[x],Object.keys(c).length||delete this.colorThemesMap[r]}),a)for(let r in a){let c=a[r],{native:x,values:y,colored:R}=c,O=c.match;if(c.id=r,c.native=x===!0?r.replace(/(?!^)[A-Z]/g,L=>"-"+L).toLowerCase():void 0,y&&(this.values[r]=o(y,!1)),O){let L=Object.keys(this.values[r]??{});O.includes("$values")&&(O=L.length?O.replace(/\$values/,L.join("|")):O.replace(/(?:\|)?\$values/,"")),R&&O.includes("$colors")&&(O=this.colorNames.length?O.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):O.replace(/(?:\|)?\$colors/,"")),this.matches[r]=new RegExp(O)}}}observe(e,i={subtree:!0,childList:!0}){if(this.root!==e){if(ge&&e){this.root=e;let n=e===document;n&&(ie.root=this),this.host=n?document.documentElement:root.host;let l=n?document.head:e,s=n?document.styleSheets:e.styleSheets;for(let m of s){let{ownerNode:u}=m;if(u.id==="master"){this.style=u;break}}if(this.style)for(let m=0;m<this.style.sheet.cssRules.length;m++){let u=this.style.sheet.cssRules[m];if(u.constructor.name==="CSSKeyframesRule")continue;let a=o=>{if(o.selectorText){let k=o.selectorText.split(", ")[0].split(" ");for(let S=0;S<k.length;S++){let w=k[S];if(w[0]==="."){let v=w.slice(1),d="";for(let r=0;r<v.length;r++){let c=v[r],x=v[r+1];if(c==="\\"){if(r++,x!=="\\"){d+=x;continue}}else if(ze.includes(c))break;d+=c}if(!(d in this.ruleBy)&&!(d in this.classes)){let r=this.create(d)[0];if(r)return r}}}}else if(o.cssRules)for(let f=0;f<o.cssRules.length;f++){let k=a(o.cssRules[f]);if(k)return k}},h=a(u);if(h){this.rules.push(h),this.ruleBy[h.className]=h;for(let o=0;o<h.natives.length;o++)h.natives[o].cssRule=this.style.sheet.cssRules[m+o];m+=h.natives.length-1,h.config.insert?.call(h)}}else this.style=De(),l.append(this.style);let p=m=>{m.forEach(u=>{u in this.countBy?this.countBy[u]++:(this.countBy[u]=1,this.insert(u))})};p(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(m=>p(m.classList)),this.observer=new MutationObserver(m=>{let u={},a=[],h=[],o=[],f=(v,d)=>{d?v.classList.forEach(S):v.classList.forEach(k);let r=v.children;for(let c=0;c<r.length;c++){let x=r[c];x.classList&&(h.push(x),f(x,d))}},k=v=>{v in u?u[v]++:u[v]=1},S=v=>{v in u?u[v]--:v in this.countBy&&(u[v]=-1)},w=(v,d)=>{for(let r=0;r<v.length;r++){let c=v[r];c.classList&&!h.includes(c)&&!o.includes(c)&&(c.isConnected!==d?(h.push(c),f(c,d)):o.push(c))}};for(let v=0;v<m.length;v++){let d=m[v],{addedNodes:r,removedNodes:c,type:x,target:y}=d;if(x==="attributes"){if(a.find(R=>R.target===y))continue;a.push(d)}else w(r,!1),(!y.isConnected||!h.includes(y))&&w(c,!0)}if(!(!a.length&&!Object.keys(u).length)){for(let{oldValue:v,target:d}of a){let r=h.includes(d),c=d.classList,x=v?v.split(" "):[];if(r){if(d.isConnected)continue;for(let y of x)c.contains(y)||S(y)}else if(d.isConnected){c.forEach(y=>{x.includes(y)||k(y)});for(let y of x)c.contains(y)||S(y)}}for(let v in u){let d=u[v],r=(this.countBy[v]||0)+d;r===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=r)}}}),this.observer.observe(e,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let i=e.cssRules.length-1;i>=0;i--)e.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(e){for(let i in this.config.rules){let n=this.config.rules[i],l=this.matches[i],{symbol:s,native:p}=n;if(l&&l.test(e))return{origin:"match",config:n};if(s&&e.startsWith(s))return{origin:"symbol",config:n};if(p&&e.startsWith(p+":"))return{origin:"match",config:n}}for(let i of this.semantics)if(e.match(i[0]))return{origin:"semantics",value:i[1]}}create(e){let i=n=>{if(n in this.ruleBy)return this.ruleBy[n];let l=this.match(n);if(l)return new le(n,l,this)};return(e in this.classes?this.classes[e].map(n=>i(n)):[i(e)]).filter(n=>n&&n.text)}refresh(e){if(e?.override?this.config=e:this.config=K(se,e),this.cache(),!this.style)return;let i=De();this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let n in this.countBy)this.insert(n)}destroy(){let e=ie.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let i=this.style?.sheet,n=l=>{let s=this.ruleBy[l];if(!(!s||l in this.classesBy&&this.classesBy[l].some(p=>p in this.countBy))){if(i&&s.natives.length){let p=s.natives[0];for(let m=0;m<i.cssRules.length;m++)if(i.cssRules[m]===p.cssRule){for(let a=0;a<s.natives.length;a++)i.deleteRule(m);break}}this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[l],s.config.delete&&s.config.delete.call(s,l)}};if(e in this.classes){for(let l of this.classes[e])l in this.countBy||n(l);delete this.ruleBy[e]}else n(e)}insert(e){let i=this.create(e);return i.length?(this.insertRules(i),!0):!1}insertRules(e){for(let i of e){if(this.ruleBy[i.className])continue;let n,l=Object.keys(this.keyframes).length,s=this.rules.length-1,{media:p,order:m,priority:u,hasWhere:a,className:h}=i,o=(S,w,v)=>{let d=S;for(;d<=s;d++){let r=this.rules[d];if(w?.(r))return v?-1:d-1;if(v?.(r))return d}return v?-1:d-1},f,k;if(p){let S=this.rules.findIndex(w=>w.media);if(S===-1)n=s+1;else{let{"max-width":w,"min-width":v}=p.features;if(w||v){let d=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(d===-1)n=s+1;else if(w&&v){if(u===-1?(f=o(d,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),k=o(d,r=>r.priority!==-1)):(f=o(d,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),k=s),f!==-1){let r=w.value-v.value,c=k,x=f;for(f=void 0;c>=x;c--){let{"max-width":y,"min-width":R}=this.rules[c].media.features,O=y.value-R.value;if(O<r)k=c-1;else if(O===r)f=c;else break}}if(f!==-1){let r=w.value-v.value;for(let c=k;c>=f;c--){let{"max-width":x,"min-width":y}=this.rules[c].media.features,R=x.value-y.value;if(R<r)k=c-1;else if(R>r){f=c+1;break}}}}else if(v){if(u===-1?(f=o(d,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),k=o(d,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(f=o(d,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),k=o(d,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),f!==-1)for(let r=k;r>=f;r--){let c=this.rules[r].media.features["min-width"].value;if(c>v.value)k=r-1;else if(c<v.value){f=r+1;break}}}else if(u===-1?(f=o(d,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),k=o(d,r=>r.media.features["min-width"]||r.priority!==-1)):(f=o(d,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),k=o(d,r=>r.media.features["min-width"]&&r.priority!==-1)),f!==-1)for(let r=k;r>=f;r--){let c=this.rules[r].media.features["max-width"].value;if(c<w.value)k=r-1;else if(c>w.value){f=r+1;break}}}else u===-1?(f=S,k=o(S,d=>d.media?.features["max-width"]||d.media?.features["min-width"]||d.priority!==-1)):(f=o(S,d=>d.media?.features["max-width"]||d.media?.features["min-width"],d=>d.priority!==-1),k=o(S,d=>d.media?.features["max-width"]||d.media?.features["min-width"]))}}else{let S=l?1:0;u===-1?(f=S,k=o(S,w=>w.media||w.priority!==-1)):(f=o(S,w=>w.media,w=>w.priority!==-1),k=o(S,w=>w.media))}if(n===void 0)if(f===-1)n=k+1;else{if(u===-1)for(let S=f;S<=k;S++){let w=this.rules[S];if(!(!a&&w.hasWhere)&&(a&&!w.hasWhere||w.order>=m)){n=S;break}}else for(let S=f;S<=k;S++){let w=this.rules[S];if(!(!a&&w.hasWhere)){if(a&&!w.hasWhere){n=S;break}if(w.priority<u){n=S;break}else if(w.priority===u){if(w.order>=m){n=S;break}}else n=S+1}}n===void 0&&(n=k+1)}if(this.rules.splice(n,0,i),this.ruleBy[h]=i,this.style){let S=this.style.sheet,w=0,v=d=>{let r=this.rules[d];if(r){if(!r.natives.length)return v(d-1);let c=r.natives[r.natives.length-1].cssRule;for(let x=0;x<S.cssRules.length;x++)if(S.cssRules[x]===c){w=x+1;break}}};v(n-1);for(let d=0;d<i.natives.length;)try{let r=i.natives[d];S.insertRule(r.text,w),r.cssRule=S.cssRules[w++],d++}catch(r){console.error(r),i.natives.splice(d,1)}}i.config.insert?.call(i)}}get text(){return this.rules.map(e=>e.text).join("")}},Z=ie;ne(Z,"root"),ne(Z,"config",se),ne(Z,"instances",[]),ne(Z,"refresh",e=>{for(let i of ie.instances)i.refresh(e)});ge&&(window.MasterCSS=Z);var Ne={store:"theme",init:!0},qe=typeof document<"u",Fe=typeof localStorage<"u",Pe=class{constructor(e,i=qe?document.documentElement:null){this.settings=e;this.host=i;this.settings=e?K(Ne,e):Ne,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;r;t;init(){let e=this.settings.default,i=this.storage;i&&(e=i),this.value=e}get storage(){let{store:e}=this.settings;if(Fe&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.r=e,e==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.n(),this.current=e)}get value(){return this.r}set current(e){let i=this.t;this.t=e,this.host&&i!==e&&(i&&this.host.classList.remove(i),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,i={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,Fe&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),i.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};function Jt(t){return t=Object.assign({store:"theme"},t),`let e${t.default?`='${t.default}'`:""};const c=localStorage.getItem("${t.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}function rr(t,e){if(!t?.length)return;let i=new Z({...e,observe:!1});for(let n of t)n in i.countBy||i.insert(n)&&(i.countBy[n]=1);return i.text}var _e=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,Ze={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};function ue(t){if(t)return t.split(/\sclass="([^"]*)"/gm).filter((e,i)=>i%2===1).map(e=>e.split(" ")).flat().map(e=>e.replace(_e,(i,n)=>Ze[n]))}function Ve(t,e){if(!t)return;let i=ue(t);if(!i.length)return;let n=new Z({...e,observe:!1});for(let l of i)l in n.countBy||n.insert(l)&&(n.countBy[l]=1);return n.text}function cr(t,e){if(!t)return;let i=`<style id="master">${Ve(t,e)}</style>`;return t.replace(/<\/head>/,`${i}$&`)}function Ye(t,e){if(!t?.length)return;let i=new Z({...e,observe:!1});for(let n of t)n in i.countBy||i.insert(n)&&(i.countBy[n]=1);return i.rules}function gr(t,e){if(!t)return;let i=ue(t);if(i.length)return Ye(i,e)}function Ke(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=Array.from(typeof t=="string"?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var l=n.reduce(function(m,u){var a=u.match(/\n([\t ]+|(?!\s).)/g);return a?m.concat(a.map(function(h){var o,f;return(f=(o=h.match(/[\t ]/g))===null||o===void 0?void 0:o.length)!==null&&f!==void 0?f:0})):m},[]);if(l.length){var s=new RegExp(`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
var Ye=Object.defineProperty;var Xe=(t,e,i)=>e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var ne=(t,e,i)=>(Xe(t,typeof e!="symbol"?e+"":e,i),i);function ve(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function xe(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 ye(t){let e=[];return t.forEach(function(i,n){typeof i=="object"&&i!==null?Array.isArray(i)?e[n]=ye(i):ve(i)?e[n]=xe(i):e[n]=G({},i):e[n]=i}),e}function be(t,e){return e==="__proto__"?void 0:t[e]}function G(...t){let e={},i,n;return t.forEach(function(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(a){if(n=be(e,a),i=be(c,a),i!==e)if(typeof i!="object"||i===null){e[a]=i;return}else if(Array.isArray(i)){e[a]=ye(i);return}else if(ve(i)){e[a]=xe(i);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[a]=G({},i);return}else{e[a]=G(n,i);return}})}),e}var re={"(":")","'":"'",'"':'"',"{":"}"};function ae(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),i=e.length,n=-1,c="",a,x=e.charCodeAt(0);if(i==1&&x==45)return"\\"+e;for(;++n<i;){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&&x==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 He={unit:"",order:0,separators:[","]},le=class{constructor(e,i={},n){this.className=e;this.meta=i;this.css=n;this.config=G(He,i.config);let{unit:c,order:a,colored:x,native:y,analyze:d,transform:l,declare:m,create:s}=this.config,{scope:h,important:C,functions:k}=n.config,{themeNames:w,colorNames:p,colorThemesMap:u,selectors:r,breakpoints:o,mediaQueries:b,themeAffectedClassesBy:v,globalValues:R}=n,O=v[e];s&&s.call(this,e);let L,Y,I,_,q;if(i.origin==="semantics"){let[W,j]=i.value;_=e.slice(W.length),L=j}else{let W;if(d)[W,I]=d.call(this,e);else if(i.origin==="match"){let $=e.indexOf(":");this.prefix=e.slice(0,$+1),this.prefix.includes("(")?(this.prefix=void 0,W=e):W=e.slice($+1)}else i.origin==="symbol"&&(this.symbol=e[0],W=e.slice(1));q=[];let j=this,E=this.values,D=[","];this.config.separators.length&&D.push(...this.config.separators);let S="",g=0;(function $(f,M,B,T=void 0,A=[],X=[],z){let Q=T===void 0,F,ee=N=>N==="'"||N==='"',te=()=>F=S.length,K=()=>{if(S){let N=S,P=Q?N:S.slice(F);if(S="",U="",E&&P in E&&!A.includes(P)){let H=g;g=0,$(E[P].toString(),M,void 0,T,[...A,P],X,z),g=H,Q||(S=S.slice(0,F)+S)}else if(R&&P in R&&!X.includes(P)){let H=g;g=0,$(R[P].toString(),M,void 0,T,A,[...X,P],z),g=H,Q||(S=S.slice(0,F)+S)}else if(Q){let H=!z&&j.analyzeUnitValue(P,M);q.push({value:H?.value??P,unit:H?.unit})}else{let H=!z&&j.analyzeUnitValue(P,M);S=H?N.slice(0,F)+H.value+H.unit:N}te()}},J=ee(B);te();let U="";for(;g<f.length;g++){let N=f[g];if(N===B){if(J){S+=N;let P=0;for(let H=S.length-2;S[H]==="\\";H--)P++;if(P%2)continue}else K(),S+=N;return}else if(!J&&N in re){let P=N==="("&&U&&k?.[U];P?.name&&(S=S.slice(0,S.length-U.length)+P.name,U=P.name),S+=N,g++;let H=re[N];$(f,P?.unit??M,H,U||T||"",A,X,z||!!P?.transform),P?.transform&&(S=S.slice(0,F+U.length+1)+P.transform.call(j,S.slice(F+U.length+1,-1))+S.slice(-1)),Q&&(ee(H)?(q.push(S),S=""):K()),U=""}else if((N==="|"||N===" ")&&B!=="}"&&(!J||T==="path"))K(),Q||(S+=" ",F++);else{if(!J){if(N==="."){if(isNaN(+f[g+1]))break;f[g-1]==="-"&&(S+="0")}else if(D.includes(N)){K(),Q?q.push(N):(S+=N,F++);continue}else if(Q&&(N==="#"&&(S||q.length&&f[g-1]!=="|"&&q[g-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(N)))break;U+=N}S+=N}}T===void 0&&K()})(W,c),_=W.slice(g)}this.order=typeof a=="function"?a.call(this,this.prefix):a,_[0]==="!"&&(this.important=!0,_=_.slice(1));let pe=W=>{let j=W.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((g,$)=>$%3?g:g.replace(/_/g," ")).join(""),E=[],D="",S=0;for(let g=0;g<j.length;g++){let $=j[g];if($==="\\"){D+=$+j[++g];continue}!S&&$===","?(E.push(D),D=""):(D+=$,S&&$===")"?S--:$==="("&&S++)}return D&&E.push(D),E};this.prefixSelectors=I?pe(I):[""];let de=_.split("@"),fe=de[0];if(fe){this.vendorSuffixSelectors={};let W=(g,$,f,M)=>{for(let[B,T]of $)if(B.test(g)){for(let A of T)W(g.replace(B,A),$,f,!0);return}M&&f.push(g)},j=[];""in r?W(fe,r[""],j,!0):j.push(fe);let E={};for(let[g,$]of Object.entries(r)){if(!g)continue;let f=[];for(let M of j)W(M,$,f,!1);f.length&&(E[g]=f)}let D=(g,$)=>{let f=$.reduce((M,B)=>(M.push(...pe(B)),M),[]);g in this.vendorSuffixSelectors?this.vendorSuffixSelectors[g].push(...f):this.vendorSuffixSelectors[g]=f},S=Object.keys(E);if(S.length)for(let g of S)D(g,E[g]);else D("",j);for(let g of Object.values(this.vendorSuffixSelectors))for(let $ of g){this.hasWhere!==!1&&(this.hasWhere=$.includes(":where("));let f=[":disabled",":active",":focus",":hover"];for(let M=0;M<f.length;M++)if($.includes(f[M])){(this.priority===-1||this.priority>M)&&(this.priority=M);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<de.length;W++){let j=de[W];if(j)if(w.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let E,D,S=j.indexOf("_");if(S!==-1)E=j.slice(0,S),D=j.slice(S);else{let g=j.indexOf("(");g!==-1&&(E=j.slice(0,g),D=j.slice(g))}if(!E){E="media";let g=[];this.media={token:j,features:{}};let $=j.split("&");for(let f of $)if(f==="all"||f==="print"||f==="screen"||f==="speech")this.media.type=f;else if(f==="\u{1F5A8}")this.media.type="print";else if(f==="landscape"||f==="portrait")g.push("(orientation:"+f+")");else if(f==="motion"||f==="reduced-motion")g.push("(prefers-reduced-motion:"+(f==="motion"?"no-preference":"reduce")+")");else if(b&&f in b)g.push(b[f]);else{let M={token:f},B="",T="",A=0;f.startsWith("<=")?(T="<=",B="max-width"):f.startsWith(">=")||o[f]?(T=">=",B="min-width"):f.startsWith(">")?(T=">",B="min-width",A=.02):f.startsWith("<")&&(T="<",B="max-width",A=-.02);let X=T?f.replace(T,""):f,z=o[X];switch(B){case"max-width":case"min-width":z?Object.assign(M,this.analyzeUnitValue(z.toString(),"px")):Object.assign(M,this.analyzeUnitValue(X,"px")),M.unit==="px"&&(M.value+=A),this.media.features[B]=M,g.push("("+B+":"+(M.value+M.unit)+")");break}}D="",this.media.type&&(D=this.media.type),g.length&&(D+=(D?" and ":"")+g.join(" and "))}D&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+D.replace(/_/g," "))}}let me=(W,j)=>{let E,D=($,f,M)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let T=this.prefixSelectors.map(z=>z+B),A=(z,Q)=>T.map(F=>(z?"."+z+" ":"")+(h?h+" ":"")+F).reduce((F,ee)=>(F.push(M.reduce((te,K)=>(te.push(ee+"."+ae(Q)+K),te),[]).join(",")),F),[]).join(","),X=A(f,e)+(O?Object.entries(O).filter(([z])=>this.theme||!x||!f||!z||z===f).map(([z,Q])=>Q.reduce((F,ee)=>F+","+A(this.theme??((x||Y)&&f||z),ee),"")).join(""):"")+"{"+$+"}";for(let z of Object.keys(this.at).sort((Q,F)=>F==="supports"?-1:1))X="@"+z+" "+this.at[z]+"{"+X+"}";return X},S=[];if(q){let $=[this.theme??W,""],f,M=!1;for(let B of q)if(typeof B=="string")S.push(B);else{let T=B.value;if(B.unit)T+=B.unit;else if(x&&u&&p){let A=!1;T=T.replace(new RegExp(`(^|,| |\\()((?:${p.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(X,z,Q,F)=>{let ee=u[Q];if(ee){let te,K;for(let J of $)if(te=ee[J]){K=J;break}if(te){A=!j||K===W,f||(f=A);let J=te;if(F){let U=F.endsWith("%")?parseFloat(F)/100:+F;U=isNaN(U)?1:Math.min(Math.max(U,0),1),J+=Math.round(U*255).toString(16).toUpperCase().padStart(2,"0")}return z+J}else M=!0}return X})}S.push(T)}if(j&&(M||(f===void 0?W:!f)))return;if(E=S.reduce((B,T,A)=>B+T+(T===","||q[A+1]===","||A===q.length-1?"":" "),""),l&&(E=l.call(this,E,this.css.config)),x&&E==="current"&&(E="currentColor"),m){let B,T;if(q.length===1){let A=q[0];typeof A=="object"&&(B=A.value,T=A.unit)}L=m.call(this,T?B:E,T||"")}else L={[y]:E}}let g={};for(let $ in L){let f=(T,A)=>{let X=A+((this.important||C)&&!A.endsWith("!important")?"!important":"");T in g?g[T].push(X):g[T]=[X]},M=$+":",B=L[$];if(typeof B=="object"){Y=!0;for(let T in B)f(T,M+B[T])}else f(W,M+B.toString())}for(let $ of Object.values(this.vendorSuffixSelectors))for(let f in g)this.natives.push({text:D(g[f].join(";"),f,$),theme:f})};if(this.theme)me(this.theme,!1);else if(x)for(let W of w)me(W,!0);else me("",!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,i){return Number.isNaN(+e)?e:e/(i==="rem"||i==="em"?this.css.config.rootSize:1)+i}analyzeUnitValue(e,i){let n=i??this.config.unit;if(n){let c="",a=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(a)if(e.includes("/")){let[x,y]=e.split("/");return{value:+x/+y*100+"%",unit:c}}else{let x=+a[1];return c=a[3]||"",c||((n==="rem"||n==="em")&&(x=x/this.css.config.rootSize),c=n||""),{value:x,unit:c}}}}};var ke={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function oe(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 ce(t,e,i){return((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)}function V(t){typeof t=="string"&&(t={"":t});let e=""in t,i=!1;for(let n in t)if(n&&+n>=100){i=!0;break}if(!i&&(!e||Object.keys(t).length>1)){let n=0,c="0"in t?oe(t[0]):[0,0,0],a,x,y=[],d=()=>{let l=a-n,m=x.map((s,h)=>(s-c[h])/l);for(let s of y){let h=s-n,C=c.map((k,w)=>Math.round(k+m[w]*h));t[s]="#"+ce.call(this,...C)}};for(let l=1;l<100;l++)l in t?(y.length?(a=l,x=oe(t[l]),d(),y.length=0,c=x):c=oe(t[l]),n=l):y.push(l);y.length&&(a=100,x="100"in t?oe(t[100]):[255,255,255],d())}return e||(t[""]=t[i?"500":"50"]),t}var we={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 Se=16;var Ce="";var Re={"::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 $e={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"}};var Te=["dark","light"];var _e={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={},i=(l,m)=>{let s=m.indexOf(":");if(s!==-1){l in e||(e[l]={});let h=e[l],C=m.slice(0,s);C in h||(h[C]=m.slice(s+1))}},n=l=>{let m=(s,h)=>{let C=h.slice(ae(l.className).length).match(/\{(.*)\}/)[1].split(";");for(let k of C)i(s,k)};if(this.theme){let s=l.natives.find(h=>h.theme===this.theme)??l.natives.find(h=>!h.theme);s&&m(this.theme,s.text)}else for(let s of l.natives)m(s.theme,s.text)},c=[],a="",x=()=>{a&&(c.push(a.replace(/ /g,"")),a="")},y=1;(function l(m){for(;y<t.length;y++){let s=t[y];if(!m){if(s===";"){x();continue}if(s==="}")break}if(a+=s,m===s){if(m==="'"||m==='"'){let h=0;for(let C=a.length-2;a[C]==="\\";C--)h++;if(h%2)continue}break}else s in re&&m!=="'"&&m!=='"'&&(y++,l(re[s]))}})(void 0),x();for(let l of c){let m=this.css.create(l);if(Array.isArray(m))for(let s of m)n(s);else m?n(m):i(this.theme??"",l)}let d={};for(let l in e)for(let[m,s]of Object.entries(e[l]))m in d?d[m][l]=s:d[m]={[l]:s};return d}},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,i]=t.split(" x ");return{width:e,height:i}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,i]=t.split(" x ");return{"min-width":e,"min-height":i}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,i]=t.split(" x ");return{"max-width":e,"max-height":i}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},lines:{match:"^lines:.",declare(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},overflowY:{native:!0},overflow:{native:!0,order:-1},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:{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},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return Be.call(this,t)},delete(t){return Me.call(this,t)},insert(){return Oe.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Be.call(this,t)},delete(t){return Me.call(this,t)},insert(){return Oe.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)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},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:{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=_e;function Be(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(i=>i in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function Me(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let i=this.css.keyframes[e];if(!--i.count){let n=t.natives.indexOf(i.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 Oe(){if(this.keyframeNames){let{config:t,keyframes:e,style:i,rules:n}=this.css,c=i?.sheet;for(let a of this.keyframeNames)if(a in e)e[a].count++;else{let x={text:`@keyframes ${a}{`+Object.entries(t.keyframes[a]).map(([d,l])=>`${d}{${Object.entries(l).map(([m,s])=>m+":"+s).join(";")}}`).join("")+"}",theme:""},y;if(Object.keys(e).length?(y=n[0]).natives.push(x):n.splice(0,0,y={natives:[x],get text(){return this.natives.map(d=>d.text).join("")}}),c){let d;for(let l=0;l<c.cssRules.length;l++){let m=c.cssRules[l];if(m.constructor.name!=="CSSKeyframesRule")break;if(m.name===a){d=m;break}}if(d)x.cssRule=d;else{let l=y.natives.length-1;c.insertRule(x.text,l),x.cssRule=c.cssRules[l]}}e[a]={native:x,count:1}}}}var Le=!1;var Ie=!0;var Ee=!1;var Ae={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 he={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=d=>d==="+"||d==="-"||d==="*"||d==="/",i="",n,c="",a=!1,x=!1,y=(d,l="",m="")=>{if(n===2&&!x){let s=this.analyzeUnitValue(c,he.calc.unit);s&&(c=s.value+s.unit)}i+=c+l+d+m,n=null,x=!1,c=""};for(let d=0;d<t.length;d++){let l=t[d];if(l==="("||l===")")a=l===")",y(l);else if(l===",")y(l,""," ");else{switch(n){case 1:break;case 2:if(e(l)){y(l," "," ");continue}else/[0-9]/.test(l)||(x=!0);break;default:a&&(i+=" "),isNaN(+l)?e(l)||(n=1):n=2;break}n?c+=l:i+=l}}return y(""),i}},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 se={breakpoints:ke,colors:we,rootSize:16,scope:Ce,selectors:Re,semantics:$e,themes:Te,rules:je,override:!1,observe:!0,important:!1,functions:he,keyframes:Ae};var We=[",",".","#","[","!","*",">","+","~",":","@"];var ge=typeof window<"u",ze=()=>{let t=document.createElement("style");return t.id="master",t},ie=class{constructor(e=se){this.config=e;e?.override||(this.config=G(se,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),ge&&this.config.observe&&this.observe(document),ie.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:i,selectors:n,themes:c,colors:a,values:x,breakpoints:y,mediaQueries:d,rules:l}=this.config;function m(r){return r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(r,o,b="",v={}){let R=I=>I?(b?b+"-":"")+I:b,O=Object.entries(r),L=[],Y=[];for(let I of O){let _=I[1];(typeof _=="object"&&!Array.isArray(_)?L:Y).push(I)}for(let[I,_]of L)s(_,o,R(I),v);if(o&&b)Y.length&&(v[b]=Y.reduce((I,[_,q])=>(I[_]=q,I),{}));else for(let[I,_]of Y)v[R(I)]=_;return v}if(e)for(let[r,o]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+m(r)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[r,o]]);if(n)for(let[r,o]of Object.entries(s(n,!1))){let b=new RegExp(m(r)+"(?![a-z-])");for(let v of Array.isArray(o)?o:[o]){let R=v.match(/^::-[a-z]+-/m)?.[0]??"",O=this.selectors[R];O||(O=this.selectors[R]=[]);let L=O.find(([Y])=>Y===b);L||(L=[b,[]],O.push(L)),L[1].push(v)}}x&&(this.globalValues=s(x,!1)),y&&(this.breakpoints=s(y,!1)),d&&(this.mediaQueries=s(d,!1));let h=i?s(i,!1):{},C=c&&!Array.isArray(c)?Object.entries(c).filter(([,{classes:r}])=>r).reduce((r,[o,{classes:b}])=>(r[o]=s(b,!1),r),{}):{},k=[...Object.keys(h),...Object.entries(C).flatMap(([r,o])=>Object.keys(o))],w=r=>{if(r in this.classes)return;let o=this.classes[r]=[],b=(v,R)=>{if(!R)return;let O=Array.isArray(R)?R:R.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let L of O){let Y=I=>{I in this.themeAffectedClassesBy?v in this.themeAffectedClassesBy[I]?this.themeAffectedClassesBy[I][v].push(r):this.themeAffectedClassesBy[I][v]=[r]:this.themeAffectedClassesBy[I]={[v]:[r]},o.includes(I)||o.push(I)};if(k.includes(L)){w(L);for(let I of this.classes[L])Y(I)}else Y(L)}};b("",h?.[r]);for(let[v,R]of Object.entries(C))b(v,R?.[r])};for(let r of k)w(r);for(let r in this.themeAffectedClassesBy){let o=this.classesBy[r]=[];for(let b of Object.values(this.themeAffectedClassesBy[r]))for(let v of b)o.includes(v)||o.push(v)}let p=(r,o)=>{if(!o)return;let b=s(o,!0);for(let[v,R]of Object.entries(b)){let O=typeof R=="string"?{"":R}:R;for(let[L,Y]of Object.entries(O)){let I=v+(L?"-"+L:"");I in this.colorThemesMap?this.colorThemesMap[I][r]=Y:this.colorThemesMap[I]={[r]:Y}}}for(let v in o)this.colorNames.includes(v)||this.colorNames.push(v)};if(p("",a),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let r in c){let o=c[r];p(r,o.colors),this.themeNames.push(r)}let u=r=>{for(let[o,b]of Object.entries(this.colorThemesMap))for(let[v,R]of Object.entries(b))R.startsWith("#")||r(o,b,v,R)};if(u((r,o,b,v)=>{let R=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(v);if(R){let O="#"+ce(+R[1],+R[2],+R[3]);R[4]&&(O+=Math.round(255*+R[4]).toString(16)),o[b]=O}}),u((r,o,b,v)=>{let[R,O]=v.split("/"),L=this.colorThemesMap[R];if(L){let Y=(b?L[b]:void 0)??L[""];o[b]=O?Y.slice(0,7)+Math.round(255*+O).toString(16):Y}else console.warn(`\`${v}\` doesn't exist in the extended config \`.colors\``),delete o[b],Object.keys(o).length||delete this.colorThemesMap[r]}),l)for(let r in l){let o=l[r],{native:b,values:v,colored:R}=o,O=o.match;if(o.id=r,o.native=b===!0?r.replace(/(?!^)[A-Z]/g,L=>"-"+L).toLowerCase():void 0,v&&(this.values[r]=s(v,!1)),O){let L=Object.keys(this.values[r]??{});O.includes("$values")&&(O=L.length?O.replace(/\$values/,L.join("|")):O.replace(/(?:\|)?\$values/,"")),R&&O.includes("$colors")&&(O=this.colorNames.length?O.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):O.replace(/(?:\|)?\$colors/,"")),this.matches[r]=new RegExp(O)}}}observe(e,i={subtree:!0,childList:!0}){if(this.root!==e){if(ge&&e){this.root=e;let n=e===document;n&&(ie.root=this),this.host=n?document.documentElement:root.host;let c=n?document.head:e,a=n?document.styleSheets:e.styleSheets;for(let y of a){let{ownerNode:d}=y;if(d.id==="master"){this.style=d;break}}if(this.style)for(let y=0;y<this.style.sheet.cssRules.length;y++){let d=this.style.sheet.cssRules[y];if(d.constructor.name==="CSSKeyframesRule")continue;let l=s=>{if(s.selectorText){let C=s.selectorText.split(", ")[0].split(" ");for(let k=0;k<C.length;k++){let w=C[k];if(w[0]==="."){let p=w.slice(1),u="";for(let r=0;r<p.length;r++){let o=p[r],b=p[r+1];if(o==="\\"){if(r++,b!=="\\"){u+=b;continue}}else if(We.includes(o))break;u+=o}if(!(u in this.ruleBy)&&!(u in this.classes)){let r=this.create(u)[0];if(r)return r}}}}else if(s.cssRules)for(let h=0;h<s.cssRules.length;h++){let C=l(s.cssRules[h]);if(C)return C}},m=l(d);if(m){this.rules.push(m),this.ruleBy[m.className]=m;for(let s=0;s<m.natives.length;s++)m.natives[s].cssRule=this.style.sheet.cssRules[y+s];y+=m.natives.length-1,m.config.insert?.call(m)}}else this.style=ze(),c.append(this.style);let x=y=>{y.forEach(d=>{d in this.countBy?this.countBy[d]++:(this.countBy[d]=1,this.insert(d))})};x(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(y=>x(y.classList)),this.observer=new MutationObserver(y=>{let d={},l=[],m=[],s=[],h=(p,u)=>{u?p.classList.forEach(k):p.classList.forEach(C);let r=p.children;for(let o=0;o<r.length;o++){let b=r[o];b.classList&&(m.push(b),h(b,u))}},C=p=>{p in d?d[p]++:d[p]=1},k=p=>{p in d?d[p]--:p in this.countBy&&(d[p]=-1)},w=(p,u)=>{for(let r=0;r<p.length;r++){let o=p[r];o.classList&&!m.includes(o)&&!s.includes(o)&&(o.isConnected!==u?(m.push(o),h(o,u)):s.push(o))}};for(let p=0;p<y.length;p++){let u=y[p],{addedNodes:r,removedNodes:o,type:b,target:v}=u;if(b==="attributes"){if(l.find(R=>R.target===v))continue;l.push(u)}else w(r,!1),(!v.isConnected||!m.includes(v))&&w(o,!0)}if(!(!l.length&&!Object.keys(d).length)){for(let{oldValue:p,target:u}of l){let r=m.includes(u),o=u.classList,b=p?p.split(" "):[];if(r){if(u.isConnected)continue;for(let v of b)o.contains(v)||k(v)}else if(u.isConnected){o.forEach(v=>{b.includes(v)||C(v)});for(let v of b)o.contains(v)||k(v)}}for(let p in d){let u=d[p],r=(this.countBy[p]||0)+u;r===0?(delete this.countBy[p],this.delete(p)):(p in this.countBy||this.insert(p),this.countBy[p]=r)}}}),this.observer.observe(e,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let i=e.cssRules.length-1;i>=0;i--)e.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(e){for(let i in this.config.rules){let n=this.config.rules[i],c=this.matches[i],{symbol:a,native:x}=n;if(c&&c.test(e))return{origin:"match",config:n};if(a&&e.startsWith(a))return{origin:"symbol",config:n};if(x&&e.startsWith(x+":"))return{origin:"match",config:n}}for(let i of this.semantics)if(e.match(i[0]))return{origin:"semantics",value:i[1]}}create(e){let i=n=>{if(n in this.ruleBy)return this.ruleBy[n];let c=this.match(n);if(c)return new le(n,c,this)};return(e in this.classes?this.classes[e].map(n=>i(n)):[i(e)]).filter(n=>n&&n.text)}refresh(e){if(e?.override?this.config=e:this.config=G(se,e),this.cache(),!this.style)return;let i=ze();this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let n in this.countBy)this.insert(n)}destroy(){let e=ie.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let i=this.style?.sheet,n=c=>{let a=this.ruleBy[c];if(!(!a||c in this.classesBy&&this.classesBy[c].some(x=>x in this.countBy))){if(i&&a.natives.length){let x=a.natives[0];for(let y=0;y<i.cssRules.length;y++)if(i.cssRules[y]===x.cssRule){for(let l=0;l<a.natives.length;l++)i.deleteRule(y);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 i=this.create(e);return i.length?(this.insertRules(i),!0):!1}insertRules(e){for(let i of e){if(this.ruleBy[i.className])continue;let n,c=Object.keys(this.keyframes).length,a=this.rules.length-1,{media:x,order:y,priority:d,hasWhere:l,className:m}=i,s=(k,w,p)=>{let u=k;for(;u<=a;u++){let r=this.rules[u];if(w?.(r))return p?-1:u-1;if(p?.(r))return u}return p?-1:u-1},h,C;if(x){let k=this.rules.findIndex(w=>w.media);if(k===-1)n=a+1;else{let{"max-width":w,"min-width":p}=x.features;if(w||p){let u=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(u===-1)n=a+1;else if(w&&p){if(d===-1?(h=s(u,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),C=s(u,r=>r.priority!==-1)):(h=s(u,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),C=a),h!==-1){let r=w.value-p.value,o=C,b=h;for(h=void 0;o>=b;o--){let{"max-width":v,"min-width":R}=this.rules[o].media.features,O=v.value-R.value;if(O<r)C=o-1;else if(O===r)h=o;else break}}if(h!==-1){let r=w.value-p.value;for(let o=C;o>=h;o--){let{"max-width":b,"min-width":v}=this.rules[o].media.features,R=b.value-v.value;if(R<r)C=o-1;else if(R>r){h=o+1;break}}}}else if(p){if(d===-1?(h=s(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),C=s(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(h=s(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),C=s(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),h!==-1)for(let r=C;r>=h;r--){let o=this.rules[r].media.features["min-width"].value;if(o>p.value)C=r-1;else if(o<p.value){h=r+1;break}}}else if(d===-1?(h=s(u,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),C=s(u,r=>r.media.features["min-width"]||r.priority!==-1)):(h=s(u,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),C=s(u,r=>r.media.features["min-width"]&&r.priority!==-1)),h!==-1)for(let r=C;r>=h;r--){let o=this.rules[r].media.features["max-width"].value;if(o<w.value)C=r-1;else if(o>w.value){h=r+1;break}}}else d===-1?(h=k,C=s(k,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(h=s(k,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),C=s(k,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let k=c?1:0;d===-1?(h=k,C=s(k,w=>w.media||w.priority!==-1)):(h=s(k,w=>w.media,w=>w.priority!==-1),C=s(k,w=>w.media))}if(n===void 0)if(h===-1)n=C+1;else{if(d===-1)for(let k=h;k<=C;k++){let w=this.rules[k];if(!(!l&&w.hasWhere)&&(l&&!w.hasWhere||w.order>=y)){n=k;break}}else for(let k=h;k<=C;k++){let w=this.rules[k];if(!(!l&&w.hasWhere)){if(l&&!w.hasWhere){n=k;break}if(w.priority<d){n=k;break}else if(w.priority===d){if(w.order>=y){n=k;break}}else n=k+1}}n===void 0&&(n=C+1)}if(this.rules.splice(n,0,i),this.ruleBy[m]=i,this.style){let k=this.style.sheet,w=0,p=u=>{let r=this.rules[u];if(r){if(!r.natives.length)return p(u-1);let o=r.natives[r.natives.length-1].cssRule;for(let b=0;b<k.cssRules.length;b++)if(k.cssRules[b]===o){w=b+1;break}}};p(n-1);for(let u=0;u<i.natives.length;)try{let r=i.natives[u];k.insertRule(r.text,w),r.cssRule=k.cssRules[w++],u++}catch(r){console.error(r),i.natives.splice(u,1)}}i.config.insert?.call(i)}}get text(){return this.rules.map(e=>e.text).join("")}},Z=ie;ne(Z,"root"),ne(Z,"config",se),ne(Z,"instances",[]),ne(Z,"refresh",e=>{for(let i of ie.instances)i.refresh(e)});ge&&(window.MasterCSS=Z);var Ne={store:"theme",init:!0},Qe=typeof document<"u",De=typeof localStorage<"u",Fe=class{constructor(e,i=Qe?document.documentElement:null){this.settings=e;this.host=i;this.settings=e?G(Ne,e):Ne,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;r;t;init(){let e=this.settings.default,i=this.storage;i&&(e=i),this.value=e}get storage(){let{store:e}=this.settings;if(De&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.r=e,e==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.n(),this.current=e)}get value(){return this.r}set current(e){let i=this.t;this.t=e,this.host&&i!==e&&(i&&this.host.classList.remove(i),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,i={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,De&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),i.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};function Gt(t){return t=Object.assign({store:"theme"},t),`let e${t.default?`='${t.default}'`:""};const c=localStorage.getItem("${t.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}var Jt=`/** @type {import('@master/css').Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
classes: {},
|
|
4
|
+
colors: {},
|
|
5
|
+
themes: {},
|
|
6
|
+
rules: {},
|
|
7
|
+
values: {},
|
|
8
|
+
semantics: {},
|
|
9
|
+
breakpoints: {},
|
|
10
|
+
mediaQueries: {},
|
|
11
|
+
keyframes: {},
|
|
12
|
+
selectors: {},
|
|
13
|
+
functions: {}
|
|
14
|
+
}
|
|
15
|
+
`;var tr=`/** @type {import('@master/css').Config} */
|
|
16
|
+
const config = {
|
|
17
|
+
classes: {},
|
|
18
|
+
colors: {},
|
|
19
|
+
themes: {},
|
|
20
|
+
rules: {},
|
|
21
|
+
values: {},
|
|
22
|
+
semantics: {},
|
|
23
|
+
breakpoints: {},
|
|
24
|
+
mediaQueries: {},
|
|
25
|
+
keyframes: {},
|
|
26
|
+
selectors: {},
|
|
27
|
+
functions: {}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default config
|
|
31
|
+
`;var ir=`import type { Config } from '@master/css'
|
|
32
|
+
const config: Config = {
|
|
33
|
+
classes: {},
|
|
34
|
+
colors: {},
|
|
35
|
+
themes: {},
|
|
36
|
+
rules: {},
|
|
37
|
+
values: {},
|
|
38
|
+
semantics: {},
|
|
39
|
+
breakpoints: {},
|
|
40
|
+
mediaQueries: {},
|
|
41
|
+
keyframes: {},
|
|
42
|
+
selectors: {},
|
|
43
|
+
functions: {}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export default config
|
|
47
|
+
`;function sr(t,e){if(!t?.length)return;let i=new Z({...e,observe:!1});for(let n of t)n in i.countBy||i.insert(n)&&(i.countBy[n]=1);return i.text}var Ue=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,qe={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};function ue(t){if(t)return t.split(/\sclass="([^"]*)"/gm).filter((e,i)=>i%2===1).map(e=>e.split(" ")).flat().map(e=>e.replace(Ue,(i,n)=>qe[n]))}function Pe(t,e){if(!t)return;let i=ue(t);if(!i.length)return;let n=new Z({...e,observe:!1});for(let c of i)c in n.countBy||n.insert(c)&&(n.countBy[c]=1);return n.text}function mr(t,e){if(!t)return;let i=`<style id="master">${Pe(t,e)}</style>`;return t.replace(/<\/head>/,`${i}$&`)}function Ve(t,e){if(!t?.length)return;let i=new Z({...e,observe:!1});for(let n of t)n in i.countBy||i.insert(n)&&(i.countBy[n]=1);return i.rules}function xr(t,e){if(!t)return;let i=ue(t);if(i.length)return Ve(i,e)}export{tr as CONFIG_ESM_TEXT,Jt as CONFIG_TEXT,ir as CONFIG_TS_TEXT,Z as MasterCSS,le as Rule,We as SELECTOR_SYMBOLS,re as START_SYMBOLS,Fe as Theme,ke as breakpoints,we as colors,se as config,Z as default,G as extend,ue as extractClassesFromHTML,V as fillColorScale,he as functions,Gt as getDocThemeInitScript,Ee as important,Ae as keyframes,Ie as observe,Le as override,sr as render,Pe as renderFromHTML,mr as renderIntoHTML,Ve as renderRules,xr as renderRulesFromHTML,Se as rootSize,je as rules,Ce as scope,Re as selectors,$e as semantics,Ne as themeSettings,Te as themes};
|
package/dist/methods/index.d.ts
CHANGED
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.
|
|
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.141","@techor/fs":"^2.1.15","@techor/log":"^2.1.15","chokidar":"^3.5.3","commander":"^10.0.0"},"devDependencies":{"@techor/extend":"^2.1.15","vite":"^4.2.1"},"version":"2.0.0-beta.141"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var S=Object.create;var m=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty;var b=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),j=(n,t)=>{for(var e in t)m(n,e,{get:t[e],enumerable:!0})},v=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of C(t))!O.call(n,s)&&s!==e&&m(n,s,{get:()=>t[s],enumerable:!(r=x(t,s))||r.enumerable});return n};var E=(n,t,e)=>(e=n!=null?S(M(n)):{},v(t||!n||!n.__esModule?m(e,"default",{value:n,enumerable:!0}):e,n)),w=n=>v(m({},"__esModule",{value:!0}),n);var y=b(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.dedent=void 0;function h(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];var r=Array.from(typeof n=="string"?[n]:n);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var s=r.reduce(function(o,u){var a=u.match(/\n([\t ]+|(?!\s).)/g);return a?o.concat(a.map(function(d){var i,c;return(c=(i=d.match(/[\t ]/g))===null||i===void 0?void 0:i.length)!==null&&c!==void 0?c:0})):o},[]);if(s.length){var f=new RegExp(`
|
|
2
|
-
[ ]{`+Math.min.apply(Math,s)+"}","g");r=r.map(function(o){return o.replace(f,`
|
|
3
|
-
`)})}r[0]=r[0].replace(/^\r?\n/,"");var p=r[0];return t.forEach(function(o,u){var a=p.match(/(?:^|\n)( *)$/),d=a?a[1]:"",i=o;typeof o=="string"&&o.includes(`
|
|
4
|
-
`)&&(i=String(o).split(`
|
|
5
|
-
`).map(function(c,l){return l===0?c:""+d+c}).join(`
|
|
6
|
-
`)),p+=i+r[u+1]}),p}g.dedent=h;g.default=h});var q={};j(q,{defineContent:()=>k});module.exports=w(q);var $=E(y());function k({compiler:n,jit:t,ext:e}={}){let r=(i,c=", ")=>i.filter(l=>l).join(c),s=e==="ts",f=e==="js",p=e!=="ts",o=f?"":"export ",u=f?"const":"import",a=f?" = require(":" from ",d=f?")":"";return[(s||t)&&`${u} ${r([t&&(f?"{ MasterCSS }":"MasterCSS"),s?"{ Config }":""])}${a}'@master/css'${d}`,s&&n&&`${u} { Options }${a}'@master/css-compiler'${d}`,(s||t||s&&n)&&"",p&&"/** @type {import('@master/css').Config} */",$.default`${o}const config${s?": Config":""} = {
|
|
7
|
-
themes: {},
|
|
8
|
-
colors: {},
|
|
9
|
-
classes: {},
|
|
10
|
-
values: {},
|
|
11
|
-
semantics: {},
|
|
12
|
-
breakpoints: {},
|
|
13
|
-
selectors: {},
|
|
14
|
-
mediaQueries: {}
|
|
15
|
-
}`,n&&"",n&&p&&"/** @type {import('@master/css-compiler').Options} */",n&&$.default`${o}const compilerOptions${s?": Options":""} = {
|
|
16
|
-
sources: [],
|
|
17
|
-
classes: {
|
|
18
|
-
fixed: [],
|
|
19
|
-
ignored: []
|
|
20
|
-
}
|
|
21
|
-
}`,t&&`
|
|
22
|
-
${o}const css = new MasterCSS(config)`,!o&&`
|
|
23
|
-
module.exports = { ${r(["config",t&&"css",n&&"compilerOptions"])} }`].filter(i=>typeof i=="string").join(`
|
|
24
|
-
`)+`
|
|
25
|
-
`}0&&(module.exports={defineContent});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var y=Object.create;var $=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var O=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var b=(n,t,s,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of x(t))!M.call(n,r)&&r!==s&&$(n,r,{get:()=>t[r],enumerable:!(e=S(t,r))||e.enumerable});return n};var j=(n,t,s)=>(s=n!=null?y(C(n)):{},b(t||!n||!n.__esModule?$(s,"default",{value:n,enumerable:!0}):s,n));var h=O(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.dedent=void 0;function v(n){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];var e=Array.from(typeof n=="string"?[n]:n);e[e.length-1]=e[e.length-1].replace(/\r?\n([\t ]*)$/,"");var r=e.reduce(function(o,u){var a=u.match(/\n([\t ]+|(?!\s).)/g);return a?o.concat(a.map(function(d){var i,c;return(c=(i=d.match(/[\t ]/g))===null||i===void 0?void 0:i.length)!==null&&c!==void 0?c:0})):o},[]);if(r.length){var f=new RegExp(`
|
|
2
|
-
[ ]{`+Math.min.apply(Math,r)+"}","g");e=e.map(function(o){return o.replace(f,`
|
|
3
|
-
`)})}e[0]=e[0].replace(/^\r?\n/,"");var p=e[0];return t.forEach(function(o,u){var a=p.match(/(?:^|\n)( *)$/),d=a?a[1]:"",i=o;typeof o=="string"&&o.includes(`
|
|
4
|
-
`)&&(i=String(o).split(`
|
|
5
|
-
`).map(function(c,m){return m===0?c:""+d+c}).join(`
|
|
6
|
-
`)),p+=i+e[u+1]}),p}g.dedent=v;g.default=v});var l=j(h());function k({compiler:n,jit:t,ext:s}={}){let e=(i,c=", ")=>i.filter(m=>m).join(c),r=s==="ts",f=s==="js",p=s!=="ts",o=f?"":"export ",u=f?"const":"import",a=f?" = require(":" from ",d=f?")":"";return[(r||t)&&`${u} ${e([t&&(f?"{ MasterCSS }":"MasterCSS"),r?"{ Config }":""])}${a}'@master/css'${d}`,r&&n&&`${u} { Options }${a}'@master/css-compiler'${d}`,(r||t||r&&n)&&"",p&&"/** @type {import('@master/css').Config} */",l.default`${o}const config${r?": Config":""} = {
|
|
7
|
-
themes: {},
|
|
8
|
-
colors: {},
|
|
9
|
-
classes: {},
|
|
10
|
-
values: {},
|
|
11
|
-
semantics: {},
|
|
12
|
-
breakpoints: {},
|
|
13
|
-
selectors: {},
|
|
14
|
-
mediaQueries: {}
|
|
15
|
-
}`,n&&"",n&&p&&"/** @type {import('@master/css-compiler').Options} */",n&&l.default`${o}const compilerOptions${r?": Options":""} = {
|
|
16
|
-
sources: [],
|
|
17
|
-
classes: {
|
|
18
|
-
fixed: [],
|
|
19
|
-
ignored: []
|
|
20
|
-
}
|
|
21
|
-
}`,t&&`
|
|
22
|
-
${o}const css = new MasterCSS(config)`,!o&&`
|
|
23
|
-
module.exports = { ${e(["config",t&&"css",n&&"compilerOptions"])} }`].filter(i=>typeof i=="string").join(`
|
|
24
|
-
`)+`
|
|
25
|
-
`}export{k as defineContent};
|