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