@master/css 2.0.0-beta.80 → 2.0.0-beta.82

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.
@@ -192,5 +192,8 @@ import BorderImage from '../rules/border-image';
192
192
  import Group from '../rules/group';
193
193
  import CounterIncrement from '../rules/counter-increment';
194
194
  import counterReset from '../rules/counter-reset';
195
- declare const Rules: (typeof FontWeight | typeof FontFamily | typeof FontSize | typeof Spacing | typeof Width | typeof Height | typeof MinWidth | typeof MinHeight | typeof LetterSpacing | typeof FontSmoothing | typeof FontStyle | typeof FontVariantNumeric | typeof FontFeatureSettings | typeof LineHeight | typeof ObjectFit | typeof ObjectPosition | typeof TextAlign | typeof TextDecoration | typeof TextTransform | typeof VerticalAlign | typeof Lines | typeof TransformOrigin | typeof TransformStyle | typeof TransformBox | typeof Transform | typeof Transition | typeof TransitionDelay | typeof TransitionDuration | typeof TransitionProperty | typeof TransitionTimingFunction | typeof MaxHeight | typeof MaxWidth | typeof Display | typeof BoxSizing | typeof Opacity | typeof Visibility | typeof Clear | typeof Float | typeof Isolation | typeof Overflow | typeof OverscrollBehavior | typeof ZIndex | typeof AnimationDelay | typeof AnimationDirection | typeof AnimationFillMode | typeof AnimationIterationCount | typeof AnimationName | typeof AnimationPlayState | typeof AnimationTimingFunction | typeof Animation | typeof BorderColor | typeof BorderRadius | typeof BorderStyle | typeof BorderWidth | typeof Border | typeof BackgroundAttachment | typeof BackgroundBlendMode | typeof BackgroundClip | typeof BackgroundColor | typeof BackgroundOrigin | typeof BackgroundPosition | typeof BackgroundRepeat | typeof BackgroundSize | typeof BackgroundImage | typeof Background | typeof MixBlendMode | typeof Position | typeof BackdropFilter | typeof Fill | typeof Stroke | typeof StrokeWidth | typeof Filter | typeof Cursor | typeof PointerEvents | typeof Resize | typeof TouchAction | typeof UserDrag | typeof UserSelect | typeof BoxShadow | typeof TextShadow | typeof TextSize | typeof WordBreak | typeof GridColumns | typeof GridRows | typeof Gap | typeof WordSpacing | typeof Variable | typeof AspectRatio | typeof BoxDecorationBreak | typeof BreakAfter | typeof BreakBefore | typeof BreakInside | typeof FlexShrink | typeof FlexDirection | typeof FlexGrow | typeof FlexWrap | typeof FlexBasis | typeof Flex | typeof Order | typeof GridColumn | typeof ColumnSpan | typeof GridRow | typeof Color | typeof AlignContent | typeof AlignItems | typeof AlignSelf | typeof GridAutoColumns | typeof GridAutoFlow | typeof GridAutoRows | typeof JustifyContent | typeof JustifyItems | typeof JustifySelf | typeof PlaceContent | typeof PlaceItems | typeof PlaceSelf | typeof Padding | typeof Margin | typeof TextOverflow | typeof ListStylePosition | typeof ListStyleType | typeof ListStyle | typeof TextDecorationColor | typeof TextDecorationStyle | typeof TextDecorationThickness | typeof TextIndent | typeof Content | typeof OutlineColor | typeof OutlineOffset | typeof OutlineStyle | typeof OutlineWidth | typeof Outline | typeof BorderCollapse | typeof BorderSpacing | typeof TableLayout | typeof AccentColor | typeof Appearance | typeof CaretColor | typeof ScrollBehavior | typeof ScrollMargin | typeof ScrollPadding | typeof ScrollSnapAlign | typeof ScrollSnapStop | typeof ScrollSnapType | typeof WillChange | typeof TextUnderlineOffset | typeof Inset | typeof Columns | typeof WhiteSpace | typeof TextOrientation | typeof WritingMode | typeof Contain | typeof AnimationDuration | typeof TextRendering | typeof Direction | typeof TextDecorationLine | typeof GridColumnStart | typeof ListStyleImage | typeof ShapeOutside | typeof ShapeMargin | typeof ShapeImageThreshold | typeof ClipPath | typeof Grid | typeof Font | typeof Quotes | typeof GridTemplate | typeof GridRowStart | typeof GridTemplateAreas | typeof GridTemplateColumns | typeof GridTemplateRows | typeof GridArea | typeof GridColumnEnd | typeof GridRowEnd | typeof MaskImage | typeof TextFillColor | typeof TextStroke | typeof TextStrokeWidth | typeof TextStrokeColor | typeof StrokeDasharray | typeof StrokeDashoffset | typeof X | typeof Y | typeof Cx | typeof Cy | typeof Rx | typeof Ry | typeof BorderImageOutset | typeof BorderImageRepeat | typeof BorderImageSlice | typeof BorderImageSource | typeof BorderImageWidth | typeof BorderImage | typeof Group | typeof CounterIncrement | typeof counterReset)[];
195
+ import WH from '../rules/wh';
196
+ import MinWH from '../rules/min-wh';
197
+ import MaxWH from '../rules/max-wh';
198
+ declare const Rules: (typeof FontWeight | typeof FontFamily | typeof FontSize | typeof Spacing | typeof Width | typeof Height | typeof MinWidth | typeof MinHeight | typeof LetterSpacing | typeof FontSmoothing | typeof FontStyle | typeof FontVariantNumeric | typeof FontFeatureSettings | typeof LineHeight | typeof ObjectFit | typeof ObjectPosition | typeof TextAlign | typeof TextDecoration | typeof TextTransform | typeof VerticalAlign | typeof Lines | typeof TransformOrigin | typeof TransformStyle | typeof TransformBox | typeof Transform | typeof Transition | typeof TransitionDelay | typeof TransitionDuration | typeof TransitionProperty | typeof TransitionTimingFunction | typeof MaxHeight | typeof MaxWidth | typeof Display | typeof BoxSizing | typeof Opacity | typeof Visibility | typeof Clear | typeof Float | typeof Isolation | typeof Overflow | typeof OverscrollBehavior | typeof ZIndex | typeof AnimationDelay | typeof AnimationDirection | typeof AnimationFillMode | typeof AnimationIterationCount | typeof AnimationName | typeof AnimationPlayState | typeof AnimationTimingFunction | typeof Animation | typeof BorderColor | typeof BorderRadius | typeof BorderStyle | typeof BorderWidth | typeof Border | typeof BackgroundAttachment | typeof BackgroundBlendMode | typeof BackgroundClip | typeof BackgroundColor | typeof BackgroundOrigin | typeof BackgroundPosition | typeof BackgroundRepeat | typeof BackgroundSize | typeof BackgroundImage | typeof Background | typeof MixBlendMode | typeof Position | typeof BackdropFilter | typeof Fill | typeof Stroke | typeof StrokeWidth | typeof Filter | typeof Cursor | typeof PointerEvents | typeof Resize | typeof TouchAction | typeof UserDrag | typeof UserSelect | typeof BoxShadow | typeof TextShadow | typeof TextSize | typeof WordBreak | typeof GridColumns | typeof GridRows | typeof Gap | typeof WordSpacing | typeof Variable | typeof AspectRatio | typeof BoxDecorationBreak | typeof BreakAfter | typeof BreakBefore | typeof BreakInside | typeof FlexShrink | typeof FlexDirection | typeof FlexGrow | typeof FlexWrap | typeof FlexBasis | typeof Flex | typeof Order | typeof GridColumn | typeof ColumnSpan | typeof GridRow | typeof Color | typeof AlignContent | typeof AlignItems | typeof AlignSelf | typeof GridAutoColumns | typeof GridAutoFlow | typeof GridAutoRows | typeof JustifyContent | typeof JustifyItems | typeof JustifySelf | typeof PlaceContent | typeof PlaceItems | typeof PlaceSelf | typeof Padding | typeof Margin | typeof TextOverflow | typeof ListStylePosition | typeof ListStyleType | typeof ListStyle | typeof TextDecorationColor | typeof TextDecorationStyle | typeof TextDecorationThickness | typeof TextIndent | typeof Content | typeof OutlineColor | typeof OutlineOffset | typeof OutlineStyle | typeof OutlineWidth | typeof Outline | typeof BorderCollapse | typeof BorderSpacing | typeof TableLayout | typeof AccentColor | typeof Appearance | typeof CaretColor | typeof ScrollBehavior | typeof ScrollMargin | typeof ScrollPadding | typeof ScrollSnapAlign | typeof ScrollSnapStop | typeof ScrollSnapType | typeof WillChange | typeof TextUnderlineOffset | typeof Inset | typeof Columns | typeof WhiteSpace | typeof TextOrientation | typeof WritingMode | typeof Contain | typeof AnimationDuration | typeof TextRendering | typeof Direction | typeof TextDecorationLine | typeof GridColumnStart | typeof ListStyleImage | typeof ShapeOutside | typeof ShapeMargin | typeof ShapeImageThreshold | typeof ClipPath | typeof Grid | typeof Font | typeof Quotes | typeof GridTemplate | typeof GridRowStart | typeof GridTemplateAreas | typeof GridTemplateColumns | typeof GridTemplateRows | typeof GridArea | typeof GridColumnEnd | typeof GridRowEnd | typeof MaskImage | typeof TextFillColor | typeof TextStroke | typeof TextStrokeWidth | typeof TextStrokeColor | typeof StrokeDasharray | typeof StrokeDashoffset | typeof X | typeof Y | typeof Cx | typeof Cy | typeof Rx | typeof Ry | typeof BorderImageOutset | typeof BorderImageRepeat | typeof BorderImageSlice | typeof BorderImageSource | typeof BorderImageWidth | typeof BorderImage | typeof Group | typeof CounterIncrement | typeof counterReset | typeof WH | typeof MinWH | typeof MaxWH)[];
196
199
  export default Rules;
