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