@master/css 2.0.0-alpha.47 → 2.0.0-alpha.48

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/index.d.ts CHANGED
@@ -20,6 +20,7 @@ interface MasterCSSDeclaration {
20
20
  important: boolean;
21
21
  }
22
22
 
23
+ declare const PRIORITY_SELECTORS: string[];
23
24
  interface RuleMatching {
24
25
  origin: 'matches' | 'semantics' | 'symbol';
25
26
  value?: string;
@@ -548,4 +549,4 @@ declare const defaultConfig: MasterCSSConfig;
548
549
 
549
550
  declare function fillColorScale(data: any): any;
550
551
 
551
- export { DefaultRules, MasterCSSRule, RuleMatching, configure, MasterCSS as default, defaultBreakpoints, defaultColors, defaultConfig, defaultRootSize, defaultSelectors, defaultSemantics, defaultThemes, defaultValues, fillColorScale, init, render, renderFromHTML, renderIntoHTML };
552
+ export { DefaultRules, MasterCSSRule, PRIORITY_SELECTORS, RuleMatching, configure, MasterCSS as default, defaultBreakpoints, defaultColors, defaultConfig, defaultRootSize, defaultSelectors, defaultSemantics, defaultThemes, defaultValues, fillColorScale, init, render, renderFromHTML, renderIntoHTML };
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- var Vo=Object.create;var Oi=Object.defineProperty;var $o=Object.getOwnPropertyDescriptor;var Uo=Object.getOwnPropertyNames;var Yo=Object.getPrototypeOf,Xo=Object.prototype.hasOwnProperty;var qo=(r,i,o)=>i in r?Oi(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o;var Zo=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports),Jo=(r,i)=>{for(var o in i)Oi(r,o,{get:i[o],enumerable:!0})},So=(r,i,o,a)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Uo(i))!Xo.call(r,c)&&c!==o&&Oi(r,c,{get:()=>i[c],enumerable:!(a=$o(i,c))||a.enumerable});return r};var eo=(r,i,o)=>(o=r!=null?Vo(Yo(r)):{},So(i||!r||!r.__esModule?Oi(o,"default",{value:r,enumerable:!0}):o,r)),Ko=r=>So(Oi({},"__esModule",{value:!0}),r);var e=(r,i,o)=>(qo(r,typeof i!="symbol"?i+"":i,o),o);var Ji=Zo((ho,Wo)=>{(function(r,i){typeof ho=="object"?Wo.exports=i(r):typeof define=="function"&&define.amd?define([],i.bind(r,r)):i(r)})(typeof global<"u"?global:ho,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var i=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var a=String(o),c=a.length,m=-1,d,l="",p=a.charCodeAt(0);if(c==1&&p==45)return"\\"+a;for(;++m<c;){if(d=a.charCodeAt(m),d==0){l+="\uFFFD";continue}if(d>=1&&d<=31||d==127||m==0&&d>=48&&d<=57||m==1&&d>=48&&d<=57&&p==45){l+="\\"+d.toString(16)+" ";continue}if(d>=128||d==45||d==95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122){l+=a.charAt(m);continue}l+="\\"+a.charAt(m)}return l};return r.CSS||(r.CSS={}),r.CSS.escape=i,i})});var hs={};Jo(hs,{DefaultRules:()=>fo,MasterCSSRule:()=>t,configure:()=>us,default:()=>P,defaultBreakpoints:()=>Rr,defaultColors:()=>to,defaultConfig:()=>Cr,defaultRootSize:()=>ro,defaultSelectors:()=>io,defaultSemantics:()=>oo,defaultThemes:()=>so,defaultValues:()=>ao,fillColorScale:()=>D,init:()=>uo,render:()=>ps,renderFromHTML:()=>xo,renderIntoHTML:()=>fs});module.exports=Ko(hs);var Rr={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function Ai(r){r.startsWith("#")&&(r=r.slice(1));let i=r.match(/.{1,2}/g);return[parseInt(i[0],16),parseInt(i[1],16),parseInt(i[2],16)]}function bo(r,i,o){return((1<<24)+(r<<16)+(i<<8)+o).toString(16).slice(1)}function D(r){typeof r=="string"&&(r={"":r});let i=""in r,o=!1;for(let a in r)if(a&&+a>=100){o=!0;break}if(!o&&(!i||Object.keys(r).length>1)){let a=0,c="0"in r?Ai(r[0]):[0,0,0],m,d,l=[],p=()=>{let u=m-a,s=d.map((n,f)=>(n-c[f])/u);for(let n of l){let f=n-a,h=c.map((y,x)=>Math.round(y+s[x]*f));r[n]="#"+bo.call(this,...h)}};for(let u=1;u<100;u++)u in r?(l.length?(m=u,d=Ai(r[u]),p(),l.length=0,c=d):c=Ai(r[u]),a=u):l.push(u);l.length&&(m=100,d="100"in r?Ai(r[100]):[255,255,255],p())}return i||(r[""]=r[o?"500":"50"]),r}var to={slate:D({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:D({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:D({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:D({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:D({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:D({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:D({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:D({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:D({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:D({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:D({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:D({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:D({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:D({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:D({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:D({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:D({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:D({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:D({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:D({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"};var ro=16;var io={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var oo={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",overflow:"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","center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}};var so=["dark","light"];var Ii={content:"content-box",border:"border-box",padding:"padding-box"},Di={min:"min-content",max:"max-content"},U={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Rr)U[r]=Rr[r]/16+"rem";var ao={BackgroundClip:Ii,BackgroundOrigin:Ii,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Ii,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{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"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:Di,GridAutoRows:Di,GridTemplateColumns:Di,GridTemplateRows:Di,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Ii,margin:"margin-box"},TransformBox:{...Ii,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:U,MinWidth:U,MinHeight:U,MaxWidth:U,MaxHeight:U,Height:U,FlexBasis:U};function Pi(r,i){return(r?r+":":"")+(i.unit?i.value+i.unit:i.value)+(i.important?"!important":"")}function yo(r){let i=l=>l==="+"||l==="-"||l==="*"||l==="/",o="",a,c="",m=!1;function d(){a=null,c=""}for(let l=0;l<r.length;l++){let p=r[l];if(p==="("||p===")")m=p===")",o+=c+p,d();else if(p===",")o+=c+p+" ",d();else{switch(a){case 1:break;case 2:if(i(p)){o+=c+" "+p+" ",d();continue}break;default:m&&(c+=" "),isNaN(+p)?i(p)||(a=1):a=2;break}c+=p}}return c&&(o+=c),o}var Qo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,es="var(--";function Wi(r,i,o,a,c,m){let d=a?a[r]:"",l="",p="",u;if(d)return{value:d,unit:l,unitToken:p};if(typeof r=="number")d=r,l=i||"";else{if(o){let s=Object.keys(o),n=!1,f=!1;r=r.replace(new RegExp(`(^|,| |\\()(${s.join("|")})(?:-([0-9]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(h,y,x,g,R)=>{var S;f=!0;let v=(S=o[x])==null?void 0:S[g||""];if(v){let T;for(let k of m)if(T=v[k])break;if(T){n=!0;let k=T;if(R){let A=R.endsWith("%")?parseFloat(R)/100:+R;A=isNaN(A)?1:Math.min(Math.max(A,0),1),k+=Math.round(A*255).toString(16).toUpperCase().padStart(2,"0")}return y+k}}return h}),f&&(u=n)}if(i){let s=r.match(Qo);if(s)if(r.includes("/")){let n=r.split("/");return{value:+n[0]/+n[1]*100+"%",unit:l,unitToken:p}}else return d=+s[1],l=p=s[3]||"",l||((i==="rem"||i==="em")&&(d=d/c),l=i||""),{value:d,unit:l,unitToken:p}}d=(r.indexOf("calc(")===-1?r:yo(r)).replace(/\$\(((\w|-)+)\)/g,es+"$1)")}return{value:d,unit:l,unitToken:p,colorMatched:u}}var no=[":disabled",":active",":focus",":hover"];var Mr={"(":")","'":"'","{":"}"};var ji="matches",ts="semantics",Co="symbol",Mo="width",lo="max-"+Mo,co="min-"+Mo,po="motion",No="reduce",Ro=No+"d-"+po,mo="px",rs="rem",is=["!","*",">","+","~",":","[","@","_"],os=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,ss=r=>r.split(os).map((i,o)=>o%3?i:i.replace(/\_/g," ")).join(""),t=class{constructor(i,o,a){this.className=i;this.matching=o;this.css=a;let c=this.constructor,{id:m,unit:d,propName:l,colorful:p}=c,{breakpoints:u,mediaQueries:s,semantics:n,rootSize:f}=a.config,h=a.config.values[m],y=a.relationThemesMap[i],{themeNames:x,colorsThemesMap:g,selectors:R}=a,v=i,S,T,k,A;if(o.origin===ts)k=v.slice(o.value.length),S=n[o.value];else{let I;if(o.origin===ji)if(m==="Group"){let N=0;for(;N<v.length&&!(v[N]==="{"&&v[N-1]!=="\\");N++);T=v.slice(0,N),I=v.slice(N)}else{let N=v.indexOf(":");this.prefix=v.slice(0,N+1),this.prefix.includes("(")?(this.prefix=void 0,I=v):I=v.slice(N+1)}else o.origin===Co&&(this.symbol=v[0],I=v.slice(1));A=[];let b="",C=0;(function N(E,w,B=""){let M,F=!1;for(E&&(E===")"&&b.slice(-1)==="$"?M=b.length-1:E==="'"&&(F=!0),b+=I[C++]);C<I.length;C++){let O=I[C];if(O===E){if(b+=O,F){let W=0;for(let _=b.length-2;b[_]==="\\";_--)W++;if(W%2)continue}M!==void 0&&(b=b.slice(0,M)+b.slice(M).replace(/\$\((.*)\)/,"var(--$1)")),w||(F?A.push(b):A.push({value:b}),B="",b="");break}else if(!F&&O in Mr)N(Mr[O],w===void 0?0:w+1,B);else if(O==="|"&&E!=="}"&&(!F||B==="path"))E?b+=" ":(A.push({value:b}),b="");else{if(!E){if(O==="."){if(isNaN(+I[C+1]))break;I[C-1]==="-"&&(b+="0")}else if(O===","){A.push({value:b},","),b="";continue}else if(O==="#"&&(b||A.length&&I[C-1]!=="|")||is.includes(O))break;B+=O}b+=O}}})(),b&&A.push({value:b}),k=I.slice(C)}k[0]==="!"&&(this.important=!0,k=k.slice(1));let $=I=>{let b=ss(I),C=[],N="",E=0;for(let w=0;w<b.length;w++){let B=b[w];if(B==="\\"){N+=B+b[++w];continue}!E&&B===","?(C.push(N),N=""):(N+=B,E&&B===")"?E--:B==="("&&E++)}return N&&C.push(N),C};this.prefixSelectors=T?$(T):[""];let z=k.split("@"),ki=z[0];if(ki){this.suffixSelectors=[];let I=$(ki);for(let b of I){for(let N of R.single)b=b.replace(N[0],N[1]);let C=N=>{for(let E of R.multiple)if(E[0].test(N)){for(let w of E[1])C(N.replace(E[0],w));return}this.suffixSelectors.push(N)};C(b)}for(let b of this.suffixSelectors){this.hasWhere!==!1&&(this.hasWhere=b.includes(":where("));for(let C=0;C<no.length;C++)if(b.includes(no[C])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>C)&&(this.prioritySelectorIndex=C);break}}}else this.suffixSelectors=[""];for(let I=1;I<z.length;I++){let b=z[I];if(b)if(x.includes(b))this.themeName=b;else if(b==="rtl"||b==="ltr")this.direction=b;else{let C,N,E=b.indexOf("_");if(E!==-1)C=b.slice(0,E),N=b.slice(E);else{let w=b.indexOf("(");w!==-1&&(C=b.slice(0,w),N=b.slice(w))}if(!C){C="media";let w=[];this.media={token:b,features:{}};let B=b.split("&");for(let M of B)if(M==="all"||M==="print"||M==="screen"||M==="speech")this.media.type=M;else if(M==="\u{1F5A8}")this.media.type="print";else if(M==="landscape"||M==="portrait")w.push("(orientation:"+M+")");else if(M===po||M===Ro)w.push("(prefers-"+Ro+":"+(M===po?"no-preference":No)+")");else if(s&&M in s)w.push(s[M]);else{let F={token:M},O="",W="",_=0;switch(M.startsWith("<=")?(W="<=",O=lo):M.startsWith(">=")||u[M]?(W=">=",O=co):M.startsWith(">")?(W=">",O=co,_=.02):M.startsWith("<")&&(W="<",O=lo,_=-.02),O){case lo:case co:let j=W?M.replace(W,""):M,Ae=u[j];Ae?Object.assign(F,Wi(Ae,mo)):Object.assign(F,Wi(j,mo)),F.unit===mo&&(F.value+=_),this.media.features[O]=F,w.push("("+O+":"+(F.value+F.unit)+")");break}}N="",this.media.type&&(N=this.media.type),w.length&&(N+=(N?" and ":"")+w.join(" and "))}N&&(this.at[C]=(C in this.at?this.at[C]+" and ":"")+N.replace(/\_/g," "))}}this.order===void 0&&(this.order=0);let Fi=(I,b)=>{let C,N,E=(B,M)=>{let F="";this.direction&&(F+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(j=>j+F),W=(j,Ae)=>{let wi=j?"."+j+" ":"",Qi="."+CSS.escape(Ae);return O.map(Ei=>wi+Ei).reduce((Ei,zo)=>(Ei.push(this.suffixSelectors.reduce((go,Ho)=>(go.push(zo+Qi+Ho),go),[]).join(",")),Ei),[]).join(",")},_=W(M,i)+(y?Object.entries(y).filter(([j])=>this.themeName||!p||!M||!j||j===M).map(([j,Ae])=>Ae.reduce((wi,Qi)=>wi+","+W(this.themeName??(p&&M||j),Qi),"")).join(""):"")+"{"+B+"}";for(let j of Object.keys(this.at).sort((Ae,wi)=>wi==="supports"?-1:1))_="@"+j+" "+this.at[j]+"{"+_+"}";return _},w=[];if(A){let B,M;for(let F of A)typeof F=="string"?w.push(F):(B=Wi(F.value,d,p&&g,h,f,this.themeName?[this.themeName,""]:[I]),B.colorMatched!==void 0&&M!==!0&&(M=B.colorMatched),w.push(B.value+B.unit));if(b&&(M===void 0?I:!M))return;if(w.length===1?B?(C=B.value,N=B.unit):C=w[0]:C=w.reduce((F,O,W)=>F+O+(O===","||A[W+1]===","||W===A.length-1?"":" "),""),typeof C!="object"){this.parseValue&&(C=this.parseValue(C)),p&&C==="current"?C="currentColor":h&&C in h&&(C=h[C].toString());let F={unit:N,value:C,important:this.important};if(this.getThemeProps){let O=this.getThemeProps(F,a);for(let W in O)this.natives.push({unit:N,value:C,text:E(Object.entries(O[W]).map(([_,j])=>Pi(_,{important:this.important,unit:"",value:j})).join(";"),W),themeName:W});return}else this.get&&(C=this.get(F))}}else C=S;this.natives.push({unit:N,value:C,text:E(typeof C=="object"?Object.entries(C).map(([B,M])=>Pi(B,{...typeof M=="object"?M:{unit:"",value:M},important:this.important})).join(";"):Pi(l,{unit:N,value:C,important:this.important}),I),themeName:I})};if(this.getThemeProps)Fi(void 0,!1);else if(this.themeName)Fi(this.themeName,!1);else if(p)for(let I of x)Fi(I,!0);else Fi("",!1)}prefix;symbol;token;prefixSelectors;suffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(i,o){if(this.matches&&this.matches.test(i))return{origin:ji};if(this.colorStarts&&(i.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||o.length&&i.match("^"+this.colorStarts+"("+o.join("|")+")")&&i.indexOf("|")===-1))return{origin:ji};if(this.symbol&&i.startsWith(this.symbol))return{origin:Co};if(this.propName&&i.startsWith(this.propName+":"))return{origin:ji}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",rs),e(t,"colorful");typeof window<"u"&&(window.MasterCSSRule=t);var Y=class extends t{};e(Y,"id","FontWeight"),e(Y,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(Y,"propName","font-weight"),e(Y,"unit","");var Ie=class extends t{};e(Ie,"id","FontFamily"),e(Ie,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(Ie,"propName","font-family");var Be=class extends t{};e(Be,"id","FontSize"),e(Be,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Be,"propName","font-size");var Nr=class extends t{get(r){let o=this.prefix[0]==="m"?"margin":"padding",a=o+"-left",c=o+"-right",m=o+"-top",d=o+"-bottom";switch(this.prefix[1]){case"x":return{[a]:r,[c]:r};case"y":return{[m]:r,[d]:r};case"x":return{[a]:r};case"r":return{[c]:r};case"t":return{[m]:r};case"b":return{[d]:r};default:return{[o]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Nr,"id","Spacing"),e(Nr,"matches",/^[pm][xytblr]?:./);var Fe=class extends t{};e(Fe,"id","Width"),e(Fe,"matches",/^w:./),e(Fe,"propName","width");var Ee=class extends t{};e(Ee,"id","Height"),e(Ee,"matches",/^h:./),e(Ee,"propName","height");var De=class extends t{};e(De,"id","MinWidth"),e(De,"matches",/^min-w:./),e(De,"propName","min-width");var Pe=class extends t{};e(Pe,"id","MinHeight"),e(Pe,"matches",/^min-h:./),e(Pe,"propName","min-height");var X=class extends t{};e(X,"id","LetterSpacing"),e(X,"matches",/^ls:./),e(X,"propName","letter-spacing"),e(X,"unit","em");var as="subpixel-antialiased",To="-webkit-font-smoothing",ko="-moz-osx-font-smoothing",We=class extends t{get(r){let i={};switch(r.value){case as:i[To]=i[ko]={...r,value:"auto"};break;case"antialiased":i[To]={...r,value:"antialiased"},i[ko]={...r,value:"grayscale"};break}return i}};e(We,"id","FontSmoothing"),e(We,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(We,"unit","");var q=class extends t{};e(q,"id","FontStyle"),e(q,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(q,"propName","font-style"),e(q,"unit","deg");var je=class extends t{};e(je,"id","FontVariantNumeric"),e(je,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(je,"propName","font-variant-numeric");var Z=class extends t{};e(Z,"id","LineHeight"),e(Z,"matches",/^lh:./),e(Z,"propName","line-height"),e(Z,"unit","");var Le=class extends t{};e(Le,"id","ObjectFit"),e(Le,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(Le,"propName","object-fit");var Ge=class extends t{};e(Ge,"id","ObjectPosition"),e(Ge,"matches",/^(object|obj):(top|bottom|right|left|center)/),e(Ge,"propName","object-position");var _e=class extends t{};e(_e,"id","TextAlign"),e(_e,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e(_e,"propName","text-align");var J=class extends t{order=-1};e(J,"id","TextDecoration"),e(J,"matches",/^t(ext)?:(underline|line-through|overline)/),e(J,"propName","text-decoration"),e(J,"colorful",!0);var ze=class extends t{};e(ze,"id","TextTransform"),e(ze,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(ze,"propName","text-transform");var He=class extends t{};e(He,"id","VerticalAlign"),e(He,"matches",/^(?:v|vertical):./),e(He,"propName","vertical-align");var Ve=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(Ve,"id","Lines"),e(Ve,"matches",/^lines:./),e(Ve,"unit","");var K=class extends t{};e(K,"id","TransformOrigin"),e(K,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(K,"propName","transform-origin"),e(K,"unit","px");var $e=class extends t{};e($e,"id","TransformStyle"),e($e,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e($e,"propName","transform-style");var Ue=class extends t{};e(Ue,"id","TransformBox"),e(Ue,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Ue,"propName","transform-box");var Q=class extends t{parseValue(r){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,o,a,c)=>{let m,d;switch(o){case"translate":m="rem";break;case"skew":m="deg";break;case"rotate":a==="3d"&&(d=!0),m="deg";break;default:return i}let l=c.split(",");return i.replace(c,l.map((p,u)=>!d||l.length-1===u?Number.isNaN(+p)?p:p/(m==="rem"?this.css.config.rootSize:1)+m:p).join(","))})}};e(Q,"id","Transform"),e(Q,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(Q,"propName","transform"),e(Q,"unit","");var Ye=class extends t{order=-1};e(Ye,"id","Transition"),e(Ye,"symbol","~"),e(Ye,"propName","transition");var ee=class extends t{};e(ee,"id","TransitionDelay"),e(ee,"matches",/^~delay:./),e(ee,"propName","transition-delay"),e(ee,"unit","ms");var te=class extends t{};e(te,"id","TransitionDuration"),e(te,"matches",/^~duration:./),e(te,"propName","transition-duration"),e(te,"unit","ms");var Xe=class extends t{};e(Xe,"id","TransitionProperty"),e(Xe,"matches",/^~property:./),e(Xe,"propName","transition-property");var qe=class extends t{};e(qe,"id","TransitionTimingFunction"),e(qe,"matches",/^~easing:./),e(qe,"propName","transition-timing-function");var Ze=class extends t{};e(Ze,"id","MaxHeight"),e(Ze,"matches",/^max-h:./),e(Ze,"propName","max-height");var Je=class extends t{};e(Je,"id","MaxWidth"),e(Je,"matches",/^max-w:./),e(Je,"propName","max-width");var Ke=class extends t{};e(Ke,"id","Display"),e(Ke,"matches",/^d:./),e(Ke,"propName","display");var Qe=class extends t{};e(Qe,"id","BoxSizing"),e(Qe,"matches",/^box:(content|border)(?!\|)/),e(Qe,"propName","box-sizing");var et=class extends t{};e(et,"id","Opacity"),e(et,"propName","opacity"),e(et,"unit","");var Tr=class extends t{};e(Tr,"id","Visibility"),e(Tr,"propName","visibility");var kr=class extends t{};e(kr,"id","Clear"),e(kr,"propName","clear");var wr=class extends t{};e(wr,"id","Float"),e(wr,"propName","float");var Or=class extends t{};e(Or,"id","Isolation"),e(Or,"propName","isolation");var Ar=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(Ar,"id","Overflow"),e(Ar,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Ir=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(Ir,"id","OverscrollBehavior"),e(Ir,"matches",/^overscroll-behavior(?:-[xy])?:/);var re=class extends t{};e(re,"id","ZIndex"),e(re,"matches",/^z:./),e(re,"propName","z-index"),e(re,"unit","");var ie=class extends t{};e(ie,"id","AnimationDelay"),e(ie,"matches",/^\@delay:./),e(ie,"propName","animation-delay"),e(ie,"unit","ms");var tt=class extends t{};e(tt,"id","AnimationDirection"),e(tt,"matches",/^\@direction:./),e(tt,"propName","animation-direction");var rt=class extends t{};e(rt,"id","AnimationFillMode"),e(rt,"matches",/^\@fill-mode:./),e(rt,"propName","animation-fill-mode");var oe=class extends t{};e(oe,"id","AnimationIterationCount"),e(oe,"matches",/^\@iteration-count:./),e(oe,"propName","animation-interation-count"),e(oe,"unit","");var it=class extends t{};e(it,"id","AnimationName"),e(it,"matches",/^\@name:./),e(it,"propName","animation-name");var ot=class extends t{};e(ot,"id","AnimationPlayState"),e(ot,"matches",/^\@play-state:./),e(ot,"propName","animation-play-state");var st=class extends t{};e(st,"id","AnimationTimingFunction"),e(st,"matches",/^\@easing:./),e(st,"propName","animation-timing-function");var se=class extends t{order=-1};e(se,"id","Animation"),e(se,"symbol","@"),e(se,"propName","animation"),e(se,"unit","");var Li="top",Gi="bottom",_i="left",zi="right",wo="l",Oo="r",Ao="t",Io="b",Bo="x",Fo="y";var Hi="border-";function ae(r,i,o=""){o&&(o="-"+o);let a=/^b(order)?-?(.)?/.exec(r)[2],c=Hi+_i+o,m=Hi+zi+o,d=Hi+Li+o,l=Hi+Gi+o;switch(a){case Bo:return{[c]:i,[m]:i};case Fo:return{[d]:i,[l]:i};case wo:return{[c]:i};case Oo:return{[m]:i};case Ao:return{[d]:i};case Io:return{[l]:i};default:return{["border"+o]:i}}}var ne=class extends t{get(r){return ae(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(ne,"id","BorderColor"),e(ne,"matches",/^border(-(left|right|top|bottom))?-color:./),e(ne,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(ne,"colorful",!0);var Vi="border-top-left-radius",$i="border-top-right-radius",Ui="border-bottom-left-radius",Yi="border-bottom-right-radius",Eo="border-radius",ns=[Vi,$i,Ui,Yi],Br=class extends t{get(r){var o;if(this.prefix){let a="",c=this.prefix.split("-");if(c.length>1)for(let m=1;m<c.length-1;m++)a+=c[m][0];else a=this.prefix.slice(1,-1);switch(a){case"t":return{[Vi]:r,[$i]:r};case"tl":case"lt":return{[Vi]:r};case"rt":case"tr":return{[$i]:r};case"b":return{[Ui]:r,[Yi]:r};case"bl":case"lb":return{[Ui]:r};case"br":case"rb":return{[Yi]:r};case"l":return{[Vi]:r,[Ui]:r};case"r":return{[$i]:r,[Yi]:r};default:return{[Eo]:r}}}let i=(o=this.prefix)==null?void 0:o.slice(0,-1);return{[ns.includes(i)?i:Eo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Br,"id","BorderRadius"),e(Br,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var Fr=class extends t{get(r){return ae(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Fr,"id","BorderStyle"),e(Fr,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/);var Er=class extends t{get(r){return ae(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Er,"id","BorderWidth"),e(Er,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/);var at=class extends t{get(r){return ae(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(at,"id","Border"),e(at,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(at,"colorful",!0);var nt=class extends t{};e(nt,"id","BackgroundAttachment"),e(nt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(nt,"propName","background-attachment");var Dr=class extends t{};e(Dr,"id","BackgroundBlendMode"),e(Dr,"propName","background-blend-mode");var lt=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(lt,"id","BackgroundClip"),e(lt,"matches",/^(bg|background):text(?!\|)/),e(lt,"propName","background-clip");var H=class extends t{};e(H,"id","BackgroundColor"),e(H,"colorStarts","(bg|background):"),e(H,"propName","background-color"),e(H,"unit",""),e(H,"colorful",!0);var ct=class extends t{};e(ct,"id","BackgroundOrigin"),e(ct,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(ct,"propName","background-origin");var le=class extends t{};e(le,"id","BackgroundPosition"),e(le,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(le,"propName","background-position"),e(le,"unit","px");var dt=class extends t{};e(dt,"id","BackgroundRepeat"),e(dt,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(dt,"propName","background-repeat");var mt=class extends t{};e(mt,"id","BackgroundSize"),e(mt,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(mt,"propName","background-size");var ce=class extends t{};e(ce,"id","BackgroundImage"),e(ce,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(ce,"propName","background-image"),e(ce,"colorful",!0);var de=class extends t{order=-1};e(de,"id","Background"),e(de,"matches",/^bg:./),e(de,"propName","background"),e(de,"colorful",!0);var pt=class extends t{};e(pt,"id","MixBlendMode"),e(pt,"matches",/^blend:./),e(pt,"propName","mix-blend-mode");var Pr=class extends t{};e(Pr,"id","Position"),e(Pr,"propName","position");var Wr=class extends t{get(r){let i=this.prefix.slice(0,-1);switch(i){case Li:case _i:case zi:case Gi:return{[i]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Wr,"id","Placement"),e(Wr,"matches",/^(top|left|right|bottom|center|middle):./);function Xi(r,i){let o="",a=0;return function c(m,d){let l="",p=d?i(d):"",u=()=>{l&&(o+=!p||Number.isNaN(+l)?l:+l/(p==="rem"?this.css.config.rootSize:1)+p,l="")};for(;a<r.length;a++){let s=r[a];if(s===m&&(m!=="'"||r[a+1]===")")){u(),o+=s;break}else s===","||s===" "?(u(),o+=s):!l&&s==="'"?(o+=s,a++,c(s),l=""):l&&s==="("?(o+=l+s,a++,c(")",l),l=""):l+=s}u()}(),o}var ft=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r){return Xi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""})}};e(ft,"id","BackdropFilter"),e(ft,"matches",/^bd:./),e(ft,"propName","backdrop-filter");var me=class extends t{};e(me,"id","Fill"),e(me,"propName","fill"),e(me,"colorStarts","fill:"),e(me,"colorful",!0);var ut=class extends t{};e(ut,"id","Stroke"),e(ut,"propName","stroke"),e(ut,"colorful",!0);var ht=class extends t{};e(ht,"id","StrokeWidth"),e(ht,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(ht,"propName","stroke-width");var xt=class extends t{parseValue(r){return Xi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""})}};e(xt,"id","Filter"),e(xt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(xt,"propName","filter");var jr=class extends t{};e(jr,"id","Cursor"),e(jr,"propName","cursor");var Lr=class extends t{};e(Lr,"id","PointerEvents"),e(Lr,"propName","pointer-events");var Gr=class extends t{};e(Gr,"id","Resize"),e(Gr,"propName","resize");var _r=class extends t{};e(_r,"id","TouchAction"),e(_r,"propName","touch-action");var zr=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(zr,"id","UserDrag"),e(zr,"propName","user-drag");var Hr=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(Hr,"id","UserSelect"),e(Hr,"propName","user-select");var pe=class extends t{};e(pe,"id","BoxShadow"),e(pe,"matches",/^s(?:hadow)?:./),e(pe,"propName","box-shadow"),e(pe,"colorful",!0);var vt=class extends t{};e(vt,"id","TextShadow"),e(vt,"propName","text-shadow"),e(vt,"colorful",!0);var Vr=class extends t{get(r){return{"font-size":r,"line-height":{...r,value:r.unit==="rem"?r.value+.375+r.unit:"calc("+r.value+r.unit+" + .375rem)",unit:""}}}};e(Vr,"id","TextSize"),e(Vr,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var gt=class extends t{};e(gt,"id","WordBreak"),e(gt,"propName","word-break"),e(gt,"unit","");var fe=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(fe,"id","GridColumns"),e(fe,"matches",/^grid-cols:./),e(fe,"propName","grid-columns"),e(fe,"unit","");var St=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(St,"id","GridRows"),e(St,"propName","grid-rows"),e(St,"unit","");var $r=class extends t{get(r){switch(this.prefix[4]){case"x":return{"column-gap":r};case"y":return{"row-gap":r};default:return{gap:r}}}order=-1};e($r,"id","Gap"),e($r,"matches",/^gap(-x|-y)?:./);var bt=class extends t{};e(bt,"id","WordSpacing"),e(bt,"propName","word-spacing"),e(bt,"unit","em");var yt=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(yt,"id","Variable"),e(yt,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(yt,"unit","");var ue=class extends t{};e(ue,"id","AspectRadio"),e(ue,"matches",/^aspect:./),e(ue,"propName","aspect-ratio"),e(ue,"unit","");var Ct=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Ct,"id","BoxDecorationBreak"),e(Ct,"matches",/^box:(slice|clone)(?!\|)/),e(Ct,"propName","box-decoration-break");var Ur=class extends t{};e(Ur,"id","BreakAfter"),e(Ur,"propName","break-after");var Yr=class extends t{};e(Yr,"id","BreakBefore"),e(Yr,"propName","break-before");var Xr=class extends t{};e(Xr,"id","BreakInside"),e(Xr,"propName","break-inside");var Rt=class extends t{};e(Rt,"id","FlexShrink"),e(Rt,"propName","flex-shrink"),e(Rt,"unit","");var Mt=class extends t{};e(Mt,"id","FlexDirection"),e(Mt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(Mt,"propName","flex-direction");var Nt=class extends t{};e(Nt,"id","FlexGrow"),e(Nt,"propName","flex-grow"),e(Nt,"unit","");var Tt=class extends t{};e(Tt,"id","FlexWrap"),e(Tt,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(Tt,"propName","flex-wrap");var qr=class extends t{};e(qr,"id","FlexBasis"),e(qr,"propName","flex-basis");var kt=class extends t{order=-1};e(kt,"id","Flex"),e(kt,"propName","flex"),e(kt,"unit","");var he=class extends t{};e(he,"id","Order"),e(he,"matches",/^o:./),e(he,"propName","order"),e(he,"unit","");var xe=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(xe,"id","GridColumn"),e(xe,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(xe,"propName","grid-column"),e(xe,"unit","");var wt=class extends t{};e(wt,"id","ColumnSpan"),e(wt,"matches",/^col-span:./),e(wt,"propName","column-span");var ve=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(ve,"id","GridRow"),e(ve,"matches",/^grid-row-span:./),e(ve,"propName","grid-row"),e(ve,"unit","");var V=class extends t{};e(V,"id","Color"),e(V,"colorStarts","(?:color|fg|foreground):"),e(V,"colorful",!0),e(V,"propName","color"),e(V,"unit","");var Ot=class extends t{};e(Ot,"id","AlignContent"),e(Ot,"matches",/^ac:./),e(Ot,"propName","align-content");var At=class extends t{};e(At,"id","AlignItems"),e(At,"matches",/^ai:./),e(At,"propName","align-items");var It=class extends t{};e(It,"id","AlignSelf"),e(It,"matches",/^as:./),e(It,"propName","align-self");var Bt=class extends t{};e(Bt,"id","GridAutoColumns"),e(Bt,"matches",/^grid-auto-cols:./),e(Bt,"propName","grid-auto-columns");var Ft=class extends t{};e(Ft,"id","GridAutoFlow"),e(Ft,"matches",/^grid-flow:./),e(Ft,"propName","grid-auto-flow");var Zr=class extends t{};e(Zr,"id","GridAutoRows"),e(Zr,"propName","grid-auto-rows");var Et=class extends t{};e(Et,"id","JustifyContent"),e(Et,"matches",/^jc:./),e(Et,"propName","justify-content");var Dt=class extends t{};e(Dt,"id","JustifyItems"),e(Dt,"matches",/^ji:./),e(Dt,"propName","justify-items");var Pt=class extends t{};e(Pt,"id","JustifySelf"),e(Pt,"matches",/^js:./),e(Pt,"propName","justify-self");var Jr=class extends t{order=-1};e(Jr,"id","PlaceContent"),e(Jr,"propName","place-content");var Kr=class extends t{order=-1};e(Kr,"id","PlaceItems"),e(Kr,"propName","place-items");var Qr=class extends t{order=-1};e(Qr,"id","PlaceSelf"),e(Qr,"propName","place-self");var ei=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ei,"id","Padding"),e(ei,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var ti=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(ti,"id","Margin"),e(ti,"matches",/^margin(-(left|right|top|bottom))?:./);var Wt=class extends t{};e(Wt,"id","TextOverflow"),e(Wt,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(Wt,"propName","text-overflow");var jt=class extends t{};e(jt,"id","ListStylePosition"),e(jt,"matches",/^list-style:(inside|outside)(?!\|)/),e(jt,"propName","list-style-position");var Lt=class extends t{};e(Lt,"id","ListStyleType"),e(Lt,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Lt,"propName","list-style-type");var ri=class extends t{order=-1};e(ri,"id","ListStyle"),e(ri,"propName","list-style");var ge=class extends t{};e(ge,"id","TextDecorationColor"),e(ge,"propName","text-decoration-color"),e(ge,"colorStarts","text-decoration:"),e(ge,"colorful",!0);var Gt=class extends t{};e(Gt,"id","TextDecorationStyle"),e(Gt,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e(Gt,"propName","text-decoration-style");var Se=class extends t{};e(Se,"id","TextDecorationThickness"),e(Se,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Se,"propName","text-decoration-thickness"),e(Se,"unit","em");var ii=class extends t{};e(ii,"id","TextIndent"),e(ii,"propName","text-indent");var oi=class extends t{};e(oi,"id","Content"),e(oi,"propName","content");var be=class extends t{};e(be,"id","OutlineColor"),e(be,"propName","outline-color"),e(be,"colorStarts","outline:"),e(be,"colorful",!0);var si=class extends t{};e(si,"id","OutlineOffset"),e(si,"propName","outline-offset");var _t=class extends t{};e(_t,"id","OutlineStyle"),e(_t,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e(_t,"propName","outline-style");var zt=class extends t{};e(zt,"id","OutlineWidth"),e(zt,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(zt,"propName","outline-width");var Ht=class extends t{order=-1};e(Ht,"id","Outline"),e(Ht,"propName","outline"),e(Ht,"colorful",!0);var Vt=class extends t{};e(Vt,"id","BorderCollapse"),e(Vt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(Vt,"propName","border-collapse");var ai=class extends t{};e(ai,"id","BorderSpacing"),e(ai,"propName","border-spacing");var ni=class extends t{};e(ni,"id","TableLayout"),e(ni,"propName","table-layout");var ye=class extends t{};e(ye,"id","AccentColor"),e(ye,"propName","accent-color"),e(ye,"colorStarts","accent:"),e(ye,"colorful",!0);var li=class extends t{};e(li,"id","Appearance"),e(li,"propName","appearance");var Ce=class extends t{};e(Ce,"id","CaretColor"),e(Ce,"propName","caret-color"),e(Ce,"colorStarts","caret:"),e(Ce,"colorful",!0);var ci=class extends t{};e(ci,"id","ScrollBehavior"),e(ci,"propName","scroll-behavior");var di=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(di,"id","ScrollMargin"),e(di,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var mi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(mi,"id","ScrollPadding"),e(mi,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var $t=class extends t{};e($t,"id","ScrollSnapAlign"),e($t,"matches",/^scroll-snap:(start|end|center)/),e($t,"propName","scroll-snap-align");var Ut=class extends t{};e(Ut,"id","ScrollSnapStop"),e(Ut,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Ut,"propName","scroll-snap-stop");var Yt=class extends t{};e(Yt,"id","ScrollSnapType"),e(Yt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Yt,"propName","scroll-snap-type");var pi=class extends t{};e(pi,"id","WillChange"),e(pi,"propName","will-change");var fi=class extends t{};e(fi,"id","TextUnderlineOffset"),e(fi,"propName","text-underline-offset");var Xt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Xt,"id","Inset"),e(Xt,"matches",/^(?:top|bottom|left|right):./),e(Xt,"propName","inset");var Re=class extends t{order=-1};e(Re,"id","Columns"),e(Re,"matches",/^(columns|cols):./),e(Re,"propName","columns"),e(Re,"unit","");var qt=class extends t{};e(qt,"id","WhiteSpace"),e(qt,"propName","white-space"),e(qt,"unit","");var Zt=class extends t{};e(Zt,"id","TextOrientation"),e(Zt,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(Zt,"propName","text-orientation");var Jt=class extends t{};e(Jt,"id","WritingMode"),e(Jt,"matches",/^writing:./),e(Jt,"propName","writing-mode");var ui=class extends t{};e(ui,"id","Contain"),e(ui,"propName","contain");var Me=class extends t{};e(Me,"id","AnimationDuration"),e(Me,"matches",/^\@duration:./),e(Me,"propName","animation-duration"),e(Me,"unit","ms");var Kt=class extends t{};e(Kt,"id","TextRendering"),e(Kt,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(Kt,"propName","text-rendering");var hi=class extends t{};e(hi,"id","Direction"),e(hi,"propName","direction");var Qt=class extends t{};e(Qt,"id","TextDecorationLine"),e(Qt,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(Qt,"propName","text-decoration-line");var Ne=class extends t{};e(Ne,"id","GridColumnStart"),e(Ne,"matches",/^grid-col-start:./),e(Ne,"propName","grid-column-start"),e(Ne,"unit","");var er=class extends t{};e(er,"id","ListStyleImage"),e(er,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(er,"propName","list-style-image");var tr=class extends t{};e(tr,"id","ShapeOutside"),e(tr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(tr,"propName","shape-outside");var rr=class extends t{};e(rr,"id","ShapeMargin"),e(rr,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(rr,"propName","shape-margin");var ir=class extends t{};e(ir,"id","ShapeImageThreshold"),e(ir,"propName","shape-image-threshold"),e(ir,"unit","");var or=class extends t{};e(or,"id","ClipPath"),e(or,"matches",/^clip:./),e(or,"propName","clip-path");var xi=class extends t{order=-1};e(xi,"id","Grid"),e(xi,"propName","grid");var Te=class extends t{order=-1};e(Te,"id","Font"),e(Te,"matches",/^f:./),e(Te,"propName","font"),e(Te,"unit","");var vi=class extends t{};e(vi,"id","Quotes"),e(vi,"propName","quotes");var gi=class extends t{order=-1};e(gi,"id","GridTemplate"),e(gi,"propName","grid-template");var sr=class extends t{};e(sr,"id","GridRowStart"),e(sr,"propName","grid-row-start"),e(sr,"unit","");var Si=class extends t{};e(Si,"id","GridTemplateAreas"),e(Si,"propName","grid-template-areas");var ar=class extends t{};e(ar,"id","GridTemplateColumns"),e(ar,"matches",/^grid-template-cols:./),e(ar,"propName","grid-template-columns");var bi=class extends t{};e(bi,"id","GridTemplateRows"),e(bi,"propName","grid-template-rows");var nr=class extends t{order=-1};e(nr,"id","GridArea"),e(nr,"propName","grid-area"),e(nr,"unit","");var ke=class extends t{};e(ke,"id","GridColumnEnd"),e(ke,"matches",/^grid-col-end:./),e(ke,"propName","grid-column-end"),e(ke,"unit","");var lr=class extends t{};e(lr,"id","GridRowEnd"),e(lr,"propName","grid-row-end"),e(lr,"unit","");var yi=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(yi,"id","MaskImage"),e(yi,"propName","mask-image");var we=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(we,"id","TextFillColor"),e(we,"matches",/^text-fill-color:./),e(we,"colorStarts","(text-fill|text|t):"),e(we,"colorful",!0);var Ci=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(Ci,"id","TextStroke"),e(Ci,"matches",/^text-stroke:./);var Ri=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(Ri,"id","TextStrokeWidth"),e(Ri,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var Oe=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Oe,"id","TextStrokeColor"),e(Oe,"matches",/^text-stroke-color:./),e(Oe,"colorStarts","text-stroke:"),e(Oe,"colorful",!0);var Mi=class extends t{};e(Mi,"id","StrokeDasharray"),e(Mi,"propName","stroke-dasharray");var Ni=class extends t{};e(Ni,"id","StrokeDashoffset"),e(Ni,"propName","stroke-dash-offset");var cr=class extends t{};e(cr,"id","X"),e(cr,"propName","x"),e(cr,"unit","");var dr=class extends t{};e(dr,"id","Y"),e(dr,"propName","y"),e(dr,"unit","");var mr=class extends t{};e(mr,"id","Cx"),e(mr,"propName","cx"),e(mr,"unit","");var pr=class extends t{};e(pr,"id","Cy"),e(pr,"propName","cy"),e(pr,"unit","");var fr=class extends t{};e(fr,"id","Rx"),e(fr,"propName","rx"),e(fr,"unit","");var ur=class extends t{};e(ur,"id","Ry"),e(ur,"propName","ry"),e(ur,"unit","");var Ti=class extends t{};e(Ti,"id","BorderImageOutset"),e(Ti,"propName","border-image-outset");var hr=class extends t{};e(hr,"id","BorderImageRepeat"),e(hr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(hr,"propName","border-image-repeat");var xr=class extends t{};e(xr,"id","BorderImageSlice"),e(xr,"propName","border-image-slice"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","BorderImageSource"),e(vr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(vr,"propName","border-image-source");var gr=class extends t{};e(gr,"id","BorderImageWidth"),e(gr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(gr,"propName","border-image-width");var Sr=class extends t{};e(Sr,"id","BorderImage"),e(Sr,"propName","border-image"),e(Sr,"unit","");var ls=/\{(.*)\}/,br=class extends t{getThemeProps(r,i){let o={},a=(u,s)=>{let n=s.indexOf(":");if(n!==-1){u in o||(o[u]={});let f=o[u],h=s.slice(0,n);h in f||(f[h]=s.slice(n+1))}},c=u=>{let s=(n,f)=>{let h=f.slice(CSS.escape(u.className).length).match(ls)[1].split(";");for(let y of h)a(n,y)};if(this.themeName){let n=u.natives.find(f=>f.themeName===this.themeName)??u.natives.find(f=>!f.themeName);n&&s(this.themeName,n.text)}else for(let n of u.natives)s(n.themeName,n.text)},m=[],d="",l=()=>{d&&(m.push(d),d="")},p=1;(function u(s){for(;p<r.value.length;p++){let n=r.value[p];if(!s){if(n===";"){l();continue}if(n==="}")break}if(d+=n,s===n){if(s==="'"){let f=0;for(let h=d.length-2;d[h]==="\\";h--)f++;if(f%2)continue}break}else n in Mr&&s!=="'"&&(p++,u(Mr[n]))}})(void 0),l();for(let u of m){let s=i.findAndNew(u);if(Array.isArray(s))for(let n of s)c(n);else s?c(s):a(this.themeName??"",u)}return o}};e(br,"id","Group"),e(br,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(br,"unit","");var yr=class extends t{};e(yr,"id","CounterIncrement"),e(yr,"propName","counter-increment"),e(yr,"unit","");var fo=[br,yt,Be,Y,Ie,We,q,je,Te,V,Nr,ti,ei,qr,Tt,Nt,Rt,Mt,kt,Ke,Fe,Ee,De,Pe,ui,oi,yr,X,Z,Le,Ge,_e,ge,Gt,Se,Qt,J,fi,Wt,Zt,ze,Kt,ii,He,Re,qt,Xt,Ve,Ze,Je,Qe,et,Tr,kr,wr,Or,Ar,Ir,re,Pr,Wr,jr,Lr,Gr,_r,gt,bt,zr,Hr,vt,Vr,we,Ri,Oe,Ci,pe,ni,Ue,$e,K,Q,Xe,qe,te,ee,Ye,ie,tt,Me,rt,oe,it,ot,st,se,ne,Br,Fr,Er,Vt,ai,Ti,hr,xr,vr,gr,Sr,at,nt,Dr,lt,H,ct,le,dt,mt,ce,de,pt,ft,xt,me,Mi,Ni,ht,ut,cr,dr,mr,pr,fr,ur,Ne,ke,xe,fe,sr,lr,ve,St,Bt,Ft,Zr,Si,ar,bi,gi,nr,xi,$r,he,Xr,Yr,Ur,Ct,ue,wt,Ot,At,It,Et,Dt,Pt,Jr,Kr,Qr,jt,Lt,er,ri,be,si,_t,zt,Ht,ye,li,Ce,ci,di,mi,$t,Ut,Yt,pi,Jt,hi,tr,rr,ir,or,vi,yi];var Cr={colors:to,breakpoints:Rr,semantics:oo,values:ao,selectors:io,themes:so,Rules:fo,rootSize:16};function uo(r){if(typeof window<"u"){let i=new P(r,document.head);return P.root=i,i.observe(document.documentElement),i}else return new P(r)}var cs=[",",".","#","[","!","*",">","+","~",":","@"],Do=typeof document<"u",qi;Do&&(qi=document.createElement("style"),qi.title="master");var G="max-width",L="min-width",ds="attributes",Po=typeof window<"u",ms=Po?window.MutationObserver:Object,Zi=class extends ms{constructor(o=Cr,a){var c,m;super(d=>{let l={},p=[],u=[],s=[],n=(x,g)=>{g?x.classList.forEach(h):x.classList.forEach(f);let R=x.children;for(let v=0;v<R.length;v++){let S=R[v];S.classList&&(u.push(S),n(S,g))}},f=x=>{x in l?l[x]++:l[x]=1},h=x=>{x in l?l[x]--:l[x]=-1},y=(x,g)=>{for(let R=0;R<x.length;R++){let v=x[R];v.classList&&!u.includes(v)&&!s.includes(v)&&(v.isConnected!==g?(u.push(v),n(v,g)):s.push(v))}};for(let x=0;x<d.length;x++){let g=d[x],{addedNodes:R,removedNodes:v,type:S,target:T,oldValue:k}=g;if(S===ds){if(T.className===k||p.find(A=>A.target===T))continue;p.push(g)}else y(R,!1),y(v,!0)}if(!(!p.length&&!Object.keys(l).length)){for(let{oldValue:x,target:g}of p){let R=u.includes(g),v=g.classList,S=x?x.split(" "):[];if(R){if(g.isConnected)continue;for(let T of S)v.contains(T)||h(T)}else if(g.isConnected){v.forEach(T=>{S.includes(T)||f(T)});for(let T of S)v.contains(T)||h(T)}else for(let T of S)h(T)}for(let x in l){let g=l[x],R=(this.countOfName[x]||0)+g;R===0?(delete this.countOfName[x],this.delete(x)):(x in this.countOfName||this.findAndInsert(x),this.countOfName[x]=R)}}});this.config=o;this.container=a;if(this.cache(),!!Do){if(a){let d;for(let l of((c=a.shadowRoot)==null?void 0:c.styleSheets)||document.styleSheets)l.title==="master"&&(d=l.ownerNode);if(d){this.style=d;for(let l=0;l<this.style.sheet.cssRules.length;l++){let p=s=>{if(s.selectorText){let f=s.selectorText.split(", ")[0].split(" ");for(let h=0;h<f.length;h++){let y=f[h];if(y[0]==="."){let x=y.slice(1),g="";for(let R=0;R<x.length;R++){let v=x[R],S=x[R+1];if(v==="\\"){if(R++,S!=="\\"){g+=S;continue}}else if(cs.includes(v))break;g+=v}if(!(g in this.ruleOfName)&&!(g in this.classes)){let R=this.findAndNew(g);if(R)return R}}}}else if(s.cssRules)for(let n=0;n<s.cssRules.length;n++){let f=p(s.cssRules[n]);if(f)return f}},u=p(this.style.sheet.cssRules[l]);if(u){this.rules.push(u),this.ruleOfName[u.className]=u;for(let s=0;s<u.natives.length;s++)u.natives[s].cssRule=this.style.sheet.cssRules[l+s];l+=u.natives.length-1}}}else this.style=qi.cloneNode(),(m=this.container)==null||m.prepend(this.style)}Zi.instances.push(this)}}static refresh(o){for(let a of this.instances)a.refresh(o)}style;rules=[];ruleOfName={};countOfName={};cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={single:[],multiple:[]};let{semantics:o,classes:a,selectors:c,themes:m,colors:d}=this.config;function l(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}if(o)for(let s in o)this.semantics.push([new RegExp("^"+l(s)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),s]);if(c)for(let s of Object.entries(c)){let n=typeof s[1]=="string";this.selectors[n?"single":"multiple"].push([new RegExp(l(s[0])+"(?![a-z-])",n?"g":""),s[1]])}let p=(s,n)=>{if(!!n){for(let f in n){let h=n[f],y=Array.isArray(h)?h:h.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");f in this.classes||(this.classes[f]=[]);let x=this.classes[f];for(let g of y)g in this.relationThemesMap?s in this.relationThemesMap[g]?this.relationThemesMap[g][s].push(f):this.relationThemesMap[g][s]=[f]:this.relationThemesMap[g]={[s]:[f]},x.includes(g)||x.push(g)}for(let f in this.relationThemesMap){this.relations[f]=[];for(let h of Object.values(this.relationThemesMap[f]))for(let y of h)this.relations[f].includes(y)||this.relations[f].push(y)}}},u=(s,n)=>{if(!!n)for(let f in n){let h=n[f];if(typeof h=="string"&&(h={"":h}),f in this.colorsThemesMap){let y=this.colorsThemesMap[f];for(let x in h){let g=h[x];x in y?y[x][s]=g:y[x]={[s]:g}}}else this.colorNames.push(f),this.colorsThemesMap[f]=Object.entries(h).reduce((y,[x,g])=>(y[x]={[s]:g},y),{})}};if(p("",a),u("",d),m)if(Array.isArray(m))this.themeNames.push(...m);else for(let s in m){let n=m[s];p(s,n.classes),u(s,n.colors),this.themeNames.push(s)}}semantics;classes;colorsThemesMap;colorNames;themeNames;relationThemesMap;relations;selectors;observe(o,a={subtree:!0,childList:!0}){return a.subtree&&o.querySelectorAll("[class]").forEach(c=>{c.classList.forEach(m=>{m in this.countOfName?this.countOfName[m]++:(this.countOfName[m]=1,this.findAndInsert(m))})}),super.observe(o,{...a,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this}disconnect(){super.disconnect(),this.ruleOfName={},this.countOfName={},this.rules.length=0;let o=this.style.sheet;if(o)for(let a=o.cssRules.length-1;a>=0;a--)o.deleteRule(a)}findAndNew(o){let a=c=>{if(c in this.ruleOfName)return this.ruleOfName[c];for(let m of this.config.Rules){let d=m.match(c,this.colorNames);if(d)return new m(c,d,this)}for(let m of this.semantics)if(c.match(m[0]))return new t(c,{origin:"semantics",value:m[1]},this)};return o in this.classes?this.classes[o].map(a).filter(c=>c):a(o)}refresh(o){if(this.config=o,this.cache(),!this.style)return;let a=qi.cloneNode();this.style.replaceWith(a),this.style=style,this.rules.length=0,this.ruleOfName={};for(let c in this.countOfName)this.findAndInsert(c)}destroy(){let o=Zi.instances;this.disconnect(),o.splice(o.indexOf(this),1),this.style.remove()}insert(o){if(this.ruleOfName[o.className])return;let a,c=this.rules.length-1,m=o.media,d=o.order,l=o.prioritySelectorIndex,p=o.hasWhere,u=(s,n,f,h)=>{let y,x=0,g;n&&(x=s.findIndex(n)),f&&(g=s.findIndex(f)),x===-1&&(x=s.length),(g===void 0||g===-1)&&(g=s.length),y=s.slice(x,g);for(let R=0;R<y.length;R++){let v=y[R];if(!(v.prioritySelectorIndex===-1||h&&h(v))&&(v.prioritySelectorIndex<l||v.prioritySelectorIndex===l&&(p&&!v.hasWhere||v.order>=d)))return x+R}return x+y.length};if(m){let s=this.rules.findIndex(n=>n.media);if(s!==-1){let n=m.features[G],f=m.features[L];if(n&&f){let h=n.value-f.value;for(let y=c;y>=s;y--){a=y;let x=this.rules[y],g=x.media,R=g.features[G],v=g.features[L];if(!R||!v){a++;break}let S=R.value-v.value;if(S===h){if(p!==x.hasWhere)continue;if(l!==-1){let T=[this.rules[y]];for(let k=y-1;k>=s;k--){let A=this.rules[k];if(A.hasWhere!==p)break;let $=A.media,z=$.features[G],ki=$.features[L];if(!z||!ki||z.value-ki.value!==S)break;T.unshift(this.rules[k])}a=u(this.rules,k=>k.media&&k.prioritySelectorIndex!==-1&&k.media.features[L]&&k.media.features[G])}break}else if(S>h)break}}else if(f)for(let h=s;h<=c;h++){a=h;let y=this.rules[h],x=y.media,g=x.features[G],R=x.features[L];if(g){if(R)break;continue}let v=R==null?void 0:R.value;if(v===f.value){if(!p&&y.hasWhere){a++;continue}if(l!==-1)a=u(this.rules,S=>S.media,S=>S.media&&S.prioritySelectorIndex!==-1&&S.media.features[L]&&S.media.features[G],S=>!S.media.features[L]&&!S.media.features[G]);else for(let S=h;S<=c;S++){let T=this.rules[S],k=T.media,A=k.features[L];if(!k.features[G]){if(T.hasWhere!==p||A.value!==v||T.order>=d)break;a=S+1}}break}else{if(v>f.value)break;a++}}else if(n)for(let h=c;h>=s;h--){a=h;let y=this.rules[h],x=y.media,g=x.features[G];if(x.features[L])continue;let v=g==null?void 0:g.value;if(!v||v>n.value){a++;break}else if(v===n.value){if(p&&!y.hasWhere)continue;if(l!==-1)a=u(this.rules,S=>S.media,S=>S.media&&S.prioritySelectorIndex!==-1&&S.media.features[L]&&S.media.features[G],S=>!S.media.features[L]&&!S.media.features[G]);else{let S=[this.rules[h]];for(let T=h-1;T>=s;T--){let k=this.rules[T],A=k.media,$=A.features[L],z=A.features[G];if(!$&&(!z||z.value!==v||k.hasWhere!==p))break;S.unshift(k)}for(let T=0;T<S.length;T++){let k=S[T];if(!k.media.features[L]){if(k.order>=d)break;a=h-S.length+2+T}}}break}}}if(a===void 0)if(s===-1)a=c+1;else if(l!==-1)a=s+u(this.rules.slice(s),void 0,n=>n.media.features[G]||n.media.features[L]);else if(p){let n=s;for(;n<this.rules.length;n++){let f=this.rules[n];if(f.prioritySelectorIndex!==-1||!f.hasWhere||f.order>=d){a=n;break}}a===void 0&&(a=n)}else for(let n=s;n<=c;n++){a=n;let f=this.rules[n],h=f.media;if(f.prioritySelectorIndex!==-1||h.features[G]||h.features[L])break;if(f.hasWhere)a++;else if(f.order>=d)break}}else if(l===-1)if(p)a=this.rules.findIndex(s=>!s.hasWhere||s.media||s.prioritySelectorIndex!==-1||s.order>=d),a===-1&&(a=c+1);else{let s=0;for(;s<this.rules.length;s++){let n=this.rules[s];if(n.media||!n.hasWhere&&(n.order>=d||n.prioritySelectorIndex!==-1)){a=s;break}}a===void 0&&(a=s)}else a=u(this.rules,void 0,s=>s.media);try{if(this.rules.splice(a,0,o),this.ruleOfName[o.className]=o,this.style){let s=this.style.sheet,n=0,f=this.rules[a-1];if(f){let h=f.natives[f.natives.length-1].cssRule;for(let y=0;y<s.cssRules.length;y++)if(s.cssRules[y]===h){n=y+1;break}}for(let h of o.natives)s.insertRule(h.text,n),h.cssRule=s.cssRules[n++]}}catch(s){console.error(s)}}delete(o){let a=this.style.sheet,c=m=>{let d=this.ruleOfName[m];if(!d||m in this.relations&&this.relations[m].some(p=>p in this.countOfName))return;let l=d.natives[0];for(let p=0;p<a.cssRules.length;p++)if(a.cssRules[p]===l.cssRule){for(let s=0;s<d.natives.length;s++)a.deleteRule(p);this.rules.splice(this.rules.indexOf(d),1),delete this.ruleOfName[d.className];break}};if(o in this.classes)for(let m of this.classes[o])m in this.countOfName||c(m);else c(o)}findAndInsert(o){let a=this.findAndNew(o);if(Array.isArray(a))for(let c of a)this.insert(c);else a&&this.insert(a)}},P=Zi;e(P,"init",uo),e(P,"defaultConfig",Cr),e(P,"instances",[]),e(P,"root");Po&&(window.MasterCSS=P);var uR=eo(Ji());function ps(r,i=new P){if(!!(r!=null&&r.length)){for(let o of r)o in i.countOfName||(i.findAndInsert(o),i.countOfName[o]=1);return i.rules.map(o=>o.natives.reduce((a,c)=>a+c.text,"")).join("")}}var vR=eo(Ji());function xo(r,i=new P){if(!r)return;let o=/\sclass="([^"]*)"/gm,a;for(;a=o.exec(r);){let c=a[1].replace(/\n/g,"").split(" ").filter(m=>m);for(let m of c)m in i.countOfName||(i.findAndInsert(m),i.countOfName[m]=1)}return i.rules.map(c=>c.natives.reduce((m,d)=>m+d.text,"")).join("")}var bR=eo(Ji());function fs(r,i=new P){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${xo(r,i)}</style>`)}function jo(r,i){return Array.isArray(r)&&Array.isArray(i)?r.concat(i):i}function Ki(r){return Object.prototype.toString.call(r).slice(8,-1)}function Bi(r){return Ki(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function vo(r){return Ki(r)==="Symbol"}function Lo(r,i,o,a){let c={}.propertyIsEnumerable.call(a,i)?"enumerable":"nonenumerable";c==="enumerable"&&(r[i]=o),c==="nonenumerable"&&Object.defineProperty(r,i,{value:o,enumerable:!1,writable:!0,configurable:!0})}function Go(r,i,o){if(!Bi(i))return i;let a={};if(Bi(r)){let l=Object.getOwnPropertyNames(r),p=Object.getOwnPropertySymbols(r);a=[...l,...p].reduce((u,s)=>{let n=r[s];return(!vo(s)&&!Object.getOwnPropertyNames(i).includes(s)||vo(s)&&!Object.getOwnPropertySymbols(i).includes(s))&&Lo(u,s,n,r),u},{})}let c=Object.getOwnPropertyNames(i),m=Object.getOwnPropertySymbols(i);return[...c,...m].reduce((l,p)=>{let u=i[p],s=Bi(r)?r[p]:void 0;s!==void 0&&Bi(u)&&(u=Go(s,u,o));let n=o?o(s,u,p):u;return Lo(l,p,n,i),l},a)}function _o(r,...i){return i.reduce((o,a)=>Go(o,a,jo),r)}function us(...r){return r.length?_o(Cr,...r):Cr}0&&(module.exports={DefaultRules,MasterCSSRule,configure,defaultBreakpoints,defaultColors,defaultConfig,defaultRootSize,defaultSelectors,defaultSemantics,defaultThemes,defaultValues,fillColorScale,init,render,renderFromHTML,renderIntoHTML});
1
+ var Do=Object.create;var Oi=Object.defineProperty;var Eo=Object.getOwnPropertyDescriptor;var Wo=Object.getOwnPropertyNames;var Po=Object.getPrototypeOf,jo=Object.prototype.hasOwnProperty;var Go=(r,i,o)=>i in r?Oi(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o;var Lo=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports),_o=(r,i)=>{for(var o in i)Oi(r,o,{get:i[o],enumerable:!0})},ho=(r,i,o,a)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Wo(i))!jo.call(r,c)&&c!==o&&Oi(r,c,{get:()=>i[c],enumerable:!(a=Eo(i,c))||a.enumerable});return r};var Zi=(r,i,o)=>(o=r!=null?Do(Po(r)):{},ho(i||!r||!r.__esModule?Oi(o,"default",{value:r,enumerable:!0}):o,r)),zo=r=>ho(Oi({},"__esModule",{value:!0}),r);var e=(r,i,o)=>(Go(r,typeof i!="symbol"?i+"":i,o),o);var Yi=Lo((mo,To)=>{(function(r,i){typeof mo=="object"?To.exports=i(r):typeof define=="function"&&define.amd?define([],i.bind(r,r)):i(r)})(typeof global<"u"?global:mo,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var i=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var a=String(o),c=a.length,m=-1,d,l="",p=a.charCodeAt(0);if(c==1&&p==45)return"\\"+a;for(;++m<c;){if(d=a.charCodeAt(m),d==0){l+="\uFFFD";continue}if(d>=1&&d<=31||d==127||m==0&&d>=48&&d<=57||m==1&&d>=48&&d<=57&&p==45){l+="\\"+d.toString(16)+" ";continue}if(d>=128||d==45||d==95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122){l+=a.charAt(m);continue}l+="\\"+a.charAt(m)}return l};return r.CSS||(r.CSS={}),r.CSS.escape=i,i})});var ss={};_o(ss,{DefaultRules:()=>lo,MasterCSSRule:()=>t,PRIORITY_SELECTORS:()=>ao,configure:()=>os,default:()=>W,defaultBreakpoints:()=>Rr,defaultColors:()=>Ji,defaultConfig:()=>Cr,defaultRootSize:()=>Ki,defaultSelectors:()=>Qi,defaultSemantics:()=>eo,defaultThemes:()=>to,defaultValues:()=>ro,fillColorScale:()=>E,init:()=>co,render:()=>rs,renderFromHTML:()=>po,renderIntoHTML:()=>is});module.exports=zo(ss);var Rr={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function Ai(r){r.startsWith("#")&&(r=r.slice(1));let i=r.match(/.{1,2}/g);return[parseInt(i[0],16),parseInt(i[1],16),parseInt(i[2],16)]}function xo(r,i,o){return((1<<24)+(r<<16)+(i<<8)+o).toString(16).slice(1)}function E(r){typeof r=="string"&&(r={"":r});let i=""in r,o=!1;for(let a in r)if(a&&+a>=100){o=!0;break}if(!o&&(!i||Object.keys(r).length>1)){let a=0,c="0"in r?Ai(r[0]):[0,0,0],m,d,l=[],p=()=>{let u=m-a,s=d.map((n,f)=>(n-c[f])/u);for(let n of l){let f=n-a,h=c.map((y,x)=>Math.round(y+s[x]*f));r[n]="#"+xo.call(this,...h)}};for(let u=1;u<100;u++)u in r?(l.length?(m=u,d=Ai(r[u]),p(),l.length=0,c=d):c=Ai(r[u]),a=u):l.push(u);l.length&&(m=100,d="100"in r?Ai(r[100]):[255,255,255],p())}return i||(r[""]=r[o?"500":"50"]),r}var Ji={slate:E({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:E({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:E({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:E({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:E({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:E({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:E({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:E({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:E({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:E({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:E({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:E({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:E({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:E({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:E({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:E({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:E({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:E({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:E({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:E({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"};var Ki=16;var Qi={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var eo={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",overflow:"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","center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}};var to=["dark","light"];var Ii={content:"content-box",border:"border-box",padding:"padding-box"},Ei={min:"min-content",max:"max-content"},U={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Rr)U[r]=Rr[r]/16+"rem";var ro={BackgroundClip:Ii,BackgroundOrigin:Ii,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Ii,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{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"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:Ei,GridAutoRows:Ei,GridTemplateColumns:Ei,GridTemplateRows:Ei,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Ii,margin:"margin-box"},TransformBox:{...Ii,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:U,MinWidth:U,MinHeight:U,MaxWidth:U,MaxHeight:U,Height:U,FlexBasis:U};function Wi(r,i){return(r?r+":":"")+(i.unit?i.value+i.unit:i.value)+(i.important?"!important":"")}function vo(r){let i=l=>l==="+"||l==="-"||l==="*"||l==="/",o="",a,c="",m=!1;function d(){a=null,c=""}for(let l=0;l<r.length;l++){let p=r[l];if(p==="("||p===")")m=p===")",o+=c+p,d();else if(p===",")o+=c+p+" ",d();else{switch(a){case 1:break;case 2:if(i(p)){o+=c+" "+p+" ",d();continue}break;default:m&&(c+=" "),isNaN(+p)?i(p)||(a=1):a=2;break}c+=p}}return c&&(o+=c),o}var Ho=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Vo="var(--";function Pi(r,i,o,a,c,m){let d=a?a[r]:"",l="",p="",u;if(d)return{value:d,unit:l,unitToken:p};if(typeof r=="number")d=r,l=i||"";else{if(o){let s=Object.keys(o),n=!1,f=!1;r=r.replace(new RegExp(`(^|,| |\\()(${s.join("|")})(?:-([0-9]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(h,y,x,g,R)=>{var S;f=!0;let v=(S=o[x])==null?void 0:S[g||""];if(v){let k;for(let T of m)if(k=v[T])break;if(k){n=!0;let T=k;if(R){let A=R.endsWith("%")?parseFloat(R)/100:+R;A=isNaN(A)?1:Math.min(Math.max(A,0),1),T+=Math.round(A*255).toString(16).toUpperCase().padStart(2,"0")}return y+T}}return h}),f&&(u=n)}if(i){let s=r.match(Ho);if(s)if(r.includes("/")){let n=r.split("/");return{value:+n[0]/+n[1]*100+"%",unit:l,unitToken:p}}else return d=+s[1],l=p=s[3]||"",l||((i==="rem"||i==="em")&&(d=d/c),l=i||""),{value:d,unit:l,unitToken:p}}d=(r.indexOf("calc(")===-1?r:vo(r)).replace(/\$\(((\w|-)+)\)/g,Vo+"$1)")}return{value:d,unit:l,unitToken:p,colorMatched:u}}var Mr={"(":")","'":"'","{":"}"};var ao=[":disabled",":active",":focus",":hover"],ji="matches",$o="semantics",go="symbol",bo="width",io="max-"+bo,oo="min-"+bo,no="motion",yo="reduce",So=yo+"d-"+no,so="px",Uo="rem",Yo=["!","*",">","+","~",":","[","@","_"],qo=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Xo=r=>r.split(qo).map((i,o)=>o%3?i:i.replace(/\_/g," ")).join(""),t=class{constructor(i,o,a){this.className=i;this.matching=o;this.css=a;let c=this.constructor,{id:m,unit:d,propName:l,colorful:p}=c,{breakpoints:u,mediaQueries:s,semantics:n,rootSize:f}=a.config,h=a.config.values[m],y=a.relationThemesMap[i],{themeNames:x,colorsThemesMap:g,selectors:R}=a,v=i,S,k,T,A;if(o.origin===$o)T=v.slice(o.value.length),S=n[o.value];else{let I;if(o.origin===ji)if(m==="Group"){let N=0;for(;N<v.length&&!(v[N]==="{"&&v[N-1]!=="\\");N++);k=v.slice(0,N),I=v.slice(N)}else{let N=v.indexOf(":");this.prefix=v.slice(0,N+1),this.prefix.includes("(")?(this.prefix=void 0,I=v):I=v.slice(N+1)}else o.origin===go&&(this.symbol=v[0],I=v.slice(1));A=[];let b="",C=0;(function N(D,w,B=""){let M,F=!1;for(D&&(D===")"&&b.slice(-1)==="$"?M=b.length-1:D==="'"&&(F=!0),b+=I[C++]);C<I.length;C++){let O=I[C];if(O===D){if(b+=O,F){let P=0;for(let _=b.length-2;b[_]==="\\";_--)P++;if(P%2)continue}M!==void 0&&(b=b.slice(0,M)+b.slice(M).replace(/\$\((.*)\)/,"var(--$1)")),w||(F?A.push(b):A.push({value:b}),B="",b="");break}else if(!F&&O in Mr)N(Mr[O],w===void 0?0:w+1,B);else if(O==="|"&&D!=="}"&&(!F||B==="path"))D?b+=" ":(A.push({value:b}),b="");else{if(!D){if(O==="."){if(isNaN(+I[C+1]))break;I[C-1]==="-"&&(b+="0")}else if(O===","){A.push({value:b},","),b="";continue}else if(O==="#"&&(b||A.length&&I[C-1]!=="|")||Yo.includes(O))break;B+=O}b+=O}}})(),b&&A.push({value:b}),T=I.slice(C)}T[0]==="!"&&(this.important=!0,T=T.slice(1));let $=I=>{let b=Xo(I),C=[],N="",D=0;for(let w=0;w<b.length;w++){let B=b[w];if(B==="\\"){N+=B+b[++w];continue}!D&&B===","?(C.push(N),N=""):(N+=B,D&&B===")"?D--:B==="("&&D++)}return N&&C.push(N),C};this.prefixSelectors=k?$(k):[""];let z=T.split("@"),Ti=z[0];if(Ti){this.suffixSelectors=[];let I=$(Ti);for(let b of I){for(let N of R.single)b=b.replace(N[0],N[1]);let C=N=>{for(let D of R.multiple)if(D[0].test(N)){for(let w of D[1])C(N.replace(D[0],w));return}this.suffixSelectors.push(N)};C(b)}for(let b of this.suffixSelectors){this.hasWhere!==!1&&(this.hasWhere=b.includes(":where("));for(let C=0;C<ao.length;C++)if(b.includes(ao[C])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>C)&&(this.prioritySelectorIndex=C);break}}}else this.suffixSelectors=[""];for(let I=1;I<z.length;I++){let b=z[I];if(b)if(x.includes(b))this.themeName=b;else if(b==="rtl"||b==="ltr")this.direction=b;else{let C,N,D=b.indexOf("_");if(D!==-1)C=b.slice(0,D),N=b.slice(D);else{let w=b.indexOf("(");w!==-1&&(C=b.slice(0,w),N=b.slice(w))}if(!C){C="media";let w=[];this.media={token:b,features:{}};let B=b.split("&");for(let M of B)if(M==="all"||M==="print"||M==="screen"||M==="speech")this.media.type=M;else if(M==="\u{1F5A8}")this.media.type="print";else if(M==="landscape"||M==="portrait")w.push("(orientation:"+M+")");else if(M===no||M===So)w.push("(prefers-"+So+":"+(M===no?"no-preference":yo)+")");else if(s&&M in s)w.push(s[M]);else{let F={token:M},O="",P="",_=0;switch(M.startsWith("<=")?(P="<=",O=io):M.startsWith(">=")||u[M]?(P=">=",O=oo):M.startsWith(">")?(P=">",O=oo,_=.02):M.startsWith("<")&&(P="<",O=io,_=-.02),O){case io:case oo:let j=P?M.replace(P,""):M,Ae=u[j];Ae?Object.assign(F,Pi(Ae,so)):Object.assign(F,Pi(j,so)),F.unit===so&&(F.value+=_),this.media.features[O]=F,w.push("("+O+":"+(F.value+F.unit)+")");break}}N="",this.media.type&&(N=this.media.type),w.length&&(N+=(N?" and ":"")+w.join(" and "))}N&&(this.at[C]=(C in this.at?this.at[C]+" and ":"")+N.replace(/\_/g," "))}}this.order===void 0&&(this.order=0);let Fi=(I,b)=>{let C,N,D=(B,M)=>{let F="";this.direction&&(F+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(j=>j+F),P=(j,Ae)=>{let wi=j?"."+j+" ":"",Xi="."+CSS.escape(Ae);return O.map(Di=>wi+Di).reduce((Di,Bo)=>(Di.push(this.suffixSelectors.reduce((uo,Fo)=>(uo.push(Bo+Xi+Fo),uo),[]).join(",")),Di),[]).join(",")},_=P(M,i)+(y?Object.entries(y).filter(([j])=>this.themeName||!p||!M||!j||j===M).map(([j,Ae])=>Ae.reduce((wi,Xi)=>wi+","+P(this.themeName??(p&&M||j),Xi),"")).join(""):"")+"{"+B+"}";for(let j of Object.keys(this.at).sort((Ae,wi)=>wi==="supports"?-1:1))_="@"+j+" "+this.at[j]+"{"+_+"}";return _},w=[];if(A){let B,M;for(let F of A)typeof F=="string"?w.push(F):(B=Pi(F.value,d,p&&g,h,f,this.themeName?[this.themeName,""]:[I]),B.colorMatched!==void 0&&M!==!0&&(M=B.colorMatched),w.push(B.value+B.unit));if(b&&(M===void 0?I:!M))return;if(w.length===1?B?(C=B.value,N=B.unit):C=w[0]:C=w.reduce((F,O,P)=>F+O+(O===","||A[P+1]===","||P===A.length-1?"":" "),""),typeof C!="object"){this.parseValue&&(C=this.parseValue(C)),p&&C==="current"?C="currentColor":h&&C in h&&(C=h[C].toString());let F={unit:N,value:C,important:this.important};if(this.getThemeProps){let O=this.getThemeProps(F,a);for(let P in O)this.natives.push({unit:N,value:C,text:D(Object.entries(O[P]).map(([_,j])=>Wi(_,{important:this.important,unit:"",value:j})).join(";"),P),themeName:P});return}else this.get&&(C=this.get(F))}}else C=S;this.natives.push({unit:N,value:C,text:D(typeof C=="object"?Object.entries(C).map(([B,M])=>Wi(B,{...typeof M=="object"?M:{unit:"",value:M},important:this.important})).join(";"):Wi(l,{unit:N,value:C,important:this.important}),I),themeName:I})};if(this.getThemeProps)Fi(void 0,!1);else if(this.themeName)Fi(this.themeName,!1);else if(p)for(let I of x)Fi(I,!0);else Fi("",!1)}prefix;symbol;token;prefixSelectors;suffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(i,o){if(this.matches&&this.matches.test(i))return{origin:ji};if(this.colorStarts&&(i.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||o.length&&i.match("^"+this.colorStarts+"("+o.join("|")+")")&&i.indexOf("|")===-1))return{origin:ji};if(this.symbol&&i.startsWith(this.symbol))return{origin:go};if(this.propName&&i.startsWith(this.propName+":"))return{origin:ji}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",Uo),e(t,"colorful");typeof window<"u"&&(window.MasterCSSRule=t);var Y=class extends t{};e(Y,"id","FontWeight"),e(Y,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(Y,"propName","font-weight"),e(Y,"unit","");var Ie=class extends t{};e(Ie,"id","FontFamily"),e(Ie,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(Ie,"propName","font-family");var Be=class extends t{};e(Be,"id","FontSize"),e(Be,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Be,"propName","font-size");var Nr=class extends t{get(r){let o=this.prefix[0]==="m"?"margin":"padding",a=o+"-left",c=o+"-right",m=o+"-top",d=o+"-bottom";switch(this.prefix[1]){case"x":return{[a]:r,[c]:r};case"y":return{[m]:r,[d]:r};case"x":return{[a]:r};case"r":return{[c]:r};case"t":return{[m]:r};case"b":return{[d]:r};default:return{[o]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Nr,"id","Spacing"),e(Nr,"matches",/^[pm][xytblr]?:./);var Fe=class extends t{};e(Fe,"id","Width"),e(Fe,"matches",/^w:./),e(Fe,"propName","width");var De=class extends t{};e(De,"id","Height"),e(De,"matches",/^h:./),e(De,"propName","height");var Ee=class extends t{};e(Ee,"id","MinWidth"),e(Ee,"matches",/^min-w:./),e(Ee,"propName","min-width");var We=class extends t{};e(We,"id","MinHeight"),e(We,"matches",/^min-h:./),e(We,"propName","min-height");var q=class extends t{};e(q,"id","LetterSpacing"),e(q,"matches",/^ls:./),e(q,"propName","letter-spacing"),e(q,"unit","em");var Zo="subpixel-antialiased",Co="-webkit-font-smoothing",Ro="-moz-osx-font-smoothing",Pe=class extends t{get(r){let i={};switch(r.value){case Zo:i[Co]=i[Ro]={...r,value:"auto"};break;case"antialiased":i[Co]={...r,value:"antialiased"},i[Ro]={...r,value:"grayscale"};break}return i}};e(Pe,"id","FontSmoothing"),e(Pe,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(Pe,"unit","");var X=class extends t{};e(X,"id","FontStyle"),e(X,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(X,"propName","font-style"),e(X,"unit","deg");var je=class extends t{};e(je,"id","FontVariantNumeric"),e(je,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(je,"propName","font-variant-numeric");var Z=class extends t{};e(Z,"id","LineHeight"),e(Z,"matches",/^lh:./),e(Z,"propName","line-height"),e(Z,"unit","");var Ge=class extends t{};e(Ge,"id","ObjectFit"),e(Ge,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(Ge,"propName","object-fit");var Le=class extends t{};e(Le,"id","ObjectPosition"),e(Le,"matches",/^(object|obj):(top|bottom|right|left|center)/),e(Le,"propName","object-position");var _e=class extends t{};e(_e,"id","TextAlign"),e(_e,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e(_e,"propName","text-align");var J=class extends t{order=-1};e(J,"id","TextDecoration"),e(J,"matches",/^t(ext)?:(underline|line-through|overline)/),e(J,"propName","text-decoration"),e(J,"colorful",!0);var ze=class extends t{};e(ze,"id","TextTransform"),e(ze,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(ze,"propName","text-transform");var He=class extends t{};e(He,"id","VerticalAlign"),e(He,"matches",/^(?:v|vertical):./),e(He,"propName","vertical-align");var Ve=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(Ve,"id","Lines"),e(Ve,"matches",/^lines:./),e(Ve,"unit","");var K=class extends t{};e(K,"id","TransformOrigin"),e(K,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(K,"propName","transform-origin"),e(K,"unit","px");var $e=class extends t{};e($e,"id","TransformStyle"),e($e,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e($e,"propName","transform-style");var Ue=class extends t{};e(Ue,"id","TransformBox"),e(Ue,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Ue,"propName","transform-box");var Q=class extends t{parseValue(r){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,o,a,c)=>{let m,d;switch(o){case"translate":m="rem";break;case"skew":m="deg";break;case"rotate":a==="3d"&&(d=!0),m="deg";break;default:return i}let l=c.split(",");return i.replace(c,l.map((p,u)=>!d||l.length-1===u?Number.isNaN(+p)?p:p/(m==="rem"?this.css.config.rootSize:1)+m:p).join(","))})}};e(Q,"id","Transform"),e(Q,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(Q,"propName","transform"),e(Q,"unit","");var Ye=class extends t{order=-1};e(Ye,"id","Transition"),e(Ye,"symbol","~"),e(Ye,"propName","transition");var ee=class extends t{};e(ee,"id","TransitionDelay"),e(ee,"matches",/^~delay:./),e(ee,"propName","transition-delay"),e(ee,"unit","ms");var te=class extends t{};e(te,"id","TransitionDuration"),e(te,"matches",/^~duration:./),e(te,"propName","transition-duration"),e(te,"unit","ms");var qe=class extends t{};e(qe,"id","TransitionProperty"),e(qe,"matches",/^~property:./),e(qe,"propName","transition-property");var Xe=class extends t{};e(Xe,"id","TransitionTimingFunction"),e(Xe,"matches",/^~easing:./),e(Xe,"propName","transition-timing-function");var Ze=class extends t{};e(Ze,"id","MaxHeight"),e(Ze,"matches",/^max-h:./),e(Ze,"propName","max-height");var Je=class extends t{};e(Je,"id","MaxWidth"),e(Je,"matches",/^max-w:./),e(Je,"propName","max-width");var Ke=class extends t{};e(Ke,"id","Display"),e(Ke,"matches",/^d:./),e(Ke,"propName","display");var Qe=class extends t{};e(Qe,"id","BoxSizing"),e(Qe,"matches",/^box:(content|border)(?!\|)/),e(Qe,"propName","box-sizing");var et=class extends t{};e(et,"id","Opacity"),e(et,"propName","opacity"),e(et,"unit","");var kr=class extends t{};e(kr,"id","Visibility"),e(kr,"propName","visibility");var Tr=class extends t{};e(Tr,"id","Clear"),e(Tr,"propName","clear");var wr=class extends t{};e(wr,"id","Float"),e(wr,"propName","float");var Or=class extends t{};e(Or,"id","Isolation"),e(Or,"propName","isolation");var Ar=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(Ar,"id","Overflow"),e(Ar,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Ir=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(Ir,"id","OverscrollBehavior"),e(Ir,"matches",/^overscroll-behavior(?:-[xy])?:/);var re=class extends t{};e(re,"id","ZIndex"),e(re,"matches",/^z:./),e(re,"propName","z-index"),e(re,"unit","");var ie=class extends t{};e(ie,"id","AnimationDelay"),e(ie,"matches",/^\@delay:./),e(ie,"propName","animation-delay"),e(ie,"unit","ms");var tt=class extends t{};e(tt,"id","AnimationDirection"),e(tt,"matches",/^\@direction:./),e(tt,"propName","animation-direction");var rt=class extends t{};e(rt,"id","AnimationFillMode"),e(rt,"matches",/^\@fill-mode:./),e(rt,"propName","animation-fill-mode");var oe=class extends t{};e(oe,"id","AnimationIterationCount"),e(oe,"matches",/^\@iteration-count:./),e(oe,"propName","animation-interation-count"),e(oe,"unit","");var it=class extends t{};e(it,"id","AnimationName"),e(it,"matches",/^\@name:./),e(it,"propName","animation-name");var ot=class extends t{};e(ot,"id","AnimationPlayState"),e(ot,"matches",/^\@play-state:./),e(ot,"propName","animation-play-state");var st=class extends t{};e(st,"id","AnimationTimingFunction"),e(st,"matches",/^\@easing:./),e(st,"propName","animation-timing-function");var se=class extends t{order=-1};e(se,"id","Animation"),e(se,"symbol","@"),e(se,"propName","animation"),e(se,"unit","");var Gi="border-";function ae(r,i,o=""){o&&(o="-"+o);let a=/^b(order)?-?(.)?/.exec(r)[2],c=Gi+"left"+o,m=Gi+"right"+o,d=Gi+"top"+o,l=Gi+"bottom"+o;switch(a){case"x":return{[c]:i,[m]:i};case"y":return{[d]:i,[l]:i};case"l":return{[c]:i};case"r":return{[m]:i};case"t":return{[d]:i};case"b":return{[l]:i};default:return{["border"+o]:i}}}var ne=class extends t{get(r){return ae(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(ne,"id","BorderColor"),e(ne,"matches",/^border(-(left|right|top|bottom))?-color:./),e(ne,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(ne,"colorful",!0);var Li="border-top-left-radius",_i="border-top-right-radius",zi="border-bottom-left-radius",Hi="border-bottom-right-radius",Mo="border-radius",Jo=[Li,_i,zi,Hi],Br=class extends t{get(r){var o;if(this.prefix){let a="",c=this.prefix.split("-");if(c.length>1)for(let m=1;m<c.length-1;m++)a+=c[m][0];else a=this.prefix.slice(1,-1);switch(a){case"t":return{[Li]:r,[_i]:r};case"tl":case"lt":return{[Li]:r};case"rt":case"tr":return{[_i]:r};case"b":return{[zi]:r,[Hi]:r};case"bl":case"lb":return{[zi]:r};case"br":case"rb":return{[Hi]:r};case"l":return{[Li]:r,[zi]:r};case"r":return{[_i]:r,[Hi]:r};default:return{[Mo]:r}}}let i=(o=this.prefix)==null?void 0:o.slice(0,-1);return{[Jo.includes(i)?i:Mo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Br,"id","BorderRadius"),e(Br,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var Fr=class extends t{get(r){return ae(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Fr,"id","BorderStyle"),e(Fr,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/);var Dr=class extends t{get(r){return ae(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Dr,"id","BorderWidth"),e(Dr,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/);var at=class extends t{get(r){return ae(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(at,"id","Border"),e(at,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(at,"colorful",!0);var nt=class extends t{};e(nt,"id","BackgroundAttachment"),e(nt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(nt,"propName","background-attachment");var Er=class extends t{};e(Er,"id","BackgroundBlendMode"),e(Er,"propName","background-blend-mode");var lt=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(lt,"id","BackgroundClip"),e(lt,"matches",/^(bg|background):text(?!\|)/),e(lt,"propName","background-clip");var H=class extends t{};e(H,"id","BackgroundColor"),e(H,"colorStarts","(bg|background):"),e(H,"propName","background-color"),e(H,"unit",""),e(H,"colorful",!0);var ct=class extends t{};e(ct,"id","BackgroundOrigin"),e(ct,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(ct,"propName","background-origin");var le=class extends t{};e(le,"id","BackgroundPosition"),e(le,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(le,"propName","background-position"),e(le,"unit","px");var dt=class extends t{};e(dt,"id","BackgroundRepeat"),e(dt,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(dt,"propName","background-repeat");var mt=class extends t{};e(mt,"id","BackgroundSize"),e(mt,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(mt,"propName","background-size");var ce=class extends t{};e(ce,"id","BackgroundImage"),e(ce,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(ce,"propName","background-image"),e(ce,"colorful",!0);var de=class extends t{order=-1};e(de,"id","Background"),e(de,"matches",/^bg:./),e(de,"propName","background"),e(de,"colorful",!0);var pt=class extends t{};e(pt,"id","MixBlendMode"),e(pt,"matches",/^blend:./),e(pt,"propName","mix-blend-mode");var Wr=class extends t{};e(Wr,"id","Position"),e(Wr,"propName","position");var Pr=class extends t{get(r){let i=this.prefix.slice(0,-1);switch(i){case"top":case"left":case"right":case"bottom":return{[i]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Pr,"id","Placement"),e(Pr,"matches",/^(top|left|right|bottom|center|middle):./);function Vi(r,i){let o="",a=0;return function c(m,d){let l="",p=d?i(d):"",u=()=>{l&&(o+=!p||Number.isNaN(+l)?l:+l/(p==="rem"?this.css.config.rootSize:1)+p,l="")};for(;a<r.length;a++){let s=r[a];if(s===m&&(m!=="'"||r[a+1]===")")){u(),o+=s;break}else s===","||s===" "?(u(),o+=s):!l&&s==="'"?(o+=s,a++,c(s),l=""):l&&s==="("?(o+=l+s,a++,c(")",l),l=""):l+=s}u()}(),o}var ft=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r){return Vi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""})}};e(ft,"id","BackdropFilter"),e(ft,"matches",/^bd:./),e(ft,"propName","backdrop-filter");var me=class extends t{};e(me,"id","Fill"),e(me,"propName","fill"),e(me,"colorStarts","fill:"),e(me,"colorful",!0);var ut=class extends t{};e(ut,"id","Stroke"),e(ut,"propName","stroke"),e(ut,"colorful",!0);var ht=class extends t{};e(ht,"id","StrokeWidth"),e(ht,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(ht,"propName","stroke-width");var xt=class extends t{parseValue(r){return Vi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""})}};e(xt,"id","Filter"),e(xt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(xt,"propName","filter");var jr=class extends t{};e(jr,"id","Cursor"),e(jr,"propName","cursor");var Gr=class extends t{};e(Gr,"id","PointerEvents"),e(Gr,"propName","pointer-events");var Lr=class extends t{};e(Lr,"id","Resize"),e(Lr,"propName","resize");var _r=class extends t{};e(_r,"id","TouchAction"),e(_r,"propName","touch-action");var zr=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(zr,"id","UserDrag"),e(zr,"propName","user-drag");var Hr=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(Hr,"id","UserSelect"),e(Hr,"propName","user-select");var pe=class extends t{};e(pe,"id","BoxShadow"),e(pe,"matches",/^s(?:hadow)?:./),e(pe,"propName","box-shadow"),e(pe,"colorful",!0);var vt=class extends t{};e(vt,"id","TextShadow"),e(vt,"propName","text-shadow"),e(vt,"colorful",!0);var Vr=class extends t{get(r){return{"font-size":r,"line-height":{...r,value:r.unit==="rem"?r.value+.375+r.unit:"calc("+r.value+r.unit+" + .375rem)",unit:""}}}};e(Vr,"id","TextSize"),e(Vr,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var gt=class extends t{};e(gt,"id","WordBreak"),e(gt,"propName","word-break"),e(gt,"unit","");var fe=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(fe,"id","GridColumns"),e(fe,"matches",/^grid-cols:./),e(fe,"propName","grid-columns"),e(fe,"unit","");var St=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(St,"id","GridRows"),e(St,"propName","grid-rows"),e(St,"unit","");var $r=class extends t{get(r){switch(this.prefix[4]){case"x":return{"column-gap":r};case"y":return{"row-gap":r};default:return{gap:r}}}order=-1};e($r,"id","Gap"),e($r,"matches",/^gap(-x|-y)?:./);var bt=class extends t{};e(bt,"id","WordSpacing"),e(bt,"propName","word-spacing"),e(bt,"unit","em");var yt=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(yt,"id","Variable"),e(yt,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(yt,"unit","");var ue=class extends t{};e(ue,"id","AspectRadio"),e(ue,"matches",/^aspect:./),e(ue,"propName","aspect-ratio"),e(ue,"unit","");var Ct=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Ct,"id","BoxDecorationBreak"),e(Ct,"matches",/^box:(slice|clone)(?!\|)/),e(Ct,"propName","box-decoration-break");var Ur=class extends t{};e(Ur,"id","BreakAfter"),e(Ur,"propName","break-after");var Yr=class extends t{};e(Yr,"id","BreakBefore"),e(Yr,"propName","break-before");var qr=class extends t{};e(qr,"id","BreakInside"),e(qr,"propName","break-inside");var Rt=class extends t{};e(Rt,"id","FlexShrink"),e(Rt,"propName","flex-shrink"),e(Rt,"unit","");var Mt=class extends t{};e(Mt,"id","FlexDirection"),e(Mt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(Mt,"propName","flex-direction");var Nt=class extends t{};e(Nt,"id","FlexGrow"),e(Nt,"propName","flex-grow"),e(Nt,"unit","");var kt=class extends t{};e(kt,"id","FlexWrap"),e(kt,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(kt,"propName","flex-wrap");var Xr=class extends t{};e(Xr,"id","FlexBasis"),e(Xr,"propName","flex-basis");var Tt=class extends t{order=-1};e(Tt,"id","Flex"),e(Tt,"propName","flex"),e(Tt,"unit","");var he=class extends t{};e(he,"id","Order"),e(he,"matches",/^o:./),e(he,"propName","order"),e(he,"unit","");var xe=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(xe,"id","GridColumn"),e(xe,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(xe,"propName","grid-column"),e(xe,"unit","");var wt=class extends t{};e(wt,"id","ColumnSpan"),e(wt,"matches",/^col-span:./),e(wt,"propName","column-span");var ve=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(ve,"id","GridRow"),e(ve,"matches",/^grid-row-span:./),e(ve,"propName","grid-row"),e(ve,"unit","");var V=class extends t{};e(V,"id","Color"),e(V,"colorStarts","(?:color|fg|foreground):"),e(V,"colorful",!0),e(V,"propName","color"),e(V,"unit","");var Ot=class extends t{};e(Ot,"id","AlignContent"),e(Ot,"matches",/^ac:./),e(Ot,"propName","align-content");var At=class extends t{};e(At,"id","AlignItems"),e(At,"matches",/^ai:./),e(At,"propName","align-items");var It=class extends t{};e(It,"id","AlignSelf"),e(It,"matches",/^as:./),e(It,"propName","align-self");var Bt=class extends t{};e(Bt,"id","GridAutoColumns"),e(Bt,"matches",/^grid-auto-cols:./),e(Bt,"propName","grid-auto-columns");var Ft=class extends t{};e(Ft,"id","GridAutoFlow"),e(Ft,"matches",/^grid-flow:./),e(Ft,"propName","grid-auto-flow");var Zr=class extends t{};e(Zr,"id","GridAutoRows"),e(Zr,"propName","grid-auto-rows");var Dt=class extends t{};e(Dt,"id","JustifyContent"),e(Dt,"matches",/^jc:./),e(Dt,"propName","justify-content");var Et=class extends t{};e(Et,"id","JustifyItems"),e(Et,"matches",/^ji:./),e(Et,"propName","justify-items");var Wt=class extends t{};e(Wt,"id","JustifySelf"),e(Wt,"matches",/^js:./),e(Wt,"propName","justify-self");var Jr=class extends t{order=-1};e(Jr,"id","PlaceContent"),e(Jr,"propName","place-content");var Kr=class extends t{order=-1};e(Kr,"id","PlaceItems"),e(Kr,"propName","place-items");var Qr=class extends t{order=-1};e(Qr,"id","PlaceSelf"),e(Qr,"propName","place-self");var ei=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ei,"id","Padding"),e(ei,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var ti=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(ti,"id","Margin"),e(ti,"matches",/^margin(-(left|right|top|bottom))?:./);var Pt=class extends t{};e(Pt,"id","TextOverflow"),e(Pt,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(Pt,"propName","text-overflow");var jt=class extends t{};e(jt,"id","ListStylePosition"),e(jt,"matches",/^list-style:(inside|outside)(?!\|)/),e(jt,"propName","list-style-position");var Gt=class extends t{};e(Gt,"id","ListStyleType"),e(Gt,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Gt,"propName","list-style-type");var ri=class extends t{order=-1};e(ri,"id","ListStyle"),e(ri,"propName","list-style");var ge=class extends t{};e(ge,"id","TextDecorationColor"),e(ge,"propName","text-decoration-color"),e(ge,"colorStarts","text-decoration:"),e(ge,"colorful",!0);var Lt=class extends t{};e(Lt,"id","TextDecorationStyle"),e(Lt,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e(Lt,"propName","text-decoration-style");var Se=class extends t{};e(Se,"id","TextDecorationThickness"),e(Se,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Se,"propName","text-decoration-thickness"),e(Se,"unit","em");var ii=class extends t{};e(ii,"id","TextIndent"),e(ii,"propName","text-indent");var oi=class extends t{};e(oi,"id","Content"),e(oi,"propName","content");var be=class extends t{};e(be,"id","OutlineColor"),e(be,"propName","outline-color"),e(be,"colorStarts","outline:"),e(be,"colorful",!0);var si=class extends t{};e(si,"id","OutlineOffset"),e(si,"propName","outline-offset");var _t=class extends t{};e(_t,"id","OutlineStyle"),e(_t,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e(_t,"propName","outline-style");var zt=class extends t{};e(zt,"id","OutlineWidth"),e(zt,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(zt,"propName","outline-width");var Ht=class extends t{order=-1};e(Ht,"id","Outline"),e(Ht,"propName","outline"),e(Ht,"colorful",!0);var Vt=class extends t{};e(Vt,"id","BorderCollapse"),e(Vt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(Vt,"propName","border-collapse");var ai=class extends t{};e(ai,"id","BorderSpacing"),e(ai,"propName","border-spacing");var ni=class extends t{};e(ni,"id","TableLayout"),e(ni,"propName","table-layout");var ye=class extends t{};e(ye,"id","AccentColor"),e(ye,"propName","accent-color"),e(ye,"colorStarts","accent:"),e(ye,"colorful",!0);var li=class extends t{};e(li,"id","Appearance"),e(li,"propName","appearance");var Ce=class extends t{};e(Ce,"id","CaretColor"),e(Ce,"propName","caret-color"),e(Ce,"colorStarts","caret:"),e(Ce,"colorful",!0);var ci=class extends t{};e(ci,"id","ScrollBehavior"),e(ci,"propName","scroll-behavior");var di=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(di,"id","ScrollMargin"),e(di,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var mi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(mi,"id","ScrollPadding"),e(mi,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var $t=class extends t{};e($t,"id","ScrollSnapAlign"),e($t,"matches",/^scroll-snap:(start|end|center)/),e($t,"propName","scroll-snap-align");var Ut=class extends t{};e(Ut,"id","ScrollSnapStop"),e(Ut,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Ut,"propName","scroll-snap-stop");var Yt=class extends t{};e(Yt,"id","ScrollSnapType"),e(Yt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Yt,"propName","scroll-snap-type");var pi=class extends t{};e(pi,"id","WillChange"),e(pi,"propName","will-change");var fi=class extends t{};e(fi,"id","TextUnderlineOffset"),e(fi,"propName","text-underline-offset");var qt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(qt,"id","Inset"),e(qt,"matches",/^(?:top|bottom|left|right):./),e(qt,"propName","inset");var Re=class extends t{order=-1};e(Re,"id","Columns"),e(Re,"matches",/^(columns|cols):./),e(Re,"propName","columns"),e(Re,"unit","");var Xt=class extends t{};e(Xt,"id","WhiteSpace"),e(Xt,"propName","white-space"),e(Xt,"unit","");var Zt=class extends t{};e(Zt,"id","TextOrientation"),e(Zt,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(Zt,"propName","text-orientation");var Jt=class extends t{};e(Jt,"id","WritingMode"),e(Jt,"matches",/^writing:./),e(Jt,"propName","writing-mode");var ui=class extends t{};e(ui,"id","Contain"),e(ui,"propName","contain");var Me=class extends t{};e(Me,"id","AnimationDuration"),e(Me,"matches",/^\@duration:./),e(Me,"propName","animation-duration"),e(Me,"unit","ms");var Kt=class extends t{};e(Kt,"id","TextRendering"),e(Kt,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(Kt,"propName","text-rendering");var hi=class extends t{};e(hi,"id","Direction"),e(hi,"propName","direction");var Qt=class extends t{};e(Qt,"id","TextDecorationLine"),e(Qt,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(Qt,"propName","text-decoration-line");var Ne=class extends t{};e(Ne,"id","GridColumnStart"),e(Ne,"matches",/^grid-col-start:./),e(Ne,"propName","grid-column-start"),e(Ne,"unit","");var er=class extends t{};e(er,"id","ListStyleImage"),e(er,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(er,"propName","list-style-image");var tr=class extends t{};e(tr,"id","ShapeOutside"),e(tr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(tr,"propName","shape-outside");var rr=class extends t{};e(rr,"id","ShapeMargin"),e(rr,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(rr,"propName","shape-margin");var ir=class extends t{};e(ir,"id","ShapeImageThreshold"),e(ir,"propName","shape-image-threshold"),e(ir,"unit","");var or=class extends t{};e(or,"id","ClipPath"),e(or,"matches",/^clip:./),e(or,"propName","clip-path");var xi=class extends t{order=-1};e(xi,"id","Grid"),e(xi,"propName","grid");var ke=class extends t{order=-1};e(ke,"id","Font"),e(ke,"matches",/^f:./),e(ke,"propName","font"),e(ke,"unit","");var vi=class extends t{};e(vi,"id","Quotes"),e(vi,"propName","quotes");var gi=class extends t{order=-1};e(gi,"id","GridTemplate"),e(gi,"propName","grid-template");var sr=class extends t{};e(sr,"id","GridRowStart"),e(sr,"propName","grid-row-start"),e(sr,"unit","");var Si=class extends t{};e(Si,"id","GridTemplateAreas"),e(Si,"propName","grid-template-areas");var ar=class extends t{};e(ar,"id","GridTemplateColumns"),e(ar,"matches",/^grid-template-cols:./),e(ar,"propName","grid-template-columns");var bi=class extends t{};e(bi,"id","GridTemplateRows"),e(bi,"propName","grid-template-rows");var nr=class extends t{order=-1};e(nr,"id","GridArea"),e(nr,"propName","grid-area"),e(nr,"unit","");var Te=class extends t{};e(Te,"id","GridColumnEnd"),e(Te,"matches",/^grid-col-end:./),e(Te,"propName","grid-column-end"),e(Te,"unit","");var lr=class extends t{};e(lr,"id","GridRowEnd"),e(lr,"propName","grid-row-end"),e(lr,"unit","");var yi=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(yi,"id","MaskImage"),e(yi,"propName","mask-image");var we=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(we,"id","TextFillColor"),e(we,"matches",/^text-fill-color:./),e(we,"colorStarts","(text-fill|text|t):"),e(we,"colorful",!0);var Ci=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(Ci,"id","TextStroke"),e(Ci,"matches",/^text-stroke:./);var Ri=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(Ri,"id","TextStrokeWidth"),e(Ri,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var Oe=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Oe,"id","TextStrokeColor"),e(Oe,"matches",/^text-stroke-color:./),e(Oe,"colorStarts","text-stroke:"),e(Oe,"colorful",!0);var Mi=class extends t{};e(Mi,"id","StrokeDasharray"),e(Mi,"propName","stroke-dasharray");var Ni=class extends t{};e(Ni,"id","StrokeDashoffset"),e(Ni,"propName","stroke-dash-offset");var cr=class extends t{};e(cr,"id","X"),e(cr,"propName","x"),e(cr,"unit","");var dr=class extends t{};e(dr,"id","Y"),e(dr,"propName","y"),e(dr,"unit","");var mr=class extends t{};e(mr,"id","Cx"),e(mr,"propName","cx"),e(mr,"unit","");var pr=class extends t{};e(pr,"id","Cy"),e(pr,"propName","cy"),e(pr,"unit","");var fr=class extends t{};e(fr,"id","Rx"),e(fr,"propName","rx"),e(fr,"unit","");var ur=class extends t{};e(ur,"id","Ry"),e(ur,"propName","ry"),e(ur,"unit","");var ki=class extends t{};e(ki,"id","BorderImageOutset"),e(ki,"propName","border-image-outset");var hr=class extends t{};e(hr,"id","BorderImageRepeat"),e(hr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(hr,"propName","border-image-repeat");var xr=class extends t{};e(xr,"id","BorderImageSlice"),e(xr,"propName","border-image-slice"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","BorderImageSource"),e(vr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(vr,"propName","border-image-source");var gr=class extends t{};e(gr,"id","BorderImageWidth"),e(gr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(gr,"propName","border-image-width");var Sr=class extends t{};e(Sr,"id","BorderImage"),e(Sr,"propName","border-image"),e(Sr,"unit","");var Ko=/\{(.*)\}/,br=class extends t{getThemeProps(r,i){let o={},a=(u,s)=>{let n=s.indexOf(":");if(n!==-1){u in o||(o[u]={});let f=o[u],h=s.slice(0,n);h in f||(f[h]=s.slice(n+1))}},c=u=>{let s=(n,f)=>{let h=f.slice(CSS.escape(u.className).length).match(Ko)[1].split(";");for(let y of h)a(n,y)};if(this.themeName){let n=u.natives.find(f=>f.themeName===this.themeName)??u.natives.find(f=>!f.themeName);n&&s(this.themeName,n.text)}else for(let n of u.natives)s(n.themeName,n.text)},m=[],d="",l=()=>{d&&(m.push(d),d="")},p=1;(function u(s){for(;p<r.value.length;p++){let n=r.value[p];if(!s){if(n===";"){l();continue}if(n==="}")break}if(d+=n,s===n){if(s==="'"){let f=0;for(let h=d.length-2;d[h]==="\\";h--)f++;if(f%2)continue}break}else n in Mr&&s!=="'"&&(p++,u(Mr[n]))}})(void 0),l();for(let u of m){let s=i.findAndNew(u);if(Array.isArray(s))for(let n of s)c(n);else s?c(s):a(this.themeName??"",u)}return o}};e(br,"id","Group"),e(br,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(br,"unit","");var yr=class extends t{};e(yr,"id","CounterIncrement"),e(yr,"propName","counter-increment"),e(yr,"unit","");var lo=[br,yt,Be,Y,Ie,Pe,X,je,ke,V,Nr,ti,ei,Xr,kt,Nt,Rt,Mt,Tt,Ke,Fe,De,Ee,We,ui,oi,yr,q,Z,Ge,Le,_e,ge,Lt,Se,Qt,J,fi,Pt,Zt,ze,Kt,ii,He,Re,Xt,qt,Ve,Ze,Je,Qe,et,kr,Tr,wr,Or,Ar,Ir,re,Wr,Pr,jr,Gr,Lr,_r,gt,bt,zr,Hr,vt,Vr,we,Ri,Oe,Ci,pe,ni,Ue,$e,K,Q,qe,Xe,te,ee,Ye,ie,tt,Me,rt,oe,it,ot,st,se,ne,Br,Fr,Dr,Vt,ai,ki,hr,xr,vr,gr,Sr,at,nt,Er,lt,H,ct,le,dt,mt,ce,de,pt,ft,xt,me,Mi,Ni,ht,ut,cr,dr,mr,pr,fr,ur,Ne,Te,xe,fe,sr,lr,ve,St,Bt,Ft,Zr,Si,ar,bi,gi,nr,xi,$r,he,qr,Yr,Ur,Ct,ue,wt,Ot,At,It,Dt,Et,Wt,Jr,Kr,Qr,jt,Gt,er,ri,be,si,_t,zt,Ht,ye,li,Ce,ci,di,mi,$t,Ut,Yt,pi,Jt,hi,tr,rr,ir,or,vi,yi];var Cr={colors:Ji,breakpoints:Rr,semantics:eo,values:ro,selectors:Qi,themes:to,Rules:lo,rootSize:16};function co(r){if(typeof window<"u"){let i=new W(r,document.head);return W.root=i,i.observe(document.documentElement),i}else return new W(r)}var Qo=[",",".","#","[","!","*",">","+","~",":","@"],No=typeof document<"u",$i;No&&($i=document.createElement("style"),$i.title="master");var L="max-width",G="min-width",es="attributes",ko=typeof window<"u",ts=ko?window.MutationObserver:Object,Ui=class extends ts{constructor(o=Cr,a){var c,m;super(d=>{let l={},p=[],u=[],s=[],n=(x,g)=>{g?x.classList.forEach(h):x.classList.forEach(f);let R=x.children;for(let v=0;v<R.length;v++){let S=R[v];S.classList&&(u.push(S),n(S,g))}},f=x=>{x in l?l[x]++:l[x]=1},h=x=>{x in l?l[x]--:l[x]=-1},y=(x,g)=>{for(let R=0;R<x.length;R++){let v=x[R];v.classList&&!u.includes(v)&&!s.includes(v)&&(v.isConnected!==g?(u.push(v),n(v,g)):s.push(v))}};for(let x=0;x<d.length;x++){let g=d[x],{addedNodes:R,removedNodes:v,type:S,target:k,oldValue:T}=g;if(S===es){if(k.className===T||p.find(A=>A.target===k))continue;p.push(g)}else y(R,!1),y(v,!0)}if(!(!p.length&&!Object.keys(l).length)){for(let{oldValue:x,target:g}of p){let R=u.includes(g),v=g.classList,S=x?x.split(" "):[];if(R){if(g.isConnected)continue;for(let k of S)v.contains(k)||h(k)}else if(g.isConnected){v.forEach(k=>{S.includes(k)||f(k)});for(let k of S)v.contains(k)||h(k)}else for(let k of S)h(k)}for(let x in l){let g=l[x],R=(this.countOfName[x]||0)+g;R===0?(delete this.countOfName[x],this.delete(x)):(x in this.countOfName||this.findAndInsert(x),this.countOfName[x]=R)}}});this.config=o;this.container=a;if(this.cache(),!!No){if(a){let d;for(let l of((c=a.shadowRoot)==null?void 0:c.styleSheets)||document.styleSheets)l.title==="master"&&(d=l.ownerNode);if(d){this.style=d;for(let l=0;l<this.style.sheet.cssRules.length;l++){let p=s=>{if(s.selectorText){let f=s.selectorText.split(", ")[0].split(" ");for(let h=0;h<f.length;h++){let y=f[h];if(y[0]==="."){let x=y.slice(1),g="";for(let R=0;R<x.length;R++){let v=x[R],S=x[R+1];if(v==="\\"){if(R++,S!=="\\"){g+=S;continue}}else if(Qo.includes(v))break;g+=v}if(!(g in this.ruleOfName)&&!(g in this.classes)){let R=this.findAndNew(g);if(R)return R}}}}else if(s.cssRules)for(let n=0;n<s.cssRules.length;n++){let f=p(s.cssRules[n]);if(f)return f}},u=p(this.style.sheet.cssRules[l]);if(u){this.rules.push(u),this.ruleOfName[u.className]=u;for(let s=0;s<u.natives.length;s++)u.natives[s].cssRule=this.style.sheet.cssRules[l+s];l+=u.natives.length-1}}}else this.style=$i.cloneNode(),(m=this.container)==null||m.prepend(this.style)}Ui.instances.push(this)}}static refresh(o){for(let a of this.instances)a.refresh(o)}style;rules=[];ruleOfName={};countOfName={};cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={single:[],multiple:[]};let{semantics:o,classes:a,selectors:c,themes:m,colors:d}=this.config;function l(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}if(o)for(let s in o)this.semantics.push([new RegExp("^"+l(s)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),s]);if(c)for(let s of Object.entries(c)){let n=typeof s[1]=="string";this.selectors[n?"single":"multiple"].push([new RegExp(l(s[0])+"(?![a-z-])",n?"g":""),s[1]])}let p=(s,n)=>{if(!!n){for(let f in n){let h=n[f],y=Array.isArray(h)?h:h.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");f in this.classes||(this.classes[f]=[]);let x=this.classes[f];for(let g of y)g in this.relationThemesMap?s in this.relationThemesMap[g]?this.relationThemesMap[g][s].push(f):this.relationThemesMap[g][s]=[f]:this.relationThemesMap[g]={[s]:[f]},x.includes(g)||x.push(g)}for(let f in this.relationThemesMap){this.relations[f]=[];for(let h of Object.values(this.relationThemesMap[f]))for(let y of h)this.relations[f].includes(y)||this.relations[f].push(y)}}},u=(s,n)=>{if(!!n)for(let f in n){let h=n[f];if(typeof h=="string"&&(h={"":h}),f in this.colorsThemesMap){let y=this.colorsThemesMap[f];for(let x in h){let g=h[x];x in y?y[x][s]=g:y[x]={[s]:g}}}else this.colorNames.push(f),this.colorsThemesMap[f]=Object.entries(h).reduce((y,[x,g])=>(y[x]={[s]:g},y),{})}};if(p("",a),u("",d),m)if(Array.isArray(m))this.themeNames.push(...m);else for(let s in m){let n=m[s];p(s,n.classes),u(s,n.colors),this.themeNames.push(s)}}semantics;classes;colorsThemesMap;colorNames;themeNames;relationThemesMap;relations;selectors;observe(o,a={subtree:!0,childList:!0}){return a.subtree&&o.querySelectorAll("[class]").forEach(c=>{c.classList.forEach(m=>{m in this.countOfName?this.countOfName[m]++:(this.countOfName[m]=1,this.findAndInsert(m))})}),super.observe(o,{...a,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this}disconnect(){super.disconnect(),this.ruleOfName={},this.countOfName={},this.rules.length=0;let o=this.style.sheet;if(o)for(let a=o.cssRules.length-1;a>=0;a--)o.deleteRule(a)}findAndNew(o){let a=c=>{if(c in this.ruleOfName)return this.ruleOfName[c];for(let m of this.config.Rules){let d=m.match(c,this.colorNames);if(d)return new m(c,d,this)}for(let m of this.semantics)if(c.match(m[0]))return new t(c,{origin:"semantics",value:m[1]},this)};return o in this.classes?this.classes[o].map(a).filter(c=>c):a(o)}refresh(o){if(this.config=o,this.cache(),!this.style)return;let a=$i.cloneNode();this.style.replaceWith(a),this.style=style,this.rules.length=0,this.ruleOfName={};for(let c in this.countOfName)this.findAndInsert(c)}destroy(){let o=Ui.instances;this.disconnect(),o.splice(o.indexOf(this),1),this.style.remove()}insert(o){if(this.ruleOfName[o.className])return;let a,c=this.rules.length-1,m=o.media,d=o.order,l=o.prioritySelectorIndex,p=o.hasWhere,u=(s,n,f,h)=>{let y,x=0,g;n&&(x=s.findIndex(n)),f&&(g=s.findIndex(f)),x===-1&&(x=s.length),(g===void 0||g===-1)&&(g=s.length),y=s.slice(x,g);for(let R=0;R<y.length;R++){let v=y[R];if(!(v.prioritySelectorIndex===-1||h&&h(v))&&(v.prioritySelectorIndex<l||v.prioritySelectorIndex===l&&(p&&!v.hasWhere||v.order>=d)))return x+R}return x+y.length};if(m){let s=this.rules.findIndex(n=>n.media);if(s!==-1){let n=m.features[L],f=m.features[G];if(n&&f){let h=n.value-f.value;for(let y=c;y>=s;y--){a=y;let x=this.rules[y],g=x.media,R=g.features[L],v=g.features[G];if(!R||!v){a++;break}let S=R.value-v.value;if(S===h){if(p!==x.hasWhere)continue;if(l!==-1){let k=[this.rules[y]];for(let T=y-1;T>=s;T--){let A=this.rules[T];if(A.hasWhere!==p)break;let $=A.media,z=$.features[L],Ti=$.features[G];if(!z||!Ti||z.value-Ti.value!==S)break;k.unshift(this.rules[T])}a=u(this.rules,T=>T.media&&T.prioritySelectorIndex!==-1&&T.media.features[G]&&T.media.features[L])}break}else if(S>h)break}}else if(f)for(let h=s;h<=c;h++){a=h;let y=this.rules[h],x=y.media,g=x.features[L],R=x.features[G];if(g){if(R)break;continue}let v=R==null?void 0:R.value;if(v===f.value){if(!p&&y.hasWhere){a++;continue}if(l!==-1)a=u(this.rules,S=>S.media,S=>S.media&&S.prioritySelectorIndex!==-1&&S.media.features[G]&&S.media.features[L],S=>!S.media.features[G]&&!S.media.features[L]);else for(let S=h;S<=c;S++){let k=this.rules[S],T=k.media,A=T.features[G];if(!T.features[L]){if(k.hasWhere!==p||A.value!==v||k.order>=d)break;a=S+1}}break}else{if(v>f.value)break;a++}}else if(n)for(let h=c;h>=s;h--){a=h;let y=this.rules[h],x=y.media,g=x.features[L];if(x.features[G])continue;let v=g==null?void 0:g.value;if(!v||v>n.value){a++;break}else if(v===n.value){if(p&&!y.hasWhere)continue;if(l!==-1)a=u(this.rules,S=>S.media,S=>S.media&&S.prioritySelectorIndex!==-1&&S.media.features[G]&&S.media.features[L],S=>!S.media.features[G]&&!S.media.features[L]);else{let S=[this.rules[h]];for(let k=h-1;k>=s;k--){let T=this.rules[k],A=T.media,$=A.features[G],z=A.features[L];if(!$&&(!z||z.value!==v||T.hasWhere!==p))break;S.unshift(T)}for(let k=0;k<S.length;k++){let T=S[k];if(!T.media.features[G]){if(T.order>=d)break;a=h-S.length+2+k}}}break}}}if(a===void 0)if(s===-1)a=c+1;else if(l!==-1)a=s+u(this.rules.slice(s),void 0,n=>n.media.features[L]||n.media.features[G]);else if(p){let n=s;for(;n<this.rules.length;n++){let f=this.rules[n];if(f.prioritySelectorIndex!==-1||!f.hasWhere||f.order>=d){a=n;break}}a===void 0&&(a=n)}else for(let n=s;n<=c;n++){a=n;let f=this.rules[n],h=f.media;if(f.prioritySelectorIndex!==-1||h.features[L]||h.features[G])break;if(f.hasWhere)a++;else if(f.order>=d)break}}else if(l===-1)if(p)a=this.rules.findIndex(s=>!s.hasWhere||s.media||s.prioritySelectorIndex!==-1||s.order>=d),a===-1&&(a=c+1);else{let s=0;for(;s<this.rules.length;s++){let n=this.rules[s];if(n.media||!n.hasWhere&&(n.order>=d||n.prioritySelectorIndex!==-1)){a=s;break}}a===void 0&&(a=s)}else a=u(this.rules,void 0,s=>s.media);try{if(this.rules.splice(a,0,o),this.ruleOfName[o.className]=o,this.style){let s=this.style.sheet,n=0,f=this.rules[a-1];if(f){let h=f.natives[f.natives.length-1].cssRule;for(let y=0;y<s.cssRules.length;y++)if(s.cssRules[y]===h){n=y+1;break}}for(let h of o.natives)s.insertRule(h.text,n),h.cssRule=s.cssRules[n++]}}catch(s){console.error(s)}}delete(o){let a=this.style.sheet,c=m=>{let d=this.ruleOfName[m];if(!d||m in this.relations&&this.relations[m].some(p=>p in this.countOfName))return;let l=d.natives[0];for(let p=0;p<a.cssRules.length;p++)if(a.cssRules[p]===l.cssRule){for(let s=0;s<d.natives.length;s++)a.deleteRule(p);this.rules.splice(this.rules.indexOf(d),1),delete this.ruleOfName[d.className];break}};if(o in this.classes)for(let m of this.classes[o])m in this.countOfName||c(m);else c(o)}findAndInsert(o){let a=this.findAndNew(o);if(Array.isArray(a))for(let c of a)this.insert(c);else a&&this.insert(a)}},W=Ui;e(W,"init",co),e(W,"defaultConfig",Cr),e(W,"instances",[]),e(W,"root");ko&&(window.MasterCSS=W);var QC=Zi(Yi());function rs(r,i=new W){if(!!(r!=null&&r.length)){for(let o of r)o in i.countOfName||(i.findAndInsert(o),i.countOfName[o]=1);return i.rules.map(o=>o.natives.reduce((a,c)=>a+c.text,"")).join("")}}var rR=Zi(Yi());function po(r,i=new W){if(!r)return;let o=/\sclass="([^"]*)"/gm,a;for(;a=o.exec(r);){let c=a[1].replace(/\n/g,"").split(" ").filter(m=>m);for(let m of c)m in i.countOfName||(i.findAndInsert(m),i.countOfName[m]=1)}return i.rules.map(c=>c.natives.reduce((m,d)=>m+d.text,"")).join("")}var sR=Zi(Yi());function is(r,i=new W){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${po(r,i)}</style>`)}function wo(r,i){return Array.isArray(r)&&Array.isArray(i)?r.concat(i):i}function qi(r){return Object.prototype.toString.call(r).slice(8,-1)}function Bi(r){return qi(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function fo(r){return qi(r)==="Symbol"}function Oo(r,i,o,a){let c={}.propertyIsEnumerable.call(a,i)?"enumerable":"nonenumerable";c==="enumerable"&&(r[i]=o),c==="nonenumerable"&&Object.defineProperty(r,i,{value:o,enumerable:!1,writable:!0,configurable:!0})}function Ao(r,i,o){if(!Bi(i))return i;let a={};if(Bi(r)){let l=Object.getOwnPropertyNames(r),p=Object.getOwnPropertySymbols(r);a=[...l,...p].reduce((u,s)=>{let n=r[s];return(!fo(s)&&!Object.getOwnPropertyNames(i).includes(s)||fo(s)&&!Object.getOwnPropertySymbols(i).includes(s))&&Oo(u,s,n,r),u},{})}let c=Object.getOwnPropertyNames(i),m=Object.getOwnPropertySymbols(i);return[...c,...m].reduce((l,p)=>{let u=i[p],s=Bi(r)?r[p]:void 0;s!==void 0&&Bi(u)&&(u=Ao(s,u,o));let n=o?o(s,u,p):u;return Oo(l,p,n,i),l},a)}function Io(r,...i){return i.reduce((o,a)=>Ao(o,a,wo),r)}function os(...r){return r.length?Io(Cr,...r):Cr}0&&(module.exports={DefaultRules,MasterCSSRule,PRIORITY_SELECTORS,configure,defaultBreakpoints,defaultColors,defaultConfig,defaultRootSize,defaultSelectors,defaultSemantics,defaultThemes,defaultValues,fillColorScale,init,render,renderFromHTML,renderIntoHTML});
2
2
  /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
3
3
  //# sourceMappingURL=index.js.map