@@ -1 +1 @@
1
- (()=>{var Ws=Object.defineProperty;var Ds=(r,s,i)=>s in r?Ws(r,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[s]=i;var e=(r,s,i)=>(Ds(r,typeof s!="symbol"?s+"":s,i),i),ds=(r,s,i)=>{if(!s.has(r))throw TypeError("Cannot "+i)};var te=(r,s,i)=>(ds(r,s,"read from private field"),i?i.call(r):s.get(r)),ts=(r,s,i)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,i)},rs=(r,s,i,a)=>(ds(r,s,"write to private field"),a?a.call(r,i):s.set(r,i),i);var $s={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Ur=$s;function Qr(r){r.startsWith("#")&&(r=r.slice(1));let s=r.match(/.{1,2}/g);return[parseInt(s[0],16),parseInt(s[1],16),parseInt(s[2],16)]}function fs(r,s,i){return((1<<24)+(r<<16)+(s<<8)+i).toString(16).slice(1)}function G(r){typeof r=="string"&&(r={"":r});let s=""in r,i=!1;for(let a in r)if(a&&+a>=100){i=!0;break}if(!i&&(!s||Object.keys(r).length>1)){let a=0,c="0"in r?Qr(r[0]):[0,0,0],o,g,k=[],u=()=>{let p=o-a,l=g.map((d,m)=>(d-c[m])/p);for(let d of k){let m=d-a,f=c.map((b,T)=>Math.round(b+l[T]*m));r[d]="#"+fs.call(this,...f)}};for(let p=1;p<100;p++)p in r?(k.length?(o=p,g=Qr(r[p]),u(),k.length=0,c=g):c=Qr(r[p]),a=p):k.push(p);k.length&&(o=100,g="100"in r?Qr(r[100]):[255,255,255],u())}return s||(r[""]=r[i?"500":"50"]),r}var Ps={slate:G({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:G({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:G({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:G({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:G({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:G({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:G({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:G({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:G({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:G({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:G({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:G({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:G({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:G({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:G({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:G({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:G({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:G({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:G({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:G({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"},ms=Ps;var us=16;var Ns={"::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("},ps=Ns;var Ls={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"}},hs=Ls;var Gs=["dark","light"],gs=Gs;var _s={storage:{sync:!0,key:"scheme"}},xs=_s;var Yr={content:"content-box",border:"border-box",padding:"padding-box"},Gi={min:"min-content",max:"max-content"},U={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Ur)U[r]=Ur[r]/16+"rem";var Vs={BackgroundClip:Yr,BackgroundOrigin:Yr,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Yr,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:Gi,GridAutoRows:Gi,GridTemplateColumns:Gi,GridTemplateRows:Gi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Yr,margin:"margin-box"},TransformBox:{...Yr,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:U,MinWidth:U,MinHeight:U,MaxWidth:U,MaxHeight:U,Height:U,FlexBasis:U},vs=Vs;function _i(r,s){return(r?r+":":"")+(s.unit?s.value+s.unit:s.value)+(s.important?"!important":"")}var zs=/^([+-.]?\d+(\.?\d+)?)(.*)?/;function Vi(r,s,i){if(i){let a="",c=r.match(zs);if(c)if(r.includes("/")){let[o,g]=r.split("/");return{value:+o/+g*100+"%",unit:a}}else{let o=+c[1];return a=c[3]||"",a||((i==="rem"||i==="em")&&(o=o/s),a=i||""),{value:o,unit:a}}}}function bs(r,s,i){let a=l=>l==="+"||l==="-"||l==="*"||l==="/",c="",o,g="",k=!1,u=!1;function p(l,d="",m=""){if(o===2&&!u){let f=Vi(g,s,i);f&&(g=f.value+f.unit)}c+=g+d+l+m,o=null,u=!1,g=""}for(let l=0;l<r.length;l++){let d=r[l];if(d==="("||d===")")k=d===")",p(d);else if(d===",")p(d,""," ");else{switch(o){case 1:break;case 2:if(a(d)){p(d," "," ");continue}else/[0-9]/.test(d)||(u=!0);break;default:k&&(g+=" "),isNaN(+d)?a(d)||(o=1):o=2;break}g+=d}}return g&&(c+=g),c}function zi(r,s,i,a,c){let o="",g="",k;if(typeof r=="number")o=r,g=s||"";else{if(i){let p=Object.keys(i),l=!1,d=!1;r=r.replace(new RegExp(`(^|,| |\\()(${p.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(m,f,b,T,R)=>{d=!0;let y=i[b]?.[T||""];if(y){let n;for(let h of c)if(n=y[h])break;if(n){l=!0;let h=n;if(R){let C=R.endsWith("%")?parseFloat(R)/100:+R;C=isNaN(C)?1:Math.min(Math.max(C,0),1),h+=Math.round(C*255).toString(16).toUpperCase().padStart(2,"0")}return f+h}}return m}),d&&(k=l)}let u=Vi(r,a,s);if(u)return u;o=(r.indexOf("calc(")===-1?r:bs(r,a,s)).replace(/\$\(((\w|-)+)\)/g,"var(--$1)")}return{value:o,unit:g,colorMatched:k}}var _e={"(":")","'":"'",'"':'"',"{":"}"};var ys=[":disabled",":active",":focus",":hover"],Zr="matches",Hs="semantics",Rs="symbol",ks="width",is="max-"+ks,ss="min-"+ks,as="motion",Ts="reduce",Ss=Ts+"d-"+as,os="px",Us="rem",Qs=["!","*",">","+","~",":","[","@","_"],Ys=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Zs=r=>r.split(Ys).map((s,i)=>i%3?s:s.replace(/_/g," ")).join(""),t=class{constructor(s,i,a){this.className=s;this.matching=i;this.css=a;let c=this.constructor,{id:o,unit:g,colorful:k,prop:u}=c,{rootSize:p}=a.config,{themeNames:l,colorsThemesMap:d,selectors:m,globalValues:f,breakpoints:b,mediaQueries:T}=a,R=a.values[o],y=a.relationThemesMap[s],n=s,h,C,v,x;if(i.origin===Hs){let[j,O]=i.value;v=n.slice(j.length),h=O}else{let j;if(i.origin===Zr)if(o==="Group"){let I=0;for(;I<n.length&&!(n[I]==="{"&&n[I-1]!=="\\");I++);C=n.slice(0,I),j=n.slice(I)}else{let I=n.indexOf(":");this.prefix=n.slice(0,I+1),this.prefix.includes("(")?(this.prefix=void 0,j=n):j=n.slice(I+1)}else i.origin===Rs&&(this.symbol=n[0],j=n.slice(1));x=[];let O="",M=0;(function I(N,B,E,S=""){let F,D=!1;B&&(B===")"&&O.slice(-1)==="$"?F=O.length-1:(B==="'"||B==='"')&&(D=!0),O+=N[M++]);let L=()=>{let W=O;if(O="",R&&W in R){let V=M;M=0,I(R[W].toString()),M=V}else if(f&&W in f){let V=M;M=0,I(f[W].toString()),M=V}else x.push({value:W})};for(;M<N.length;M++){let W=N[M];if(W===B){if(O+=W,D){let V=0;for(let _=O.length-2;O[_]==="\\";_--)V++;if(V%2)continue}F!==void 0&&(O=O.slice(0,F)+O.slice(F).replace(/\$\((.*)\)/,"var(--$1)")),E||(D?x.push(O):L(),S="",O="");break}else if(!D&&W in _e)I(N,_e[W],E===void 0?0:E+1,S);else if((W==="|"||W===" ")&&B!=="}"&&(!D||S==="path"))B?O+=" ":L();else{if(!B){if(W==="."){if(isNaN(+N[M+1]))break;N[M-1]==="-"&&(O+="0")}else if(W===","){O&&L(),x.push(",");continue}else if(W==="#"&&(O||x.length&&N[M-1]!=="|"&&x[M-1]!==" ")||Qs.includes(W))break;S+=W}O+=W}}E===void 0&&O&&L()})(j),v=j.slice(M)}v[0]==="!"&&(this.important=!0,v=v.slice(1));let A=j=>{let O=Zs(j),M=[],I="",N=0;for(let B=0;B<O.length;B++){let E=O[B];if(E==="\\"){I+=E+O[++B];continue}!N&&E===","?(M.push(I),I=""):(I+=E,N&&E===")"?N--:E==="("&&N++)}return I&&M.push(I),M};this.prefixSelectors=C?A(C):[""];let w=v.split("@"),$=w[0];if($){this.vendorSuffixSelectors={};let j=(B,E,S,F)=>{for(let[D,L]of E)if(D.test(B)){for(let W of L)j(B.replace(D,W),E,S,!0);return}F&&S.push(B)},O=[];""in m?j($,m[""],O,!0):O.push($);let M={};for(let[B,E]of Object.entries(m)){if(!B)continue;let S=[];for(let F of O)j(F,E,S,!1);S.length&&(M[B]=S)}let I=(B,E)=>{let S=E.reduce((F,D)=>(F.push(...A(D)),F),[]);B in this.vendorSuffixSelectors?this.vendorSuffixSelectors[B].push(...S):this.vendorSuffixSelectors[B]=S},N=Object.keys(M);if(N.length)for(let B of N)I(B,M[B]);else I("",O);for(let B of Object.values(this.vendorSuffixSelectors))for(let E of B){this.hasWhere!==!1&&(this.hasWhere=E.includes(":where("));for(let S=0;S<ys.length;S++)if(E.includes(ys[S])){(this.priority===-1||this.priority>S)&&(this.priority=S);break}}}else this.vendorSuffixSelectors={"":[""]};for(let j=1;j<w.length;j++){let O=w[j];if(O)if(l.includes(O))this.theme=O;else if(O==="rtl"||O==="ltr")this.direction=O;else{let M,I,N=O.indexOf("_");if(N!==-1)M=O.slice(0,N),I=O.slice(N);else{let B=O.indexOf("(");B!==-1&&(M=O.slice(0,B),I=O.slice(B))}if(!M){M="media";let B=[];this.media={token:O,features:{}};let E=O.split("&");for(let S of E)if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")B.push("(orientation:"+S+")");else if(S===as||S===Ss)B.push("(prefers-"+Ss+":"+(S===as?"no-preference":Ts)+")");else if(T&&S in T)B.push(T[S]);else{let F={token:S},D="",L="",W=0;S.startsWith("<=")?(L="<=",D=is):S.startsWith(">=")||b[S]?(L=">=",D=ss):S.startsWith(">")?(L=">",D=ss,W=.02):S.startsWith("<")&&(L="<",D=is,W=-.02);let V=L?S.replace(L,""):S,_=b[V];switch(D){case is:case ss:_?Object.assign(F,zi(_,os)):Object.assign(F,zi(V,os)),F.unit===os&&(F.value+=W),this.media.features[D]=F,B.push("("+D+":"+(F.value+F.unit)+")");break}}I="",this.media.type&&(I=this.media.type),B.length&&(I+=(I?" and ":"")+B.join(" and "))}I&&(this.at[M]=(M in this.at?this.at[M]+" and ":"")+I.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let P=(j,O)=>{let M,I,N=(E,S,F)=>{let D="";this.direction&&(D+="[dir="+this.direction+"] ");let L=this.prefixSelectors.map(_=>_+D),W=(_,Ni)=>{let Hr=_?"."+_+" ":"",es="."+CSS.escape(Ni);return L.map(Li=>Hr+Li).reduce((Li,Es)=>(Li.push(F.reduce((ls,Fs)=>(ls.push(Es+es+Fs),ls),[]).join(",")),Li),[]).join(",")},V=W(S,s)+(y?Object.entries(y).filter(([_])=>this.theme||!k||!S||!_||_===S).map(([_,Ni])=>Ni.reduce((Hr,es)=>Hr+","+W(this.theme??(k&&S||_),es),"")).join(""):"")+"{"+E+"}";for(let _ of Object.keys(this.at).sort((Ni,Hr)=>Hr==="supports"?-1:1))V="@"+_+" "+this.at[_]+"{"+V+"}";return V},B=[];if(x){let E,S;for(let F of x)typeof F=="string"?B.push(F):(E=zi(F.value,g,k&&d,p,this.theme?[this.theme,""]:[j]),E.colorMatched!==void 0&&S!==!0&&(S=E.colorMatched),B.push(E.value+E.unit));if(O&&(S===void 0?j:!S))return;if(B.length===1?E?(M=E.value,I=E.unit):M=B[0]:M=B.reduce((F,D,L)=>F+D+(D===","||x[L+1]===","||L===x.length-1?"":" "),""),typeof M!="object"){this.parseValue&&(M=this.parseValue(M,this.css.config)),k&&M==="current"&&(M="currentColor");let F={unit:I,value:M,important:this.important};if(this.getThemeProps){let D=this.getThemeProps(F,a);for(let L in D)for(let W of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:I,value:M,text:N(Object.entries(D[L]).map(([V,_])=>_i(V,{important:this.important,unit:"",value:_})).join(";"),L,W),theme:L});return}else this.get&&(M=this.get(F))}}else M=h;for(let E of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:I,value:M,text:N(typeof M=="object"?Object.entries(M).map(([S,F])=>_i(S,{...typeof F=="object"?F:{unit:"",value:F},important:this.important})).join(";"):_i(u,{unit:I,value:M,important:this.important}),j,E),theme:j})};if(this.getThemeProps)P(void 0,!1);else if(this.theme)P(this.theme,!1);else if(k)for(let j of l)P(j,!0);else P("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;theme;unitToken;hasWhere;priority=-1;natives=[];static get prop(){return this.id?.replace(/(?!^)[A-Z]/g,s=>"-"+s).toLowerCase()}static match(s,i,a,c){let{colorStarts:o,symbol:g,prop:k}=this;if(i&&i.test(s))return{origin:Zr};if(o){if(s.match("^"+o+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))"))return{origin:Zr};if(c.length&&s.indexOf("|")===-1){let u=s.match("^"+o+"("+c.join("|")+")([0-9a-zA-Z-]*)");if(u&&(!u[2]||u[2].slice(1)in a[u[1]]))return{origin:Zr}}}if(g&&s.startsWith(g))return{origin:Rs};if(k&&s.startsWith(k+":"))return{origin:Zr}}get text(){return this.natives.map(s=>s.text).join("")}};e(t,"id"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",Us),e(t,"colorful");var re=class extends t{};e(re,"id","FontWeight"),e(re,"matches","^f(?:ont)?:(?:bolder|$values)(?!\\|)"),e(re,"unit","");var Ve=class extends t{};e(Ve,"id","FontFamily"),e(Ve,"matches","^f(?:ont)?:(?:$values)(?!\\|)");var ze=class extends t{};e(ze,"id","FontSize"),e(ze,"matches","^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var He=class extends t{static get prop(){return""}get(r){let i=this.prefix[0]==="m"?"margin":"padding",a=i+"-left",c=i+"-right",o=i+"-top",g=i+"-bottom";switch(this.prefix[1]){case"x":return{[a]:r,[c]:r};case"y":return{[o]:r,[g]:r};case"l":return{[a]:r};case"r":return{[c]:r};case"t":return{[o]:r};case"b":return{[g]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(He,"id","Spacing"),e(He,"matches","^[pm][xytblr]?:.");var Ue=class extends t{};e(Ue,"id","Width"),e(Ue,"matches","^w:.");var Qe=class extends t{};e(Qe,"id","Height"),e(Qe,"matches","^h:.");var Ye=class extends t{};e(Ye,"id","MinWidth"),e(Ye,"matches","^min-w:.");var Ze=class extends t{};e(Ze,"id","MinHeight"),e(Ze,"matches","^min-h:.");var ie=class extends t{};e(ie,"id","LetterSpacing"),e(ie,"matches","^ls:."),e(ie,"unit","em");var Xs="subpixel-antialiased",Cs="-webkit-font-smoothing",Os="-moz-osx-font-smoothing",se=class extends t{static get prop(){return""}get(r){let s={};switch(r.value){case Xs:s[Cs]=s[Os]={...r,value:"auto"};break;case"antialiased":s[Cs]={...r,value:"antialiased"},s[Os]={...r,value:"grayscale"};break}return s}};e(se,"id","FontSmoothing"),e(se,"matches","^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)"),e(se,"unit","");var oe=class extends t{};e(oe,"id","FontStyle"),e(oe,"matches","^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)"),e(oe,"unit","deg");var Xe=class extends t{};e(Xe,"id","FontVariantNumeric"),e(Xe,"matches","^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)");var qe=class extends t{};e(qe,"id","FontFeatureSettings"),e(qe,"matches","^font-feature:.");var ae=class extends t{};e(ae,"id","LineHeight"),e(ae,"matches","^lh:."),e(ae,"unit","");var Je=class extends t{};e(Je,"id","ObjectFit"),e(Je,"matches","^(?:object|obj):(?:contain|cover|fill|scale-down|$values)");var Ke=class extends t{};e(Ke,"id","ObjectPosition"),e(Ke,"matches","^(?:object|obj):(?:top|bottom|right|left|center|$values)");var et=class extends t{};e(et,"id","TextAlign"),e(et,"matches","^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)");var ne=class extends t{order=-1};e(ne,"id","TextDecoration"),e(ne,"matches","^t(?:ext)?:(?:underline|line-through|overline|$values)"),e(ne,"colorful",!0);var tt=class extends t{};e(tt,"id","TextTransform"),e(tt,"matches","^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)");var rt=class extends t{};e(rt,"id","VerticalAlign"),e(rt,"matches","^(?:v|vertical):.");var ce=class extends t{static get prop(){return""}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(ce,"id","Lines"),e(ce,"matches","^lines:."),e(ce,"unit","");var le=class extends t{};e(le,"id","TransformOrigin"),e(le,"matches","^transform:(?:top|bottom|right|left|center|[0-9]|$values)"),e(le,"unit","px");var it=class extends t{};e(it,"id","TransformStyle"),e(it,"matches","^transform:(?:flat|preserve-3d|$values)(?!\\|)");var st=class extends t{};e(st,"id","TransformBox"),e(st,"matches","^transform:(?:$values)(?!\\|)");var de=class extends t{parseValue(r,{rootSize:s}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,a,c,o)=>{let g,k;switch(a){case"translate":g="rem";break;case"skew":g="deg";break;case"rotate":c==="3d"&&(k=!0),g="deg";break;default:return i}let u=o.split(",");return i.replace(o,u.map((p,l)=>!k||u.length-1===l?Number.isNaN(+p)?p:p/(g==="rem"?s:1)+g:p).join(","))})}};e(de,"id","Transform"),e(de,"matches","^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\("),e(de,"unit","");var ot=class extends t{order=-1};e(ot,"id","Transition"),e(ot,"symbol","~");var fe=class extends t{};e(fe,"id","TransitionDelay"),e(fe,"matches","^~delay:."),e(fe,"unit","ms");var me=class extends t{};e(me,"id","TransitionDuration"),e(me,"matches","^~duration:."),e(me,"unit","ms");var at=class extends t{};e(at,"id","TransitionProperty"),e(at,"matches","^~property:.");var nt=class extends t{};e(nt,"id","TransitionTimingFunction"),e(nt,"matches","^~easing:.");var ct=class extends t{};e(ct,"id","MaxHeight"),e(ct,"matches","^max-h:.");var lt=class extends t{};e(lt,"id","MaxWidth"),e(lt,"matches","^max-w:.");var dt=class extends t{};e(dt,"id","Display"),e(dt,"matches","^d:.");var ft=class extends t{};e(ft,"id","BoxSizing"),e(ft,"matches","^box:(?:$values)(?!\\|)");var mt=class extends t{};e(mt,"id","Opacity"),e(mt,"unit","");var Xr=class extends t{};e(Xr,"id","Visibility");var qr=class extends t{};e(qr,"id","Clear");var Jr=class extends t{};e(Jr,"id","Float");var Kr=class extends t{};e(Kr,"id","Isolation");var ut=class extends t{static get prop(){return""}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(ut,"id","Overflow"),e(ut,"matches","^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)");var pt=class extends t{static get prop(){return""}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(pt,"id","OverscrollBehavior"),e(pt,"matches","^overscroll-behavior(?:-[xy])?:");var ue=class extends t{};e(ue,"id","ZIndex"),e(ue,"matches","^z:."),e(ue,"unit","");var pe=class extends t{};e(pe,"id","AnimationDelay"),e(pe,"matches","^@delay:."),e(pe,"unit","ms");var ht=class extends t{};e(ht,"id","AnimationDirection"),e(ht,"matches","^@direction:.");var gt=class extends t{};e(gt,"id","AnimationFillMode"),e(gt,"matches","^@fill-mode:.");var he=class extends t{};e(he,"id","AnimationIterationCount"),e(he,"matches","^@iteration-count:."),e(he,"unit","");var xt=class extends t{};e(xt,"id","AnimationName"),e(xt,"matches","^@name:.");var vt=class extends t{};e(vt,"id","AnimationPlayState"),e(vt,"matches","^@play-state:.");var bt=class extends t{};e(bt,"id","AnimationTimingFunction"),e(bt,"matches","^@easing:.");var ge=class extends t{order=-1};e(ge,"id","Animation"),e(ge,"symbol","@"),e(ge,"unit","");var Hi="border-";function Q(r,s,i=""){i&&(i="-"+i);let a=/^b(order)?-?(.)?/.exec(r)[2],c=Hi+"left"+i,o=Hi+"right"+i,g=Hi+"top"+i,k=Hi+"bottom"+i;switch(a){case"x":return{[c]:s,[o]:s};case"y":return{[g]:s,[k]:s};case"l":return{[c]:s};case"r":return{[o]:s};case"t":return{[g]:s};case"b":return{[k]:s};default:return{["border"+i]:s}}}var Y=class extends t{static get prop(){return""}get(r){return Q(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Y,"id","BorderColor"),e(Y,"matches","^border(?:-(?:left|right|top|bottom))?-color:."),e(Y,"colorStarts","b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?:"),e(Y,"colorful",!0);var Ui="border-top-left-radius",Qi="border-top-right-radius",Yi="border-bottom-left-radius",Zi="border-bottom-right-radius",ws="border-radius",qs=[Ui,Qi,Yi,Zi],yt=class extends t{static get prop(){return""}get(r){if(this.prefix){let i="",a=this.prefix.split("-");if(a.length>1)for(let c=1;c<a.length-1;c++)i+=a[c][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[Ui]:r,[Qi]:r};case"tl":case"lt":return{[Ui]:r};case"rt":case"tr":return{[Qi]:r};case"b":return{[Yi]:r,[Zi]:r};case"bl":case"lb":return{[Yi]:r};case"br":case"rb":return{[Zi]:r};case"l":return{[Ui]:r,[Yi]:r};case"r":return{[Qi]:r,[Zi]:r};default:return{[ws]:r}}}let s=this.prefix?.slice(0,-1);return{[qs.includes(s)?s:ws]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(yt,"id","BorderRadius"),e(yt,"matches","^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.");var Rt=class extends t{static get prop(){return""}get(r){return Q(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Rt,"id","BorderStyle"),e(Rt,"matches","^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))");var St=class extends t{static get prop(){return""}get(r){return Q(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(St,"id","BorderWidth"),e(St,"matches","^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)");var xe=class extends t{static get prop(){return""}get(r){return Q(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(xe,"id","Border"),e(xe,"matches","^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):."),e(xe,"colorful",!0);var kt=class extends t{};e(kt,"id","BackgroundAttachment"),e(kt,"matches","^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)");var ei=class extends t{};e(ei,"id","BackgroundBlendMode");var Tt=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(Tt,"id","BackgroundClip"),e(Tt,"matches","^(?:bg|background):(?:text|$values)(?!\\|)");var Z=class extends t{};e(Z,"id","BackgroundColor"),e(Z,"colorStarts","(?:bg|background):"),e(Z,"unit",""),e(Z,"colorful",!0);var Ct=class extends t{};e(Ct,"id","BackgroundOrigin"),e(Ct,"matches","^(?:bg|background):(?:$values)(?!\\|)");var ve=class extends t{};e(ve,"id","BackgroundPosition"),e(ve,"matches","^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)"),e(ve,"unit","px");var Ot=class extends t{};e(Ot,"id","BackgroundRepeat"),e(Ot,"matches","^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])");var wt=class extends t{};e(wt,"id","BackgroundSize"),e(wt,"matches","^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)");var be=class extends t{};e(be,"id","BackgroundImage"),e(be,"matches","^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)"),e(be,"colorful",!0);var ye=class extends t{order=-1};e(ye,"id","Background"),e(ye,"matches","^bg:."),e(ye,"colorful",!0);var Mt=class extends t{};e(Mt,"id","MixBlendMode"),e(Mt,"matches","^blend:.");var ti=class extends t{};e(ti,"id","Position");function Xi(r,s,{rootSize:i}){let a="",c=0;return function o(g,k){let u="",p=k?s(k):"",l=()=>{u&&(a+=!p||Number.isNaN(+u)?u:+u/(p==="rem"?i:1)+p,u="")};for(;c<r.length;c++){let d=r[c];if(d===g&&(g!=="'"||r[c+1]===")")){l(),a+=d;break}else d===","||d===" "?(l(),a+=d):!u&&d==="'"?(a+=d,c++,o(d),u=""):u&&d==="("?(a+=u+d,c++,o(")",u),u=""):u+=d}l()}(),a}var Re=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,s){return Xi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},s)}};e(Re,"id","BackdropFilter"),e(Re,"matches","^bd:."),e(Re,"colorful",!0);var Se=class extends t{};e(Se,"id","Fill"),e(Se,"colorStarts","fill:"),e(Se,"colorful",!0);var Bt=class extends t{};e(Bt,"id","Stroke"),e(Bt,"colorful",!0);var At=class extends t{};e(At,"id","StrokeWidth"),e(At,"matches","^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var ke=class extends t{parseValue(r,s){return Xi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},s)}};e(ke,"id","Filter"),e(ke,"matches","^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\("),e(ke,"colorful",!0);var ri=class extends t{};e(ri,"id","Cursor");var ii=class extends t{};e(ii,"id","PointerEvents");var si=class extends t{};e(si,"id","Resize");var oi=class extends t{};e(oi,"id","TouchAction");var ai=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(ai,"id","UserDrag");var ni=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(ni,"id","UserSelect");var Te=class extends t{};e(Te,"id","BoxShadow"),e(Te,"matches","^s(?:hadow)?:."),e(Te,"colorful",!0);var It=class extends t{};e(It,"id","TextShadow"),e(It,"colorful",!0);var Ms=.5,jt=class extends t{static get prop(){return""}get(r){let{unit:s,value:i}=r;return{"font-size":r,"line-height":{...r,value:s==="rem"?i+Ms+s:`calc(${i}${s} + ${Ms}rem)`,unit:""}}}};e(jt,"id","TextSize"),e(jt,"matches","^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var Et=class extends t{};e(Et,"id","WordBreak"),e(Et,"unit","");var Ce=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Ce,"id","GridColumns"),e(Ce,"matches","^grid-cols:."),e(Ce,"unit","");var Ft=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(Ft,"id","GridRows"),e(Ft,"unit","");var Wt=class extends t{static get prop(){return""}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(Wt,"id","Gap"),e(Wt,"matches","^gap(?:-x|-y)?:.");var Dt=class extends t{};e(Dt,"id","WordSpacing"),e(Dt,"unit","em");var Oe=class extends t{static get prop(){return""}get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(Oe,"id","Variable"),e(Oe,"matches","^\\$[^ {}A-Z]+:[^ ]"),e(Oe,"unit","");var we=class extends t{};e(we,"id","AspectRatio"),e(we,"matches","^aspect:."),e(we,"unit","");var $t=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e($t,"id","BoxDecorationBreak"),e($t,"matches","^box:(?:slice|clone|$values)(?!\\|)");var ci=class extends t{};e(ci,"id","BreakAfter");var li=class extends t{};e(li,"id","BreakBefore");var di=class extends t{};e(di,"id","BreakInside");var Pt=class extends t{};e(Pt,"id","FlexShrink"),e(Pt,"unit","");var Nt=class extends t{};e(Nt,"id","FlexDirection"),e(Nt,"matches","^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)");var Lt=class extends t{};e(Lt,"id","FlexGrow"),e(Lt,"unit","");var Gt=class extends t{};e(Gt,"id","FlexWrap"),e(Gt,"matches","^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)");var fi=class extends t{};e(fi,"id","FlexBasis");var _t=class extends t{order=-1};e(_t,"id","Flex"),e(_t,"unit","");var Me=class extends t{};e(Me,"id","Order"),e(Me,"matches","^o:."),e(Me,"unit","");var Be=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Be,"id","GridColumn"),e(Be,"matches","^grid-col(?:umn)?(?:-span)?:."),e(Be,"unit","");var Vt=class extends t{};e(Vt,"id","ColumnSpan"),e(Vt,"matches","^col-span:.");var Ae=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Ae,"id","GridRow"),e(Ae,"matches","^grid-row-span:."),e(Ae,"unit","");var X=class extends t{};e(X,"id","Color"),e(X,"matches","^(?:color|fg|foreground):."),e(X,"colorful",!0),e(X,"unit","");var zt=class extends t{};e(zt,"id","AlignContent"),e(zt,"matches","^ac:.");var Ht=class extends t{};e(Ht,"id","AlignItems"),e(Ht,"matches","^ai:.");var Ut=class extends t{};e(Ut,"id","AlignSelf"),e(Ut,"matches","^as:");var Qt=class extends t{};e(Qt,"id","GridAutoColumns"),e(Qt,"matches","^grid-auto-cols:.");var Yt=class extends t{};e(Yt,"id","GridAutoFlow"),e(Yt,"matches","^grid-flow:.");var mi=class extends t{};e(mi,"id","GridAutoRows");var Zt=class extends t{};e(Zt,"id","JustifyContent"),e(Zt,"matches","^jc:.");var Xt=class extends t{};e(Xt,"id","JustifyItems"),e(Xt,"matches","^ji:.");var qt=class extends t{};e(qt,"id","JustifySelf"),e(qt,"matches","^js:.");var ui=class extends t{order=-1};e(ui,"id","PlaceContent");var pi=class extends t{order=-1};e(pi,"id","PlaceItems");var hi=class extends t{order=-1};e(hi,"id","PlaceSelf");var Jt=class extends t{static get prop(){return""}get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(Jt,"id","Padding"),e(Jt,"matches","^padding(?:-(?:left|right|top|bottom))?:.");var Kt=class extends t{static get prop(){return""}get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(Kt,"id","Margin"),e(Kt,"matches","^margin(?:-(?:left|right|top|bottom))?:.");var er=class extends t{};e(er,"id","TextOverflow"),e(er,"matches","^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))");var tr=class extends t{};e(tr,"id","ListStylePosition"),e(tr,"matches","^list-style:(?:inside|outside|$values)(?!\\|)");var rr=class extends t{};e(rr,"id","ListStyleType"),e(rr,"matches","^list-style:(?:disc|decimal|$values)(?!\\|)");var gi=class extends t{order=-1};e(gi,"id","ListStyle");var Ie=class extends t{};e(Ie,"id","TextDecorationColor"),e(Ie,"colorStarts","text-decoration:"),e(Ie,"colorful",!0);var ir=class extends t{};e(ir,"id","TextDecorationStyle"),e(ir,"matches","^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)");var je=class extends t{};e(je,"id","TextDecorationThickness"),e(je,"matches","^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$"),e(je,"unit","em");var xi=class extends t{};e(xi,"id","TextIndent");var vi=class extends t{};e(vi,"id","Content");var Ee=class extends t{};e(Ee,"id","OutlineColor"),e(Ee,"colorStarts","outline:"),e(Ee,"colorful",!0);var bi=class extends t{};e(bi,"id","OutlineOffset");var sr=class extends t{};e(sr,"id","OutlineStyle"),e(sr,"matches","^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)");var or=class extends t{};e(or,"id","OutlineWidth"),e(or,"matches","^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var ar=class extends t{order=-1};e(ar,"id","Outline"),e(ar,"colorful",!0);var nr=class extends t{};e(nr,"id","BorderCollapse"),e(nr,"matches","^b(?:order)?:(?:collapse|separate|$values)(?!\\|)");var yi=class extends t{};e(yi,"id","BorderSpacing");var Ri=class extends t{};e(Ri,"id","TableLayout");var Fe=class extends t{};e(Fe,"id","AccentColor"),e(Fe,"colorStarts","accent:"),e(Fe,"colorful",!0);var Si=class extends t{};e(Si,"id","Appearance");var We=class extends t{};e(We,"id","CaretColor"),e(We,"colorStarts","caret:"),e(We,"colorful",!0);var ki=class extends t{};e(ki,"id","ScrollBehavior");var cr=class extends t{static get prop(){return""}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(cr,"id","ScrollMargin"),e(cr,"matches","^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.");var lr=class extends t{static get prop(){return""}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(lr,"id","ScrollPadding"),e(lr,"matches","^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.");var dr=class extends t{};e(dr,"id","ScrollSnapAlign"),e(dr,"matches","^scroll-snap:(?:start|end|center|$values)");var fr=class extends t{};e(fr,"id","ScrollSnapStop"),e(fr,"matches","^scroll-snap:(?:normal|always|$values)(?!\\|)");var mr=class extends t{};e(mr,"id","ScrollSnapType"),e(mr,"matches","^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)");var Ti=class extends t{};e(Ti,"id","WillChange");var Ci=class extends t{};e(Ci,"id","TextUnderlineOffset");var ur=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(ur,"id","Inset"),e(ur,"matches","^(?:top|bottom|left|right):.");var De=class extends t{order=-1};e(De,"id","Columns"),e(De,"matches","^(?:columns|cols):."),e(De,"unit","");var pr=class extends t{};e(pr,"id","WhiteSpace"),e(pr,"unit","");var hr=class extends t{};e(hr,"id","TextOrientation"),e(hr,"matches","^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)");var gr=class extends t{};e(gr,"id","WritingMode"),e(gr,"matches","^writing:.");var Oi=class extends t{};e(Oi,"id","Contain");var $e=class extends t{};e($e,"id","AnimationDuration"),e($e,"matches","^@duration:."),e($e,"unit","ms");var xr=class extends t{};e(xr,"id","TextRendering"),e(xr,"matches","^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)");var wi=class extends t{};e(wi,"id","Direction");var vr=class extends t{};e(vr,"id","TextDecorationLine"),e(vr,"matches","^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)");var Pe=class extends t{};e(Pe,"id","GridColumnStart"),e(Pe,"matches","^grid-col-start:."),e(Pe,"unit","");var br=class extends t{};e(br,"id","ListStyleImage"),e(br,"matches","^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)");var yr=class extends t{};e(yr,"id","ShapeOutside"),e(yr,"matches","^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)");var Rr=class extends t{};e(Rr,"id","ShapeMargin"),e(Rr,"matches","^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var Sr=class extends t{};e(Sr,"id","ShapeImageThreshold"),e(Sr,"unit","");var kr=class extends t{};e(kr,"id","ClipPath"),e(kr,"matches","^clip:.");var Mi=class extends t{order=-1};e(Mi,"id","Grid");var Ne=class extends t{order=-1};e(Ne,"id","Font"),e(Ne,"matches","^f:."),e(Ne,"unit","");var Bi=class extends t{};e(Bi,"id","Quotes");var Ai=class extends t{order=-1};e(Ai,"id","GridTemplate");var Tr=class extends t{};e(Tr,"id","GridRowStart"),e(Tr,"unit","");var Ii=class extends t{};e(Ii,"id","GridTemplateAreas");var Cr=class extends t{};e(Cr,"id","GridTemplateColumns"),e(Cr,"matches","^grid-template-cols:.");var ji=class extends t{};e(ji,"id","GridTemplateRows");var Or=class extends t{order=-1};e(Or,"id","GridArea"),e(Or,"unit","");var Le=class extends t{};e(Le,"id","GridColumnEnd"),e(Le,"matches","^grid-col-end:."),e(Le,"unit","");var wr=class extends t{};e(wr,"id","GridRowEnd"),e(wr,"unit","");var Ei=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Ei,"id","MaskImage");var q=class extends t{static get prop(){return""}get(r){return{"-webkit-text-fill-color":r}}};e(q,"id","TextFillColor"),e(q,"matches","^text-fill-color:."),e(q,"colorStarts","(?:text-fill|text|t):"),e(q,"colorful",!0);var Mr=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke":r}}};e(Mr,"id","TextStroke"),e(Mr,"matches","^text-stroke:.");var Br=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke-width":r}}};e(Br,"id","TextStrokeWidth"),e(Br,"matches","^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)");var J=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke-color":r}}};e(J,"id","TextStrokeColor"),e(J,"matches","^text-stroke-color:."),e(J,"colorStarts","text-stroke:"),e(J,"colorful",!0);var Fi=class extends t{};e(Fi,"id","StrokeDasharray");var Wi=class extends t{};e(Wi,"id","StrokeDashoffset");var Ar=class extends t{};e(Ar,"id","X"),e(Ar,"unit","");var Ir=class extends t{};e(Ir,"id","Y"),e(Ir,"unit","");var jr=class extends t{};e(jr,"id","Cx"),e(jr,"unit","");var Er=class extends t{};e(Er,"id","Cy"),e(Er,"unit","");var Fr=class extends t{};e(Fr,"id","Rx"),e(Fr,"unit","");var Wr=class extends t{};e(Wr,"id","Ry"),e(Wr,"unit","");var Di=class extends t{};e(Di,"id","BorderImageOutset");var Dr=class extends t{};e(Dr,"id","BorderImageRepeat"),e(Dr,"matches","^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)");var $r=class extends t{};e($r,"id","BorderImageSlice"),e($r,"unit","");var Pr=class extends t{};e(Pr,"id","BorderImageSource"),e(Pr,"matches","^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)");var Nr=class extends t{};e(Nr,"id","BorderImageWidth"),e(Nr,"matches","^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var Lr=class extends t{};e(Lr,"id","BorderImage"),e(Lr,"unit","");var Js=/\{(.*)\}/,Ge=class extends t{static get prop(){return""}getThemeProps(r,s){let i={},a=(p,l)=>{let d=l.indexOf(":");if(d!==-1){p in i||(i[p]={});let m=i[p],f=l.slice(0,d);f in m||(m[f]=l.slice(d+1))}},c=p=>{let l=(d,m)=>{let f=m.slice(CSS.escape(p.className).length).match(Js)[1].split(";");for(let b of f)a(d,b)};if(this.theme){let d=p.natives.find(m=>m.theme===this.theme)??p.natives.find(m=>!m.theme);d&&l(this.theme,d.text)}else for(let d of p.natives)l(d.theme,d.text)},o=[],g="",k=()=>{g&&(o.push(g),g="")},u=1;(function p(l){for(;u<r.value.length;u++){let d=r.value[u];if(!l){if(d===";"){k();continue}if(d==="}")break}if(g+=d,l===d){if(l==="'"||l==='"'){let m=0;for(let f=g.length-2;g[f]==="\\";f--)m++;if(m%2)continue}break}else d in _e&&l!=="'"&&l!=='"'&&(u++,p(_e[d]))}})(void 0),k();for(let p of o){let l=s.create(p);if(Array.isArray(l))for(let d of l)c(d);else l?c(l):a(this.theme??"",p)}return i}};e(Ge,"id","Group"),e(Ge,"matches","^(?:.+?[*_>~+])?\\{.+?\\}"),e(Ge,"unit","");var Gr=class extends t{};e(Gr,"id","CounterIncrement"),e(Gr,"unit","");var _r=class extends t{};e(_r,"id","CounterReset"),e(_r,"unit","");var Ks=[Ge,Oe,ze,re,Ve,se,oe,Xe,qe,Ne,X,He,Kt,Jt,fi,Gt,Lt,Pt,Nt,_t,dt,Ue,Qe,Ye,Ze,Oi,vi,Gr,_r,ie,ae,Je,Ke,et,Ie,ir,je,vr,ne,Ci,er,hr,tt,xr,xi,rt,De,pr,ur,ce,ct,lt,ft,mt,Xr,qr,Jr,Kr,ut,pt,ue,ti,ri,ii,si,oi,Et,Dt,ai,ni,It,jt,q,Br,J,Mr,Te,Ri,st,it,le,de,at,nt,me,fe,ot,pe,ht,$e,gt,he,xt,vt,bt,ge,Y,yt,Rt,St,nr,yi,Di,Dr,$r,Pr,Nr,Lr,xe,kt,ei,Tt,Z,Ct,ve,Ot,wt,be,ye,Mt,Re,ke,Se,Fi,Wi,At,Bt,Ar,Ir,jr,Er,Fr,Wr,Pe,Le,Be,Ce,Tr,wr,Ae,Ft,Qt,Yt,mi,Ii,Cr,ji,Ai,Or,Mi,Wt,Me,di,li,ci,$t,we,Vt,zt,Ht,Ut,Zt,Xt,qt,ui,pi,hi,tr,rr,br,gi,Ee,bi,sr,or,ar,Fe,Si,We,ki,cr,lr,dr,fr,mr,Ti,gr,wi,yr,Rr,Sr,kr,Bi,Ei],Bs=Ks;var eo={colors:ms,breakpoints:Ur,semantics:hs,values:vs,selectors:ps,themes:gs,scheme:xs,Rules:Bs,rootSize:us},ns=eo;function As(r,s){return Array.isArray(r)&&Array.isArray(s)?r.concat(s):s}function qi(r){return Object.prototype.toString.call(r).slice(8,-1)}function Vr(r){return qi(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function cs(r){return qi(r)==="Symbol"}function Is(r,s,i,a){let c={}.propertyIsEnumerable.call(a,s)?"enumerable":"nonenumerable";c==="enumerable"&&(r[s]=i),c==="nonenumerable"&&Object.defineProperty(r,s,{value:i,enumerable:!1,writable:!0,configurable:!0})}function js(r,s,i){if(!Vr(s))return s;let a={};if(Vr(r)){let k=Object.getOwnPropertyNames(r),u=Object.getOwnPropertySymbols(r);a=[...k,...u].reduce((p,l)=>{let d=r[l];return(!cs(l)&&!Object.getOwnPropertyNames(s).includes(l)||cs(l)&&!Object.getOwnPropertySymbols(s).includes(l))&&Is(p,l,d,r),p},{})}let c=Object.getOwnPropertyNames(s),o=Object.getOwnPropertySymbols(s);return[...c,...o].reduce((k,u)=>{let p=s[u],l=Vr(r)?r[u]:void 0;l!==void 0&&Vr(p)&&(p=js(l,p,i));let d=i?i(l,p,u):p;return Is(k,u,d,s),k},a)}function Ji(r,...s){return s.filter(i=>Vr(i)).reduce((i,a)=>js(i,a,As),r)}var to=[",",".","#","[","!","*",">","+","~",":","@"],ro=/^::-[a-z]+-/m,Ki,Pi=typeof window<"u";Pi&&(Ki=document.createElement("style"),Ki.title="master");var H="max-width",z="min-width",io="attributes",so=Pi?window.MutationObserver:Object,zr,K,$i=class extends so{constructor(i){super(a=>{let c={},o=[],g=[],k=[],u=(m,f)=>{f?m.classList.forEach(l):m.classList.forEach(p);let b=m.children;for(let T=0;T<b.length;T++){let R=b[T];R.classList&&(g.push(R),u(R,f))}},p=m=>{m in c?c[m]++:c[m]=1},l=m=>{m in c?c[m]--:m in this.countOfClass&&(c[m]=-1)},d=(m,f)=>{for(let b=0;b<m.length;b++){let T=m[b];T.classList&&!g.includes(T)&&!k.includes(T)&&(T.isConnected!==f?(g.push(T),u(T,f)):k.push(T))}};for(let m=0;m<a.length;m++){let f=a[m],{addedNodes:b,removedNodes:T,type:R,target:y,oldValue:n}=f;if(R===io){if(o.find(h=>h.target===y))continue;o.push(f)}else d(b,!1),(!y.isConnected||!g.includes(y))&&d(T,!0)}if(!(!o.length&&!Object.keys(c).length)){for(let{oldValue:m,target:f}of o){let b=g.includes(f),T=f.classList,R=m?m.split(" "):[];if(b){if(f.isConnected)continue;for(let y of R)T.contains(y)||l(y)}else if(f.isConnected){T.forEach(y=>{R.includes(y)||p(y)});for(let y of R)T.contains(y)||l(y)}}for(let m in c){let f=c[m],b=(this.countOfClass[m]||0)+f;b===0?(delete this.countOfClass[m],this.delete(m)):(m in this.countOfClass||this.insert(m),this.countOfClass[m]=b)}}});this.options=i;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);e(this,"config");e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"values");e(this,"globalValues");e(this,"breakpoints");e(this,"mediaQueries");e(this,"matches");e(this,"schemeMQL");ts(this,zr,void 0);ts(this,K,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=Ji({observe:!0},i),this.options.config&&!this.options.override?this.config=Ji(ns,this.options.config):this.config=ns,this.cache(),Pi&&this.options.observe&&this.observe(document),$i.instances.push(this),this.ready=!0}static refresh(i){for(let a of this.instances)a.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==te(this,zr)){rs(this,zr,i);let{storage:a}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&a.sync&&localStorage.setItem(a.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return te(this,zr)}set theme(i){i!==te(this,K)&&(te(this,K)&&this.host.classList.remove(te(this,K)),rs(this,K,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return te(this,K)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={};let{semantics:i,classes:a,selectors:c,themes:o,colors:g,values:k,breakpoints:u,mediaQueries:p,Rules:l}=this.config;function d(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function m(n,h,C="",v={}){let x=Object.entries(n);if(h&&C){let A={};for(let[w,$]of x)typeof $=="object"&&!Array.isArray($)?m($,h,w?C+"-"+w:C,v):A[w]=$;Object.keys(A).length&&(v[C]=A)}else for(let[A,w]of x){let $=A?(C?C+"-":"")+A:C;typeof w=="object"&&!Array.isArray(w)?m(w,h,$,v):v[$]=w}return v}if(i)for(let[n,h]of Object.entries(m(i,!0)))this.semantics.push([new RegExp("^"+d(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,h]]);if(c)for(let[n,h]of Object.entries(m(c,!1))){let C=new RegExp(d(n)+"(?![a-z-])");for(let v of Array.isArray(h)?h:[h]){let x=v.match(ro)?.[0]??"",A=this.selectors[x];A||(A=this.selectors[x]=[]);let w=A.find(([$])=>$===C);w||(w=[C,[]],A.push(w)),w[1].push(v)}}if(k)for(let[n,h]of Object.entries(k))typeof h=="object"?this.values[n]=m(h,!1):this.globalValues[n]=h;u&&(this.breakpoints=m(u,!1)),p&&(this.mediaQueries=m(p,!1));let f=a?m(a,!1):{},b=o&&!Array.isArray(o)?Object.entries(o).filter(([,{classes:n}])=>n).reduce((n,[h,{classes:C}])=>(n[h]=m(C,!1),n),{}):{},T=[...Object.keys(f),...Object.entries(b).flatMap(([n,h])=>Object.keys(h))],R=n=>{if(n in this.classes)return;let h=this.classes[n]=[],C=(v,x)=>{if(!x)return;let A=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of A){let $=P=>{P in this.relationThemesMap?v in this.relationThemesMap[P]?this.relationThemesMap[P][v].push(n):this.relationThemesMap[P][v]=[n]:this.relationThemesMap[P]={[v]:[n]},h.includes(P)||h.push(P)};if(T.includes(w)){R(w);for(let P of this.classes[w])$(P)}else $(w)}};C("",f?.[n]);for(let[v,x]of Object.entries(b))C(v,x?.[n])};for(let n of T)R(n);for(let n in this.relationThemesMap){let h=this.relations[n]=[];for(let C of Object.values(this.relationThemesMap[n]))for(let v of C)h.includes(v)||h.push(v)}let y=(n,h)=>{if(!!h)for(let C in h){let v=h[C];if(typeof v=="string"&&(v={"":v}),C in this.colorsThemesMap){let x=this.colorsThemesMap[C];for(let A in v){let w=v[A];A in x?x[A][n]=w:x[A]={[n]:w}}}else this.colorNames.push(C),this.colorsThemesMap[C]=Object.entries(v).reduce((x,[A,w])=>(x[A]={[n]:w},x),{})}};if(y("",m(g,!0)),o)if(Array.isArray(o))this.themeNames.push(...o);else for(let n in o){let h=o[n];y(n,m(h.colors,!0)),this.themeNames.push(n)}for(let[n,h]of Object.entries(this.colorsThemesMap))for(let[C,v]of Object.entries(h))for(let[x,A]of Object.entries(v))if(!A.startsWith("#")){let[w,$]=A.split("-"),P=this.colorsThemesMap[w]?.[$??""],j="";P&&(j=(x?P[x]:void 0)??P[""],j&&(v[x]=j)),j||(console.warn(`\`${A}\` doesn't exist in the extended config \`.colors\``),Object.keys(v).length>1?delete v[x]:Object.keys(h).length>1?delete h[C]:(delete this.colorsThemesMap[n],this.colorNames.splice(this.colorNames.indexOf(n),1)))}if(l)for(let n of l){let h=n.matches;if(h){let C=Object.keys(this.values[n.id]??{}),v=h.indexOf("$values");this.matches[n.id]=new RegExp(v===-1?h:C.length?h.slice(0,v)+C.join("|")+h.slice(v+7):h.slice(0,v-(h[v-1]==="|"?1:0))+h.slice(v+7+(h[v+7]==="|"?1:0)))}}}observe(i,a={subtree:!0,childList:!0}){if(Pi&&i){this.root=i;let c=i===document;c&&($i.root=this),this.host=c?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let o=c?document.head:i,g=c?document.styleSheets:i.styleSheets;for(let u of g){let{title:p,href:l,ownerNode:d}=u;(p==="master"||l&&l.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(l))&&(this.style=d)}if(this.style)for(let u=0;u<this.style.sheet.cssRules.length;u++){let p=d=>{if(d.selectorText){let f=d.selectorText.split(", ")[0].split(" ");for(let b=0;b<f.length;b++){let T=f[b];if(T[0]==="."){let R=T.slice(1),y="";for(let n=0;n<R.length;n++){let h=R[n],C=R[n+1];if(h==="\\"){if(n++,C!=="\\"){y+=C;continue}}else if(to.includes(h))break;y+=h}if(!(y in this.ruleOfClass)&&!(y in this.classes)){let n=this.create(y)[0];if(n)return n}}}}else if(d.cssRules)for(let m=0;m<d.cssRules.length;m++){let f=p(d.cssRules[m]);if(f)return f}},l=p(this.style.sheet.cssRules[u]);if(l){this.rules.push(l),this.ruleOfClass[l.className]=l;for(let d=0;d<l.natives.length;d++)l.natives[d].cssRule=this.style.sheet.cssRules[u+d];u+=l.natives.length-1}}else this.style=Ki.cloneNode(),o.prepend(this.style);let k=u=>{u.forEach(p=>{p in this.countOfClass?this.countOfClass[p]++:(this.countOfClass[p]=1,this.insert(p))})};k(this.host.classList),a.subtree&&this.host.querySelectorAll("[class]").forEach(u=>k(u.classList)),super.observe(i,{...a,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let a=i.cssRules.length-1;a>=0;a--)i.deleteRule(a)}match(i){for(let a of this.config.Rules){let c=a.match(i,this.matches[a.id],this.colorsThemesMap,this.colorNames);if(c)return{...c,Rule:a}}for(let a of this.semantics)if(i.match(a[0]))return{origin:"semantics",value:a[1],Rule:t}}create(i){let a=c=>{if(c in this.ruleOfClass)return this.ruleOfClass[c];let o=this.match(c);if(o)return new o.Rule(c,o,this)};return(i in this.classes?this.classes[i].map(a):[a(i)]).filter(c=>c?.text)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let a=Ki.cloneNode();this.style.replaceWith(a),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let c in this.countOfClass)this.insert(c)}destroy(){let i=$i.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}delete(i){let a=this.style.sheet,c=o=>{let g=this.ruleOfClass[o];if(!(!g||o in this.relations&&this.relations[o].some(k=>k in this.countOfClass))){if(g.natives.length){let k=g.natives[0];for(let u=0;u<a.cssRules.length;u++)if(a.cssRules[u]===k.cssRule){for(let l=0;l<g.natives.length;l++)a.deleteRule(u);this.rules.splice(this.rules.indexOf(g),1);break}}delete this.ruleOfClass[o]}};if(i in this.classes){for(let o of this.classes[i])o in this.countOfClass||c(o);delete this.ruleOfClass[i]}else c(i)}insert(i){let a=this.create(i);if(a.length){for(let c of a){if(this.ruleOfClass[c.className])continue;let o,g=this.rules.length-1,{media:k,order:u,priority:p,hasWhere:l,className:d}=c,m=(f,b,T,R)=>{let y=0,n;b&&(y=f.findIndex(b)),T&&(n=f.findIndex(T)),y===-1&&(y=f.length),(n===void 0||n===-1)&&(n=f.length);let h=f.slice(y,n);for(let C=0;C<h.length;C++){let v=h[C];if(!(v.priority===-1||R&&R(v))&&(v.priority<p||v.priority===p&&(l&&!v.hasWhere||v.order>=u)))return y+C}return y+h.length};if(k){let f=this.rules.findIndex(b=>b.media);if(f!==-1){let b=k.features[H],T=k.features[z];if(b&&T){let R=b.value-T.value;for(let y=g;y>=f;y--){o=y;let n=this.rules[y],h=n.media,C=h.features[H],v=h.features[z];if(!C||!v){o++;break}let x=C.value-v.value;if(x===R){if(l!==n.hasWhere)continue;if(p!==-1){let A=[this.rules[y]];for(let w=y-1;w>=f;w--){let $=this.rules[w];if($.hasWhere!==l)break;let P=$.media,j=P.features[H],O=P.features[z];if(!j||!O||j.value-O.value!==x)break;A.unshift(this.rules[w])}o=m(this.rules,w=>w.media&&w.priority!==-1&&w.media.features[z]&&w.media.features[H])}break}else if(x>R)break}}else if(T)for(let R=f;R<=g;R++){o=R;let y=this.rules[R],n=y.media,h=n.features[H],C=n.features[z];if(h){if(C)break;continue}let v=C?.value;if(v===T.value){if(!l&&y.hasWhere){o++;continue}if(p!==-1)o=m(this.rules,x=>x.media,x=>x.media&&x.priority!==-1&&x.media.features[z]&&x.media.features[H],x=>!x.media.features[z]&&!x.media.features[H]);else for(let x=R;x<=g;x++){let A=this.rules[x],w=A.media,$=w.features[z];if(!w.features[H]){if(A.hasWhere!==l||$.value!==v||A.order>=u)break;o=x+1}}break}else{if(v>T.value)break;o++}}else if(b)for(let R=g;R>=f;R--){o=R;let y=this.rules[R],n=y.media,h=n.features[H];if(n.features[z])continue;let v=h?.value;if(!v||v>b.value){o++;break}else if(v===b.value){if(l&&!y.hasWhere)continue;if(p!==-1)o=m(this.rules,x=>x.media,x=>x.media&&x.priority!==-1&&x.media.features[z]&&x.media.features[H],x=>!x.media.features[z]&&!x.media.features[H]);else{let x=[this.rules[R]];for(let A=R-1;A>=f;A--){let w=this.rules[A],$=w.media,P=$.features[z],j=$.features[H];if(!P&&(!j||j.value!==v||w.hasWhere!==l))break;x.unshift(w)}for(let A=0;A<x.length;A++){let w=x[A];if(!w.media.features[z]){if(w.order>=u)break;o=R-x.length+2+A}}}break}}}if(o===void 0)if(f===-1)o=g+1;else if(p!==-1)o=f+m(this.rules.slice(f),void 0,b=>b.media.features[H]||b.media.features[z]);else if(l){let b=f;for(;b<this.rules.length;b++){let T=this.rules[b];if(T.priority!==-1||!T.hasWhere||T.order>=u){o=b;break}}o===void 0&&(o=b)}else for(let b=f;b<=g;b++){o=b;let T=this.rules[b],R=T.media;if(T.priority!==-1||R.features[H]||R.features[z])break;if(T.hasWhere)o++;else if(T.order>=u)break}}else if(p===-1)if(l)o=this.rules.findIndex(f=>!f.hasWhere||f.media||f.priority!==-1||f.order>=u),o===-1&&(o=g+1);else{let f=0;for(;f<this.rules.length;f++){let b=this.rules[f];if(b.media||!b.hasWhere&&(b.order>=u||b.priority!==-1)){o=f;break}}o===void 0&&(o=f)}else o=m(this.rules,void 0,f=>f.media);if(this.rules.splice(o,0,c),this.ruleOfClass[d]=c,this.style){let f=this.style.sheet,b=0,T=R=>{let y=this.rules[R];if(y){if(!y.natives.length)return T(R-1);let n=y.natives[y.natives.length-1].cssRule;for(let h=0;h<f.cssRules.length;h++)if(f.cssRules[h]===n){b=h+1;break}}};T(o-1);for(let R=0;R<c.natives.length;)try{let y=c.natives[R];f.insertRule(y.text,b),y.cssRule=f.cssRules[b++],R++}catch(y){console.error(y),c.natives.splice(R,1)}}}return!0}else return!1}get text(){return this.rules.map(i=>i.text).join("")}},ee=$i;zr=new WeakMap,K=new WeakMap,e(ee,"instances",[]),e(ee,"root");Pi&&(window.MasterCSS=ee);new ee({config:window.masterCSSConfig});})();
1
+ (()=>{var Ns=Object.defineProperty;var Ls=(r,s,i)=>s in r?Ns(r,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[s]=i;var e=(r,s,i)=>(Ls(r,typeof s!="symbol"?s+"":s,i),i),ps=(r,s,i)=>{if(!s.has(r))throw TypeError("Cannot "+i)};var re=(r,s,i)=>(ps(r,s,"read from private field"),i?i.call(r):s.get(r)),os=(r,s,i)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,i)},as=(r,s,i,a)=>(ps(r,s,"write to private field"),a?a.call(r,i):s.set(r,i),i);var zs={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Xr=zs;function qr(r){r.startsWith("#")&&(r=r.slice(1));let s=r.match(/.{1,2}/g);return[parseInt(s[0],16),parseInt(s[1],16),parseInt(s[2],16)]}function hs(r,s,i){return((1<<24)+(r<<16)+(s<<8)+i).toString(16).slice(1)}function $(r){typeof r=="string"&&(r={"":r});let s=""in r,i=!1;for(let a in r)if(a&&+a>=100){i=!0;break}if(!i&&(!s||Object.keys(r).length>1)){let a=0,l="0"in r?qr(r[0]):[0,0,0],o,c,v=[],h=()=>{let u=o-a,n=c.map((d,p)=>(d-l[p])/u);for(let d of v){let p=d-a,m=l.map((b,k)=>Math.round(b+n[k]*p));r[d]="#"+hs.call(this,...m)}};for(let u=1;u<100;u++)u in r?(v.length?(o=u,c=qr(r[u]),h(),v.length=0,l=c):l=qr(r[u]),a=u):v.push(u);v.length&&(o=100,c="100"in r?qr(r[100]):[255,255,255],h())}return s||(r[""]=r[i?"500":"50"]),r}var Gs={slate:$({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:$({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:$({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:$({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:$({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:$({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:$({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:$({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:$({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:$({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:$({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:$({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:$({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:$({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:$({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:$({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:$({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:$({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:$({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:$({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"},gs=Gs;var xs=16;var Vs={"::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("},vs=Vs;var _s={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"}},bs=_s;var Hs=["dark","light"],ys=Hs;var Us={storage:{sync:!0,key:"scheme"}},Rs=Us;var Jr={content:"content-box",border:"border-box",padding:"padding-box"},Hi={min:"min-content",max:"max-content"},Q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Xr)Q[r]=Xr[r]/16+"rem";var Qs={BackgroundClip:Jr,BackgroundOrigin:Jr,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Jr,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:Hi,GridAutoRows:Hi,GridTemplateColumns:Hi,GridTemplateRows:Hi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Jr,margin:"margin-box"},TransformBox:{...Jr,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:Q,MinWidth:Q,MinHeight:Q,MaxWidth:Q,MaxHeight:Q,Height:Q,FlexBasis:Q},Ss=Qs;function Ui(r,s){return(r?r+":":"")+(s.unit?s.value+s.unit:s.value)+(s.important?"!important":"")}var Ys=/^([+-.]?\d+(\.?\d+)?)(.*)?/;function Qi(r,s,i){if(i){let a="",l=r.match(Ys);if(l)if(r.includes("/")){let[o,c]=r.split("/");return{value:+o/+c*100+"%",unit:a}}else{let o=+l[1];return a=l[3]||"",a||((i==="rem"||i==="em")&&(o=o/s),a=i||""),{value:o,unit:a}}}}function ks(r,s,i){let a=n=>n==="+"||n==="-"||n==="*"||n==="/",l="",o,c="",v=!1,h=!1;function u(n,d="",p=""){if(o===2&&!h){let m=Qi(c,s,i);m&&(c=m.value+m.unit)}l+=c+d+n+p,o=null,h=!1,c=""}for(let n=0;n<r.length;n++){let d=r[n];if(d==="("||d===")")v=d===")",u(d);else if(d===",")u(d,""," ");else{switch(o){case 1:break;case 2:if(a(d)){u(d," "," ");continue}else/[0-9]/.test(d)||(h=!0);break;default:v&&(l+=" "),isNaN(+d)?a(d)||(o=1):o=2;break}o?c+=d:l+=d}}return c&&(l+=c),l}function Yi(r,s,i,a,l){let o="",c="",v;if(typeof r=="number")o=r,c=s||"";else{if(i){let u=Object.keys(i),n=!1,d=!1;r=r.replace(new RegExp(`(^|,| |\\()(${u.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(p,m,b,k,g)=>{d=!0;let S=i[b]?.[k||""];if(S){let f;for(let x of l)if(f=S[x])break;if(f){n=!0;let x=f;if(g){let T=g.endsWith("%")?parseFloat(g)/100:+g;T=isNaN(T)?1:Math.min(Math.max(T,0),1),x+=Math.round(T*255).toString(16).toUpperCase().padStart(2,"0")}return m+x}}return p}),d&&(v=n)}let h=Qi(r,a,s);if(h)return h;o=(r.indexOf("calc(")===-1?r:ks(r,a,s)).replace(/\$\(((\w|-)+)\)/g,"var(--$1)")}return{value:o,unit:c,colorMatched:v}}var Ve={"(":")","'":"'",'"':'"',"{":"}"};var Zs=["!","*",">","+","~",":","[","@","_"];function H(r,s,i,a=[]){let l=[",",...a],o=[],c="",v=0;return function h(u,n,d,p=""){let m,b=!1;n&&(n===")"&&c.slice(-1)==="$"?m=c.length-1:(n==="'"||n==='"')&&(b=!0),c+=u[v++]);let k=()=>{let g=c;if(c="",s&&g in s){let S=v;v=0,h(s[g].toString()),v=S}else if(i&&g in i){let S=v;v=0,h(i[g].toString()),v=S}else o.push({value:g})};for(;v<u.length;v++){let g=u[v];if(g===n){if(c+=g,b){let S=0;for(let f=c.length-2;c[f]==="\\";f--)S++;if(S%2)continue}m!==void 0&&(c=c.slice(0,m)+c.slice(m).replace(/\$\((.*)\)/,"var(--$1)")),d||(b?o.push(c):k(),p="",c="");break}else if(!b&&g in Ve)h(u,Ve[g],d===void 0?0:d+1,p);else if((g==="|"||g===" ")&&n!=="}"&&(!b||p==="path"))n?c+=" ":k();else{if(!n){if(g==="."){if(isNaN(+u[v+1]))break;u[v-1]==="-"&&(c+="0")}else if(l.includes(g)){c&&k(),o.push(g);continue}else if(g==="#"&&(c||o.length&&u[v-1]!=="|"&&o[v-1]!==" ")||Zs.includes(g))break;p+=g}c+=g}}d===void 0&&c&&k()}(r),[o,r.slice(v)]}var Ts=[":disabled",":active",":focus",":hover"],Kr="matches",Xs="semantics",Cs="symbol",Os="width",ns="max-"+Os,ls="min-"+Os,ds="motion",Ms="reduce",ws=Ms+"d-"+ds,cs="px",qs="rem",Js=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Ks=r=>r.split(Js).map((s,i)=>i%3?s:s.replace(/_/g," ")).join(""),t=class{constructor(s,i,a){this.className=s;this.matching=i;this.css=a;let l=this.constructor,{id:o,unit:c,colorful:v,prop:h}=l,{rootSize:u}=a.config,{themeNames:n,colorsThemesMap:d,selectors:p,globalValues:m,breakpoints:b,mediaQueries:k}=a,g=a.values[o],S=a.relationThemesMap[s],f=s,x,T,y,R;if(i.origin===Xs){let[A,B]=i.value;y=f.slice(A.length),x=B}else if(this.analyzeToken)[T,R,y]=this.analyzeToken(f,g,m);else{let A;if(i.origin===Kr){let B=f.indexOf(":");this.prefix=f.slice(0,B+1),this.prefix.includes("(")?(this.prefix=void 0,A=f):A=f.slice(B+1)}else i.origin===Cs&&(this.symbol=f[0],A=f.slice(1));[R,y]=H(A,g,m)}y[0]==="!"&&(this.important=!0,y=y.slice(1));let O=A=>{let B=Ks(A),I=[],D="",G=0;for(let M=0;M<B.length;M++){let W=B[M];if(W==="\\"){D+=W+B[++M];continue}!G&&W===","?(I.push(D),D=""):(D+=W,G&&W===")"?G--:W==="("&&G++)}return D&&I.push(D),I};this.prefixSelectors=T?O(T):[""];let w=y.split("@"),E=w[0];if(E){this.vendorSuffixSelectors={};let A=(M,W,C,j)=>{for(let[P,L]of W)if(P.test(M)){for(let _ of L)A(M.replace(P,_),W,C,!0);return}j&&C.push(M)},B=[];""in p?A(E,p[""],B,!0):B.push(E);let I={};for(let[M,W]of Object.entries(p)){if(!M)continue;let C=[];for(let j of B)A(j,W,C,!1);C.length&&(I[M]=C)}let D=(M,W)=>{let C=W.reduce((j,P)=>(j.push(...O(P)),j),[]);M in this.vendorSuffixSelectors?this.vendorSuffixSelectors[M].push(...C):this.vendorSuffixSelectors[M]=C},G=Object.keys(I);if(G.length)for(let M of G)D(M,I[M]);else D("",B);for(let M of Object.values(this.vendorSuffixSelectors))for(let W of M){this.hasWhere!==!1&&(this.hasWhere=W.includes(":where("));for(let C=0;C<Ts.length;C++)if(W.includes(Ts[C])){(this.priority===-1||this.priority>C)&&(this.priority=C);break}}}else this.vendorSuffixSelectors={"":[""]};for(let A=1;A<w.length;A++){let B=w[A];if(B)if(n.includes(B))this.theme=B;else if(B==="rtl"||B==="ltr")this.direction=B;else{let I,D,G=B.indexOf("_");if(G!==-1)I=B.slice(0,G),D=B.slice(G);else{let M=B.indexOf("(");M!==-1&&(I=B.slice(0,M),D=B.slice(M))}if(!I){I="media";let M=[];this.media={token:B,features:{}};let W=B.split("&");for(let C of W)if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")M.push("(orientation:"+C+")");else if(C===ds||C===ws)M.push("(prefers-"+ws+":"+(C===ds?"no-preference":Ms)+")");else if(k&&C in k)M.push(k[C]);else{let j={token:C},P="",L="",_=0;C.startsWith("<=")?(L="<=",P=ns):C.startsWith(">=")||b[C]?(L=">=",P=ls):C.startsWith(">")?(L=">",P=ls,_=.02):C.startsWith("<")&&(L="<",P=ns,_=-.02);let U=L?C.replace(L,""):C,N=b[U];switch(P){case ns:case ls:N?Object.assign(j,Yi(N,cs)):Object.assign(j,Yi(U,cs)),j.unit===cs&&(j.value+=_),this.media.features[P]=j,M.push("("+P+":"+(j.value+j.unit)+")");break}}D="",this.media.type&&(D=this.media.type),M.length&&(D+=(D?" and ":"")+M.join(" and "))}D&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+D.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let F=(A,B)=>{let I,D,G=(W,C,j)=>{let P="";this.direction&&(P+="[dir="+this.direction+"] ");let L=this.prefixSelectors.map(N=>N+P),_=(N,Vi)=>{let Zr=N?"."+N+" ":"",ss="."+CSS.escape(Vi);return L.map(_i=>Zr+_i).reduce((_i,$s)=>(_i.push(j.reduce((us,Ps)=>(us.push($s+ss+Ps),us),[]).join(",")),_i),[]).join(",")},U=_(C,s)+(S?Object.entries(S).filter(([N])=>this.theme||!v||!C||!N||N===C).map(([N,Vi])=>Vi.reduce((Zr,ss)=>Zr+","+_(this.theme??(v&&C||N),ss),"")).join(""):"")+"{"+W+"}";for(let N of Object.keys(this.at).sort((Vi,Zr)=>Zr==="supports"?-1:1))U="@"+N+" "+this.at[N]+"{"+U+"}";return U},M=[];if(R){let W,C;for(let j of R)typeof j=="string"?M.push(j):(W=Yi(j.value,c,v&&d,u,this.theme?[this.theme,""]:[A]),W.colorMatched!==void 0&&C!==!0&&(C=W.colorMatched),M.push(W.value+W.unit));if(B&&(C===void 0?A:!C))return;if(M.length===1?W?(I=W.value,D=W.unit):I=M[0]:I=M.reduce((j,P,L)=>j+P+(P===","||R[L+1]===","||L===R.length-1?"":" "),""),typeof I!="object"){this.parseValue&&(I=this.parseValue(I,this.css.config)),v&&I==="current"&&(I="currentColor");let j={unit:D,value:I,important:this.important};if(this.getThemeProps){let P=this.getThemeProps(j,a);for(let L in P)for(let _ of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:D,value:I,text:G(Object.entries(P[L]).map(([U,N])=>Ui(U,{important:this.important,unit:"",value:N})).join(";"),L,_),theme:L});return}else this.get&&(I=this.get(j))}}else I=x;for(let W of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:D,value:I,text:G(typeof I=="object"?Object.entries(I).map(([C,j])=>Ui(C,{...typeof j=="object"?j:{unit:"",value:j},important:this.important})).join(";"):Ui(h,{unit:D,value:I,important:this.important}),A,W),theme:A})};if(this.getThemeProps)F(void 0,!1);else if(this.theme)F(this.theme,!1);else if(v)for(let A of n)F(A,!0);else F("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;theme;unitToken;hasWhere;priority=-1;natives=[];static get prop(){return this.id?.replace(/(?!^)[A-Z]/g,s=>"-"+s).toLowerCase()}static match(s,i,a,l){let{colorStarts:o,symbol:c,prop:v}=this;if(i&&i.test(s))return{origin:Kr};if(o){if(s.match("^"+o+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))"))return{origin:Kr};if(l.length&&s.indexOf("|")===-1){let h=s.match("^"+o+"("+l.join("|")+")([0-9a-zA-Z-]*)");if(h&&(!h[2]||h[2].slice(1)in a[h[1]]))return{origin:Kr}}}if(c&&s.startsWith(c))return{origin:Cs};if(v&&s.startsWith(v+":"))return{origin:Kr}}get text(){return this.natives.map(s=>s.text).join("")}};e(t,"id"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",qs),e(t,"colorful");var ie=class extends t{};e(ie,"id","FontWeight"),e(ie,"matches","^f(?:ont)?:(?:bolder|$values)(?!\\|)"),e(ie,"unit","");var _e=class extends t{};e(_e,"id","FontFamily"),e(_e,"matches","^f(?:ont)?:(?:$values)(?!\\|)");var He=class extends t{};e(He,"id","FontSize"),e(He,"matches","^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var Ue=class extends t{static get prop(){return""}get(r){let i=this.prefix[0]==="m"?"margin":"padding",a=i+"-left",l=i+"-right",o=i+"-top",c=i+"-bottom";switch(this.prefix[1]){case"x":return{[a]:r,[l]:r};case"y":return{[o]:r,[c]:r};case"l":return{[a]:r};case"r":return{[l]:r};case"t":return{[o]:r};case"b":return{[c]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Ue,"id","Spacing"),e(Ue,"matches","^[pm][xytblr]?:.");var Qe=class extends t{};e(Qe,"id","Width"),e(Qe,"matches","^w:.");var Ye=class extends t{};e(Ye,"id","Height"),e(Ye,"matches","^h:.");var Ze=class extends t{};e(Ze,"id","MinWidth"),e(Ze,"matches","^min-w:.");var Xe=class extends t{};e(Xe,"id","MinHeight"),e(Xe,"matches","^min-h:.");var se=class extends t{};e(se,"id","LetterSpacing"),e(se,"matches","^ls:."),e(se,"unit","em");var eo="subpixel-antialiased",As="-webkit-font-smoothing",Bs="-moz-osx-font-smoothing",oe=class extends t{static get prop(){return""}get(r){let s={};switch(r.value){case eo:s[As]=s[Bs]={...r,value:"auto"};break;case"antialiased":s[As]={...r,value:"antialiased"},s[Bs]={...r,value:"grayscale"};break}return s}};e(oe,"id","FontSmoothing"),e(oe,"matches","^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)"),e(oe,"unit","");var ae=class extends t{};e(ae,"id","FontStyle"),e(ae,"matches","^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)"),e(ae,"unit","deg");var qe=class extends t{};e(qe,"id","FontVariantNumeric"),e(qe,"matches","^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)");var Je=class extends t{};e(Je,"id","FontFeatureSettings"),e(Je,"matches","^font-feature:.");var ne=class extends t{};e(ne,"id","LineHeight"),e(ne,"matches","^lh:."),e(ne,"unit","");var Ke=class extends t{};e(Ke,"id","ObjectFit"),e(Ke,"matches","^(?:object|obj):(?:contain|cover|fill|scale-down|$values)");var et=class extends t{};e(et,"id","ObjectPosition"),e(et,"matches","^(?:object|obj):(?:top|bottom|right|left|center|$values)");var tt=class extends t{};e(tt,"id","TextAlign"),e(tt,"matches","^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)");var le=class extends t{order=-1};e(le,"id","TextDecoration"),e(le,"matches","^t(?:ext)?:(?:underline|line-through|overline|$values)"),e(le,"colorful",!0);var rt=class extends t{};e(rt,"id","TextTransform"),e(rt,"matches","^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)");var it=class extends t{};e(it,"id","VerticalAlign"),e(it,"matches","^(?:v|vertical):.");var ce=class extends t{static get prop(){return""}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(ce,"id","Lines"),e(ce,"matches","^lines:."),e(ce,"unit","");var de=class extends t{};e(de,"id","TransformOrigin"),e(de,"matches","^transform:(?:top|bottom|right|left|center|[0-9]|$values)"),e(de,"unit","px");var st=class extends t{};e(st,"id","TransformStyle"),e(st,"matches","^transform:(?:flat|preserve-3d|$values)(?!\\|)");var ot=class extends t{};e(ot,"id","TransformBox"),e(ot,"matches","^transform:(?:$values)(?!\\|)");var fe=class extends t{parseValue(r,{rootSize:s}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,a,l,o)=>{let c,v;switch(a){case"translate":c="rem";break;case"skew":c="deg";break;case"rotate":l==="3d"&&(v=!0),c="deg";break;default:return i}let h=o.split(",");return i.replace(o,h.map((u,n)=>!v||h.length-1===n?Number.isNaN(+u)?u:u/(c==="rem"?s:1)+c:u).join(","))})}};e(fe,"id","Transform"),e(fe,"matches","^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\("),e(fe,"unit","");var at=class extends t{order=-1};e(at,"id","Transition"),e(at,"symbol","~");var me=class extends t{};e(me,"id","TransitionDelay"),e(me,"matches","^~delay:."),e(me,"unit","ms");var ue=class extends t{};e(ue,"id","TransitionDuration"),e(ue,"matches","^~duration:."),e(ue,"unit","ms");var nt=class extends t{};e(nt,"id","TransitionProperty"),e(nt,"matches","^~property:.");var lt=class extends t{};e(lt,"id","TransitionTimingFunction"),e(lt,"matches","^~easing:.");var ct=class extends t{};e(ct,"id","MaxHeight"),e(ct,"matches","^max-h:.");var dt=class extends t{};e(dt,"id","MaxWidth"),e(dt,"matches","^max-w:.");var ft=class extends t{};e(ft,"id","Display"),e(ft,"matches","^d:.");var mt=class extends t{};e(mt,"id","BoxSizing"),e(mt,"matches","^box:(?:$values)(?!\\|)");var ut=class extends t{};e(ut,"id","Opacity"),e(ut,"unit","");var ei=class extends t{};e(ei,"id","Visibility");var ti=class extends t{};e(ti,"id","Clear");var ri=class extends t{};e(ri,"id","Float");var ii=class extends t{};e(ii,"id","Isolation");var pt=class extends t{static get prop(){return""}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(pt,"id","Overflow"),e(pt,"matches","^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)");var ht=class extends t{static get prop(){return""}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(ht,"id","OverscrollBehavior"),e(ht,"matches","^overscroll-behavior(?:-[xy])?:");var pe=class extends t{};e(pe,"id","ZIndex"),e(pe,"matches","^z:."),e(pe,"unit","");var he=class extends t{};e(he,"id","AnimationDelay"),e(he,"matches","^@delay:."),e(he,"unit","ms");var gt=class extends t{};e(gt,"id","AnimationDirection"),e(gt,"matches","^@direction:.");var xt=class extends t{};e(xt,"id","AnimationFillMode"),e(xt,"matches","^@fill-mode:.");var ge=class extends t{};e(ge,"id","AnimationIterationCount"),e(ge,"matches","^@iteration-count:."),e(ge,"unit","");var vt=class extends t{};e(vt,"id","AnimationName"),e(vt,"matches","^@name:.");var bt=class extends t{};e(bt,"id","AnimationPlayState"),e(bt,"matches","^@play-state:.");var yt=class extends t{};e(yt,"id","AnimationTimingFunction"),e(yt,"matches","^@easing:.");var xe=class extends t{order=-1};e(xe,"id","Animation"),e(xe,"symbol","@"),e(xe,"unit","");var Zi="border-";function Y(r,s,i=""){i&&(i="-"+i);let a=/^b(order)?-?(.)?/.exec(r)[2],l=Zi+"left"+i,o=Zi+"right"+i,c=Zi+"top"+i,v=Zi+"bottom"+i;switch(a){case"x":return{[l]:s,[o]:s};case"y":return{[c]:s,[v]:s};case"l":return{[l]:s};case"r":return{[o]:s};case"t":return{[c]:s};case"b":return{[v]:s};default:return{["border"+i]:s}}}var Z=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Z,"id","BorderColor"),e(Z,"matches","^border(?:-(?:left|right|top|bottom))?-color:."),e(Z,"colorStarts","b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?:"),e(Z,"colorful",!0);var Xi="border-top-left-radius",qi="border-top-right-radius",Ji="border-bottom-left-radius",Ki="border-bottom-right-radius",Is="border-radius",to=[Xi,qi,Ji,Ki],Rt=class extends t{static get prop(){return""}get(r){if(this.prefix){let i="",a=this.prefix.split("-");if(a.length>1)for(let l=1;l<a.length-1;l++)i+=a[l][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[Xi]:r,[qi]:r};case"tl":case"lt":return{[Xi]:r};case"rt":case"tr":return{[qi]:r};case"b":return{[Ji]:r,[Ki]:r};case"bl":case"lb":return{[Ji]:r};case"br":case"rb":return{[Ki]:r};case"l":return{[Xi]:r,[Ji]:r};case"r":return{[qi]:r,[Ki]:r};default:return{[Is]:r}}}let s=this.prefix?.slice(0,-1);return{[to.includes(s)?s:Is]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Rt,"id","BorderRadius"),e(Rt,"matches","^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.");var St=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(St,"id","BorderStyle"),e(St,"matches","^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))");var kt=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(kt,"id","BorderWidth"),e(kt,"matches","^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)");var ve=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(ve,"id","Border"),e(ve,"matches","^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):."),e(ve,"colorful",!0);var Tt=class extends t{};e(Tt,"id","BackgroundAttachment"),e(Tt,"matches","^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)");var si=class extends t{};e(si,"id","BackgroundBlendMode");var Ct=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(Ct,"id","BackgroundClip"),e(Ct,"matches","^(?:bg|background):(?:text|$values)(?!\\|)");var X=class extends t{};e(X,"id","BackgroundColor"),e(X,"colorStarts","(?:bg|background):"),e(X,"unit",""),e(X,"colorful",!0);var wt=class extends t{};e(wt,"id","BackgroundOrigin"),e(wt,"matches","^(?:bg|background):(?:$values)(?!\\|)");var be=class extends t{};e(be,"id","BackgroundPosition"),e(be,"matches","^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)"),e(be,"unit","px");var Ot=class extends t{};e(Ot,"id","BackgroundRepeat"),e(Ot,"matches","^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])");var Mt=class extends t{};e(Mt,"id","BackgroundSize"),e(Mt,"matches","^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)");var ye=class extends t{};e(ye,"id","BackgroundImage"),e(ye,"matches","^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)"),e(ye,"colorful",!0);var Re=class extends t{order=-1};e(Re,"id","Background"),e(Re,"matches","^bg:."),e(Re,"colorful",!0);var At=class extends t{};e(At,"id","MixBlendMode"),e(At,"matches","^blend:.");var oi=class extends t{};e(oi,"id","Position");function es(r,s,{rootSize:i}){let a="",l=0;return function o(c,v){let h="",u=v?s(v):"",n=()=>{h&&(a+=!u||Number.isNaN(+h)?h:+h/(u==="rem"?i:1)+u,h="")};for(;l<r.length;l++){let d=r[l];if(d===c&&(c!=="'"||r[l+1]===")")){n(),a+=d;break}else d===","||d===" "?(n(),a+=d):!h&&d==="'"?(a+=d,l++,o(d),h=""):h&&d==="("?(a+=h+d,l++,o(")",h),h=""):h+=d}n()}(),a}var Se=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,s){return es(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},s)}};e(Se,"id","BackdropFilter"),e(Se,"matches","^bd:."),e(Se,"colorful",!0);var ke=class extends t{};e(ke,"id","Fill"),e(ke,"colorStarts","fill:"),e(ke,"colorful",!0);var Bt=class extends t{};e(Bt,"id","Stroke"),e(Bt,"colorful",!0);var It=class extends t{};e(It,"id","StrokeWidth"),e(It,"matches","^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var Te=class extends t{parseValue(r,s){return es(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},s)}};e(Te,"id","Filter"),e(Te,"matches","^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\("),e(Te,"colorful",!0);var ai=class extends t{};e(ai,"id","Cursor");var ni=class extends t{};e(ni,"id","PointerEvents");var li=class extends t{};e(li,"id","Resize");var ci=class extends t{};e(ci,"id","TouchAction");var di=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(di,"id","UserDrag");var fi=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(fi,"id","UserSelect");var Ce=class extends t{};e(Ce,"id","BoxShadow"),e(Ce,"matches","^s(?:hadow)?:."),e(Ce,"colorful",!0);var Wt=class extends t{};e(Wt,"id","TextShadow"),e(Wt,"colorful",!0);var Ws=.5,jt=class extends t{static get prop(){return""}get(r){let{unit:s,value:i}=r;return{"font-size":r,"line-height":{...r,value:s==="rem"?i+Ws+s:`calc(${i}${s} + ${Ws}rem)`,unit:""}}}};e(jt,"id","TextSize"),e(jt,"matches","^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var Et=class extends t{};e(Et,"id","WordBreak"),e(Et,"unit","");var we=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(we,"id","GridColumns"),e(we,"matches","^grid-cols:."),e(we,"unit","");var Ft=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(Ft,"id","GridRows"),e(Ft,"unit","");var Dt=class extends t{static get prop(){return""}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(Dt,"id","Gap"),e(Dt,"matches","^gap(?:-x|-y)?:.");var $t=class extends t{};e($t,"id","WordSpacing"),e($t,"unit","em");var Oe=class extends t{static get prop(){return""}get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(Oe,"id","Variable"),e(Oe,"matches","^\\$[^ {}A-Z]+:[^ ]"),e(Oe,"unit","");var Me=class extends t{};e(Me,"id","AspectRatio"),e(Me,"matches","^aspect:."),e(Me,"unit","");var Pt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Pt,"id","BoxDecorationBreak"),e(Pt,"matches","^box:(?:slice|clone|$values)(?!\\|)");var mi=class extends t{};e(mi,"id","BreakAfter");var ui=class extends t{};e(ui,"id","BreakBefore");var pi=class extends t{};e(pi,"id","BreakInside");var Nt=class extends t{};e(Nt,"id","FlexShrink"),e(Nt,"unit","");var Lt=class extends t{};e(Lt,"id","FlexDirection"),e(Lt,"matches","^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)");var zt=class extends t{};e(zt,"id","FlexGrow"),e(zt,"unit","");var Gt=class extends t{};e(Gt,"id","FlexWrap"),e(Gt,"matches","^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)");var hi=class extends t{};e(hi,"id","FlexBasis");var Vt=class extends t{order=-1};e(Vt,"id","Flex"),e(Vt,"unit","");var Ae=class extends t{};e(Ae,"id","Order"),e(Ae,"matches","^o:."),e(Ae,"unit","");var Be=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Be,"id","GridColumn"),e(Be,"matches","^grid-col(?:umn)?(?:-span)?:."),e(Be,"unit","");var _t=class extends t{};e(_t,"id","ColumnSpan"),e(_t,"matches","^col-span:.");var Ie=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Ie,"id","GridRow"),e(Ie,"matches","^grid-row-span:."),e(Ie,"unit","");var q=class extends t{};e(q,"id","Color"),e(q,"matches","^(?:color|fg|foreground):."),e(q,"colorful",!0),e(q,"unit","");var Ht=class extends t{};e(Ht,"id","AlignContent"),e(Ht,"matches","^ac:.");var Ut=class extends t{};e(Ut,"id","AlignItems"),e(Ut,"matches","^ai:.");var Qt=class extends t{};e(Qt,"id","AlignSelf"),e(Qt,"matches","^as:");var Yt=class extends t{};e(Yt,"id","GridAutoColumns"),e(Yt,"matches","^grid-auto-cols:.");var Zt=class extends t{};e(Zt,"id","GridAutoFlow"),e(Zt,"matches","^grid-flow:.");var gi=class extends t{};e(gi,"id","GridAutoRows");var Xt=class extends t{};e(Xt,"id","JustifyContent"),e(Xt,"matches","^jc:.");var qt=class extends t{};e(qt,"id","JustifyItems"),e(qt,"matches","^ji:.");var Jt=class extends t{};e(Jt,"id","JustifySelf"),e(Jt,"matches","^js:.");var xi=class extends t{order=-1};e(xi,"id","PlaceContent");var vi=class extends t{order=-1};e(vi,"id","PlaceItems");var bi=class extends t{order=-1};e(bi,"id","PlaceSelf");var Kt=class extends t{static get prop(){return""}get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(Kt,"id","Padding"),e(Kt,"matches","^padding(?:-(?:left|right|top|bottom))?:.");var er=class extends t{static get prop(){return""}get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(er,"id","Margin"),e(er,"matches","^margin(?:-(?:left|right|top|bottom))?:.");var tr=class extends t{};e(tr,"id","TextOverflow"),e(tr,"matches","^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))");var rr=class extends t{};e(rr,"id","ListStylePosition"),e(rr,"matches","^list-style:(?:inside|outside|$values)(?!\\|)");var ir=class extends t{};e(ir,"id","ListStyleType"),e(ir,"matches","^list-style:(?:disc|decimal|$values)(?!\\|)");var yi=class extends t{order=-1};e(yi,"id","ListStyle");var We=class extends t{};e(We,"id","TextDecorationColor"),e(We,"colorStarts","text-decoration:"),e(We,"colorful",!0);var sr=class extends t{};e(sr,"id","TextDecorationStyle"),e(sr,"matches","^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)");var je=class extends t{};e(je,"id","TextDecorationThickness"),e(je,"matches","^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$"),e(je,"unit","em");var Ri=class extends t{};e(Ri,"id","TextIndent");var Si=class extends t{};e(Si,"id","Content");var Ee=class extends t{};e(Ee,"id","OutlineColor"),e(Ee,"colorStarts","outline:"),e(Ee,"colorful",!0);var ki=class extends t{};e(ki,"id","OutlineOffset");var or=class extends t{};e(or,"id","OutlineStyle"),e(or,"matches","^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)");var ar=class extends t{};e(ar,"id","OutlineWidth"),e(ar,"matches","^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var nr=class extends t{order=-1};e(nr,"id","Outline"),e(nr,"colorful",!0);var lr=class extends t{};e(lr,"id","BorderCollapse"),e(lr,"matches","^b(?:order)?:(?:collapse|separate|$values)(?!\\|)");var Ti=class extends t{};e(Ti,"id","BorderSpacing");var Ci=class extends t{};e(Ci,"id","TableLayout");var Fe=class extends t{};e(Fe,"id","AccentColor"),e(Fe,"colorStarts","accent:"),e(Fe,"colorful",!0);var wi=class extends t{};e(wi,"id","Appearance");var De=class extends t{};e(De,"id","CaretColor"),e(De,"colorStarts","caret:"),e(De,"colorful",!0);var Oi=class extends t{};e(Oi,"id","ScrollBehavior");var cr=class extends t{static get prop(){return""}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(cr,"id","ScrollMargin"),e(cr,"matches","^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.");var dr=class extends t{static get prop(){return""}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(dr,"id","ScrollPadding"),e(dr,"matches","^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.");var fr=class extends t{};e(fr,"id","ScrollSnapAlign"),e(fr,"matches","^scroll-snap:(?:start|end|center|$values)");var mr=class extends t{};e(mr,"id","ScrollSnapStop"),e(mr,"matches","^scroll-snap:(?:normal|always|$values)(?!\\|)");var ur=class extends t{};e(ur,"id","ScrollSnapType"),e(ur,"matches","^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)");var Mi=class extends t{};e(Mi,"id","WillChange");var Ai=class extends t{};e(Ai,"id","TextUnderlineOffset");var pr=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(pr,"id","Inset"),e(pr,"matches","^(?:top|bottom|left|right):.");var $e=class extends t{order=-1};e($e,"id","Columns"),e($e,"matches","^(?:columns|cols):."),e($e,"unit","");var hr=class extends t{};e(hr,"id","WhiteSpace"),e(hr,"unit","");var gr=class extends t{};e(gr,"id","TextOrientation"),e(gr,"matches","^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)");var xr=class extends t{};e(xr,"id","WritingMode"),e(xr,"matches","^writing:.");var Bi=class extends t{};e(Bi,"id","Contain");var Pe=class extends t{};e(Pe,"id","AnimationDuration"),e(Pe,"matches","^@duration:."),e(Pe,"unit","ms");var vr=class extends t{};e(vr,"id","TextRendering"),e(vr,"matches","^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)");var Ii=class extends t{};e(Ii,"id","Direction");var br=class extends t{};e(br,"id","TextDecorationLine"),e(br,"matches","^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)");var Ne=class extends t{};e(Ne,"id","GridColumnStart"),e(Ne,"matches","^grid-col-start:."),e(Ne,"unit","");var yr=class extends t{};e(yr,"id","ListStyleImage"),e(yr,"matches","^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)");var Rr=class extends t{};e(Rr,"id","ShapeOutside"),e(Rr,"matches","^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)");var Sr=class extends t{};e(Sr,"id","ShapeMargin"),e(Sr,"matches","^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var kr=class extends t{};e(kr,"id","ShapeImageThreshold"),e(kr,"unit","");var Tr=class extends t{};e(Tr,"id","ClipPath"),e(Tr,"matches","^clip:.");var Wi=class extends t{order=-1};e(Wi,"id","Grid");var Le=class extends t{order=-1};e(Le,"id","Font"),e(Le,"matches","^f:."),e(Le,"unit","");var ji=class extends t{};e(ji,"id","Quotes");var Ei=class extends t{order=-1};e(Ei,"id","GridTemplate");var Cr=class extends t{};e(Cr,"id","GridRowStart"),e(Cr,"unit","");var Fi=class extends t{};e(Fi,"id","GridTemplateAreas");var wr=class extends t{};e(wr,"id","GridTemplateColumns"),e(wr,"matches","^grid-template-cols:.");var Di=class extends t{};e(Di,"id","GridTemplateRows");var Or=class extends t{order=-1};e(Or,"id","GridArea"),e(Or,"unit","");var ze=class extends t{};e(ze,"id","GridColumnEnd"),e(ze,"matches","^grid-col-end:."),e(ze,"unit","");var Mr=class extends t{};e(Mr,"id","GridRowEnd"),e(Mr,"unit","");var $i=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e($i,"id","MaskImage");var J=class extends t{static get prop(){return""}get(r){return{"-webkit-text-fill-color":r}}};e(J,"id","TextFillColor"),e(J,"matches","^text-fill-color:."),e(J,"colorStarts","(?:text-fill|text|t):"),e(J,"colorful",!0);var Ar=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke":r}}};e(Ar,"id","TextStroke"),e(Ar,"matches","^text-stroke:.");var Br=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke-width":r}}};e(Br,"id","TextStrokeWidth"),e(Br,"matches","^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)");var K=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke-color":r}}};e(K,"id","TextStrokeColor"),e(K,"matches","^text-stroke-color:."),e(K,"colorStarts","text-stroke:"),e(K,"colorful",!0);var Pi=class extends t{};e(Pi,"id","StrokeDasharray");var Ni=class extends t{};e(Ni,"id","StrokeDashoffset");var Ir=class extends t{};e(Ir,"id","X"),e(Ir,"unit","");var Wr=class extends t{};e(Wr,"id","Y"),e(Wr,"unit","");var jr=class extends t{};e(jr,"id","Cx"),e(jr,"unit","");var Er=class extends t{};e(Er,"id","Cy"),e(Er,"unit","");var Fr=class extends t{};e(Fr,"id","Rx"),e(Fr,"unit","");var Dr=class extends t{};e(Dr,"id","Ry"),e(Dr,"unit","");var Li=class extends t{};e(Li,"id","BorderImageOutset");var $r=class extends t{};e($r,"id","BorderImageRepeat"),e($r,"matches","^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)");var Pr=class extends t{};e(Pr,"id","BorderImageSlice"),e(Pr,"unit","");var Nr=class extends t{};e(Nr,"id","BorderImageSource"),e(Nr,"matches","^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)");var Lr=class extends t{};e(Lr,"id","BorderImageWidth"),e(Lr,"matches","^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var zr=class extends t{};e(zr,"id","BorderImage"),e(zr,"unit","");var ro=/\{(.*)\}/,Ge=class extends t{static get prop(){return""}analyzeToken(r,s,i){let a=0;for(;a<r.length&&!(r[a]==="{"&&r[a-1]!=="\\");a++);return[r.slice(0,a),...H(r.slice(a),s,i)]}getThemeProps(r,s){let i={},a=(u,n)=>{let d=n.indexOf(":");if(d!==-1){u in i||(i[u]={});let p=i[u],m=n.slice(0,d);m in p||(p[m]=n.slice(d+1))}},l=u=>{let n=(d,p)=>{let m=p.slice(CSS.escape(u.className).length).match(ro)[1].split(";");for(let b of m)a(d,b)};if(this.theme){let d=u.natives.find(p=>p.theme===this.theme)??u.natives.find(p=>!p.theme);d&&n(this.theme,d.text)}else for(let d of u.natives)n(d.theme,d.text)},o=[],c="",v=()=>{c&&(o.push(c),c="")},h=1;(function u(n){for(;h<r.value.length;h++){let d=r.value[h];if(!n){if(d===";"){v();continue}if(d==="}")break}if(c+=d,n===d){if(n==="'"||n==='"'){let p=0;for(let m=c.length-2;c[m]==="\\";m--)p++;if(p%2)continue}break}else d in Ve&&n!=="'"&&n!=='"'&&(h++,u(Ve[d]))}})(void 0),v();for(let u of o){let n=s.create(u);if(Array.isArray(n))for(let d of n)l(d);else n?l(n):a(this.theme??"",u)}return i}};e(Ge,"id","Group"),e(Ge,"matches","^(?:.+?[*_>~+])?\\{.+?\\}"),e(Ge,"unit","");var Gr=class extends t{};e(Gr,"id","CounterIncrement"),e(Gr,"unit","");var Vr=class extends t{};e(Vr,"id","CounterReset"),e(Vr,"unit","");var _r=class extends t{static get prop(){return""}analyzeToken(r,s,i){return["",...H(r,s,i,["x"])]}get(r){let[s,i]=r.value.split(" x ");return{width:{...r,value:s},height:{...r,value:i}}}};e(_r,"id","WH"),e(_r,"matches","^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)");var Hr=class extends t{static get prop(){return""}analyzeToken(r,s,i){return["",...H(r.slice(4),s,i,["x"])]}get(r){let[s,i]=r.value.split(" x ");return{"min-width":{...r,value:s},"min-height":{...r,value:i}}}};e(Hr,"id","MinWH"),e(Hr,"matches","^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)");var Ur=class extends t{static get prop(){return""}analyzeToken(r,s,i){return["",...H(r.slice(4),s,i,["x"])]}get(r){let[s,i]=r.value.split(" x ");return{"max-width":{...r,value:s},"max-height":{...r,value:i}}}};e(Ur,"id","MaxWH"),e(Ur,"matches","^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)");var io=[Ge,Oe,He,ie,_e,oe,ae,qe,Je,Le,q,Ue,er,Kt,hi,Gt,zt,Nt,Lt,Vt,ft,Qe,Ye,Ze,Xe,_r,Hr,Ur,Bi,Si,Gr,Vr,se,ne,Ke,et,tt,We,sr,je,br,le,Ai,tr,gr,rt,vr,Ri,it,$e,hr,pr,ce,ct,dt,mt,ut,ei,ti,ri,ii,pt,ht,pe,oi,ai,ni,li,ci,Et,$t,di,fi,Wt,jt,J,Br,K,Ar,Ce,Ci,ot,st,de,fe,nt,lt,ue,me,at,he,gt,Pe,xt,ge,vt,bt,yt,xe,Z,Rt,St,kt,lr,Ti,Li,$r,Pr,Nr,Lr,zr,ve,Tt,si,Ct,X,wt,be,Ot,Mt,ye,Re,At,Se,Te,ke,Pi,Ni,It,Bt,Ir,Wr,jr,Er,Fr,Dr,Ne,ze,Be,we,Cr,Mr,Ie,Ft,Yt,Zt,gi,Fi,wr,Di,Ei,Or,Wi,Dt,Ae,pi,ui,mi,Pt,Me,_t,Ht,Ut,Qt,Xt,qt,Jt,xi,vi,bi,rr,ir,yr,yi,Ee,ki,or,ar,nr,Fe,wi,De,Oi,cr,dr,fr,mr,ur,Mi,xr,Ii,Rr,Sr,kr,Tr,ji,$i],js=io;var so={colors:gs,breakpoints:Xr,semantics:bs,values:Ss,selectors:vs,themes:ys,scheme:Rs,Rules:js,rootSize:xs},fs=so;function Es(r,s){return Array.isArray(r)&&Array.isArray(s)?r.concat(s):s}function ts(r){return Object.prototype.toString.call(r).slice(8,-1)}function Qr(r){return ts(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function ms(r){return ts(r)==="Symbol"}function Fs(r,s,i,a){let l={}.propertyIsEnumerable.call(a,s)?"enumerable":"nonenumerable";l==="enumerable"&&(r[s]=i),l==="nonenumerable"&&Object.defineProperty(r,s,{value:i,enumerable:!1,writable:!0,configurable:!0})}function Ds(r,s,i){if(!Qr(s))return s;let a={};if(Qr(r)){let v=Object.getOwnPropertyNames(r),h=Object.getOwnPropertySymbols(r);a=[...v,...h].reduce((u,n)=>{let d=r[n];return(!ms(n)&&!Object.getOwnPropertyNames(s).includes(n)||ms(n)&&!Object.getOwnPropertySymbols(s).includes(n))&&Fs(u,n,d,r),u},{})}let l=Object.getOwnPropertyNames(s),o=Object.getOwnPropertySymbols(s);return[...l,...o].reduce((v,h)=>{let u=s[h],n=Qr(r)?r[h]:void 0;n!==void 0&&Qr(u)&&(u=Ds(n,u,i));let d=i?i(n,u,h):u;return Fs(v,h,d,s),v},a)}function rs(r,...s){return s.filter(i=>Qr(i)).reduce((i,a)=>Ds(i,a,Es),r)}var oo=[",",".","#","[","!","*",">","+","~",":","@"],ao=/^::-[a-z]+-/m,is,Gi=typeof window<"u";Gi&&(is=document.createElement("style"),is.title="master");var V="max-width",z="min-width",no="attributes",lo=Gi?window.MutationObserver:Object,Yr,ee,zi=class extends lo{constructor(i){super(a=>{let l={},o=[],c=[],v=[],h=(p,m)=>{m?p.classList.forEach(n):p.classList.forEach(u);let b=p.children;for(let k=0;k<b.length;k++){let g=b[k];g.classList&&(c.push(g),h(g,m))}},u=p=>{p in l?l[p]++:l[p]=1},n=p=>{p in l?l[p]--:p in this.countOfClass&&(l[p]=-1)},d=(p,m)=>{for(let b=0;b<p.length;b++){let k=p[b];k.classList&&!c.includes(k)&&!v.includes(k)&&(k.isConnected!==m?(c.push(k),h(k,m)):v.push(k))}};for(let p=0;p<a.length;p++){let m=a[p],{addedNodes:b,removedNodes:k,type:g,target:S,oldValue:f}=m;if(g===no){if(o.find(x=>x.target===S))continue;o.push(m)}else d(b,!1),(!S.isConnected||!c.includes(S))&&d(k,!0)}if(!(!o.length&&!Object.keys(l).length)){for(let{oldValue:p,target:m}of o){let b=c.includes(m),k=m.classList,g=p?p.split(" "):[];if(b){if(m.isConnected)continue;for(let S of g)k.contains(S)||n(S)}else if(m.isConnected){k.forEach(S=>{g.includes(S)||u(S)});for(let S of g)k.contains(S)||n(S)}}for(let p in l){let m=l[p],b=(this.countOfClass[p]||0)+m;b===0?(delete this.countOfClass[p],this.delete(p)):(p in this.countOfClass||this.insert(p),this.countOfClass[p]=b)}}});this.options=i;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);e(this,"config");e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"values");e(this,"globalValues");e(this,"breakpoints");e(this,"mediaQueries");e(this,"matches");e(this,"schemeMQL");os(this,Yr,void 0);os(this,ee,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=rs({observe:!0},i),this.options.config&&!this.options.override?this.config=rs(fs,this.options.config):this.config=fs,this.cache(),Gi&&this.options.observe&&this.observe(document),zi.instances.push(this),this.ready=!0}static refresh(i){for(let a of this.instances)a.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==re(this,Yr)){as(this,Yr,i);let{storage:a}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&a.sync&&localStorage.setItem(a.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return re(this,Yr)}set theme(i){i!==re(this,ee)&&(re(this,ee)&&this.host.classList.remove(re(this,ee)),as(this,ee,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return re(this,ee)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={};let{semantics:i,classes:a,selectors:l,themes:o,colors:c,values:v,breakpoints:h,mediaQueries:u,Rules:n}=this.config;function d(f){return f.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function p(f,x,T="",y={}){let R=Object.entries(f);if(x&&T){let O={};for(let[w,E]of R)typeof E=="object"&&!Array.isArray(E)?p(E,x,w?T+"-"+w:T,y):O[w]=E;Object.keys(O).length&&(y[T]=O)}else for(let[O,w]of R){let E=O?(T?T+"-":"")+O:T;typeof w=="object"&&!Array.isArray(w)?p(w,x,E,y):y[E]=w}return y}if(i)for(let[f,x]of Object.entries(p(i,!0)))this.semantics.push([new RegExp("^"+d(f)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[f,x]]);if(l)for(let[f,x]of Object.entries(p(l,!1))){let T=new RegExp(d(f)+"(?![a-z-])");for(let y of Array.isArray(x)?x:[x]){let R=y.match(ao)?.[0]??"",O=this.selectors[R];O||(O=this.selectors[R]=[]);let w=O.find(([E])=>E===T);w||(w=[T,[]],O.push(w)),w[1].push(y)}}if(v)for(let[f,x]of Object.entries(v))typeof x=="object"?this.values[f]=p(x,!1):this.globalValues[f]=x;h&&(this.breakpoints=p(h,!1)),u&&(this.mediaQueries=p(u,!1));let m=a?p(a,!1):{},b=o&&!Array.isArray(o)?Object.entries(o).filter(([,{classes:f}])=>f).reduce((f,[x,{classes:T}])=>(f[x]=p(T,!1),f),{}):{},k=[...Object.keys(m),...Object.entries(b).flatMap(([f,x])=>Object.keys(x))],g=f=>{if(f in this.classes)return;let x=this.classes[f]=[],T=(y,R)=>{if(!R)return;let O=Array.isArray(R)?R:R.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of O){let E=F=>{F in this.relationThemesMap?y in this.relationThemesMap[F]?this.relationThemesMap[F][y].push(f):this.relationThemesMap[F][y]=[f]:this.relationThemesMap[F]={[y]:[f]},x.includes(F)||x.push(F)};if(k.includes(w)){g(w);for(let F of this.classes[w])E(F)}else E(w)}};T("",m?.[f]);for(let[y,R]of Object.entries(b))T(y,R?.[f])};for(let f of k)g(f);for(let f in this.relationThemesMap){let x=this.relations[f]=[];for(let T of Object.values(this.relationThemesMap[f]))for(let y of T)x.includes(y)||x.push(y)}let S=(f,x)=>{if(!!x)for(let T in x){let y=x[T];if(typeof y=="string"&&(y={"":y}),T in this.colorsThemesMap){let R=this.colorsThemesMap[T];for(let O in y){let w=y[O];O in R?R[O][f]=w:R[O]={[f]:w}}}else this.colorNames.push(T),this.colorsThemesMap[T]=Object.entries(y).reduce((R,[O,w])=>(R[O]={[f]:w},R),{})}};if(S("",p(c,!0)),o)if(Array.isArray(o))this.themeNames.push(...o);else for(let f in o){let x=o[f];S(f,p(x.colors,!0)),this.themeNames.push(f)}for(let[f,x]of Object.entries(this.colorsThemesMap))for(let[T,y]of Object.entries(x))for(let[R,O]of Object.entries(y))if(!O.startsWith("#")){let[w,E]=O.split("-"),F=this.colorsThemesMap[w]?.[E??""],A="";F&&(A=(R?F[R]:void 0)??F[""],A&&(y[R]=A)),A||(console.warn(`\`${O}\` doesn't exist in the extended config \`.colors\``),Object.keys(y).length>1?delete y[R]:Object.keys(x).length>1?delete x[T]:(delete this.colorsThemesMap[f],this.colorNames.splice(this.colorNames.indexOf(f),1)))}if(n)for(let f of n){let x=f.matches;if(x){let T=Object.keys(this.values[f.id]??{}),y=x.indexOf("$values");this.matches[f.id]=new RegExp(y===-1?x:T.length?x.slice(0,y)+T.join("|")+x.slice(y+7):x.slice(0,y-(x[y-1]==="|"?1:0))+x.slice(y+7+(x[y+7]==="|"?1:0)))}}}observe(i,a={subtree:!0,childList:!0}){if(Gi&&i){this.root=i;let l=i===document;l&&(zi.root=this),this.host=l?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let o=l?document.head:i,c=l?document.styleSheets:i.styleSheets;for(let h of c){let{title:u,href:n,ownerNode:d}=h;(u==="master"||n&&n.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(n))&&(this.style=d)}if(this.style)for(let h=0;h<this.style.sheet.cssRules.length;h++){let u=d=>{if(d.selectorText){let m=d.selectorText.split(", ")[0].split(" ");for(let b=0;b<m.length;b++){let k=m[b];if(k[0]==="."){let g=k.slice(1),S="";for(let f=0;f<g.length;f++){let x=g[f],T=g[f+1];if(x==="\\"){if(f++,T!=="\\"){S+=T;continue}}else if(oo.includes(x))break;S+=x}if(!(S in this.ruleOfClass)&&!(S in this.classes)){let f=this.create(S)[0];if(f)return f}}}}else if(d.cssRules)for(let p=0;p<d.cssRules.length;p++){let m=u(d.cssRules[p]);if(m)return m}},n=u(this.style.sheet.cssRules[h]);if(n){this.rules.push(n),this.ruleOfClass[n.className]=n;for(let d=0;d<n.natives.length;d++)n.natives[d].cssRule=this.style.sheet.cssRules[h+d];h+=n.natives.length-1}}else this.style=is.cloneNode(),o.prepend(this.style);let v=h=>{h.forEach(u=>{u in this.countOfClass?this.countOfClass[u]++:(this.countOfClass[u]=1,this.insert(u))})};v(this.host.classList),a.subtree&&this.host.querySelectorAll("[class]").forEach(h=>v(h.classList)),super.observe(i,{...a,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let a=i.cssRules.length-1;a>=0;a--)i.deleteRule(a)}match(i){for(let a of this.config.Rules){let l=a.match(i,this.matches[a.id],this.colorsThemesMap,this.colorNames);if(l)return{...l,Rule:a}}for(let a of this.semantics)if(i.match(a[0]))return{origin:"semantics",value:a[1],Rule:t}}create(i){let a=l=>{if(l in this.ruleOfClass)return this.ruleOfClass[l];let o=this.match(l);if(o)return new o.Rule(l,o,this)};return(i in this.classes?this.classes[i].map(a):[a(i)]).filter(l=>l?.text)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let a=is.cloneNode();this.style.replaceWith(a),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let l in this.countOfClass)this.insert(l)}destroy(){let i=zi.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}delete(i){let a=this.style.sheet,l=o=>{let c=this.ruleOfClass[o];if(!(!c||o in this.relations&&this.relations[o].some(v=>v in this.countOfClass))){if(c.natives.length){let v=c.natives[0];for(let h=0;h<a.cssRules.length;h++)if(a.cssRules[h]===v.cssRule){for(let n=0;n<c.natives.length;n++)a.deleteRule(h);this.rules.splice(this.rules.indexOf(c),1);break}}delete this.ruleOfClass[o]}};if(i in this.classes){for(let o of this.classes[i])o in this.countOfClass||l(o);delete this.ruleOfClass[i]}else l(i)}insert(i){let a=this.create(i);if(a.length){for(let l of a){if(this.ruleOfClass[l.className])continue;let o,c=this.rules.length-1,{media:v,order:h,priority:u,hasWhere:n,className:d}=l,p=(m,b,k,g)=>{let S=0,f;b&&(S=m.findIndex(b)),k&&(f=m.findIndex(k)),S===-1&&(S=m.length),(f===void 0||f===-1)&&(f=m.length);let x=m.slice(S,f);for(let T=0;T<x.length;T++){let y=x[T];if(!(y.priority===-1||g&&g(y))&&(y.priority<u||y.priority===u&&(n&&!y.hasWhere||y.order>=h)))return S+T}return S+x.length};if(v){let m=this.rules.findIndex(b=>b.media);if(m!==-1){let b=v.features[V],k=v.features[z];if(b&&k){let g=b.value-k.value;for(let S=c;S>=m;S--){o=S;let f=this.rules[S],x=f.media,T=x.features[V],y=x.features[z];if(!T||!y){o++;break}let R=T.value-y.value;if(R===g){if(n!==f.hasWhere)continue;if(u!==-1){let O=[this.rules[S]];for(let w=S-1;w>=m;w--){let E=this.rules[w];if(E.hasWhere!==n)break;let F=E.media,A=F.features[V],B=F.features[z];if(!A||!B||A.value-B.value!==R)break;O.unshift(this.rules[w])}o=p(this.rules,w=>w.media&&w.priority!==-1&&w.media.features[z]&&w.media.features[V])}break}else if(R>g)break}}else if(k)for(let g=m;g<=c;g++){o=g;let S=this.rules[g],f=S.media,x=f.features[V],T=f.features[z];if(x){if(T)break;continue}let y=T?.value;if(y===k.value){if(!n&&S.hasWhere){o++;continue}if(u!==-1)o=p(this.rules,R=>R.media,R=>R.media&&R.priority!==-1&&R.media.features[z]&&R.media.features[V],R=>!R.media.features[z]&&!R.media.features[V]);else for(let R=g;R<=c;R++){let O=this.rules[R],w=O.media,E=w.features[z];if(!w.features[V]){if(O.hasWhere!==n||E.value!==y||O.order>=h)break;o=R+1}}break}else{if(y>k.value)break;o++}}else if(b)for(let g=c;g>=m;g--){o=g;let S=this.rules[g],f=S.media,x=f.features[V];if(f.features[z])continue;let y=x?.value;if(!y||y>b.value){o++;break}else if(y===b.value){if(n&&!S.hasWhere)continue;if(u!==-1)o=p(this.rules,R=>R.media,R=>R.media&&R.priority!==-1&&R.media.features[z]&&R.media.features[V],R=>!R.media.features[z]&&!R.media.features[V]);else{let R=[this.rules[g]];for(let O=g-1;O>=m;O--){let w=this.rules[O],E=w.media,F=E.features[z],A=E.features[V];if(!F&&(!A||A.value!==y||w.hasWhere!==n))break;R.unshift(w)}for(let O=0;O<R.length;O++){let w=R[O];if(!w.media.features[z]){if(w.order>=h)break;o=g-R.length+2+O}}}break}}}if(o===void 0)if(m===-1)o=c+1;else if(u!==-1)o=m+p(this.rules.slice(m),void 0,b=>b.media.features[V]||b.media.features[z]);else if(n){let b=m;for(;b<this.rules.length;b++){let k=this.rules[b];if(k.priority!==-1||!k.hasWhere||k.order>=h){o=b;break}}o===void 0&&(o=b)}else for(let b=m;b<=c;b++){o=b;let k=this.rules[b],g=k.media;if(k.priority!==-1||g.features[V]||g.features[z])break;if(k.hasWhere)o++;else if(k.order>=h)break}}else if(u===-1)if(n)o=this.rules.findIndex(m=>!m.hasWhere||m.media||m.priority!==-1||m.order>=h),o===-1&&(o=c+1);else{let m=0;for(;m<this.rules.length;m++){let b=this.rules[m];if(b.media||!b.hasWhere&&(b.order>=h||b.priority!==-1)){o=m;break}}o===void 0&&(o=m)}else o=p(this.rules,void 0,m=>m.media);if(this.rules.splice(o,0,l),this.ruleOfClass[d]=l,this.style){let m=this.style.sheet,b=0,k=g=>{let S=this.rules[g];if(S){if(!S.natives.length)return k(g-1);let f=S.natives[S.natives.length-1].cssRule;for(let x=0;x<m.cssRules.length;x++)if(m.cssRules[x]===f){b=x+1;break}}};k(o-1);for(let g=0;g<l.natives.length;)try{let S=l.natives[g];m.insertRule(S.text,b),S.cssRule=m.cssRules[b++],g++}catch(S){console.error(S),l.natives.splice(g,1)}}}return!0}else return!1}get text(){return this.rules.map(i=>i.text).join("")}},te=zi;Yr=new WeakMap,ee=new WeakMap,e(te,"instances",[]),e(te,"root");Gi&&(window.MasterCSS=te);new te({config:window.masterCSSConfig});})();