@master/css-runtime 2.0.0-rc.47 → 2.0.0-rc.49
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/core.d.ts +7 -7
- package/dist/global.min.js +1 -1
- package/dist/index.cjs +297 -283
- package/dist/index.mjs +298 -284
- package/package.json +1 -1
package/dist/core.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { MasterCSS } from '@master/css';
|
|
2
|
-
import type
|
|
2
|
+
import { type Config } from '@master/css';
|
|
3
3
|
import './types/global';
|
|
4
4
|
export declare class RuntimeCSS extends MasterCSS {
|
|
5
|
-
root: Document | ShadowRoot
|
|
5
|
+
root: Document | ShadowRoot;
|
|
6
6
|
customConfig: Config;
|
|
7
7
|
readonly host: Element;
|
|
8
8
|
readonly observing = false;
|
|
9
9
|
readonly progressive = false;
|
|
10
10
|
readonly container: HTMLElement | ShadowRoot;
|
|
11
|
-
observer?: MutationObserver
|
|
12
|
-
constructor(root?: Document | ShadowRoot
|
|
11
|
+
readonly observer?: MutationObserver;
|
|
12
|
+
constructor(root?: Document | ShadowRoot, customConfig?: Config);
|
|
13
13
|
/**
|
|
14
14
|
* Observe the DOM for changes and update the running stylesheet. (browser only)
|
|
15
15
|
* @param options mutation observer options
|
|
16
16
|
* @returns this
|
|
17
17
|
*/
|
|
18
|
-
observe(
|
|
18
|
+
observe(): this;
|
|
19
|
+
hydrate(nativeCSSRules: CSSRuleList): void;
|
|
20
|
+
disconnect(): this | undefined;
|
|
19
21
|
refresh(customConfig?: Config): this;
|
|
20
|
-
reset(): this;
|
|
21
|
-
disconnect(): this;
|
|
22
22
|
destroy(): this;
|
|
23
23
|
}
|
|
24
24
|
export declare const runtimeCSSs: RuntimeCSS[];
|
package/dist/global.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){var e,t,i,a,r,s,l,o,n,u,c,d,h,f,m,y,b,g,p,v,k,x,N,S,E,w,R,$,O,_,V,A,L,U,j,T,C,I,K,G,B,P,M,X,z,W,D,Y,q,F,Z,Q,H={},J={};function ee(){return t?e:(t=1,e={all:"media all",print:"media print",screen:"media screen",speech:"media speech",landscape:"media (orientation:landscape)",portrait:"media (orientation:portrait)",motion:"media (prefers-reduced-motion:no-preference)","reduced-motion":"media (prefers-reduced-motion:reduce)"})}function et(){return a?i:(a=1,i={"::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"],"::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"})}function ei(){return s?r:(s=1,r={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%","aspect-ratio":"1/1"},hidden:{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%"},top:{top:0},left:{left:0},right:{right:0},bottom:{bottom:0},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"}})}function ea(){return o?l:(o=1,l={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"}}})}function er(){if(d)return c;function e(e){let t="undefined"!=typeof Buffer?Buffer:null;return!!t&&e instanceof t||e instanceof Date||e instanceof RegExp}function t(e){if(("undefined"!=typeof Buffer?Buffer:null)&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw Error("Unexpected situation")}function i(e,t){return"__proto__"===t?void 0:e[t]}return d=1,c=function a(...r){let s,l;let o={};return r.forEach(function(r){"object"!=typeof r||null===r||Array.isArray(r)||Object.keys(r).forEach(function(n){if(l=i(o,n),(s=i(r,n))!==o){if("object"!=typeof s||null===s){o[n]=s;return}if(Array.isArray(s)){o[n]=function i(r){let s=[];return r.forEach(function(r,l){"object"==typeof r&&null!==r?Array.isArray(r)?s[l]=i(r):e(r)?s[l]=t(r):s[l]=a({},r):s[l]=r}),s}(s);return}if(e(s)){o[n]=t(s);return}if("object"!=typeof l||null===l||Array.isArray(l)){o[n]=a({},s);return}else{o[n]=a(l,s);return}}})}),o}}function es(){if(f)return h;f=1;var e=u?n:(u=1,n={gray:{5:"#f6f5f7",10:"#efeef0",20:"#cdccce",30:"#a2a1a3",40:"#89888a",50:"#737274",60:"#585759",70:"#444345",80:"#323133",90:"#29282a",95:"#222123"},slate:{5:"#f8f9fb",10:"#eff2f9",20:"#c8d0e3",30:"#9fabc6",40:"#7c8cab",50:"#5f7395",60:"#455572",70:"#37455d",80:"#283348",90:"#1d273a",95:"#182030"},brown:{5:"#fff6f0",10:"#feefe3",20:"#f3bea4",30:"#e7976e",40:"#da7c4d",50:"#cc6633",60:"#b65325",70:"#9d4119",80:"#833111",90:"#692007",95:"#431304"},orange:{5:"#fff5ea",10:"#fff5df",20:"#ffcb9e",30:"#ff9b47",40:"#ff8528",50:"#ff6c0a",60:"#e05200",70:"#bc3e00",80:"#992d00",90:"#701d00",95:"#471100"},amber:{5:"#fff9eb",10:"#fff4db",20:"#ffe099",30:"#ffc133",40:"#ffb10a",50:"#f99e00",60:"#e57e00",70:"#c15d00",80:"#a34900",90:"#753200",95:"#4c1f00"},yellow:{5:"#fffae5",10:"#fffed1",20:"#ffe993",30:"#ffd233",40:"#ffc300",50:"#efaf00",60:"#d69200",70:"#b77400",80:"#9e5c00",90:"#753c00",95:"#4c2600"},lime:{5:"#f5ffe5",10:"#f5ffd6",20:"#d1fb8d",30:"#acec46",40:"#91d91a",50:"#77c012",60:"#61a60c",70:"#4c8d07",80:"#367604",90:"#256000",95:"#1b3d00"},green:{5:"#e7fdea",10:"#dbfee4",20:"#a5f7b8",30:"#35ed66",40:"#00d655",50:"#00c147",60:"#00ad3f",70:"#008e34",80:"#007a2c",90:"#006023",95:"#003d16"},beryl:{5:"#e0fef2",10:"#d2fff7",20:"#6cffd4",30:"#0fefa4",40:"#04e09e",50:"#04cb8f",60:"#00b277",70:"#009360",80:"#007f50",90:"#00663e",95:"#003d24"},teal:{5:"#dbfefd",10:"#cfffff",20:"#7ffff6",30:"#00f4e4",40:"#00e4d4",50:"#00ccc8",60:"#00aeb7",70:"#0092a3",80:"#00798e",90:"#005d75",95:"#003747"},cyan:{5:"#e0ffff",10:"#d1ffff",20:"#7ff6ff",30:"#1ee1ff",40:"#00ccf9",50:"#00b3ea",60:"#0099d6",70:"#007dbc",80:"#0067a8",90:"#005089",95:"#003156"},sky:{5:"#e5f5ff",10:"#d9f8ff",20:"#a3deff",30:"#6bc6ff",40:"#34b2fd",50:"#059fff",60:"#008df9",70:"#0073e0",80:"#005cc6",90:"#0041a3",95:"#002566"},blue:{5:"#e5f3fe",10:"#dbf2fe",20:"#add7ff",30:"#70b0ff",40:"#4c93fd",50:"#3a7cff",60:"#2563fd",70:"#1b53ec",80:"#1947d1",90:"#1735a2",95:"#102069"},indigo:{5:"#f0f1fe",10:"#e9ecfe",20:"#c8cdfe",30:"#939eff",40:"#7e81fe",50:"#7068ff",60:"#5b4cfd",70:"#4e39ed",80:"#4732d2",90:"#3623a3",95:"#26176c"},violet:{5:"#f2efff",10:"#efe8ff",20:"#d7c5ff",30:"#b198fe",40:"#9a70ff",50:"#8e56fe",60:"#812fff",70:"#7407f2",80:"#6405d1",90:"#4f05a3",95:"#35036e"},purple:{5:"#f6f0ff",10:"#f6e8fe",20:"#e2bffe",30:"#c492fd",40:"#b266ff",50:"#a849fe",60:"#9514ff",70:"#8200e5",80:"#7100c1",90:"#58008e",95:"#3e0060"},fuchsia:{5:"#faf0ff",10:"#fde8fe",20:"#f0baff",30:"#dd89fe",40:"#d760fe",50:"#cf33ff",60:"#b700e5",70:"#a200c6",80:"#8700a3",90:"#660175",95:"#480051"},pink:{5:"#fef1f9",10:"#fee9f8",20:"#ffb8df",30:"#f986c1",40:"#fa65b2",50:"#f747a2",60:"#ef2188",70:"#d61673",80:"#b80c5c",90:"#8f0543",95:"#64032f"},crimson:{5:"#ffeff2",10:"#ffe8ec",20:"#ffbac7",30:"#ff849d",40:"#ff6684",50:"#fc4065",60:"#ed2a51",70:"#d7173e",80:"#bb1536",90:"#8f132c",95:"#620e1f"},red:{5:"#ffefef",10:"#fee8e8",20:"#ffbcbc",30:"#ff8787",40:"#fd5f5f",50:"#f73f3f",60:"#e52e2e",70:"#d01b1b",80:"#b81919",90:"#921515",95:"#650f0f"}});return h=er()(e,{full:"100%",fit:"fit-content",max:"max-content",min:"min-content",screen:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},"font-family":{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"]},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},current:"currentColor",frame:{neutral:{"@light":"$(slate-60)","@dark":"$(gray-30)"},light:{"@light":"$(slate-60)/.2","@dark":"$(gray-30)/.2"},lighter:{"@light":"$(slate-60)/.16","@dark":"$(gray-30)/.16"},lightest:{"@light":"$(slate-60)/.12","@dark":"$(gray-30)/.12"}},white:"#ffffff",black:"#000000",base:{"@light":"$(white)","@dark":"$(gray-95)"},canvas:{"@light":"$(slate-5)","@dark":"$(gray-90)"},surface:{"@light":"$(white)","@dark":"$(gray-80)"},invert:{"@light":"$(black)","@dark":"$(white)"},gray:{"@light":"$(gray-30)","@dark":"$(gray-40)",active:{"@light":"$(gray-40)","@dark":"$(gray-30)"},text:{"@light":"$(gray-90)","@dark":"$(gray-95)"}},slate:{"@light":"$(slate-30)","@dark":"$(slate-40)",active:{"@light":"$(slate-40)","@dark":"$(slate-30)"},text:{"@light":"$(slate-90)","@dark":"$(slate-95)"}},brown:{"@light":"$(brown-40)","@dark":"$(brown-50)",active:{"@light":"$(brown-50)","@dark":"$(brown-40)"},text:{"@light":"$(brown-90)","@dark":"$(brown-95)"}},orange:{"@light":"$(orange-40)","@dark":"$(orange-50)",active:{"@light":"$(orange-50)","@dark":"$(orange-40)"},text:{"@light":"$(orange-90)","@dark":"$(orange-95)"}},amber:{"@light":"$(amber-40)","@dark":"$(amber-50)",active:{"@light":"$(amber-50)","@dark":"$(amber-30)"},text:{"@light":"$(amber-90)","@dark":"$(amber-95)"}},yellow:{"@light":"$(yellow-40)","@dark":"$(yellow-50)",active:{"@light":"$(yellow-50)","@dark":"$(yellow-30)"},text:{"@light":"$(yellow-90)","@dark":"$(yellow-95)"}},lime:{"@light":"$(lime-40)","@dark":"$(lime-50)",active:{"@light":"$(lime-50)","@dark":"$(lime-30)"},text:{"@light":"$(lime-90)","@dark":"$(lime-95)"}},green:{"@light":"$(green-40)","@dark":"$(green-50)",active:{"@light":"$(green-50)","@dark":"$(green-30)"},text:{"@light":"$(green-90)","@dark":"$(green-95)"}},beryl:{"@light":"$(beryl-40)","@dark":"$(beryl-50)",active:{"@light":"$(beryl-50)","@dark":"$(beryl-30)"},text:{"@light":"$(beryl-90)","@dark":"$(beryl-95)"}},teal:{"@light":"$(teal-40)","@dark":"$(teal-50)",active:{"@light":"$(teal-50)","@dark":"$(teal-30)"},text:{"@light":"$(teal-90)","@dark":"$(teal-95)"}},cyan:{"@light":"$(cyan-40)","@dark":"$(cyan-50)",active:{"@light":"$(cyan-50)","@dark":"$(cyan-30)"},text:{"@light":"$(cyan-90)","@dark":"$(cyan-95)"}},sky:{"@light":"$(sky-60)","@dark":"$(sky-50)",active:{"@light":"$(sky-70)","@dark":"$(sky-40)"},text:"$(white)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-50)",active:{"@light":"$(blue-70)","@dark":"$(blue-40)"},text:"$(white)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-50)",active:{"@light":"$(indigo-70)","@dark":"$(indigo-40)"},text:"$(white)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-50)",active:{"@light":"$(violet-70)","@dark":"$(violet-40)"},text:"$(white)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-50)",active:{"@light":"$(purple-70)","@dark":"$(purple-40)"},text:"$(white)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-50)",active:{"@light":"$(fuchsia-70)","@dark":"$(fuchsia-40)"},text:"$(white)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-50)",active:{"@light":"$(pink-70)","@dark":"$(pink-40)"},text:"$(white)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-50)",active:{"@light":"$(crimson-70)","@dark":"$(crimson-40)"},text:"$(white)"},red:{"@light":"$(red-60)","@dark":"$(red-50)",active:{"@light":"$(red-70)","@dark":"$(red-40)"},text:"$(white)"},text:{invert:{"@light":"$(white)","@dark":"$(black)"},strong:{"@light":"$(slate-95)","@dark":"$(gray-10)"},neutral:{"@light":"$(slate-70)","@dark":"$(gray-30)"},lightest:{"@light":"$(slate-30)","@dark":"$(gray-60)"},lighter:{"@light":"$(slate-40)","@dark":"$(gray-50)"},light:{"@light":"$(slate-50)","@dark":"$(gray-40)"},gray:{"@light":"$(gray-60)","@dark":"$(gray-30)"},slate:{"@light":"$(slate-60)","@dark":"$(slate-30)"},brown:{"@light":"$(brown-60)","@dark":"$(brown-30)"},orange:{"@light":"$(orange-60)","@dark":"$(orange-30)"},amber:{"@light":"$(amber-60)","@dark":"$(amber-40)"},yellow:{"@light":"$(yellow-60)","@dark":"$(yellow-40)"},lime:{"@light":"$(lime-70)","@dark":"$(lime-40)"},green:{"@light":"$(green-70)","@dark":"$(green-40)"},beryl:{"@light":"$(beryl-70)","@dark":"$(beryl-40)"},teal:{"@light":"$(teal-70)","@dark":"$(teal-40)"},cyan:{"@light":"$(cyan-70)","@dark":"$(cyan-40)"},sky:{"@light":"$(sky-70)","@dark":"$(sky-30)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-30)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-30)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-30)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-30)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-30)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-30)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-30)"},red:{"@light":"$(red-60)","@dark":"$(red-30)"}}})}function el(){return y?m:(y=1,m=function(e){let t;if("undefined"!=typeof CSS)return CSS.escape(e);if(0==arguments.length)throw TypeError("`CSS.escape` requires an argument.");let i=String(e),a=i.length,r=-1,s="",l=i.charCodeAt(0);if(1==a&&45==l)return"\\"+i;for(;++r<a;){if(0==(t=i.charCodeAt(r))){s+="�";continue}if(t>=1&&t<=31||127==t||0==r&&t>=48&&t<=57||1==r&&t>=48&&t<=57&&45==l){s+="\\"+t.toString(16)+" ";continue}if(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){s+=i.charAt(r);continue}s+="\\"+i.charAt(r)}return s})}function eo(){if(g)return b;g=1;var e,t=((e=t||{})[e.Utility=-4]="Utility",e[e.NativeShorthand=-3]="NativeShorthand",e[e.Shorthand=-2]="Shorthand",e[e.Native=-1]="Native",e[e.Normal=0]="Normal",e);return b=t}var en={};function eu(){if(p)return en;p=1;let e=new URL("https://rc.css.master.co");return en.ANIMATION_SIGN="@",en.AT_SIGN="@",en.BASE_UNIT_REGEX=/^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m,en.BORDER_STYLE_VALUES=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],en.CLASS_ATTRIBUTES=["class","className"],en.CLASS_DECLARATIONS=["styles"],en.CLASS_FUNCTIONS=["clsx","cva","ctl","cv","class","classnames","classVariant","styled(?:\\s+)?(?:\\.\\w+)?","classList(?:\\s+)?\\.(?:add|remove|toggle|replace)"],en.COLOR_VALUE_REGEX=/(?:#|(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla|light-dark)\(.*\)|(?:\$colors)(?![a-zA-Z0-9-]))/,en.DELIMITER_SIGN="|",en.IMAGE_VALUE_REGEX=/(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)/,en.NUMBER_VALUE_REGEX=/(?:[\d.]|(?:max|min|calc|clamp)\([^|]*\))/,en.OFFICIAL_URL=e,en.QUERY_COMPARISON_OPERATORS=[">","<","="],en.QUERY_LOGICAL_OPERATORS=["&"],en.SELECTOR_SIGNS=[":","_",">","+","~"],en.SEPARATOR_SIGN=",",en.SEPARATOR_SIGNS=[",","|"],en.TRANSITION_SIGN="~",en.UNIT_REGEX=/^([+-.]?\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)?$/,en.VALUE_DELIMITERS={"(":")","'":"'",'"':'"',"{":"}"},en.VALUE_UNITS=["%","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"],en}function ec(){if(N)return x;N=1;var e=el(),t=eo(),i=eu(),a=function(){if(k)return v;k=1;var e=eu();return v=function(t){if(t.length<2)return t;let i=!1,a=!1;for(let r of t)("string"===r.type&&e.BORDER_STYLE_VALUES.includes(r.value)||"variable"===r.type&&e.BORDER_STYLE_VALUES.includes(String(r.variable?.value)))&&(i=!0),"function"===r.type&&"var"===r.name&&(a=!0);return i||a||t.push({type:"separator",value:" ",token:"|"},{type:"string",value:"solid",token:"solid"}),t}}();return x={group:{matcher:/^(?:.+?[*_>~+])?\{.+?\}/,layer:t.Shorthand,analyze(e){let t=0;for(;t<e.length&&("{"!==e[t]||"\\"===e[t-1]);t++);return[e.slice(t),e.slice(0,t)]},declare(t){let a={},r=e=>{let t=e.indexOf(":");-1!==t&&(a[e.slice(0,t)]=e.slice(t+1))},s=t=>{let i=i=>{let a=i.slice(e(t.className).length).match(/\{(.*)\}/)?.[1].split(";");if(a)for(let e of a)r(e)};for(let e of t.natives)i(e.text);if(t.animationNames)for(let e of(this.animationNames||(this.animationNames=[]),t.animationNames))this.animationNames.includes(e)||this.animationNames.push(e);if(t.variableNames)for(let e of(this.variableNames||(this.variableNames=[]),t.variableNames))this.variableNames.includes(e)||this.variableNames.push(e)},l=[],o="",n=()=>{o&&(l.push(o.replace(/ /g,"|")),o="")},u=1;for(let e of(!function e(a){for(;u<t.length;u++){let r=t[u];if(!a){if(";"===r){n();continue}if("}"===r)break}if(o+=r,a===r){if("'"===a||'"'===a){let e=0;for(let t=o.length-2;"\\"===o[t];t--)e++;if(e%2)continue}break}r in i.VALUE_DELIMITERS&&"'"!==a&&'"'!==a&&(u++,e(i.VALUE_DELIMITERS[r]))}}(""),n(),l)){let t=this.css.generate(e);if(t.length)for(let e of t)s(e);else r(e)}return a}},variable:{matcher:/^\$[\w-]+:/,layer:t.Shorthand,declare(e){return{["--"+this.keyToken.slice(1,-1)]:e}}},"font-size":{ambiguousKeys:["font","f"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native},"font-weight":{ambiguousKeys:["font","f"],ambiguousValues:["bolder"],layer:t.Native},"font-family":{ambiguousKeys:["font","f"],layer:t.Native},"font-smoothing":{ambiguousKeys:["font","f"],ambiguousValues:["antialiased","subpixel-antialiased"],layer:t.Native,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"}}}},"font-style":{ambiguousKeys:["font","f"],ambiguousValues:["normal","italic","oblique"],layer:t.Native,unit:"deg"},"font-variant-numeric":{ambiguousKeys:["font","f"],ambiguousValues:["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"],layer:t.Native},"font-variant":{ambiguousKeys:["font","f"],layer:t.NativeShorthand},font:{subkey:"f",layer:t.NativeShorthand,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},"font-feature-settings":{key:"font-feature",layer:t.Native},color:{key:"fg",layer:t.Native,variables:["text"]},"margin-left":{key:"ml",layer:t.Native,unit:"rem",variables:["spacing"]},"margin-right":{key:"mr",layer:t.Native,unit:"rem",variables:["spacing"]},"margin-top":{key:"mt",layer:t.Native,unit:"rem",variables:["spacing"]},"margin-bottom":{key:"mb",layer:t.Native,unit:"rem",variables:["spacing"]},"margin-x":{key:"mx",subkey:"margin-x",unit:"rem",layer:t.Shorthand,declare:e=>({"margin-left":e,"margin-right":e}),variables:["spacing"]},"margin-y":{key:"my",unit:"rem",layer:t.Shorthand,declare:e=>({"margin-top":e,"margin-bottom":e}),variables:["spacing"]},margin:{key:"m",unit:"rem",layer:t.NativeShorthand,variables:["spacing"]},"margin-inline-start":{key:"mis",layer:t.Native,unit:"rem",variables:["spacing"]},"margin-inline-end":{key:"mie",layer:t.Native,unit:"rem",variables:["spacing"]},"margin-inline":{key:"mi",unit:"rem",layer:t.NativeShorthand,variables:["spacing"]},"padding-left":{key:"pl",layer:t.Native,unit:"rem",variables:["spacing"]},"padding-right":{key:"pr",layer:t.Native,unit:"rem",variables:["spacing"]},"padding-top":{key:"pt",layer:t.Native,unit:"rem",variables:["spacing"]},"padding-bottom":{key:"pb",layer:t.Native,unit:"rem",variables:["spacing"]},"padding-x":{key:"px",unit:"rem",layer:t.Shorthand,declare:e=>({"padding-left":e,"padding-right":e}),variables:["spacing"]},"padding-y":{key:"py",unit:"rem",layer:t.Shorthand,declare:e=>({"padding-top":e,"padding-bottom":e}),variables:["spacing"]},padding:{key:"p",unit:"rem",layer:t.NativeShorthand,variables:["spacing"]},"padding-inline-start":{key:"pis",layer:t.Native,unit:"rem",variables:["spacing"]},"padding-inline-end":{key:"pie",layer:t.Native,unit:"rem",variables:["spacing"]},"padding-inline":{key:"pi",unit:"rem",layer:t.NativeShorthand,variables:["spacing"]},"flex-basis":{ambiguousKeys:["flex"],unit:"rem",layer:t.Native},"flex-wrap":{ambiguousKeys:["flex"],ambiguousValues:["wrap","nowrap","wrap-reverse"],layer:t.Native},"flex-grow":{ambiguousKeys:["flex"],layer:t.Native},"flex-shrink":{ambiguousKeys:["flex"],layer:t.Native},"flex-direction":{ambiguousKeys:["flex"],ambiguousValues:["row","row-reverse","column","column-reverse"],layer:t.Native},flex:{layer:t.NativeShorthand},display:{key:"d",layer:t.Native},width:{key:"w",unit:"rem",layer:t.Native},height:{key:"h",unit:"rem",layer:t.Native},"min-width":{key:"min-w",unit:"rem",layer:t.Native},"min-height":{key:"min-h",unit:"rem",layer:t.Native},size:{layer:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{width:t[0].text,height:1===i?t[0].text:t[2].text}}},"min-size":{key:"min",layer:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"min-width":t[0].text,"min-height":1===i?t[0].text:t[2].text}}},"max-size":{key:"max",layer:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"max-width":t[0].text,"max-height":1===i?t[0].text:t[2].text}}},"box-sizing":{ambiguousKeys:["box"],layer:t.Native},"box-decoration-break":{key:"box-decoration",layer:t.Native,declare:e=>({"-webkit-box-decoration-break":e,"box-decoration-break":e})},contain:{layer:t.Native},content:{layer:t.Native},"counter-increment":{layer:t.Native},"counter-reset":{layer:t.Native},"letter-spacing":{key:"tracking",subkey:"ls",layer:t.Native,unit:"em"},"line-height":{key:"leading",subkey:"line-h",layer:t.Native},"object-fit":{ambiguousKeys:["object","obj"],ambiguousValues:["contain","cover","fill","scale-down"],layer:t.Native},"object-position":{ambiguousKeys:["object","obj"],ambiguousValues:["top","bottom","right","left","center"],layer:t.Native},"text-align":{ambiguousKeys:["text","t"],ambiguousValues:["justify","center","left","right","start","end"],layer:t.Native},"text-decoration-color":{ambiguousKeys:["text-decoration"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Native,variables:["text"]},"text-decoration-style":{ambiguousKeys:["text-decoration"],ambiguousValues:["solid","double","dotted","dashed","wavy"],layer:t.Native},"text-decoration-thickness":{ambiguousKeys:["text-decoration"],ambiguousValues:["from-font",i.NUMBER_VALUE_REGEX],layer:t.Native,unit:"em"},"text-decoration-line":{ambiguousKeys:["text-decoration"],ambiguousValues:["underline","overline","line-through"],layer:t.Native},"text-decoration":{ambiguousKeys:["text","t"],ambiguousValues:["underline","overline","line-through"],unit:"rem",layer:t.NativeShorthand,variables:["text"],declare:e=>({"-webkit-text-decoration":e,"text-decoration":e})},"text-underline-offset":{ambiguousKeys:["text-underline"],unit:"rem",layer:t.Native,variables:["spacing"]},"text-underline-position":{ambiguousKeys:["text-underline"],ambiguousValues:["front-font","under","left","right"],layer:t.Native},"text-overflow":{ambiguousKeys:["text","t"],ambiguousValues:["ellipsis","clip"],layer:t.Native},"text-orientation":{ambiguousKeys:["text","t"],ambiguousValues:["mixed","upright","sideways-right","sideways","use-glyph-orientation"],layer:t.Native},"text-transform":{ambiguousKeys:["text","t"],ambiguousValues:["uppercase","lowercase","capitalize"],layer:t.Native},"text-rendering":{ambiguousKeys:["text","t"],ambiguousValues:["optimizeSpeed","optimizeLegibility","geometricPrecision"],layer:t.Native},"text-wrap":{ambiguousKeys:["text","t"],ambiguousValues:["wrap","nowrap","balance","pretty"],layer:t.NativeShorthand},"text-indent":{unit:"rem",layer:t.Native},"vertical-align":{key:"v",subkey:"vertical",layer:t.Native},columns:{key:"cols",layer:t.NativeShorthand},"white-space":{layer:t.Native},top:{layer:t.Native,unit:"rem",variables:["spacing"]},bottom:{layer:t.Native,unit:"rem",variables:["spacing"]},left:{layer:t.Native,unit:"rem",variables:["spacing"]},right:{layer:t.Native,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:t.NativeShorthand,variables:["spacing"]},"max-height":{key:"max-h",unit:"rem",layer:t.Native},"max-width":{key:"max-w",unit:"rem",layer:t.Native},opacity:{layer:t.Native},visibility:{layer:t.Native},clear:{layer:t.Native},float:{layer:t.Native},isolation:{layer:t.Native},"overflow-x":{layer:t.Native,declare:e=>"overlay"===e?{"overflow-x":["auto",e]}:{"overflow-x":e}},"overflow-y":{layer:t.Native,declare:e=>"overlay"===e?{"overflow-y":["auto",e]}:{"overflow-y":e}},overflow:{layer:t.NativeShorthand,declare:e=>"overlay"===e?{overflow:["auto",e]}:{overflow:e}},"overscroll-behavior-x":{layer:t.Native},"overscroll-behavior-y":{layer:t.Native},"overscroll-behavior":{layer:t.NativeShorthand},"z-index":{key:"z",layer:t.Native},position:{layer:t.Native},cursor:{layer:t.Native},"pointer-events":{layer:t.Native},resize:{layer:t.Native},"touch-action":{layer:t.Native},"word-break":{layer:t.Native},"word-spacing":{layer:t.Native,unit:"em"},"user-drag":{layer:t.Native,declare:e=>({"-webkit-user-drag":e,"user-drag":e})},"user-select":{layer:t.Native,declare:e=>({"-webkit-user-select":e,"user-select":e})},"text-shadow":{unit:"rem",layer:t.Native},"text-size":{ambiguousKeys:["text","t"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",declare:e=>({"font-size":e,"line-height":`calc(${e} + 0.875em)`}),layer:t.Shorthand},"text-fill-color":{ambiguousKeys:["text","t"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Native,variables:["text"],declare:e=>({"-webkit-text-fill-color":e})},"text-stroke-width":{ambiguousKeys:["text-stroke"],ambiguousValues:["thin","medium","thick",i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native,declare:e=>({"-webkit-text-stroke-width":e})},"text-stroke-color":{ambiguousKeys:["text-stroke"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Native,declare:e=>({"-webkit-text-stroke-color":e})},"text-stroke":{unit:"rem",layer:t.Native,declare:e=>({"-webkit-text-stroke":e})},"text-truncate":{subkey:"lines",declare:e=>({display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e,overflow:"hidden","overflow-wrap":"break-word","text-overflow":"ellipsis"}),layer:t.Shorthand},"box-shadow":{key:"shadow",subkey:"s",unit:"rem",layer:t.Native},"table-layout":{layer:t.Native},"transform-box":{ambiguousKeys:["transform"],layer:t.Native},"transform-style":{ambiguousKeys:["transform"],ambiguousValues:["flat","preserve-3d"],layer:t.Native},"transform-origin":{ambiguousKeys:["transform"],ambiguousValues:["top","bottom","right","left","center",i.NUMBER_VALUE_REGEX],unit:"px",layer:t.Native},transform:{matcher:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:t.Native,analyze:e=>[e.startsWith("transform")?e.slice(10):e],unit:"px",variables:["spacing"]},"transition-property":{key:"~property",layer:t.Native},"transition-timing-function":{key:"~easing",layer:t.Native},"transition-duration":{key:"~duration",layer:t.Native,unit:"ms"},"transition-delay":{key:"~delay",layer:t.Native,unit:"ms"},transition:{sign:"~",analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}},layer:t.NativeShorthand},"animation-delay":{key:"@delay",layer:t.Native,unit:"ms"},"animation-direction":{key:"@direction",layer:t.Native},"animation-duration":{key:"@duration",layer:t.Native,unit:"ms"},"animation-fill-mode":{key:"@fill",layer:t.Native},"animation-iteration-count":{key:"@iteration",layer:t.Native},"animation-name":{key:"@name",layer:t.Native,includeAnimations:!0},"animation-play-state":{key:"@play",layer:t.Native},"animation-timing-function":{key:"@easing",layer:t.Native},animation:{sign:"@",layer:t.NativeShorthand,includeAnimations:!0,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}}},"border-collapse":{ambiguousKeys:["b","border"],ambiguousValues:["collapse","separate"],layer:t.Native},"border-spacing":{unit:"rem",layer:t.Native,variables:["spacing"]},"border-top-color":{ambiguousKeys:["bt","border-top"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Native,variables:["frame"]},"border-bottom-color":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Native,variables:["frame"]},"border-left-color":{ambiguousKeys:["bl","border-left"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Native,variables:["frame"]},"border-right-color":{ambiguousKeys:["br","border-right"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Native,variables:["frame"]},"border-x-color":{ambiguousKeys:["bx","border-x"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Shorthand,variables:["frame"],declare:e=>({"border-left-color":e,"border-right-color":e})},"border-y-color":{ambiguousKeys:["by","border-y"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Shorthand,variables:["frame"],declare:e=>({"border-top-color":e,"border-bottom-color":e})},"border-color":{ambiguousKeys:["b","border"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.NativeShorthand,variables:["frame"]},"border-top-left-radius":{key:"rtl",unit:"rem",layer:t.Native},"border-top-right-radius":{key:"rtr",unit:"rem",layer:t.Native},"border-bottom-left-radius":{key:"rbl",unit:"rem",layer:t.Native},"border-bottom-right-radius":{key:"rbr",unit:"rem",layer:t.Native},"border-top-radius":{key:"rt",unit:"rem",layer:t.Shorthand,declare:e=>({"border-top-left-radius":e,"border-top-right-radius":e})},"border-bottom-radius":{key:"rb",unit:"rem",layer:t.Shorthand,declare:e=>({"border-bottom-left-radius":e,"border-bottom-right-radius":e})},"border-left-radius":{key:"rl",unit:"rem",layer:t.Shorthand,declare:e=>({"border-top-left-radius":e,"border-bottom-left-radius":e})},"border-right-radius":{key:"rr",unit:"rem",layer:t.Shorthand,declare:e=>({"border-top-right-radius":e,"border-bottom-right-radius":e})},"border-radius":{key:"r",unit:"rem",layer:t.NativeShorthand},"border-top-style":{ambiguousKeys:["bt","border-top"],ambiguousValues:i.BORDER_STYLE_VALUES,layer:t.Native},"border-bottom-style":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:i.BORDER_STYLE_VALUES,layer:t.Native},"border-left-style":{ambiguousKeys:["bl","border-left"],ambiguousValues:i.BORDER_STYLE_VALUES,layer:t.Native},"border-right-style":{ambiguousKeys:["br","border-right"],ambiguousValues:i.BORDER_STYLE_VALUES,layer:t.Native},"border-x-style":{ambiguousKeys:["bx","border-x"],ambiguousValues:i.BORDER_STYLE_VALUES,layer:t.Shorthand,declare:e=>({"border-left-style":e,"border-right-style":e})},"border-y-style":{ambiguousKeys:["by","border-y"],ambiguousValues:i.BORDER_STYLE_VALUES,layer:t.Shorthand,declare:e=>({"border-top-style":e,"border-bottom-style":e})},"border-style":{ambiguousKeys:["b","border"],ambiguousValues:i.BORDER_STYLE_VALUES,layer:t.NativeShorthand},"border-top-width":{ambiguousKeys:["bt","border-top"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native},"border-bottom-width":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native},"border-left-width":{ambiguousKeys:["bl","border-left"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native},"border-right-width":{ambiguousKeys:["br","border-right"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native},"border-x-width":{ambiguousKeys:["bx","border-x"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Shorthand,declare:e=>({"border-left-width":e,"border-right-width":e})},"border-y-width":{ambiguousKeys:["by","border-y"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Shorthand,declare:e=>({"border-top-width":e,"border-bottom-width":e})},"border-width":{ambiguousKeys:["b","border"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.NativeShorthand},"border-image-repeat":{ambiguousKeys:["border-image"],ambiguousValues:["stretch","repeat","round","space"],layer:t.Native},"border-image-slice":{ambiguousKeys:["border-image"],layer:t.Native},"border-image-source":{ambiguousKeys:["border-image"],ambiguousValues:[i.IMAGE_VALUE_REGEX],layer:t.Native},"border-image-width":{ambiguousKeys:["border-image"],ambiguousValues:["auto",i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native},"border-image-outset":{ambiguousKeys:["border-image"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native},"border-image":{layer:t.NativeShorthand},"border-top":{key:"bt",layer:t.NativeShorthand,unit:"rem",transformValueComponents:a,variables:["frame"]},"border-bottom":{key:"bb",layer:t.NativeShorthand,unit:"rem",transformValueComponents:a,variables:["frame"]},"border-left":{key:"bl",layer:t.NativeShorthand,unit:"rem",transformValueComponents:a,variables:["frame"]},"border-right":{key:"br",layer:t.NativeShorthand,unit:"rem",transformValueComponents:a,variables:["frame"]},"border-x":{key:"bx",unit:"rem",layer:t.Shorthand,transformValueComponents:a,variables:["frame"],declare:e=>({"border-left":e,"border-right":e})},"border-y":{key:"by",unit:"rem",layer:t.Shorthand,transformValueComponents:a,variables:["frame"],declare:e=>({"border-top":e,"border-bottom":e})},border:{key:"b",unit:"rem",layer:t.NativeShorthand,transformValueComponents:a,variables:["frame"]},"background-attachment":{ambiguousKeys:["bg"],ambiguousValues:["fixed","local","scroll"],layer:t.Native},"background-blend-mode":{key:"bg-blend",layer:t.Native},"background-color":{ambiguousKeys:["bg"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Native},"background-clip":{key:"bg-clip",layer:t.Native,declare:e=>({"-webkit-background-clip":e,"background-clip":e})},"background-origin":{key:"bg-origin",layer:t.Native},"background-position":{ambiguousKeys:["bg"],ambiguousValues:["top","bottom","right","left","center"],layer:t.Native,unit:"px"},"background-repeat":{ambiguousKeys:["bg"],ambiguousValues:["space","round","repeat","no-repeat","repeat-x","repeat-y"],layer:t.Native},"background-size":{ambiguousKeys:["bg"],ambiguousValues:["auto","cover","contain",i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native},"background-image":{ambiguousKeys:["bg"],ambiguousValues:[i.IMAGE_VALUE_REGEX],layer:t.Native},background:{key:"bg",layer:t.NativeShorthand},gradient:{matcher:/^gradient\(/,layer:t.Shorthand,declare:e=>({"background-image":"linear-"+e})},"mix-blend-mode":{key:"blend",layer:t.Native},"backdrop-filter":{key:"bd",layer:t.Native,declare:e=>({"-webkit-backdrop-filter":e,"backdrop-filter":e})},filter:{matcher:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:t.Native},fill:{layer:t.Native},"stroke-dasharray":{layer:t.Native},"stroke-dashoffset":{layer:t.Native,variables:["spacing"]},"stroke-width":{ambiguousKeys:["stroke"],ambiguousValues:[i.NUMBER_VALUE_REGEX],layer:t.Native},stroke:{layer:t.Native},x:{layer:t.Native,variables:["spacing"]},y:{layer:t.Native,variables:["spacing"]},cx:{layer:t.Native,variables:["spacing"]},cy:{layer:t.Native,variables:["spacing"]},rx:{layer:t.Native},ry:{layer:t.Native},"grid-column-start":{key:"grid-col-start",layer:t.Native},"grid-column-end":{key:"grid-col-end",layer:t.Native},"grid-column-span":{key:"grid-col-span",layer:t.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-column":e})},"grid-column":{key:"grid-col",layer:t.NativeShorthand},"grid-columns":{key:"grid-cols",declare:e=>({display:"grid","grid-template-columns":"repeat("+e+",minmax(0,1fr))"}),layer:t.Shorthand},"grid-row-start":{layer:t.Native},"grid-row-end":{layer:t.Native},"grid-row-span":{layer:t.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-row":e})},"grid-row":{layer:t.NativeShorthand},"grid-rows":{declare:e=>({display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+",minmax(0,1fr))"}),layer:t.Shorthand},"grid-auto-columns":{key:"grid-auto-cols",layer:t.Native},"grid-auto-flow":{key:"grid-flow",layer:t.Native},"grid-auto-rows":{layer:t.Native},"grid-template-areas":{layer:t.Native},"grid-template-columns":{key:"grid-template-cols",layer:t.Native,unit:"rem"},"grid-template-rows":{layer:t.Native,unit:"rem"},"grid-template":{layer:t.NativeShorthand},"grid-area":{layer:t.NativeShorthand},grid:{layer:t.NativeShorthand},"column-gap":{key:"gap-x",unit:"rem",layer:t.Native,variables:["spacing"]},"row-gap":{key:"gap-y",unit:"rem",layer:t.Native,variables:["spacing"]},gap:{unit:"rem",layer:t.NativeShorthand,variables:["spacing"]},order:{key:"o",layer:t.Native},"break-inside":{layer:t.Native},"break-before":{layer:t.Native},"break-after":{layer:t.Native},"aspect-ratio":{key:"aspect",layer:t.Native},"column-span":{key:"col-span",layer:t.Native},"align-content":{subkey:"ac",layer:t.Native},"align-items":{subkey:"ai",layer:t.Native},"align-self":{subkey:"as",layer:t.Native},"justify-content":{subkey:"jc",layer:t.Native},"justify-items":{subkey:"ji",layer:t.Native},"justify-self":{subkey:"js",layer:t.Native},"place-content":{layer:t.NativeShorthand},"place-items":{layer:t.NativeShorthand},"place-self":{layer:t.NativeShorthand},"list-style-position":{ambiguousKeys:["list-style"],ambiguousValues:["inside","outside"],layer:t.Native},"list-style-type":{ambiguousKeys:["list-style"],ambiguousValues:["disc","decimal"],layer:t.Native},"list-style-image":{ambiguousKeys:["list-style"],ambiguousValues:[i.IMAGE_VALUE_REGEX],layer:t.Native},"list-style":{layer:t.NativeShorthand},"outline-color":{ambiguousKeys:["outline"],ambiguousValues:[i.COLOR_VALUE_REGEX],layer:t.Native,variables:["frame"]},"outline-offset":{unit:"rem",layer:t.Native,variables:["spacing"]},"outline-style":{ambiguousKeys:["outline"],ambiguousValues:i.BORDER_STYLE_VALUES,layer:t.Native},"outline-width":{ambiguousKeys:["outline"],ambiguousValues:["medium","thick","thin",i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native},outline:{unit:"rem",layer:t.NativeShorthand,variables:["outline-width","outline-style","outline-offset","outline-color","frame"],transformValueComponents:a},"accent-color":{key:"accent",layer:t.Native},appearance:{layer:t.Native},"caret-color":{key:"caret",layer:t.Native,variables:["text"]},"scroll-behavior":{layer:t.Native},"scroll-margin-left":{key:"scroll-ml",layer:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-right":{key:"scroll-mr",layer:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-top":{key:"scroll-mt",layer:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{key:"scroll-mb",layer:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-x":{key:"scroll-mx",unit:"rem",layer:t.Shorthand,declare:e=>({"scroll-margin-left":e,"scroll-margin-right":e}),variables:["spacing"]},"scroll-margin-y":{key:"scroll-my",unit:"rem",layer:t.Shorthand,declare:e=>({"scroll-margin-top":e,"scroll-margin-bottom":e}),variables:["spacing"]},"scroll-margin":{key:"scroll-m",unit:"rem",layer:t.NativeShorthand,variables:["spacing"]},"scroll-padding-left":{key:"scroll-pl",layer:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-right":{key:"scroll-pr",layer:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-top":{key:"scroll-pt",layer:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{key:"scroll-pb",layer:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-x":{key:"scroll-px",unit:"rem",layer:t.Shorthand,declare:e=>({"scroll-padding-left":e,"scroll-padding-right":e}),variables:["spacing"]},"scroll-padding-y":{key:"scroll-py",unit:"rem",layer:t.Shorthand,declare:e=>({"scroll-padding-top":e,"scroll-padding-bottom":e}),variables:["spacing"]},"scroll-padding":{key:"scroll-p",unit:"rem",layer:t.NativeShorthand,variables:["spacing"]},"scroll-snap-align":{ambiguousKeys:["scroll-snap"],ambiguousValues:["start","end","center"],layer:t.Native},"scroll-snap-stop":{ambiguousKeys:["scroll-snap"],ambiguousValues:["normal","always"],layer:t.Native},"scroll-snap-type":{ambiguousKeys:["scroll-snap"],ambiguousValues:["x","y","block","inline","both"],layer:t.Native},"will-change":{layer:t.Native},"writing-mode":{key:"writing",layer:t.Native},direction:{layer:t.Native},"shape-outside":{ambiguousKeys:["shape"],ambiguousValues:[/(?:inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)/],layer:t.Native},"shape-margin":{ambiguousKeys:["shape"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",layer:t.Native,variables:["spacing"]},"shape-image-threshold":{layer:t.Native},"clip-path":{key:"clip",layer:t.Native},quotes:{layer:t.Native},"mask-image":{layer:t.Native,declare:e=>({"-webkit-mask-image":e,"mask-image":e})}}}function ed(){return E?S:(E=1,S={dark:"class",light:"class"})}function eh(){if(R)return w;R=1;var e=eu();let t={$:{transform(e){let t,i;let a=e.indexOf(",");return -1!==a?(t=e.slice(0,a),i=e.slice(a+1)):t=e,[{type:"variable",name:t,fallback:i,token:e}]}},calc:{transform(i,a){let r=[],s=0,l=(a,o,n,u,c)=>{let d;let h=r!==a,f=[],m=!1,y=!1,b=!1,g=!1,p="",v=(t,r="",l="")=>{if(!1===d&&" "!==t&&this.definition.unit&&(d=void 0,g||k()),p){if(!c){let t=e.BASE_UNIT_REGEX.exec(p);t&&(p=(+t[1]*(this.css.config.baseUnit??1)).toString())}if(m||n)a.push({type:"string",value:p,token:p});else{let e={...this.parseValue(p),token:p};if(!y&&isNaN(+p)&&"number"===e.type&&(y=!0),g)isNaN(+p)?"number"===e.type?(a.push(e),b=!0):a.push(e):a.push({type:"number",value:+p,token:p});else if(h){let e={type:"string",value:p,token:p};f.push(e),a.push(e)}else a.push(e)}p=""}t&&(("+"===t||"-"===t)&&x(),r&&" "===i[s-1]&&(r=""),l&&" "===i[s+1]&&(l=""),o?a.push({type:"separator",value:t,text:t,token:t}):a.push({type:"separator",value:t,text:r+t+l,token:t})),m=!1},k=()=>{("rem"===this.definition.unit||"em"===this.definition.unit)&&a.push({type:"separator",value:"/",text:" / ",token:"/"},{type:"number",value:this.css.config.rootSize,token:String(this.css.config.rootSize)}),a.push({type:"separator",value:"*",text:" * ",token:"*"},{type:"number",value:1,unit:this.definition.unit,token:this.definition.unit})},x=()=>{!g||b||u||h&&!y||k(),g=!1,b=!1};for(;s<i.length;s++){let e=i[s];if("("===e){let i=/^([+-])/.exec(p);i&&a.push({type:"string",value:i[1],token:i[1]});let r=i?p.slice(1):p,o={type:"function",name:r,symbol:e,children:[],bypassTransform:"calc"===r,token:p};a.push(o),p="",s++;let n="$"===r||"var"===r;if(!(d=l(o.children,""!==r&&"calc"!==r&&(n||Object.prototype.hasOwnProperty.call(t,r)),m||n||g&&b,g,n)||"var"===r)&&"$"===r){let e=this.css.variables[o.children[0].value]?.type;d=!e||"string"===e}d&&(y=!0,b=!0)}else if(")"===e){if(v(""),y)for(let e of f)Object.assign(e,this.parseValue(e.value));return y}else if(","===e)v(e,""," ");else if(" "===e)v(e);else{let t=i[s-1];switch(e){case"+":case"-":p||")"===t?v(e," "," "):p+=e;break;case"*":this.definition.unit&&(g=!0),v(e," "," ");break;case"/":this.definition.unit&&(g=!0),v(e," "," "),m=!0;break;default:p+=e}}}v(""),x()};return l(r,!1,!1,!1,!1),"calc("+this.resolveValue(r,t.calc.unit??this.definition.unit,a,!0)+")"}},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:""},"color-contrast":{unit:""},"color-mix":{unit:""},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},"light-dark":{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{},"radial-gradient":{},"conic-gradient":{},"repeating-linear-gradient":{},"repeating-radial-gradient":{},"repeating-conic-gradient":{},matrix:{unit:""},matrix3d:{unit:""},scale:{unit:""},scale3d:{unit:""},scaleX:{unit:""},scaleY:{unit:""},scaleZ:{unit:""}};return w=t}function ef(){if($)return J;$=1;var e=ee(),t=et(),i=ei(),a=ea(),r=es(),s=ec(),l=ed(),o=eh();return J.at=e,J.selectors=t,J.utilities=i,J.animations=a,J.variables=r,J.syntaxes=s,J.modes=l,J.functions=o,J.config={at:e,selectors:t,utilities:i,syntaxes:s,functions:o,animations:a,variables:r,modes:l,scope:"",rootSize:16,baseUnit:4,override:!1,important:!1,defaultMode:"light"},J}var em={};function ey(){if(O)return em;O=1;var e=el(),t=eo(),i=eu();return em.Rule=class{className;RegisteredRule;css;at;priority;natives;order;layer;declarations;animationNames;variableNames;constructor(a,r,s){let l,o,n;this.className=a,this.RegisteredRule=r,this.css=s,this.at={},this.priority=-1,this.natives=[],this.order=0,this.layer=0,this.resolveValue=(e,t,a,r)=>{let{functions:s}=this.css.config,l="";for(let o of e)switch(o.type){case"function":let e=s&&s[o.name];if(e?.transform&&!o.bypassTransform){let i=e.transform.call(this,this.resolveValue(o.children,e.unit??t,a,r||"calc"===o.name),a);l+=o.token=o.text="string"==typeof i?i:this.resolveValue(i,e?.unit??t,a,r)}else l+=o.token=o.text=o.name+o.symbol+this.resolveValue(o.children,e?.unit??t,a,r)+i.VALUE_DELIMITERS[o.symbol];break;case"variable":let n=this.css.variables[o.name];if(n){let e=(e,t)=>{if(n.modes){if(this.mode){let t=n.modes[this.mode]??n;t?.value&&e(t)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(o.name)||this.variableNames.push(o.name),t()}else e(n)};switch(n.type){case"string":e(e=>{let i=[];this.parseValues(i,0,e.value,t,"",void 0,r,[...a,o.name]),l+=o.text=this.resolveValue(i,t,[...a,o.name],r)},()=>{l+=o.text=`var(--${o.name})`});break;case"number":e(e=>{if(r)l+=o.text=String(e.value);else{let i=this.parseValue(e.value,t);l+=o.text=i.value+(i.unit??"")}},()=>{l+=o.text=t?`calc(var(--${o.name}) / 16 * 1rem)`:`var(--${o.name})`});break;case"color":let i=o.alpha?"/"+o.alpha:"";e(e=>{l+=o.text=`${e.space}(${e.value}${i})`},()=>{l+=o.text=`${n.space}(var(--${o.name})${i})`})}}else l+=o.text=`var(--${o.name}${o.fallback?","+o.fallback:""})`;break;case"separator":l+=o.text?o.text:o.text=o.value;break;case"number":l+=o.text=o.value+(o.unit||"");break;default:l+=o.text=o.value}return l},this.parseValues=(e,t,a,r,s,l,o=!1,n=[])=>{let u=void 0===l,c=!u&&(l.endsWith("$")||l.endsWith("var")),d="'"===s||'"'===s,h=[","];this.definition.separators?.length&&h.push(...this.definition.separators);let f="",m=()=>{if(f){let t=!1;if(!c||e.length){let i=(i,a)=>{let r=Object.prototype.hasOwnProperty.call(this.variables,i)?this.variables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(r){let s=r.name??i;if(!n.includes(s)){t=!0;let i={type:"variable",name:s,variable:this.css.variables[s],token:f};a&&(i.alpha=a),e.push(i)}}};if(i(f),!t){let[e,t]=f.split("/");i(e,t)}}if(!t){if(!c){let e=i.BASE_UNIT_REGEX.exec(f);e&&(f=String(+e[1]*(this.css.config.baseUnit??1)))}o?e.push({type:"string",value:f,token:f}):e.push({...this.parseValue(f,r),token:f})}f=""}};for(;t<a.length;t++){let n=a[t];if(n===s){if(d){let e=0;for(let t=f.length-1;"\\"===f[t];t--)e++;if(e%2){f+=n;continue}m()}else m();return t}if(!d&&n in i.VALUE_DELIMITERS){let s=f,u={type:"function",name:s,symbol:n,children:[],token:""};e.push(u),f="";let c="("===n?this.css.config.functions?.[s]:void 0;t=this.parseValues(u.children,++t,a,c?.unit??r,i.VALUE_DELIMITERS[n],s||l||"",o||"calc"===s)}else if("|"!==n&&" "!==n||"}"===s||d&&"path"!==l){if(!d){if("."===n){if(isNaN(+a[t+1])){if(u)break}else"-"===a[t-1]&&(f+="0")}else if(h.includes(n)){m(),e.push({type:"separator",value:n,text:(","===n?"":" ")+n+(","===n?"":" "),token:n});continue}else if(u&&("#"===n&&(f||e.length&&"separator"!==e[e.length-1].type)||["!","*",">","+","~",":","[","@","_"].includes(n)))break}f+=n}else m(),e.push({type:"separator",value:" ",token:n})}return m(),t},Object.assign(this,r);let{id:u,definition:c}=r,{analyze:d,transformValue:h,declare:f,transformValueComponents:m,create:y,layer:b,unit:g}=c;this.layer=b,c.unit||(c.unit=""),c.separators||(c.separators=[","]);let{scope:p,important:v,modes:k}=s.config,{selectors:x,at:N,stylesBy:S,animations:E}=s,w=S[a];if(y&&y.call(this,a),this.declarations=c.declarations,b===t.Utility)l=a.slice(u.length-1);else{let e;if(d)[e,o]=d.call(this,a);else{let t=a.indexOf(":");this.keyToken=a.slice(0,t+1),e=a.slice(t+1)}this.valueComponents=[];let t=this.parseValues(this.valueComponents,0,e,g,"",void 0,!1,c.includeAnimations?Object.keys(this.css.animations):[]);this.valueToken=e.slice(0,t),l=e.slice(t)}"!"===l[0]&&(this.important=!0,l=l.slice(1)),this.stateToken=l;let R=(e,t)=>{let i=(e,t,a,r)=>{for(let[r,s]of t)if(r.test(e)){for(let l of s)i(e.replace(r,l),t,a,!0);return}r&&a.push(e)},a=e=>{let t=e.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((e,t)=>t%3?e:e.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),i=[],a="",r=0;for(let e=0;e<t.length;e++){let s=t[e];if("\\"===s){a+=s+t[++e];continue}r||","!==s?(a+=s,r&&")"===s?r--:"("===s&&r++):(i.push(a),a="")}return a&&i.push(a),i},r=[];""in x?i(e,x[""],r,!0):r.push(e);let s={};for(let[e,t]of Object.entries(x)){if(!e)continue;let a=[];for(let e of r)i(e,t,a,!1);a.length&&(s[e]=a)}let l=(e,i)=>{let r=i.reduce((e,t)=>(e.push(...a(t)),e),[]);e in t?t[e].push(...r):t[e]=r},o=Object.keys(s);if(o.length)for(let e of o)l(e,s[e]);else l("",r)};o?(this.vendorPrefixSelectors={},R(o,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let $=l.split("@"),O=$[0];if(O)for(let e of(this.vendorSuffixSelectors={},R(O,this.vendorSuffixSelectors),Object.values(this.vendorSuffixSelectors)))for(let t of e){!1!==this.hasWhere&&(this.hasWhere=t.includes(":where("));let e=[":disabled",":active",":focus",":hover"];for(let i=0;i<e.length;i++)if(t.includes(e[i])){(-1===this.priority||this.priority>i)&&(this.priority=i);break}}else this.vendorSuffixSelectors={"":[""]};let _={},V=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),A=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(V)_[""]=A?[""]:Object.keys(this.vendorSuffixSelectors);else if(A)for(let e in this.vendorPrefixSelectors)_[e]=[""];else for(let e in this.vendorPrefixSelectors){let t=_[e]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,e))t.push(e);else for(let e in this.vendorSuffixSelectors)t.push(e)}for(let e=1;e<$.length;e++){let t=$[e];if(this.atToken=(this.atToken||"")+"@"+t,t){if("rtl"===t||"ltr"===t)this.direction=t;else{let e;let i=[],a=/^(media|supports|container|layer)/,r=a.exec(t);if(r)e=r[1],i.push({type:"arbitrary",token:t,value:t.slice(e.length).replace(/\|/g," ")});else{let r=t=>{if("&"===t)i.push({type:"operator",token:t,value:"and"});else if(t.startsWith("")){let r=N[t];if(r&&"string"==typeof r){let s=r.match(a);if(!(e=s?s[1]:""))throw Error(`Invalid query '${t}': '${r}'`);i.push({type:"arbitrary",value:r.slice(s?s[1].length+1:0)})}else{e="media";let a="",s="",l=0;t.startsWith("<=")?(s="<=",a="max-width"):t.startsWith(">")&&!t.startsWith(">=")?(s=">",a="min-width",l=.02):t.startsWith("<")?(s="<",a="max-width",l=-.02):(t.startsWith(">=")||r)&&(s=">=",a="min-width");let o=s?t.replace(s,""):t,n=N[o];switch(a){case"max-width":case"min-width":if("number"==typeof n)i.push({type:"feature",name:a,valueType:"number",value:n+l,unit:"px"});else{let e=this.parseValue(o,"px");"number"===e.type?i.push({type:"feature",name:a,valueType:"number",value:e.value+l,unit:e.unit}):i.push({type:"feature",name:a,valueType:"string",value:o})}}}}},s=t.includes("&");if(s)for(let e of t.split(/(&|,)/))r(e);else r(t);if(!i.length&&!s&&k?.[t]){this.mode=t;continue}}e&&(this.at[e]=i)}}}this.valueComponents&&(m&&(this.valueComponents=m.call(this,this.valueComponents)),n=this.resolveValue(this.valueComponents,g,[],!1),h&&(n=h.call(this,n)),f?this.declarations=f.call(this,n,this.valueComponents):u&&(this.declarations={[u]:n}));let L=[];for(let e in this.declarations){let t=e=>{if(E&&(e.startsWith("animation")||e.startsWith("animation-name"))){let t=e.split(":")[1].split("!important")[0].split(" ").filter(e=>e in this.css.animations&&(!this.animationNames||!this.animationNames.includes(e)));t.length&&(this.animationNames||(this.animationNames=[]),this.animationNames=t)}L.push(e+((this.important||v)&&!e.endsWith("!important")?"!important":""))},i=e+":",a=this.declarations[e];if(Array.isArray(a))for(let e of a)t(i+String(e));else t(i+String(a))}if(L.length)for(let t in _)for(let i of _[t]){let r="";this.direction&&(r+="[dir="+this.direction+"] ");let s=this.vendorPrefixSelectors[t],l=this.vendorSuffixSelectors[i],o=s.map(e=>e+r),n=t=>o.map(e=>(this.mode&&k?.[this.mode]!=="media"?k?.[this.mode]==="host"?`:host(.${this.mode}) `:`.${this.mode} `:"")+(p?p+" ":"")+e).reduce((i,a)=>(i.push(l.reduce((i,r)=>(i.push(a+"."+e(t)+r),i),[]).join(",")),i),[]).join(","),u=n(a)+(w?w.reduce((e,t)=>e+","+n(t),""):"")+"{"+L.join(";")+"}";for(let e of Object.keys(this.at).sort((e,t)=>"supports"===t?-1:1))u="@"+e+(e.includes(" ")?"":" ")+this.at[e].map(e=>this.resolveAtComponent(e)).join(" ")+"{"+u+"}";this.mode&&k?.[this.mode]==="media"&&(u=`@media(prefers-color-scheme:${this.mode}){`+u+"}"),this.natives.push({text:u})}}resolveAtComponent(e){switch(e.type){case"arbitrary":case"operator":return e.value;case"feature":return"("+e.name+":"+e.value+(e.unit||"")+")"}}resolveValue;get text(){return this.natives.map(e=>e.text).join("")}parseValues;parseValue(e,t=this.definition.unit){let a;let r=t??this.definition.unit,s="";if("number"==typeof e)return r&&!s?(("rem"===r||"em"===r)&&(a=e/(this.css.config.rootSize||1)),s=r||""):a=e,{value:a,unit:s,type:"number"};if(r){if(/^\d+\/\d+/.test(e)){let[t,i]=e.split("/");return{value:+t/+i*100,unit:"%",type:"number"}}let t=e.match(i.UNIT_REGEX);if(t)return a=+t[1],(s=t[3]||"")||(("rem"===r||"em"===r)&&(a/=this.css.config.rootSize||1),s=r||""),{value:a,unit:s,type:"number"}}return{value:e,type:"string"}}},em}var eb={},eg={};function ep(){if(U)return L;U=1;var e=er();return L=function(...t){let i=t=>{let i=e({},t),a=e=>{for(let t in e){let i=e[t];"object"!=typeof i||Array.isArray(i)?t&&!t.startsWith("@")&&(e[t]={"":i}):a(i)}};return i.styles&&a(i.styles),i.at&&a(i.at),i.variables&&a(i.variables),i},a=[];for(let e of t)e&&function e(t){if(t.extends?.length)for(let i of t.extends)e("config"in i?i.config:i);a.push(i(t))}(e);let r={animations:{},styles:{},at:{},variables:{}};for(let t of a)for(let i in t)"animations"===i?t.animations&&Object.assign(r.animations,t.animations):t[i]&&(r=e(r,{[i]:t[i]}));return r}}function ev(){if(j)return eb;j=1,Object.defineProperty(eb,"__esModule",{value:!0});var e=ey(),t=ef(),i=eo(),a=V?_:(V=1,_=function(e){let t,i,a,r;return e.startsWith("#")&&(e=e.slice(1)),3===e.length||4===e.length?(t=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),a=parseInt(e[2]+e[2],16),r=4===e.length?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(6===e.length||8===e.length)&&(t=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16),r=8===e.length?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,i,a,r]}),r=(A||(A=1,eg.flattenObject=function e(t,i=""){return Object.entries(t).reduce((t,[a,r])=>{let s=i?`${i}${a?"-"+a:""}`:a;return"object"!=typeof r||Array.isArray(r)?t[s]=r:Object.assign(t,e(r,s)),t},{})}),eg),s=ep();class l{customConfig;static config=t.config;syntaxes;ruleBy;classesUsage;config;Rules;constructor(e){this.customConfig=e,this.syntaxes=[],this.ruleBy={},this.classesUsage={},this.Rules=[],e?.override?this.config=s(e):this.config=s(t.config,e),this.resolve(),this.constructor===l&&o.push(this)}resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.at={},this.animations={},this.Rules.length=0,this.variablesNativeRules={},this.hasKeyframesRule=!1;let e={current:void 0,currentColor:void 0,transparent:void 0},{styles:t,selectors:s,variables:l,utilities:o,at:n,syntaxes:u,animations:c}=this.config;function d(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(s){let e=r.flattenObject(s);for(let t in e){let i=e[t],a=RegExp(d(t)+"(?![a-z-])");for(let e of Array.isArray(i)?i:[i]){let t=e.match(/^::-[a-z]+-/m)?.[0]??"",i=this.selectors[t];i||(i=this.selectors[t]=[]);let r=i.find(([e])=>e===a);r||(r=[a,[]],i.push(r)),r[1].push(e)}}}if(l){let t={},i=(r,s,l)=>{if(null==r)return;let o=(t,i,a,r)=>{if(void 0===i)return;let s=t.join("-"),o=t.slice(0,-1).filter(Boolean),n=(""===t[0]?"-":"")+t[t.length-1];if(i.key=n,i.name=s,o.length&&(i.group=o.join(".")),"color"===i.type){if(r){let e=i.value.indexOf("/");i={...i,value:-1===e?i.value+" / "+(r.startsWith("0.")?r.slice(1):r):i.value.slice(0,e+2)+String(+i.value.slice(e+2)*+r).slice(1)}}e[s]=void 0}i.name.startsWith("screen-")&&"number"===i.type&&(this.at[i.name.slice(7)]=i.value);let u=a??l;if(void 0!==u){if(Object.prototype.hasOwnProperty.call(this.variables,s)){let e=this.variables[s];u?(e.modes||(e.modes={}),e.modes[u]=i):(e.value=i.value,"color"===i.type&&(e.space=i.space))}else if(u){let e={key:i.key,name:i.name,group:i.group,type:i.type,modes:{[u]:i}};"color"===i.type&&(e.space=i.space),this.variables[s]=e}else this.variables[s]=i}else this.variables[s]=i};if("object"==typeof r){if(Array.isArray(r))o(s,{type:"string",value:r.join(",")});else{let e=Object.keys(r);for(let t of e)""===t||t.startsWith("@")?i(r[t],s,t||e.some(e=>e.startsWith("@"))?t.slice(1):void 0):i(r[t],[...s,t])}}else if("number"==typeof r)o(s,{type:"number",value:r}),o(["",...s],{type:"number",value:-1*r});else if("string"==typeof r){let e=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(r),i=s.join("-");if(e)Object.prototype.hasOwnProperty.call(t,i)||(t[i]={}),t[i][l]=()=>{delete t[i][l];let[a,r]=e[1].split("@");if(a){if(Object.prototype.hasOwnProperty.call(t,a))for(let e of Object.keys(t[a]))t[a][e]?.();let i=this.variables[a];if(i){if(void 0===r&&i.modes)for(let t in o(s,{type:i.type,value:i.value,space:i.space},"",e[2]),i.modes)o(s,i.modes[t],t,e[2]);else{let t=void 0!==r?i.modes?.[r]:i;if(t){let i={type:t.type,value:t.value};"color"===t.type&&(i.space=t.space),o(s,i,void 0,e[2])}}}}};else{let e=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(r);if(e){let[t,i,r,l]=a(e[1]);o(s,{type:"color",value:`${t} ${i} ${r}${1===l?"":" / "+l}`,space:"rgb"})}else{let e=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(r);if(e)o(s,{type:"color",value:e[1]+" "+e[2]+" "+e[3]+(e[4]?" / "+(e[4].startsWith("0.")?e[4].slice(1):e[4]):""),space:"rgb"});else{let e=/^hsl\((.*?)\)$/.exec(r);e?o(s,{type:"color",value:e[1],space:"hsl"}):o(s,{type:"string",value:r})}}}}};for(let e in l)i(l[e],[e]);for(let e of Object.keys(t))for(let i of Object.keys(t[e]))t[e][i]?.()}if(n&&Object.assign(this.at,r.flattenObject(n)),c)for(let e in c){let t=this.animations[e]={},i=c[e];for(let e in i){let a=t[e]={},r=i[e];for(let e in r)a[e]=r[e]}}let h=t?r.flattenObject(t):{},f=Object.keys(h),m=e=>{if(Object.prototype.hasOwnProperty.call(this.styles,e))return;let t=this.styles[e]=[],i=h[e];if(i)for(let a of i.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ")){let i=i=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,i)){let t=this.stylesBy[i];t.includes(e)||t.push(e)}else this.stylesBy[i]=[e];t.includes(i)||t.push(i)};if(f.includes(a))for(let e of(m(a),this.styles[a]))i(e);else i(a)}};for(let e of f)m(e);if(u||o){let t=[];if(o)for(let e in o){let a=o[e];t.push([e,{declarations:a,layer:i.Utility}])}u&&t.push(...Object.entries(u));let a=t.length,r=Object.keys(e);t.sort((e,t)=>e[1].layer!==t[1].layer?(t[1].layer||0)-(e[1].layer||0):t[0].localeCompare(e[0])).forEach(([e,t],s)=>{let l={id:e,keys:[],variables:{},matchers:{},order:a-1-s,definition:t};this.Rules.push(l);let{matcher:o,layer:n,subkey:u,ambiguousKeys:c,ambiguousValues:h,sign:f}=t;n===i.Utility&&(l.id="."+e,l.matchers.arbitrary=RegExp("^"+d(e)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"));let m=e=>{for(let t in this.variables){let i=this.variables[t];i.group===e&&(l.variables[i.key]=i)}};if(t.variables)for(let e of t.variables)m(e);m(e);let y=[],{key:b}=t;if((n===i.NativeShorthand||n===i.Native)&&(b||(t.key=b=e),y.push(e)),f)l.matchers.arbitrary=RegExp(`^${f}[^!*>+~:[@_]+\\|`);else if(o)l.matchers.arbitrary=o;else{let t=r.join("|");if(b||u?(b&&!y.includes(b)&&y.push(b),u&&y.push(u),n===i.Shorthand&&y.push(e)):y.push(e),c?.length){let e=c.length>1?`(?:${c.join("|")})`:c[0],i=Object.keys(l.variables);if(h?.length){let i=[];for(let e of h)e instanceof RegExp?i.push(e.source.replace("\\$colors",t)):i.unshift(`${e}(?:\\b|_)`);l.matchers.value=RegExp(`^${e}:(?:${i.join("|")})[^|]*?(?:@|$)`)}i.length&&(l.matchers.variable=RegExp(`^${e}:(?:${i.join("|")}(?![a-zA-Z0-9-]))[^|]*?(?:@|$)`))}}y.length&&(l.keys=y,l.matchers.key=RegExp(`^${y.length>1?`(${y.join("|")})`:y[0]}:.`))})}}match(e){for(let t of this.Rules)if(t.matchers.variable?.test(e))return t;for(let t of this.Rules)if(t.matchers.value?.test(e))return t;for(let t of this.Rules)if(t.matchers.key?.test(e))return t;for(let t of this.Rules)if(t.matchers.arbitrary?.test(e))return t}generate(e){return(Object.prototype.hasOwnProperty.call(this.styles,e)?this.styles[e].map(e=>this.create(e)):[this.create(e)]).filter(e=>e&&e?.text)}create(t){if(Object.prototype.hasOwnProperty.call(this.ruleBy,t))return this.ruleBy[t];let i=this.match(t);if(i)return new e.Rule(t,i,this)}refresh(e){for(let i in e?this.customConfig=e:e=this.customConfig,e?.override?this.config=s(e):this.config=s(t.config,e),this.resolve(),this.syntaxes.length=0,this.ruleBy={},this.classesUsage)this.add(i);return this}reset(){for(let e in this.ruleBy={},this.classesUsage={},this.syntaxes.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules={},this.animations){let t=this.animations[e];t.usage=0,t.native=void 0}for(let e in this.variables)this.variables[e].usage=0;return this}destroy(){return this.reset(),o.splice(o.indexOf(this),1),this}add(...e){for(let t of e){let e=this.generate(t);if(e.length)for(let t of e)this.insert(t)}return this}delete(...e){let t=this.style?.sheet,i=e=>{let i=this.ruleBy[e];if(!(!i||Object.prototype.hasOwnProperty.call(this.stylesBy,e)&&this.stylesBy[e].some(e=>Object.prototype.hasOwnProperty.call(this.classesUsage,e)))){if(t&&i.natives.length){let e=i.natives[0];for(let a=0;a<t.cssRules.length;a++)if(t.cssRules[a]===e.cssRule){for(let{}of i.natives)t.deleteRule(a);break}}if(this.syntaxes.splice(this.syntaxes.indexOf(i),1),delete this.ruleBy[e],i.variableNames)for(let e of i.variableNames){let i=this.variables[e];if(i.usage||(i.usage=0),!--i.usage){let a=i=>{let a=this.variablesNativeRules[i];if(a.cssRule.style.removeProperty("--"+e),!a.cssRule.style.length){let e=this.syntaxes[0],r=e.natives.indexOf(a);t?.deleteRule(r),e.natives.splice(r,1),delete this.variablesNativeRules[i],e.natives.length||(this.syntaxes.splice(0,1),this.variablesNativeRules={})}};if(i.value&&a(""),i.modes)for(let e in i.modes)a(e)}}if(i.animationNames){let e=Object.keys(this.variablesNativeRules).length?1:0,a=this.syntaxes[e];for(let e of i.animationNames){let i=this.animations[e];if(i.usage||(i.usage=0),!--i.usage&&i.native){let e=a.natives.indexOf(i.native);t?.deleteRule(Object.keys(this.variablesNativeRules).length+e),a.natives.splice(e,1),i.native=void 0}}a.natives.length||(this.syntaxes.splice(e,1),this.hasKeyframesRule=!1)}i.definition.delete?.call(i,e)}};for(let t of e)if(Object.prototype.hasOwnProperty.call(this.styles,t)){for(let e of this.styles[t])Object.prototype.hasOwnProperty.call(this.classesUsage,e)||i(e);delete this.ruleBy[t]}else i(t)}insert(e){let t,i,a;if(this.ruleBy[e.className])return;let r=this.syntaxes.length-1,{at:s,atToken:l,order:o,priority:n,hasWhere:u,className:c}=e,d=(e,t,i)=>{let a=e;for(;a<=r;a++){let e=this.syntaxes[a];if(t?.(e))break;if(i?.(e))return a}return i?-1:a-1};if(l){let e=this.syntaxes.findIndex(e=>e.at?.media);if(-1===e)t=r+1;else{let l=s.media?.find(({name:e})=>"max-width"===e),o=s.media?.find(({name:e})=>"min-width"===e);if(l||o){let e=this.syntaxes.findIndex(e=>e.at?.media?.find(({name:e})=>"max-width"===e||"min-width"===e));if(-1===e)t=r+1;else if(l&&o){if(-1===n?(i=d(e,e=>-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)),a=d(e,e=>-1!==e.priority)):(i=d(e,void 0,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority),a=r),-1!==i){let e=l.value-o.value,t=a,r=i;for(i=a+1;t>=r;t--){let r=this.syntaxes[t],s=r.at.media?.find(({name:e})=>"max-width"===e),l=r.at.media?.find(({name:e})=>"min-width"===e);if(s&&l){let r=s.value-l.value;if(r<e)a=t-1;else if(r===e)i=t;else break}else break}}}else if(o){if(-1===n?(i=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority,e=>!e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)),a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority)):(i=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority,e=>!e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority),a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority)),-1!==i)for(let e=a;e>=i;e--){let t=(this.syntaxes[e].at.media?.find(({name:e})=>"min-width"===e)).value;if(t>o.value)a=e-1;else if(t<o.value){i=e+1;break}}}else if(-1===n?(i=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)),a=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority)):(i=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&-1!==e.priority),a=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority)),-1!==i)for(let e=a;e>=i;e--){let t=(this.syntaxes[e].at.media?.find(({name:e})=>"max-width"===e)).value;if(t<l.value)a=e-1;else if(t>l.value){i=e+1;break}}}else -1===n?(i=e,a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e)||-1!==e.priority)):(i=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e),e=>-1!==e.priority),a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e)))}}else{let e=Object.keys(this.variablesNativeRules).length?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;-1===n?(i=e,a=d(e,e=>e.atToken||-1!==e.priority)):(i=d(e,e=>e.atToken,e=>-1!==e.priority),a=d(e,e=>e.atToken))}if(void 0===t&&void 0!==a&&void 0!==i){if(-1===i)t=a+1;else{if(-1===n)for(let e=i;e<=a;e++){let i=this.syntaxes[e];if((u||!i.hasWhere)&&(u&&!i.hasWhere||i.order>=o)){t=e;break}}else for(let e=i;e<=a;e++){let i=this.syntaxes[e];if(u||!i.hasWhere){if(u&&!i.hasWhere||i.priority<n){t=e;break}if(i.priority===n){if(i.order>=o){t=e;break}}else t=e+1}}void 0===t&&(t=a+1)}}if(this.syntaxes.splice(t,0,e),this.ruleBy[c]=e,this.style){let i=this.style.sheet,a=0,r=e=>{let t=this.syntaxes[e];if(t){if(!t.natives.length)return r(e-1);let s=t.natives[t.natives.length-1],l=s.cssRule?.parentRule??s.cssRule;if(i){for(let e=0;e<i.cssRules.length;e++)if(i.cssRules[e]===l){a=e+1;break}}}};r(t-1);for(let t=0;t<e.natives.length;)try{let r=e.natives[t];i?.insertRule(r.text,a),r.cssRule=i?.cssRules[a++],t++}catch(i){console.error(i),e.natives.splice(t,1)}}return this.handleRuleWithVariableNames(e),this.handleRuleWithAnimationNames(e),e.definition.insert?.call(e),t}get text(){return this.syntaxes.map(e=>e.text).join("")}handleRuleWithAnimationNames(e,t=!1){if(e.animationNames){let i=this.style?.sheet;for(let a of e.animationNames){let e=this.animations[a];if(e.usage)e.usage++;else{let r;let s={text:`@keyframes ${a}{`+Object.entries(e).filter(([e])=>"usage"!==e&&"native"!==e).map(([e,t])=>`${e}{${Object.entries(t).map(([e,t])=>e+":"+t).join(";")}}`).join("")+"}"},l=Object.keys(this.variablesNativeRules).length?1:0;if(this.hasKeyframesRule?(r=this.syntaxes[l]).natives.push(s):(this.syntaxes.splice(l,0,r={natives:[s],get text(){return this.natives.map(e=>e.text).join("")}}),this.hasKeyframesRule=!0),i){let e;if(t){for(let t of i.cssRules)if("CSSKeyframesRule"===t.constructor.name&&t.name===a){e=t;break}}if(e)s.cssRule=e;else{let e=Object.keys(this.variablesNativeRules).length+r.natives.length-1;i.insertRule(s.text,e),s.cssRule=i.cssRules[e]}}e.usage=1,e.native=s}}}}handleRuleWithVariableNames(e,t=!1){if(e.variableNames){let i=this.style?.sheet;for(let a of e.variableNames){let e=this.variables[a];if(e.usage)e.usage++;else{let r=(e,r)=>{let s=this.variablesNativeRules[e];if(!s){let t,a,r;if(e)switch(this.config.modes?.[e]){case"media":a=`@media(prefers-color-scheme:${e})`,r=":root";break;case"host":r=`:host(.${e})`,this.config.defaultMode===e&&(r+=",:host");break;case"class":r="."+e,this.config.defaultMode===e&&(r+=",:root");break;default:return}else r=":root";if(i){let e=Object.keys(this.variablesNativeRules).length?this.syntaxes[0].natives.length:0;i.insertRule((a?a+"{":"")+r+"{}"+(a?a+"}":""),e),t=a?i.cssRules[e].cssRules[0]:i.cssRules[e]}else{let e=new Map,i=Object.defineProperties({},{getPropertyValue:{value:t=>e.get(t)},removeProperty:{value:t=>{e.delete(t);for(let e=0;e<i.length;e++)i[e]===t&&delete i[e]}},setProperty:{value:(t,a)=>{i[i.length]=t,e.set(t,a)}},length:{get:()=>Object.keys(i).length}});t={selectorText:r,style:i,styleMap:e},a&&(t.parentRule={conditionText:a})}s=this.pushVariableNativeRule(e,t)}let l="--"+a;t&&s.cssRule.style.getPropertyValue(l)||s.cssRule.style.setProperty(l,String(r.value))};if(e.value&&r("",e),e.modes)for(let t in e.modes)r(t,e.modes[t]);e.usage=1}}}}pushVariableNativeRule(e,t){Object.keys(this.variablesNativeRules).length||(this.variablesNativeRules={},this.syntaxes.splice(0,0,{natives:[],get text(){return this.natives.map(e=>e.text).join("")}}));let i="",a="}";t.parentRule&&(i+="@media"+t.parentRule.conditionText.replace(/ /g,"")+"{",a+="}"),i+=t.selectorText+"{";let r={cssRule:t,get text(){let e=[];for(let i=0;i<t.style.length;i++){let a=t.style[i];e.push(a+":"+t.style.getPropertyValue(a))}return i+e.join(";")+a}};return this.syntaxes[0].natives.push(this.variablesNativeRules[e]=r),r}}let o=[];return globalThis.MasterCSS=l,globalThis.masterCSSs=o,eb.default=l,eb.masterCSSs=o,eb}function ek(){return K?I:(K=1,I=function(e,t){return e.mode===t.mode})}function ex(){return B?G:(B=1,G=function(e,t){let i=Object.keys(e.at),a=Object.keys(t.at);if(i.length!==a.length)return!1;for(let a of i){let i=e.at[a],r=t.at[a];for(let a of i){let i=e.resolveAtComponent(a);if(!r.find(e=>t.resolveAtComponent(e)===i))return!1}}return!0})}function eN(){return M?P:(M=1,P=function(e,t){let i=Object.keys(e.vendorSuffixSelectors),a=Object.keys(t.vendorSuffixSelectors);if(i.length!==a.length||!i.every(i=>{if(!Object.prototype.hasOwnProperty.call(t.vendorSuffixSelectors,i))return!1;let a=e.vendorSuffixSelectors[i],r=t.vendorSuffixSelectors[i];return a.length===r.length&&a.every(e=>r.includes(e))}))return!1;let r=Object.keys(e.vendorPrefixSelectors),s=Object.keys(t.vendorPrefixSelectors);return!!(r.length===s.length&&r.every(i=>{if(!Object.prototype.hasOwnProperty.call(t.vendorPrefixSelectors,i))return!1;let a=e.vendorPrefixSelectors[i],r=t.vendorPrefixSelectors[i];return a.length===r.length&&a.every(e=>r.includes(e))}))})}var eS=function(){if(Q)return H;Q=1,Object.defineProperty(H,"__esModule",{value:!0});var e=ef(),t=ey(),i=eu(),a=ev(),r=eo(),s=ep(),l=function(){if(C)return T;C=1;var e=eo(),t=ev();return T=function(i,a=new t.default){a.add(...i);let r=a.syntaxes.filter(e=>e.layer).sort((t,i)=>{if(t.layer===e.Utility&&i.layer!==e.Utility)return -1;if(t.layer!==e.Utility&&i.layer===e.Utility)return 1;if(t.id!==i.id)return t.className.localeCompare(i.className);{let e=t.vendorSuffixSelectors?.[""]?.[0],a=i.vendorSuffixSelectors?.[""]?.[0];if(-1===t.priority&&-1===i.priority){if(e&&a)return e.localeCompare(a);let r=t.atToken,s=i.atToken;if(r&&s&&!t.at.media?.find(({name:e})=>"min-width"===e||"max-width"===e)&&!i.at.media?.find(({name:e})=>"min-width"===e||"max-width"===e))return r.localeCompare(s);if(e&&!a)return 1;if(!e&&a)return -1;if(r&&!s)return 1;if(!r&&s)return -1}return t.id===i.id&&t.stateToken===i.stateToken?t.className.localeCompare(i.className):t.order-i.order}}).map(e=>e.className);return a.delete(...i),r}}(),o=ek(),n=ex(),u=eN(),c=function(){if(z)return X;z=1;var e=eN(),t=ek(),i=ex();return X=function(a,r){return e(a,r)&&t(a,r)&&i(a,r)}}(),d=D?W:(D=1,W=function(e,t){let i=Object.keys(e.declarations||{}),a=Object.keys(t.declarations||{});if(i.length!==a.length)return!1;for(let e of i)if(!Object.prototype.hasOwnProperty.call(t.declarations,e))return!1;return!0}),h=function(){if(q)return Y;q=1;var e=ev();return Y=function(t,i=new e.default){let a="";return i.add(...t),a=i.text,i.delete(...t),a}}(),f=function(){if(Z)return F;Z=1;var e=ec();return F=function(t){return Object.hasOwnProperty.call(e,t)}}(),m=ee(),y=et(),b=ei(),g=eh(),p=ea(),v=es(),k=ed(),x=ec();return H.config=e.config,H.Rule=t.Rule,H.ANIMATION_SIGN=i.ANIMATION_SIGN,H.AT_SIGN=i.AT_SIGN,H.BASE_UNIT_REGEX=i.BASE_UNIT_REGEX,H.BORDER_STYLE_VALUES=i.BORDER_STYLE_VALUES,H.CLASS_ATTRIBUTES=i.CLASS_ATTRIBUTES,H.CLASS_DECLARATIONS=i.CLASS_DECLARATIONS,H.CLASS_FUNCTIONS=i.CLASS_FUNCTIONS,H.COLOR_VALUE_REGEX=i.COLOR_VALUE_REGEX,H.DELIMITER_SIGN=i.DELIMITER_SIGN,H.IMAGE_VALUE_REGEX=i.IMAGE_VALUE_REGEX,H.NUMBER_VALUE_REGEX=i.NUMBER_VALUE_REGEX,H.OFFICIAL_URL=i.OFFICIAL_URL,H.QUERY_COMPARISON_OPERATORS=i.QUERY_COMPARISON_OPERATORS,H.QUERY_LOGICAL_OPERATORS=i.QUERY_LOGICAL_OPERATORS,H.SELECTOR_SIGNS=i.SELECTOR_SIGNS,H.SEPARATOR_SIGN=i.SEPARATOR_SIGN,H.SEPARATOR_SIGNS=i.SEPARATOR_SIGNS,H.TRANSITION_SIGN=i.TRANSITION_SIGN,H.UNIT_REGEX=i.UNIT_REGEX,H.VALUE_DELIMITERS=i.VALUE_DELIMITERS,H.VALUE_UNITS=i.VALUE_UNITS,H.MasterCSS=a.default,H.default=a.default,H.masterCSSs=a.masterCSSs,H.Layer=r,H.extendConfig=s,H.reorderForReadableClasses=l,H.areRuleModesEqual=o,H.areRuleAtEqual=n,H.areRuleSelectorsEqual=u,H.areRuleStatesEqual=c,H.areRulesDuplicated=d,H.generateCSS=h,H.isCoreRule=f,H.at=m,H.selectors=y,H.utilities=b,H.functions=g,H.animations=p,H.variables=v,H.modes=k,H.syntaxes=x,H}();class eE extends eS.MasterCSS{root;customConfig;host;observing;progressive;container;observer;constructor(e=document,t=eS.config){super(t),this.root=e,this.customConfig=t,this.observing=!1,this.progressive=!1,e||(this.root=document);let i=this.root?.constructor.name;"HTMLDocument"===i||"Document"===i?(this.root.defaultView.globalThis.runtimeCSS=this,this.container=this.root.head,this.host=this.root.documentElement):(this.container=this.root,this.host=this.root.host),ew.push(this)}observe(e={subtree:!0,childList:!0}){if(this.observing||!this.root)return this;if(ew.find(e=>e!==this&&e.root===this.root))return console.warn("Cannot observe the same root element repeatedly."),this;if(this.root?.styleSheets)for(let e of this.root.styleSheets){let{ownerNode:t}=e;if(t&&"master"===t.id){this.style=t,this.progressive=!0;break}}if(this.style?.sheet){let e=0;for(;e<this.style.sheet.cssRules.length;e++){let t=this.style.sheet.cssRules[e];switch(t.constructor.name){case"CSSKeyframesRule":continue;case"CSSMediaRule":let i=/\(prefers-color-scheme: ?(.*?)\)/.exec(t.conditionText);if(i){let e=t.cssRules[0];if(e?.constructor.name==="CSSStyleRule"&&":root"===e.selectorText){this.pushVariableNativeRule(i[1],e);continue}}break;case"CSSStyleRule":let a=t.selectorText;if(t.style.length){let e=!0;for(let i=0;i<t.style.length;i++)if(!t.style[i]?.startsWith("--")){e=!1;break}if(e){if(":root"===a){this.pushVariableNativeRule("",t);continue}{let e=/:host(.*?)/.exec(a);if(e){this.pushVariableNativeRule(e[1],t);continue}if(!a.startsWith(".\\$")){let[e]=a.split(",");this.pushVariableNativeRule(e.slice(1),t);continue}}}}}break}for(;e<this.style.sheet.cssRules.length;e++){let t=e=>{if(e.selectorText){for(let t of e.selectorText.split(", ")[0].split(" "))if("."===t[0]){let e=t.slice(1),i="";for(let t=0;t<e.length;t++){let a=e[t],r=e[t+1];if("\\"===a){if(t++,"\\"!==r){i+=r;continue}}else if([",",".","#","[","!","*",">","+","~",":","@"].includes(a))break;i+=a}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,i)&&!Object.prototype.hasOwnProperty.call(this.styles,i)){let e=this.generate(i)[0];if(e)return e}}}else if(e.cssRules)for(let i of e.cssRules){let e=t(i);if(e)return e}},i=t(this.style.sheet.cssRules[e]);if(i){this.syntaxes.push(i),this.ruleBy[i.className]=i;for(let t=0;t<i.natives.length;t++)i.natives[t].cssRule=this.style.sheet.cssRules[e+t];e+=i.natives.length-1,this.handleRuleWithVariableNames(i,!0),this.handleRuleWithAnimationNames(i,!0),i.definition.insert?.call(i)}}}else this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style);let t=e=>{e.forEach(e=>{Object.prototype.hasOwnProperty.call(this.classesUsage,e)?this.classesUsage[e]++:(this.classesUsage[e]=1,this.add(e))})};return t(this.host.classList),e.subtree&&("HTMLDocument"===this.root.constructor.name?this.host:this.container).querySelectorAll("[class]").forEach(e=>t(e.classList)),this.observer=new MutationObserver(e=>{let t={},i=[],a=[],r=[],s=(e,t)=>{for(let i of(t?e.classList.forEach(o):e.classList.forEach(l),e.children))i.classList&&!a.includes(i)&&(a.push(i),s(i,t))},l=e=>{Object.prototype.hasOwnProperty.call(t,e)?t[e]++:t[e]=1},o=e=>{Object.prototype.hasOwnProperty.call(t,e)?t[e]--:Object.prototype.hasOwnProperty.call(this.classesUsage,e)&&(t[e]=-1)},n=(e,t)=>{for(let i of e)!i.classList||a.includes(i)||r.includes(i)||(i.isConnected!==t?(a.push(i),s(i,t)):r.push(i))};for(let t of e){let{addedNodes:e,removedNodes:r,type:s,target:l}=t;if("attributes"===s){if(i.find(e=>e.target===l))continue;i.push(t)}else n(e,!1),l.isConnected&&a.includes(l)||n(r,!0)}if(i.length||Object.keys(t).length){for(let{oldValue:e,target:t}of i){let i=a.includes(t),r=t.classList,s=e?e.split(" "):[];if(i){if(t.isConnected)continue;for(let e of s)r.contains(e)||o(e)}else if(t.isConnected)for(let e of(r.forEach(e=>{s.includes(e)||l(e)}),s))r.contains(e)||o(e)}for(let e in t){let i=t[e],a=(this.classesUsage[e]||0)+i;0===a?(delete this.classesUsage[e],this.delete(e)):(Object.prototype.hasOwnProperty.call(this.classesUsage,e)||this.add(e),this.classesUsage[e]=a)}}}),this.observer.observe(this.root,{...e,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.removeProperty("display"),this.observing=!0,this}refresh(e=this.customConfig){let t=this.style?.sheet;if(t?.cssRules)for(let e=t.cssRules.length-1;e>=0;e--)t.deleteRule(e);return super.refresh(e),this}reset(){super.reset();let e=this.style?.sheet;if(e?.cssRules)for(let t=e.cssRules.length-1;t>=0;t--)e.deleteRule(t);return this.progressive||(this.style?.remove(),this.style=null),this}disconnect(){return this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.reset(),this}destroy(){return this.disconnect(),ew.splice(ew.indexOf(this),1),this}}let ew=[];function eR(e){return new eE(document,e).observe()}globalThis.RuntimeCSS=eE,globalThis.runtimeCSSs=ew;let e$=window.masterCSSConfigs,eO=window.masterCSSConfig;if(eO){let e=[];e$&&e.push(...e$),eO.extends&&e.push(...eO.extends),eR({...eO,extends:e})}else e$?eR({extends:e$}):eR()}();
|
|
1
|
+
!function(){var e,t,i,a,r,s,n,o,l,u,c,d,h,f,p,m,y,b,g,v,k,x,N,S,E,w,R,$,L,_,O,V,A,U,T,C,I,j,G,K,M,X,B,P,z,D,Y,q,W,F,Z,Q,H,J,ee,et,ei,ea,er,es,en,eo={},el={};function eu(){return t?e:(t=1,e={all:"media all",print:"media print",screen:"media screen",speech:"media speech",landscape:"media (orientation:landscape)",portrait:"media (orientation:portrait)",motion:"media (prefers-reduced-motion:no-preference)","reduced-motion":"media (prefers-reduced-motion:reduce)"})}function ec(){return a?i:(a=1,i={"::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"],"::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"})}function ed(){return s?r:(s=1,r={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%","aspect-ratio":"1/1"},hidden:{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%"},top:{top:0},left:{left:0},right:{right:0},bottom:{bottom:0},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"}})}function eh(){return o?n:(o=1,n={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"}}})}function ef(){if(d)return c;function e(e){let t="undefined"!=typeof Buffer?Buffer:null;return!!t&&e instanceof t||e instanceof Date||e instanceof RegExp}function t(e){if(("undefined"!=typeof Buffer?Buffer:null)&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw Error("Unexpected situation")}function i(e,t){return"__proto__"===t?void 0:e[t]}return d=1,c=function a(...r){let s,n;let o={};return r.forEach(function(r){"object"!=typeof r||null===r||Array.isArray(r)||Object.keys(r).forEach(function(l){if(n=i(o,l),(s=i(r,l))!==o){if("object"!=typeof s||null===s){o[l]=s;return}if(Array.isArray(s)){o[l]=function i(r){let s=[];return r.forEach(function(r,n){"object"==typeof r&&null!==r?Array.isArray(r)?s[n]=i(r):e(r)?s[n]=t(r):s[n]=a({},r):s[n]=r}),s}(s);return}if(e(s)){o[l]=t(s);return}if("object"!=typeof n||null===n||Array.isArray(n)){o[l]=a({},s);return}else{o[l]=a(n,s);return}}})}),o}}function ep(){if(f)return h;f=1;var e=u?l:(u=1,l={gray:{5:"#f6f5f7",10:"#efeef0",20:"#cdccce",30:"#a2a1a3",40:"#89888a",50:"#737274",60:"#585759",70:"#444345",80:"#323133",90:"#29282a",95:"#222123"},slate:{5:"#f8f9fb",10:"#eff2f9",20:"#c8d0e3",30:"#9fabc6",40:"#7c8cab",50:"#5f7395",60:"#455572",70:"#37455d",80:"#283348",90:"#1d273a",95:"#182030"},brown:{5:"#fff6f0",10:"#feefe3",20:"#f3bea4",30:"#e7976e",40:"#da7c4d",50:"#cc6633",60:"#b65325",70:"#9d4119",80:"#833111",90:"#692007",95:"#431304"},orange:{5:"#fff5ea",10:"#fff5df",20:"#ffcb9e",30:"#ff9b47",40:"#ff8528",50:"#ff6c0a",60:"#e05200",70:"#bc3e00",80:"#992d00",90:"#701d00",95:"#471100"},amber:{5:"#fff9eb",10:"#fff4db",20:"#ffe099",30:"#ffc133",40:"#ffb10a",50:"#f99e00",60:"#e57e00",70:"#c15d00",80:"#a34900",90:"#753200",95:"#4c1f00"},yellow:{5:"#fffae5",10:"#fffed1",20:"#ffe993",30:"#ffd233",40:"#ffc300",50:"#efaf00",60:"#d69200",70:"#b77400",80:"#9e5c00",90:"#753c00",95:"#4c2600"},lime:{5:"#f5ffe5",10:"#f5ffd6",20:"#d1fb8d",30:"#acec46",40:"#91d91a",50:"#77c012",60:"#61a60c",70:"#4c8d07",80:"#367604",90:"#256000",95:"#1b3d00"},green:{5:"#e7fdea",10:"#dbfee4",20:"#a5f7b8",30:"#35ed66",40:"#00d655",50:"#00c147",60:"#00ad3f",70:"#008e34",80:"#007a2c",90:"#006023",95:"#003d16"},beryl:{5:"#e0fef2",10:"#d2fff7",20:"#6cffd4",30:"#0fefa4",40:"#04e09e",50:"#04cb8f",60:"#00b277",70:"#009360",80:"#007f50",90:"#00663e",95:"#003d24"},teal:{5:"#dbfefd",10:"#cfffff",20:"#7ffff6",30:"#00f4e4",40:"#00e4d4",50:"#00ccc8",60:"#00aeb7",70:"#0092a3",80:"#00798e",90:"#005d75",95:"#003747"},cyan:{5:"#e0ffff",10:"#d1ffff",20:"#7ff6ff",30:"#1ee1ff",40:"#00ccf9",50:"#00b3ea",60:"#0099d6",70:"#007dbc",80:"#0067a8",90:"#005089",95:"#003156"},sky:{5:"#e5f5ff",10:"#d9f8ff",20:"#a3deff",30:"#6bc6ff",40:"#34b2fd",50:"#059fff",60:"#008df9",70:"#0073e0",80:"#005cc6",90:"#0041a3",95:"#002566"},blue:{5:"#e5f3fe",10:"#dbf2fe",20:"#add7ff",30:"#70b0ff",40:"#4c93fd",50:"#3a7cff",60:"#2563fd",70:"#1b53ec",80:"#1947d1",90:"#1735a2",95:"#102069"},indigo:{5:"#f0f1fe",10:"#e9ecfe",20:"#c8cdfe",30:"#939eff",40:"#7e81fe",50:"#7068ff",60:"#5b4cfd",70:"#4e39ed",80:"#4732d2",90:"#3623a3",95:"#26176c"},violet:{5:"#f2efff",10:"#efe8ff",20:"#d7c5ff",30:"#b198fe",40:"#9a70ff",50:"#8e56fe",60:"#812fff",70:"#7407f2",80:"#6405d1",90:"#4f05a3",95:"#35036e"},purple:{5:"#f6f0ff",10:"#f6e8fe",20:"#e2bffe",30:"#c492fd",40:"#b266ff",50:"#a849fe",60:"#9514ff",70:"#8200e5",80:"#7100c1",90:"#58008e",95:"#3e0060"},fuchsia:{5:"#faf0ff",10:"#fde8fe",20:"#f0baff",30:"#dd89fe",40:"#d760fe",50:"#cf33ff",60:"#b700e5",70:"#a200c6",80:"#8700a3",90:"#660175",95:"#480051"},pink:{5:"#fef1f9",10:"#fee9f8",20:"#ffb8df",30:"#f986c1",40:"#fa65b2",50:"#f747a2",60:"#ef2188",70:"#d61673",80:"#b80c5c",90:"#8f0543",95:"#64032f"},crimson:{5:"#ffeff2",10:"#ffe8ec",20:"#ffbac7",30:"#ff849d",40:"#ff6684",50:"#fc4065",60:"#ed2a51",70:"#d7173e",80:"#bb1536",90:"#8f132c",95:"#620e1f"},red:{5:"#ffefef",10:"#fee8e8",20:"#ffbcbc",30:"#ff8787",40:"#fd5f5f",50:"#f73f3f",60:"#e52e2e",70:"#d01b1b",80:"#b81919",90:"#921515",95:"#650f0f"}});return h=ef()(e,{full:"100%",fit:"fit-content",max:"max-content",min:"min-content",screen:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},"font-family":{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"]},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},current:"currentColor",frame:{neutral:{"@light":"$(slate-60)","@dark":"$(gray-30)"},light:{"@light":"$(slate-60)/.2","@dark":"$(gray-30)/.2"},lighter:{"@light":"$(slate-60)/.16","@dark":"$(gray-30)/.16"},lightest:{"@light":"$(slate-60)/.12","@dark":"$(gray-30)/.12"}},white:"#ffffff",black:"#000000",base:{"@light":"$(white)","@dark":"$(gray-95)"},canvas:{"@light":"$(slate-5)","@dark":"$(gray-90)"},surface:{"@light":"$(white)","@dark":"$(gray-80)"},invert:{"@light":"$(black)","@dark":"$(white)"},gray:{"@light":"$(gray-30)","@dark":"$(gray-40)",active:{"@light":"$(gray-40)","@dark":"$(gray-30)"},text:{"@light":"$(gray-90)","@dark":"$(gray-95)"}},slate:{"@light":"$(slate-30)","@dark":"$(slate-40)",active:{"@light":"$(slate-40)","@dark":"$(slate-30)"},text:{"@light":"$(slate-90)","@dark":"$(slate-95)"}},brown:{"@light":"$(brown-40)","@dark":"$(brown-50)",active:{"@light":"$(brown-50)","@dark":"$(brown-40)"},text:{"@light":"$(brown-90)","@dark":"$(brown-95)"}},orange:{"@light":"$(orange-40)","@dark":"$(orange-50)",active:{"@light":"$(orange-50)","@dark":"$(orange-40)"},text:{"@light":"$(orange-90)","@dark":"$(orange-95)"}},amber:{"@light":"$(amber-40)","@dark":"$(amber-50)",active:{"@light":"$(amber-50)","@dark":"$(amber-30)"},text:{"@light":"$(amber-90)","@dark":"$(amber-95)"}},yellow:{"@light":"$(yellow-40)","@dark":"$(yellow-50)",active:{"@light":"$(yellow-50)","@dark":"$(yellow-30)"},text:{"@light":"$(yellow-90)","@dark":"$(yellow-95)"}},lime:{"@light":"$(lime-40)","@dark":"$(lime-50)",active:{"@light":"$(lime-50)","@dark":"$(lime-30)"},text:{"@light":"$(lime-90)","@dark":"$(lime-95)"}},green:{"@light":"$(green-40)","@dark":"$(green-50)",active:{"@light":"$(green-50)","@dark":"$(green-30)"},text:{"@light":"$(green-90)","@dark":"$(green-95)"}},beryl:{"@light":"$(beryl-40)","@dark":"$(beryl-50)",active:{"@light":"$(beryl-50)","@dark":"$(beryl-30)"},text:{"@light":"$(beryl-90)","@dark":"$(beryl-95)"}},teal:{"@light":"$(teal-40)","@dark":"$(teal-50)",active:{"@light":"$(teal-50)","@dark":"$(teal-30)"},text:{"@light":"$(teal-90)","@dark":"$(teal-95)"}},cyan:{"@light":"$(cyan-40)","@dark":"$(cyan-50)",active:{"@light":"$(cyan-50)","@dark":"$(cyan-30)"},text:{"@light":"$(cyan-90)","@dark":"$(cyan-95)"}},sky:{"@light":"$(sky-60)","@dark":"$(sky-50)",active:{"@light":"$(sky-70)","@dark":"$(sky-40)"},text:"$(white)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-50)",active:{"@light":"$(blue-70)","@dark":"$(blue-40)"},text:"$(white)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-50)",active:{"@light":"$(indigo-70)","@dark":"$(indigo-40)"},text:"$(white)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-50)",active:{"@light":"$(violet-70)","@dark":"$(violet-40)"},text:"$(white)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-50)",active:{"@light":"$(purple-70)","@dark":"$(purple-40)"},text:"$(white)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-50)",active:{"@light":"$(fuchsia-70)","@dark":"$(fuchsia-40)"},text:"$(white)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-50)",active:{"@light":"$(pink-70)","@dark":"$(pink-40)"},text:"$(white)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-50)",active:{"@light":"$(crimson-70)","@dark":"$(crimson-40)"},text:"$(white)"},red:{"@light":"$(red-60)","@dark":"$(red-50)",active:{"@light":"$(red-70)","@dark":"$(red-40)"},text:"$(white)"},text:{invert:{"@light":"$(white)","@dark":"$(black)"},strong:{"@light":"$(slate-95)","@dark":"$(gray-10)"},neutral:{"@light":"$(slate-70)","@dark":"$(gray-30)"},lightest:{"@light":"$(slate-30)","@dark":"$(gray-60)"},lighter:{"@light":"$(slate-40)","@dark":"$(gray-50)"},light:{"@light":"$(slate-50)","@dark":"$(gray-40)"},gray:{"@light":"$(gray-60)","@dark":"$(gray-30)"},slate:{"@light":"$(slate-60)","@dark":"$(slate-30)"},brown:{"@light":"$(brown-60)","@dark":"$(brown-30)"},orange:{"@light":"$(orange-60)","@dark":"$(orange-30)"},amber:{"@light":"$(amber-60)","@dark":"$(amber-40)"},yellow:{"@light":"$(yellow-60)","@dark":"$(yellow-40)"},lime:{"@light":"$(lime-70)","@dark":"$(lime-40)"},green:{"@light":"$(green-70)","@dark":"$(green-40)"},beryl:{"@light":"$(beryl-70)","@dark":"$(beryl-40)"},teal:{"@light":"$(teal-70)","@dark":"$(teal-40)"},cyan:{"@light":"$(cyan-70)","@dark":"$(cyan-40)"},sky:{"@light":"$(sky-70)","@dark":"$(sky-30)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-30)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-30)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-30)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-30)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-30)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-30)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-30)"},red:{"@light":"$(red-60)","@dark":"$(red-30)"}}})}function em(){return m?p:(m=1,p=function(e){let t;if("undefined"!=typeof CSS)return CSS.escape(e);if(0==arguments.length)throw TypeError("`CSS.escape` requires an argument.");let i=String(e),a=i.length,r=-1,s="",n=i.charCodeAt(0);if(1==a&&45==n)return"\\"+i;for(;++r<a;){if(0==(t=i.charCodeAt(r))){s+="�";continue}if(t>=1&&t<=31||127==t||0==r&&t>=48&&t<=57||1==r&&t>=48&&t<=57&&45==n){s+="\\"+t.toString(16)+" ";continue}if(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){s+=i.charAt(r);continue}s+="\\"+i.charAt(r)}return s})}function ey(){if(b)return y;b=1;var e,t=((e=t||{})[e.Utility=-4]="Utility",e[e.NativeShorthand=-3]="NativeShorthand",e[e.Shorthand=-2]="Shorthand",e[e.Native=-1]="Native",e[e.Normal=0]="Normal",e);return y=t}var eb={};function eg(){if(g)return eb;g=1;let e=new URL("https://rc.css.master.co");return eb.ANIMATION_SIGN="@",eb.AT_SIGN="@",eb.BASE_UNIT_REGEX=/^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m,eb.BORDER_STYLE_VALUES=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],eb.CLASS_ATTRIBUTES=["class","className"],eb.CLASS_DECLARATIONS=["components"],eb.CLASS_FUNCTIONS=["clsx","cva","ctl","cv","class","classnames","classVariant","styled(?:\\s+)?(?:\\.\\w+)?","classList(?:\\s+)?\\.(?:add|remove|toggle|replace)"],eb.COLOR_VALUE_REGEX=/(?:#|(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla|light-dark)\(.*\)|(?:\$colors)(?![a-zA-Z0-9-]))/,eb.DELIMITER_SIGN="|",eb.IMAGE_VALUE_REGEX=/(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)/,eb.NUMBER_VALUE_REGEX=/(?:[\d.]|(?:max|min|calc|clamp)\([^|]*\))/,eb.OFFICIAL_URL=e,eb.QUERY_COMPARISON_OPERATORS=[">","<","="],eb.QUERY_LOGICAL_OPERATORS=["&"],eb.SELECTOR_SIGNS=[":","_",">","+","~"],eb.SEPARATOR_SIGN=",",eb.SEPARATOR_SIGNS=[",","|"],eb.TRANSITION_SIGN="~",eb.UNIT_REGEX=/^([+-.]?\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)?$/,eb.VALUE_DELIMITERS={"(":")","'":"'",'"':'"',"{":"}"},eb.VALUE_UNITS=["%","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"],eb}function ev(){if(N)return x;N=1;var e=em(),t=ey(),i=eg(),a=function(){if(k)return v;k=1;var e=eg();return v=function(t){if(t.length<2)return t;let i=!1,a=!1;for(let r of t)("string"===r.type&&e.BORDER_STYLE_VALUES.includes(r.value)||"variable"===r.type&&e.BORDER_STYLE_VALUES.includes(String(r.variable?.value)))&&(i=!0),"function"===r.type&&"var"===r.name&&(a=!0);return i||a||t.push({type:"separator",value:" ",token:"|"},{type:"string",value:"solid",token:"solid"}),t}}();return x={group:{matcher:/^(?:.+?[*_>~+])?\{.+?\}/,type:t.Shorthand,analyze(e){let t=0;for(;t<e.length&&("{"!==e[t]||"\\"===e[t-1]);t++);return[e.slice(t),e.slice(0,t)]},declare(t){let a={},r=e=>{let t=e.indexOf(":");-1!==t&&(a[e.slice(0,t)]=e.slice(t+1))},s=t=>{let i=i=>{let a=i.slice(e(t.name).length).match(/\{(.*)\}/)?.[1].split(";");if(a)for(let e of a)r(e)};for(let e of t.nodes)i(e.text);if(t.animationNames)for(let e of(this.animationNames||(this.animationNames=[]),t.animationNames))this.animationNames.includes(e)||this.animationNames.push(e);if(t.variableNames)for(let e of(this.variableNames||(this.variableNames=[]),t.variableNames))this.variableNames.includes(e)||this.variableNames.push(e)},n=[],o="",l=()=>{o&&(n.push(o.replace(/ /g,"|")),o="")},u=1;for(let e of(!function e(a){for(;u<t.length;u++){let r=t[u];if(!a){if(";"===r){l();continue}if("}"===r)break}if(o+=r,a===r){if("'"===a||'"'===a){let e=0;for(let t=o.length-2;"\\"===o[t];t--)e++;if(e%2)continue}break}r in i.VALUE_DELIMITERS&&"'"!==a&&'"'!==a&&(u++,e(i.VALUE_DELIMITERS[r]))}}(""),l(),n)){let t=this.css.generate(e,this.mode);if(t.length)for(let e of t)s(e);else r(e)}return a}},variable:{matcher:/^\$[\w-]+:/,type:t.Shorthand,declare(e){return{["--"+this.keyToken.slice(1,-1)]:e}}},"font-size":{ambiguousKeys:["font","f"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"font-weight":{ambiguousKeys:["font","f"],ambiguousValues:["bolder"],type:t.Native},"font-family":{ambiguousKeys:["font","f"],type:t.Native},"font-smoothing":{ambiguousKeys:["font","f"],ambiguousValues:["antialiased","subpixel-antialiased"],type:t.Native,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"}}}},"font-style":{ambiguousKeys:["font","f"],ambiguousValues:["normal","italic","oblique"],type:t.Native,unit:"deg"},"font-variant-numeric":{ambiguousKeys:["font","f"],ambiguousValues:["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"],type:t.Native},"font-variant":{ambiguousKeys:["font","f"],type:t.NativeShorthand},font:{subkey:"f",type:t.NativeShorthand,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},"font-feature-settings":{key:"font-feature",type:t.Native},color:{key:"fg",type:t.Native,variables:["text"]},"margin-left":{key:"ml",type:t.Native,unit:"rem",variables:["spacing"]},"margin-right":{key:"mr",type:t.Native,unit:"rem",variables:["spacing"]},"margin-top":{key:"mt",type:t.Native,unit:"rem",variables:["spacing"]},"margin-bottom":{key:"mb",type:t.Native,unit:"rem",variables:["spacing"]},"margin-x":{key:"mx",subkey:"margin-x",unit:"rem",type:t.Shorthand,declare:e=>({"margin-left":e,"margin-right":e}),variables:["spacing"]},"margin-y":{key:"my",unit:"rem",type:t.Shorthand,declare:e=>({"margin-top":e,"margin-bottom":e}),variables:["spacing"]},margin:{key:"m",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"margin-inline-start":{key:"mis",type:t.Native,unit:"rem",variables:["spacing"]},"margin-inline-end":{key:"mie",type:t.Native,unit:"rem",variables:["spacing"]},"margin-inline":{key:"mi",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"padding-left":{key:"pl",type:t.Native,unit:"rem",variables:["spacing"]},"padding-right":{key:"pr",type:t.Native,unit:"rem",variables:["spacing"]},"padding-top":{key:"pt",type:t.Native,unit:"rem",variables:["spacing"]},"padding-bottom":{key:"pb",type:t.Native,unit:"rem",variables:["spacing"]},"padding-x":{key:"px",unit:"rem",type:t.Shorthand,declare:e=>({"padding-left":e,"padding-right":e}),variables:["spacing"]},"padding-y":{key:"py",unit:"rem",type:t.Shorthand,declare:e=>({"padding-top":e,"padding-bottom":e}),variables:["spacing"]},padding:{key:"p",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"padding-inline-start":{key:"pis",type:t.Native,unit:"rem",variables:["spacing"]},"padding-inline-end":{key:"pie",type:t.Native,unit:"rem",variables:["spacing"]},"padding-inline":{key:"pi",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"flex-basis":{ambiguousKeys:["flex"],unit:"rem",type:t.Native},"flex-wrap":{ambiguousKeys:["flex"],ambiguousValues:["wrap","nowrap","wrap-reverse"],type:t.Native},"flex-grow":{ambiguousKeys:["flex"],type:t.Native},"flex-shrink":{ambiguousKeys:["flex"],type:t.Native},"flex-direction":{ambiguousKeys:["flex"],ambiguousValues:["row","row-reverse","column","column-reverse"],type:t.Native},flex:{type:t.NativeShorthand},display:{key:"d",type:t.Native},width:{key:"w",unit:"rem",type:t.Native},height:{key:"h",unit:"rem",type:t.Native},"min-width":{key:"min-w",unit:"rem",type:t.Native},"min-height":{key:"min-h",unit:"rem",type:t.Native},size:{type:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{width:t[0].text,height:1===i?t[0].text:t[2].text}}},"min-size":{key:"min",type:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"min-width":t[0].text,"min-height":1===i?t[0].text:t[2].text}}},"max-size":{key:"max",type:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"max-width":t[0].text,"max-height":1===i?t[0].text:t[2].text}}},"box-sizing":{ambiguousKeys:["box"],type:t.Native},"box-decoration-break":{key:"box-decoration",type:t.Native,declare:e=>({"-webkit-box-decoration-break":e,"box-decoration-break":e})},contain:{type:t.Native},content:{type:t.Native},"counter-increment":{type:t.Native},"counter-reset":{type:t.Native},"letter-spacing":{key:"tracking",subkey:"ls",type:t.Native,unit:"em"},"line-height":{key:"leading",subkey:"line-h",type:t.Native},"object-fit":{ambiguousKeys:["object","obj"],ambiguousValues:["contain","cover","fill","scale-down"],type:t.Native},"object-position":{ambiguousKeys:["object","obj"],ambiguousValues:["top","bottom","right","left","center"],type:t.Native},"text-align":{ambiguousKeys:["text","t"],ambiguousValues:["justify","center","left","right","start","end"],type:t.Native},"text-decoration-color":{ambiguousKeys:["text-decoration"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["text"]},"text-decoration-style":{ambiguousKeys:["text-decoration"],ambiguousValues:["solid","double","dotted","dashed","wavy"],type:t.Native},"text-decoration-thickness":{ambiguousKeys:["text-decoration"],ambiguousValues:["from-font",i.NUMBER_VALUE_REGEX],type:t.Native,unit:"em"},"text-decoration-line":{ambiguousKeys:["text-decoration"],ambiguousValues:["underline","overline","line-through"],type:t.Native},"text-decoration":{ambiguousKeys:["text","t"],ambiguousValues:["underline","overline","line-through"],unit:"rem",type:t.NativeShorthand,variables:["text"],declare:e=>({"-webkit-text-decoration":e,"text-decoration":e})},"text-underline-offset":{ambiguousKeys:["text-underline"],unit:"rem",type:t.Native,variables:["spacing"]},"text-underline-position":{ambiguousKeys:["text-underline"],ambiguousValues:["front-font","under","left","right"],type:t.Native},"text-overflow":{ambiguousKeys:["text","t"],ambiguousValues:["ellipsis","clip"],type:t.Native},"text-orientation":{ambiguousKeys:["text","t"],ambiguousValues:["mixed","upright","sideways-right","sideways","use-glyph-orientation"],type:t.Native},"text-transform":{ambiguousKeys:["text","t"],ambiguousValues:["uppercase","lowercase","capitalize"],type:t.Native},"text-rendering":{ambiguousKeys:["text","t"],ambiguousValues:["optimizeSpeed","optimizeLegibility","geometricPrecision"],type:t.Native},"text-wrap":{ambiguousKeys:["text","t"],ambiguousValues:["wrap","nowrap","balance","pretty"],type:t.NativeShorthand},"text-indent":{unit:"rem",type:t.Native},"vertical-align":{key:"v",subkey:"vertical",type:t.Native},columns:{key:"cols",type:t.NativeShorthand},"white-space":{type:t.Native},top:{type:t.Native,unit:"rem",variables:["spacing"]},bottom:{type:t.Native,unit:"rem",variables:["spacing"]},left:{type:t.Native,unit:"rem",variables:["spacing"]},right:{type:t.Native,unit:"rem",variables:["spacing"]},inset:{unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"max-height":{key:"max-h",unit:"rem",type:t.Native},"max-width":{key:"max-w",unit:"rem",type:t.Native},opacity:{type:t.Native},visibility:{type:t.Native},clear:{type:t.Native},float:{type:t.Native},isolation:{type:t.Native},"overflow-x":{type:t.Native,declare:e=>"overlay"===e?{"overflow-x":["auto",e]}:{"overflow-x":e}},"overflow-y":{type:t.Native,declare:e=>"overlay"===e?{"overflow-y":["auto",e]}:{"overflow-y":e}},overflow:{type:t.NativeShorthand,declare:e=>"overlay"===e?{overflow:["auto",e]}:{overflow:e}},"overscroll-behavior-x":{type:t.Native},"overscroll-behavior-y":{type:t.Native},"overscroll-behavior":{type:t.NativeShorthand},"z-index":{key:"z",type:t.Native},position:{type:t.Native},cursor:{type:t.Native},"pointer-events":{type:t.Native},resize:{type:t.Native},"touch-action":{type:t.Native},"word-break":{type:t.Native},"word-spacing":{type:t.Native,unit:"em"},"user-drag":{type:t.Native,declare:e=>({"-webkit-user-drag":e,"user-drag":e})},"user-select":{type:t.Native,declare:e=>({"-webkit-user-select":e,"user-select":e})},"text-shadow":{unit:"rem",type:t.Native},"text-size":{ambiguousKeys:["text","t"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",declare:e=>({"font-size":e,"line-height":`calc(${e} + 0.875em)`}),type:t.Shorthand},"text-fill-color":{ambiguousKeys:["text","t"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["text"],declare:e=>({"-webkit-text-fill-color":e})},"text-stroke-width":{ambiguousKeys:["text-stroke"],ambiguousValues:["thin","medium","thick",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native,declare:e=>({"-webkit-text-stroke-width":e})},"text-stroke-color":{ambiguousKeys:["text-stroke"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,declare:e=>({"-webkit-text-stroke-color":e})},"text-stroke":{unit:"rem",type:t.Native,declare:e=>({"-webkit-text-stroke":e})},"text-truncate":{subkey:"lines",declare:e=>({display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e,overflow:"hidden","overflow-wrap":"break-word","text-overflow":"ellipsis"}),type:t.Shorthand},"box-shadow":{key:"shadow",subkey:"s",unit:"rem",type:t.Native},"table-layout":{type:t.Native},"transform-box":{ambiguousKeys:["transform"],type:t.Native},"transform-style":{ambiguousKeys:["transform"],ambiguousValues:["flat","preserve-3d"],type:t.Native},"transform-origin":{ambiguousKeys:["transform"],ambiguousValues:["top","bottom","right","left","center",i.NUMBER_VALUE_REGEX],unit:"px",type:t.Native},transform:{matcher:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,type:t.Native,analyze:e=>[e.startsWith("transform")?e.slice(10):e],unit:"px",variables:["spacing"]},"transition-property":{key:"~property",type:t.Native},"transition-timing-function":{key:"~easing",type:t.Native},"transition-duration":{key:"~duration",type:t.Native,unit:"ms"},"transition-delay":{key:"~delay",type:t.Native,unit:"ms"},transition:{sign:"~",analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}},type:t.NativeShorthand},"animation-delay":{key:"@delay",type:t.Native,unit:"ms"},"animation-direction":{key:"@direction",type:t.Native},"animation-duration":{key:"@duration",type:t.Native,unit:"ms"},"animation-fill-mode":{key:"@fill",type:t.Native},"animation-iteration-count":{key:"@iteration",type:t.Native},"animation-name":{key:"@name",type:t.Native,includeAnimations:!0},"animation-play-state":{key:"@play",type:t.Native},"animation-timing-function":{key:"@easing",type:t.Native},animation:{sign:"@",type:t.NativeShorthand,includeAnimations:!0,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}}},"border-collapse":{ambiguousKeys:["b","border"],ambiguousValues:["collapse","separate"],type:t.Native},"border-spacing":{unit:"rem",type:t.Native,variables:["spacing"]},"border-top-color":{ambiguousKeys:["bt","border-top"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-bottom-color":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-left-color":{ambiguousKeys:["bl","border-left"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-right-color":{ambiguousKeys:["br","border-right"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-x-color":{ambiguousKeys:["bx","border-x"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Shorthand,variables:["frame"],declare:e=>({"border-left-color":e,"border-right-color":e})},"border-y-color":{ambiguousKeys:["by","border-y"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Shorthand,variables:["frame"],declare:e=>({"border-top-color":e,"border-bottom-color":e})},"border-color":{ambiguousKeys:["b","border"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.NativeShorthand,variables:["frame"]},"border-top-left-radius":{key:"rtl",unit:"rem",type:t.Native},"border-top-right-radius":{key:"rtr",unit:"rem",type:t.Native},"border-bottom-left-radius":{key:"rbl",unit:"rem",type:t.Native},"border-bottom-right-radius":{key:"rbr",unit:"rem",type:t.Native},"border-top-radius":{key:"rt",unit:"rem",type:t.Shorthand,declare:e=>({"border-top-left-radius":e,"border-top-right-radius":e})},"border-bottom-radius":{key:"rb",unit:"rem",type:t.Shorthand,declare:e=>({"border-bottom-left-radius":e,"border-bottom-right-radius":e})},"border-left-radius":{key:"rl",unit:"rem",type:t.Shorthand,declare:e=>({"border-top-left-radius":e,"border-bottom-left-radius":e})},"border-right-radius":{key:"rr",unit:"rem",type:t.Shorthand,declare:e=>({"border-top-right-radius":e,"border-bottom-right-radius":e})},"border-radius":{key:"r",unit:"rem",type:t.NativeShorthand},"border-top-style":{ambiguousKeys:["bt","border-top"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-bottom-style":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-left-style":{ambiguousKeys:["bl","border-left"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-right-style":{ambiguousKeys:["br","border-right"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-x-style":{ambiguousKeys:["bx","border-x"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Shorthand,declare:e=>({"border-left-style":e,"border-right-style":e})},"border-y-style":{ambiguousKeys:["by","border-y"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Shorthand,declare:e=>({"border-top-style":e,"border-bottom-style":e})},"border-style":{ambiguousKeys:["b","border"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.NativeShorthand},"border-top-width":{ambiguousKeys:["bt","border-top"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-bottom-width":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-left-width":{ambiguousKeys:["bl","border-left"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-right-width":{ambiguousKeys:["br","border-right"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-x-width":{ambiguousKeys:["bx","border-x"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Shorthand,declare:e=>({"border-left-width":e,"border-right-width":e})},"border-y-width":{ambiguousKeys:["by","border-y"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Shorthand,declare:e=>({"border-top-width":e,"border-bottom-width":e})},"border-width":{ambiguousKeys:["b","border"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.NativeShorthand},"border-image-repeat":{ambiguousKeys:["border-image"],ambiguousValues:["stretch","repeat","round","space"],type:t.Native},"border-image-slice":{ambiguousKeys:["border-image"],type:t.Native},"border-image-source":{ambiguousKeys:["border-image"],ambiguousValues:[i.IMAGE_VALUE_REGEX],type:t.Native},"border-image-width":{ambiguousKeys:["border-image"],ambiguousValues:["auto",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-image-outset":{ambiguousKeys:["border-image"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-image":{type:t.NativeShorthand},"border-top":{key:"bt",type:t.NativeShorthand,unit:"rem",transformValueComponents:a,variables:["frame"]},"border-bottom":{key:"bb",type:t.NativeShorthand,unit:"rem",transformValueComponents:a,variables:["frame"]},"border-left":{key:"bl",type:t.NativeShorthand,unit:"rem",transformValueComponents:a,variables:["frame"]},"border-right":{key:"br",type:t.NativeShorthand,unit:"rem",transformValueComponents:a,variables:["frame"]},"border-x":{key:"bx",unit:"rem",type:t.Shorthand,transformValueComponents:a,variables:["frame"],declare:e=>({"border-left":e,"border-right":e})},"border-y":{key:"by",unit:"rem",type:t.Shorthand,transformValueComponents:a,variables:["frame"],declare:e=>({"border-top":e,"border-bottom":e})},border:{key:"b",unit:"rem",type:t.NativeShorthand,transformValueComponents:a,variables:["frame"]},"background-attachment":{ambiguousKeys:["bg"],ambiguousValues:["fixed","local","scroll"],type:t.Native},"background-blend-mode":{key:"bg-blend",type:t.Native},"background-color":{ambiguousKeys:["bg"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native},"background-clip":{key:"bg-clip",type:t.Native,declare:e=>({"-webkit-background-clip":e,"background-clip":e})},"background-origin":{key:"bg-origin",type:t.Native},"background-position":{ambiguousKeys:["bg"],ambiguousValues:["top","bottom","right","left","center"],type:t.Native,unit:"px"},"background-repeat":{ambiguousKeys:["bg"],ambiguousValues:["space","round","repeat","no-repeat","repeat-x","repeat-y"],type:t.Native},"background-size":{ambiguousKeys:["bg"],ambiguousValues:["auto","cover","contain",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"background-image":{ambiguousKeys:["bg"],ambiguousValues:[i.IMAGE_VALUE_REGEX],type:t.Native},background:{key:"bg",type:t.NativeShorthand},gradient:{matcher:/^gradient\(/,type:t.Shorthand,declare:e=>({"background-image":"linear-"+e})},"mix-blend-mode":{key:"blend",type:t.Native},"backdrop-filter":{key:"bd",type:t.Native,declare:e=>({"-webkit-backdrop-filter":e,"backdrop-filter":e})},filter:{matcher:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,type:t.Native},fill:{type:t.Native},"stroke-dasharray":{type:t.Native},"stroke-dashoffset":{type:t.Native,variables:["spacing"]},"stroke-width":{ambiguousKeys:["stroke"],ambiguousValues:[i.NUMBER_VALUE_REGEX],type:t.Native},stroke:{type:t.Native},x:{type:t.Native,variables:["spacing"]},y:{type:t.Native,variables:["spacing"]},cx:{type:t.Native,variables:["spacing"]},cy:{type:t.Native,variables:["spacing"]},rx:{type:t.Native},ry:{type:t.Native},"grid-column-start":{key:"grid-col-start",type:t.Native},"grid-column-end":{key:"grid-col-end",type:t.Native},"grid-column-span":{key:"grid-col-span",type:t.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-column":e})},"grid-column":{key:"grid-col",type:t.NativeShorthand},"grid-columns":{key:"grid-cols",declare:e=>({display:"grid","grid-template-columns":"repeat("+e+",minmax(0,1fr))"}),type:t.Shorthand},"grid-row-start":{type:t.Native},"grid-row-end":{type:t.Native},"grid-row-span":{type:t.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-row":e})},"grid-row":{type:t.NativeShorthand},"grid-rows":{declare:e=>({display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+",minmax(0,1fr))"}),type:t.Shorthand},"grid-auto-columns":{key:"grid-auto-cols",type:t.Native},"grid-auto-flow":{key:"grid-flow",type:t.Native},"grid-auto-rows":{type:t.Native},"grid-template-areas":{type:t.Native},"grid-template-columns":{key:"grid-template-cols",type:t.Native,unit:"rem"},"grid-template-rows":{type:t.Native,unit:"rem"},"grid-template":{type:t.NativeShorthand},"grid-area":{type:t.NativeShorthand},grid:{type:t.NativeShorthand},"column-gap":{key:"gap-x",unit:"rem",type:t.Native,variables:["spacing"]},"row-gap":{key:"gap-y",unit:"rem",type:t.Native,variables:["spacing"]},gap:{unit:"rem",type:t.NativeShorthand,variables:["spacing"]},order:{key:"o",type:t.Native},"break-inside":{type:t.Native},"break-before":{type:t.Native},"break-after":{type:t.Native},"aspect-ratio":{key:"aspect",type:t.Native},"column-span":{key:"col-span",type:t.Native},"align-content":{subkey:"ac",type:t.Native},"align-items":{subkey:"ai",type:t.Native},"align-self":{subkey:"as",type:t.Native},"justify-content":{subkey:"jc",type:t.Native},"justify-items":{subkey:"ji",type:t.Native},"justify-self":{subkey:"js",type:t.Native},"place-content":{type:t.NativeShorthand},"place-items":{type:t.NativeShorthand},"place-self":{type:t.NativeShorthand},"list-style-position":{ambiguousKeys:["list-style"],ambiguousValues:["inside","outside"],type:t.Native},"list-style-type":{ambiguousKeys:["list-style"],ambiguousValues:["disc","decimal"],type:t.Native},"list-style-image":{ambiguousKeys:["list-style"],ambiguousValues:[i.IMAGE_VALUE_REGEX],type:t.Native},"list-style":{type:t.NativeShorthand},"outline-color":{ambiguousKeys:["outline"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"outline-offset":{unit:"rem",type:t.Native,variables:["spacing"]},"outline-style":{ambiguousKeys:["outline"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"outline-width":{ambiguousKeys:["outline"],ambiguousValues:["medium","thick","thin",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},outline:{unit:"rem",type:t.NativeShorthand,variables:["outline-width","outline-style","outline-offset","outline-color","frame"],transformValueComponents:a},"accent-color":{key:"accent",type:t.Native},appearance:{type:t.Native},"caret-color":{key:"caret",type:t.Native,variables:["text"]},"scroll-behavior":{type:t.Native},"scroll-margin-left":{key:"scroll-ml",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-right":{key:"scroll-mr",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-top":{key:"scroll-mt",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{key:"scroll-mb",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-x":{key:"scroll-mx",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-margin-left":e,"scroll-margin-right":e}),variables:["spacing"]},"scroll-margin-y":{key:"scroll-my",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-margin-top":e,"scroll-margin-bottom":e}),variables:["spacing"]},"scroll-margin":{key:"scroll-m",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"scroll-padding-left":{key:"scroll-pl",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-right":{key:"scroll-pr",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-top":{key:"scroll-pt",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{key:"scroll-pb",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-x":{key:"scroll-px",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-padding-left":e,"scroll-padding-right":e}),variables:["spacing"]},"scroll-padding-y":{key:"scroll-py",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-padding-top":e,"scroll-padding-bottom":e}),variables:["spacing"]},"scroll-padding":{key:"scroll-p",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"scroll-snap-align":{ambiguousKeys:["scroll-snap"],ambiguousValues:["start","end","center"],type:t.Native},"scroll-snap-stop":{ambiguousKeys:["scroll-snap"],ambiguousValues:["normal","always"],type:t.Native},"scroll-snap-type":{ambiguousKeys:["scroll-snap"],ambiguousValues:["x","y","block","inline","both"],type:t.Native},"will-change":{type:t.Native},"writing-mode":{key:"writing",type:t.Native},direction:{type:t.Native},"shape-outside":{ambiguousKeys:["shape"],ambiguousValues:[/(?:inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)/],type:t.Native},"shape-margin":{ambiguousKeys:["shape"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native,variables:["spacing"]},"shape-image-threshold":{type:t.Native},"clip-path":{key:"clip",type:t.Native},quotes:{type:t.Native},"mask-image":{type:t.Native,declare:e=>({"-webkit-mask-image":e,"mask-image":e})}}}function ek(){return E?S:(E=1,S={dark:"class",light:"class"})}function ex(){if(R)return w;R=1;var e=eg();let t={$:{transform(e){let t,i;let a=e.indexOf(",");return -1!==a?(t=e.slice(0,a),i=e.slice(a+1)):t=e,[{type:"variable",name:t,fallback:i,token:e}]}},calc:{transform(i,a){let r=[],s=0,n=(a,o,l,u,c)=>{let d;let h=r!==a,f=[],p=!1,m=!1,y=!1,b=!1,g="",v=(t,r="",n="")=>{if(!1===d&&" "!==t&&this.definition.unit&&(d=void 0,b||k()),g){if(!c){let t=e.BASE_UNIT_REGEX.exec(g);t&&(g=(+t[1]*(this.css.config.baseUnit??1)).toString())}if(p||l)a.push({type:"string",value:g,token:g});else{let e={...this.parseValue(g),token:g};if(!m&&isNaN(+g)&&"number"===e.type&&(m=!0),b)isNaN(+g)?"number"===e.type?(a.push(e),y=!0):a.push(e):a.push({type:"number",value:+g,token:g});else if(h){let e={type:"string",value:g,token:g};f.push(e),a.push(e)}else a.push(e)}g=""}t&&(("+"===t||"-"===t)&&x(),r&&" "===i[s-1]&&(r=""),n&&" "===i[s+1]&&(n=""),o?a.push({type:"separator",value:t,text:t,token:t}):a.push({type:"separator",value:t,text:r+t+n,token:t})),p=!1},k=()=>{("rem"===this.definition.unit||"em"===this.definition.unit)&&a.push({type:"separator",value:"/",text:" / ",token:"/"},{type:"number",value:this.css.config.rootSize,token:String(this.css.config.rootSize)}),a.push({type:"separator",value:"*",text:" * ",token:"*"},{type:"number",value:1,unit:this.definition.unit,token:this.definition.unit})},x=()=>{!b||y||u||h&&!m||k(),b=!1,y=!1};for(;s<i.length;s++){let e=i[s];if("("===e){let i=/^([+-])/.exec(g);i&&a.push({type:"string",value:i[1],token:i[1]});let r=i?g.slice(1):g,o={type:"function",name:r,symbol:e,children:[],bypassTransform:"calc"===r,token:g};a.push(o),g="",s++;let l="$"===r||"var"===r;if(!(d=n(o.children,""!==r&&"calc"!==r&&(l||Object.prototype.hasOwnProperty.call(t,r)),p||l||b&&y,b,l)||"var"===r)&&"$"===r){let e=this.css.variables[o.children[0].value]?.type;d=!e||"string"===e}d&&(m=!0,y=!0)}else if(")"===e){if(v(""),m)for(let e of f)Object.assign(e,this.parseValue(e.value));return m}else if(","===e)v(e,""," ");else if(" "===e)v(e);else{let t=i[s-1];switch(e){case"+":case"-":g||")"===t?v(e," "," "):g+=e;break;case"*":this.definition.unit&&(b=!0),v(e," "," ");break;case"/":this.definition.unit&&(b=!0),v(e," "," "),p=!0;break;default:g+=e}}}v(""),x()};return n(r,!1,!1,!1,!1),"calc("+this.resolveValue(r,t.calc.unit??this.definition.unit,a,!0)+")"}},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:""},"color-contrast":{unit:""},"color-mix":{unit:""},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},"light-dark":{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{},"radial-gradient":{},"conic-gradient":{},"repeating-linear-gradient":{},"repeating-radial-gradient":{},"repeating-conic-gradient":{},matrix:{unit:""},matrix3d:{unit:""},scale:{unit:""},scale3d:{unit:""},scaleX:{unit:""},scaleY:{unit:""},scaleZ:{unit:""}};return w=t}function eN(){if($)return el;$=1;var e=eu(),t=ec(),i=ed(),a=eh(),r=ep(),s=ev(),n=ek(),o=ex();return el.at=e,el.selectors=t,el.utilities=i,el.animations=a,el.variables=r,el.rules=s,el.modes=n,el.functions=o,el.config={at:e,selectors:t,utilities:i,rules:s,functions:o,animations:a,variables:r,modes:n,scope:"",rootSize:16,baseUnit:4,override:!1,important:!1,defaultMode:"light"},el}var eS={},eE={},ew={};function eR(){return L||(L=1,ew.Rule=class{name;nodes;constructor(e,t=[]){this.name=e,this.nodes=t}get key(){return this.name}get text(){return this.nodes.map(({text:e})=>e).join("")}}),ew}function e$(){if(_)return eE;_=1;var e=em(),t=ey(),i=eg(),a=eR();class r extends a.Rule{name;css;registeredSyntax;fixedClass;at;priority;order;type;declarations;layer;animationNames;variableNames;constructor(a,r,s,n,o){let l,u,c;super(a),this.name=a,this.css=r,this.registeredSyntax=s,this.fixedClass=n,this.at={},this.priority=-1,this.order=0,this.type=0,this.resolveValue=(e,t,a,r)=>{let{functions:s}=this.css.config,n="";for(let o of e)switch(o.type){case"function":let e=s&&s[o.name];if(e?.transform&&!o.bypassTransform){let i=e.transform.call(this,this.resolveValue(o.children,e.unit??t,a,r||"calc"===o.name),a);n+=o.token=o.text="string"==typeof i?i:this.resolveValue(i,e?.unit??t,a,r)}else n+=o.token=o.text=o.name+o.symbol+this.resolveValue(o.children,e?.unit??t,a,r)+i.VALUE_DELIMITERS[o.symbol];break;case"variable":let l=this.css.variables[o.name];if(l){let e=(e,t)=>{if(l.modes){if(this.mode){let t=l.modes[this.mode]??l;t?.value&&e(t)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(o.name)||this.variableNames.push(o.name),t()}else e(l)};switch(l.type){case"string":e(e=>{let i=[];this.parseValues(i,0,e.value,t,"",void 0,r,[...a,o.name]),n+=o.text=this.resolveValue(i,t,[...a,o.name],r)},()=>{n+=o.text=`var(--${o.name})`});break;case"number":e(e=>{if(r)n+=o.text=String(e.value);else{let i=this.parseValue(e.value,t);n+=o.text=i.value+(i.unit??"")}},()=>{n+=o.text=t?`calc(var(--${o.name}) / 16 * 1rem)`:`var(--${o.name})`});break;case"color":let i=o.alpha?"/"+o.alpha:"";e(e=>{n+=o.text=`${e.space}(${e.value}${i})`},()=>{n+=o.text=`${l.space}(var(--${o.name})${i})`})}}else n+=o.text=`var(--${o.name}${o.fallback?","+o.fallback:""})`;break;case"separator":n+=o.text?o.text:o.text=o.value;break;case"number":n+=o.text=o.value+(o.unit||"");break;default:n+=o.text=o.value}return n},this.parseValues=(e,t,a,r,s,n,o=!1,l=[])=>{let u=void 0===n,c=!u&&(n.endsWith("$")||n.endsWith("var")),d="'"===s||'"'===s,h=[","];this.definition.separators?.length&&h.push(...this.definition.separators);let f="",p=()=>{if(f){let t=!1;if(!c||e.length){let i=(i,a)=>{let r=Object.prototype.hasOwnProperty.call(this.variables,i)?this.variables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(r){let s=r.name??i;if(!l.includes(s)){t=!0;let i={type:"variable",name:s,variable:this.css.variables[s],token:f};a&&(i.alpha=a),e.push(i)}}};if(i(f),!t){let[e,t]=f.split("/");i(e,t)}}if(!t){if(!c){let e=i.BASE_UNIT_REGEX.exec(f);e&&(f=String(+e[1]*(this.css.config.baseUnit??1)))}o?e.push({type:"string",value:f,token:f}):e.push({...this.parseValue(f,r),token:f})}f=""}};for(;t<a.length;t++){let l=a[t];if(l===s){if(d){let e=0;for(let t=f.length-1;"\\"===f[t];t--)e++;if(e%2){f+=l;continue}p()}else p();return t}if(!d&&l in i.VALUE_DELIMITERS){let s=f,u={type:"function",name:s,symbol:l,children:[],token:""};e.push(u),f="";let c="("===l?this.css.config.functions?.[s]:void 0;t=this.parseValues(u.children,++t,a,c?.unit??r,i.VALUE_DELIMITERS[l],s||n||"",o||"calc"===s)}else if("|"!==l&&" "!==l||"}"===s||d&&"path"!==n){if(!d){if("."===l){if(isNaN(+a[t+1])){if(u)break}else"-"===a[t-1]&&(f+="0")}else if(h.includes(l)){p(),e.push({type:"separator",value:l,text:(","===l?"":" ")+l+(","===l?"":" "),token:l});continue}else if(u&&("#"===l&&(f||e.length&&"separator"!==e[e.length-1].type)||["!","*",">","+","~",":","[","@","_"].includes(l)))break}f+=l}else p(),e.push({type:"separator",value:" ",token:l})}return p(),t},this.mode=o,this.layer=r.generalLayer,Object.assign(this,s);let{id:d,definition:h}=s,{analyze:f,transformValue:p,declare:m,transformValueComponents:y,create:b,type:g,unit:v}=h;this.type=g;let{scope:k,important:x,modes:N}=r.config,{selectors:S,at:E,animations:w}=r;if(b&&b.call(this,a),this.declarations=h.declarations,this.type===t.Utility)l=a.slice(d.length-1);else{let e;if(f)[e,u]=f.call(this,a);else{let t=a.indexOf(":");this.keyToken=a.slice(0,t+1),e=a.slice(t+1)}this.valueComponents=[];let t=this.parseValues(this.valueComponents,0,e,v,"",void 0,!1,h.includeAnimations?Object.keys(this.css.animations):[]);this.valueToken=e.slice(0,t),l=e.slice(t)}"!"===l[0]&&(this.important=!0,l=l.slice(1)),this.stateToken=l;let R=(e,t)=>{let i=(e,t,a,r)=>{for(let[r,s]of t)if(r.test(e)){for(let n of s)i(e.replace(r,n),t,a,!0);return}r&&a.push(e)},a=e=>{let t=e.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((e,t)=>t%3?e:e.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),i=[],a="";for(let e=0;e<t.length;e++){let i=t[e];if("\\"===i){a+=i+t[++e];continue}a+=i}return a&&i.push(a),i},r=[];""in S?i(e,S[""],r,!0):r.push(e);let s={};for(let[e,t]of Object.entries(S)){if(!e)continue;let a=[];for(let e of r)i(e,t,a,!1);a.length&&(s[e]=a)}let n=(e,i)=>{let r=i.reduce((e,t)=>(e.push(...a(t)),e),[]);e in t?t[e].push(...r):t[e]=r},o=Object.keys(s);if(o.length)for(let e of o)n(e,s[e]);else n("",r)};u?(this.vendorPrefixSelectors={},R(u,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let $=l.split("@"),L=$[0];if(L)for(let e of(this.vendorSuffixSelectors={},R(L,this.vendorSuffixSelectors),Object.values(this.vendorSuffixSelectors)))for(let t of e){let e=[":disabled",":active",":focus",":hover"];for(let i=0;i<e.length;i++)if(t.includes(e[i])){(-1===this.priority||this.priority>i)&&(this.priority=i);break}}else this.vendorSuffixSelectors={"":[""]};let _={},O=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),V=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(O)_[""]=V?[""]:Object.keys(this.vendorSuffixSelectors);else if(V)for(let e in this.vendorPrefixSelectors)_[e]=[""];else for(let e in this.vendorPrefixSelectors){let t=_[e]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,e))t.push(e);else for(let e in this.vendorSuffixSelectors)t.push(e)}for(let e=1;e<$.length;e++){let t=$[e];if(this.atToken=(this.atToken||"")+"@"+t,t){if("base"===t){this.layer=r.baseLayer;continue}if("preset"===t){this.layer=r.presetLayer;continue}if("rtl"===t||"ltr"===t)this.direction=t;else{let e;let i=[],a=/^(media|supports|container|layer)/,r=a.exec(t);if(r)e=r[1],i.push({type:"arbitrary",token:t,value:t.slice(e.length).replace(/\|/g," ")});else{let r=t=>{if("&"===t)i.push({type:"operator",token:t,value:"and"});else if(t.startsWith("")){let r=E[t];if(r&&"string"==typeof r){let s=r.match(a);if(!(e=s?s[1]:""))throw Error(`Invalid query '${t}': '${r}'`);i.push({type:"arbitrary",value:r.slice(s?s[1].length+1:0)})}else{e="media";let a="",s="",n=0;t.startsWith("<=")?(s="<=",a="max-width"):t.startsWith(">")&&!t.startsWith(">=")?(s=">",a="min-width",n=.02):t.startsWith("<")?(s="<",a="max-width",n=-.02):(t.startsWith(">=")||r)&&(s=">=",a="min-width");let o=s?t.replace(s,""):t,l=E[o];switch(a){case"max-width":case"min-width":if("number"==typeof l)i.push({type:"feature",name:a,valueType:"number",value:l+n,unit:"px"});else{let e=this.parseValue(o,"px");"number"===e.type?i.push({type:"feature",name:a,valueType:"number",value:e.value+n,unit:e.unit}):i.push({type:"feature",name:a,valueType:"string",value:o})}}}}},s=t.includes("&");if(s)for(let e of t.split(/(&|,)/))r(e);else r(t);if(!i.length&&!s&&N?.[t]){this.mode=t;continue}}if(e){let t=this.at[e];t?t.push(...i):this.at[e]=i}}}}this.valueComponents&&(y&&(this.valueComponents=y.call(this,this.valueComponents)),c=this.resolveValue(this.valueComponents,v,[],!1),p&&(c=p.call(this,c)),m?this.declarations=m.call(this,c,this.valueComponents):d&&(this.declarations={[d]:c}));let A=[];for(let e in this.declarations){let t=e=>{if(w&&(e.startsWith("animation")||e.startsWith("animation-name"))){let t=e.split(":")[1].split("!important")[0].split(" ").filter(e=>e in this.css.animations&&(!this.animationNames||!this.animationNames.includes(e)));t.length&&(this.animationNames||(this.animationNames=[]),this.animationNames=t)}A.push(e+((this.important||x)&&!e.endsWith("!important")?"!important":""))},i=e+":",a=this.declarations[e];if(Array.isArray(a))for(let e of a)t(i+String(e));else t(i+String(a))}if(A.length)for(let t in _)for(let i of _[t]){let r,s="";this.direction&&(s+="[dir="+this.direction+"] ");let o=this.vendorPrefixSelectors[t],l=this.vendorSuffixSelectors[i],u=o.map(e=>e+s),c=(r=n??a,u.map(e=>{let t="";if(this.mode){let e=this.css.getModeSelector(this.mode);e&&(t=e+" ")}return t+(k?k+" ":"")+e}).reduce((t,i)=>(t.push(l.reduce((t,a)=>(t.push(i+"."+e(r)+a),t),[]).join(",")),t),[]).join(",")+"{"+A.join(";")+"}");for(let e of Object.keys(this.at).sort((e,t)=>"supports"===t?-1:1))c="@"+e+(e.includes(" ")?"":" ")+this.at[e].map(e=>this.resolveAtComponent(e)).join(" ")+"{"+c+"}";this.mode&&N?.[this.mode]==="media"&&(c=`@media(prefers-color-scheme:${this.mode}){`+c+"}"),this.nodes.push({text:c})}this.fixedClass&&(this.layer=r.componentsLayer)}resolveAtComponent(e){switch(e.type){case"arbitrary":case"operator":return e.value;case"feature":return"("+e.name+":"+e.value+(e.unit||"")+")"}}resolveValue;parseValues;parseValue(e,t=this.definition.unit){let a;let r=t??this.definition.unit,s="";if("number"==typeof e)return r&&!s?(("rem"===r||"em"===r)&&(a=e/(this.css.config.rootSize||1)),s=r||""):a=e,{value:a,unit:s,type:"number"};if(r){if(/^\d+\/\d+/.test(e)){let[t,i]=e.split("/");return{value:+t/+i*100,unit:"%",type:"number"}}let t=e.match(i.UNIT_REGEX);if(t)return a=+t[1],(s=t[3]||"")||(("rem"===r||"em"===r)&&(a/=this.css.config.rootSize||1),s=r||""),{value:a,unit:s,type:"number"}}return{value:e,type:"string"}}get key(){return(this.fixedClass?this.fixedClass+" ":"")+this.name}}return eE.SyntaxRule=r,eE}var eL={};function e_(){if(T)return U;T=1;var e=ef();return U=function(...t){let i=t=>{let i=e({},t),a=e=>{for(let t in e){let i=e[t];"object"!=typeof i||Array.isArray(i)?t&&!t.startsWith("@")&&(e[t]={"":i}):a(i)}};return i.components&&a(i.components),i.at&&a(i.at),i.variables&&a(i.variables),i},a=[];for(let e of t)e&&function e(t){if(t.extends?.length)for(let i of t.extends)e("config"in i?i.config:i);a.push(i(t))}(e);let r={animations:{},components:{},at:{},variables:{}};for(let t of a)for(let i in t)"animations"===i?t.animations&&Object.assign(r.animations,t.animations):t[i]&&(r=e(r,{[i]:t[i]}));return r}}function eO(){return I?C:(I=1,C=function(e,t){for(let i=0;i<e.length;i++)if(e[i]===t)return i;return -1})}function eV(){if(G)return j;G=1;var e=eO();return j=class{name;css;rules;usages;native;constructor(e,t){this.name=e,this.css=t,this.rules=[],this.usages={},this.native=null}insert(e,t){if(!this.rules.find(({key:t})=>t===e.key)){if(!this.css.rules.includes(this)){this.css.rules.push(this);let e=this.css.style?.sheet;if(e&&!this.native){let t=e.insertRule(this.text,e.cssRules.length);this.native=e.cssRules.item(t)}}if(void 0===t&&(t=this.rules.length),this.native){let i=0,a=function e(t,i){let a;let r=t.rules[i];if(r&&"nodes"in r){if(!r.nodes.length)return e(t,i-1);a=r.nodes[r.nodes.length-1].native}return a}(this,t-1);if(a){for(let e=0;e<this.native.cssRules.length;e++)if(this.native.cssRules[e]===a){i=e+1;break}}for(let t=0;t<e.nodes.length;)try{let a=e.nodes[t];this.native.insertRule(a.text,i),a.native=this.native.cssRules[i++],t++}catch(i){console.error(i),e.nodes.splice(t,1)}}return this.rules.splice(t,0,e),t}}delete(t){let i=this.rules.find(e=>e.key===t);if(i){if(1===this.rules.length){let t=this.css.rules.indexOf(this);this.css.rules.splice(t,1);let i=this.css.style?.sheet;if(i&&this.native){let t=e(i.cssRules,this.native);-1!==t&&i.deleteRule(t)}}if(this.native?.cssRules&&"nodes"in i){for(let t of i.nodes)if(t.native){let i=e(this.native.cssRules,t.native);-1!==i&&this.native.deleteRule(i)}}return this.rules.splice(this.rules.indexOf(i),1),i}}reset(){this.rules.length=0;let e=this.css.rules.indexOf(this);-1!==e&&this.css.rules.splice(e,1),this.usages={},this.native&&(this.native=null)}get text(){return"@layer "+this.name+"{"+this.rules.map(({text:e})=>e).join("")+"}"}}}function eA(){if(M)return K;M=1;var e=eV(),t=eR();return K=class extends e{rules=[];insert(e){let t,i,a;if(this.rules.includes(e))return;let r=this.rules.length-1,{at:s,atToken:n,order:o,priority:l}=e,u=(e,t,i)=>{let a=e;for(;a<=r;a++){let e=this.rules[a];if(t?.(e))break;if(i?.(e))return a}return i?-1:a-1};if(n){let e=this.rules.findIndex(e=>e.at?.media);if(-1===e)t=r+1;else{let n=s.media?.find(({name:e})=>"max-width"===e),o=s.media?.find(({name:e})=>"min-width"===e);if(n||o){let e=this.rules.findIndex(e=>e.at?.media?.find(({name:e})=>"max-width"===e||"min-width"===e));if(-1===e)t=r+1;else if(n&&o){if(-1===l?(i=u(e,e=>-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)),a=u(e,e=>-1!==e.priority)):(i=u(e,void 0,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority),a=r),-1!==i){let e=n.value-o.value,t=a,r=i;for(i=a+1;t>=r;t--){let r=this.rules[t],s=r.at.media?.find(({name:e})=>"max-width"===e),n=r.at.media?.find(({name:e})=>"min-width"===e);if(s&&n){let r=s.value-n.value;if(r<e)a=t-1;else if(r===e)i=t;else break}else break}}}else if(o){if(-1===l?(i=u(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority,e=>!e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)),a=u(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority)):(i=u(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority,e=>!e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority),a=u(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority)),-1!==i)for(let e=a;e>=i;e--){let t=(this.rules[e].at.media?.find(({name:e})=>"min-width"===e)).value;if(t>o.value)a=e-1;else if(t<o.value){i=e+1;break}}}else if(-1===l?(i=u(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)),a=u(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority)):(i=u(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&-1!==e.priority),a=u(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority)),-1!==i)for(let e=a;e>=i;e--){let t=(this.rules[e].at.media?.find(({name:e})=>"max-width"===e)).value;if(t<n.value)a=e-1;else if(t>n.value){i=e+1;break}}}else -1===l?(i=e,a=u(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e)||-1!==e.priority)):(i=u(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e),e=>-1!==e.priority),a=u(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e)))}}else -1===l?(i=0,a=u(0,e=>e.atToken||-1!==e.priority)):(i=u(0,e=>e.atToken,e=>-1!==e.priority),a=u(0,e=>e.atToken));if(void 0===t&&void 0!==a&&void 0!==i){if(-1===i)t=a+1;else{if(-1===l){for(let e=i;e<=a;e++)if(this.rules[e].order>=o){t=e;break}}else for(let e=i;e<=a;e++){let i=this.rules[e];if(i.priority<l){t=e;break}if(i.priority===l){if(i.order>=o){t=e;break}}else t=e+1}void 0===t&&(t=a+1)}}return super.insert(e,t),this.insertVariables(e),this.insertAnimations(e),e.definition.insert?.call(e),t}delete(e){let t=super.delete(e);if(t){if(t.variableNames)for(let e of t.variableNames)--this.css.themeLayer.usages[e]||(this.css.themeLayer.delete(e),delete this.css.themeLayer.usages[e]);if(t.animationNames)for(let e of t.animationNames)--this.css.animationsNonLayer.usages[e]||(this.css.animationsNonLayer.delete(e),delete this.css.animationsNonLayer.usages[e]);return t.definition.delete?.call(t,t.name),t}}insertVariables(e){if(e.variableNames)for(let i of e.variableNames){let e=this.css.variables[i];if(this.css.themeLayer.rules.find(({name:e})=>e===i))this.css.themeLayer.usages[i]++;else{let a=new t.Rule(i),r=(t,r)=>{let s,n=!1,o=1;if(t)switch(this.css.config.modes?.[t]){case"media":s=`@media(prefers-color-scheme:${t}){:root`,o++;break;case"host":s=`:host(.${t})`,e.value||this.css.config.defaultMode!==t||(s+=",:host",n=!0);break;case"class":s=`.${t}`,e.value||this.css.config.defaultMode!==t||(s+=",:root",n=!0);break;default:return}else s=":root";let l=`${s}{--${i}:${String(r.value)}${"}".repeat(o)}`;n?a.nodes.unshift({text:l}):a.nodes.push({text:l})};if(e.value&&r("",e),e.modes)for(let t in e.modes)r(t,e.modes[t]);this.css.themeLayer.insert(a),this.css.themeLayer.usages[i]=1}}}insertAnimations(e){if(e.animationNames)for(let i of e.animationNames)this.css.animationsNonLayer.rules.find(({name:e})=>e===i)?this.css.animationsNonLayer.usages[i]++:(this.css.animationsNonLayer.insert(new t.Rule(i,[{text:`@keyframes ${i}{`+Object.entries(this.css.animations[i]).map(([e,t])=>`${e}{${Object.entries(t).map(([e,t])=>e+":"+t).join(";")}}`).join("")+"}"}])),this.css.animationsNonLayer.usages[i]=1)}}}function eU(){if(B)return X;B=1;var e=eO();return X=class{css;rules;usages;constructor(e){this.css=e,this.rules=[],this.usages={}}insert(e){if(this.rules.includes(e))return;let t=this.css.style?.sheet;if(t)for(let i=0;i<e.nodes.length;)try{let a=e.nodes[i],r=t.insertRule(a.text,t.cssRules.length);a.native=t.cssRules[r],i++}catch(t){console.error(t),e.nodes.splice(i,1)}this.rules.push(e),this.css.rules.push(e)}delete(t){let i=this.rules.find(e=>e.key===t);if(!i)return;let a=this.css.style?.sheet;if(a)for(let t of i.nodes){let i=e(a.cssRules,t.native);-1!==i&&a.deleteRule(i)}return this.rules.splice(this.rules.indexOf(i),1),this.css.rules.splice(this.css.rules.indexOf(i),1),i}get text(){return this.rules.map(({text:e})=>e).join("")}reset(){for(let e of this.rules){let t=this.css.rules.indexOf(e);-1!==t&&this.css.rules.splice(t,1)}this.rules.length=0,this.usages={}}}}function eT(){if(P)return eS;P=1,Object.defineProperty(eS,"__esModule",{value:!0});var e=e$(),t=eN(),i=V?O:(V=1,O=function(e){let t,i,a,r;return e.startsWith("#")&&(e=e.slice(1)),3===e.length||4===e.length?(t=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),a=parseInt(e[2]+e[2],16),r=4===e.length?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(6===e.length||8===e.length)&&(t=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16),r=8===e.length?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,i,a,r]}),a=(A||(A=1,eL.flattenObject=function e(t,i=""){return Object.entries(t).reduce((t,[a,r])=>{let s=i?`${i}${a?"-"+a:""}`:a;return"object"!=typeof r||Array.isArray(r)?t[s]=r:Object.assign(t,e(r,s)),t},{})}),eL),r=e_(),s=eA(),n=eR(),o=ey(),l=eV(),u=eU();class c{customConfig;static config=t.config;definedRules;config;classUsages;layerStatementRule;rules;animationsNonLayer;baseLayer;themeLayer;presetLayer;componentsLayer;generalLayer;get text(){return this.rules.sort((e,t)=>{let i=["layer-statement","base","theme","preset","components","general"];return(-1===i.indexOf(e.name)?1/0:i.indexOf(e.name))-(-1===i.indexOf(t.name)?1/0:i.indexOf(t.name))}).map(({text:e})=>e).join("")}constructor(e){this.customConfig=e,this.definedRules=[],this.classUsages=new Map,this.layerStatementRule=new n.Rule("layer-statement",[{text:"@layer base,theme,preset,components,general;"}]),this.rules=[this.layerStatementRule],this.animationsNonLayer=new u(this),this.baseLayer=new s("base",this),this.themeLayer=new l("theme",this),this.presetLayer=new s("preset",this),this.componentsLayer=new s("components",this),this.generalLayer=new s("general",this),this.config=e?.override?r(e):r(t.config,e),this.resolve(),this.constructor===c&&d.push(this)}resolve(){this.components={},this.selectors={},this.variables={},this.at={},this.animations={},this.definedRules.length=0;let e={current:void 0,currentColor:void 0,transparent:void 0},{components:t,selectors:r,variables:s,utilities:n,at:l,rules:u,animations:c}=this.config;function d(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(r){let e=a.flattenObject(r);for(let t in e){let i=e[t],a=RegExp(d(t)+"(?![a-z-])");for(let e of Array.isArray(i)?i:[i]){let t=e.match(/^::-[a-z]+-/m)?.[0]??"",i=this.selectors[t];i||(i=this.selectors[t]=[]);let r=i.find(([e])=>e===a);r||(r=[a,[]],i.push(r)),r[1].push(e)}}}if(s){let t={},a=(r,s,n)=>{if(null==r)return;let o=(t,i,a,r)=>{if(void 0===i)return;let s=t.join("-"),o=t.slice(0,-1).filter(Boolean),l=(""===t[0]?"-":"")+t[t.length-1];if(i.key=l,i.name=s,o.length&&(i.group=o.join(".")),"color"===i.type){if(r){let e=i.value.indexOf("/");i={...i,value:-1===e?i.value+" / "+(r.startsWith("0.")?r.slice(1):r):i.value.slice(0,e+2)+String(+i.value.slice(e+2)*+r).slice(1)}}e[s]=void 0}i.name.startsWith("screen-")&&"number"===i.type&&(this.at[i.name.slice(7)]=i.value);let u=a??n;if(void 0!==u){if(Object.prototype.hasOwnProperty.call(this.variables,s)){let e=this.variables[s];u?(e.modes||(e.modes={}),e.modes[u]=i):(e.value=i.value,"color"===i.type&&(e.space=i.space))}else if(u){let e={key:i.key,name:i.name,group:i.group,type:i.type,modes:{[u]:i}};"color"===i.type&&(e.space=i.space),this.variables[s]=e}else this.variables[s]=i}else this.variables[s]=i};if("object"==typeof r){if(Array.isArray(r))o(s,{type:"string",value:r.join(",")});else{let e=Object.keys(r);for(let t of e)""===t||t.startsWith("@")?a(r[t],s,t||e.some(e=>e.startsWith("@"))?t.slice(1):void 0):a(r[t],[...s,t])}}else if("number"==typeof r)o(s,{type:"number",value:r}),o(["",...s],{type:"number",value:-1*r});else if("string"==typeof r){let e=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(r),a=s.join("-");if(e)Object.prototype.hasOwnProperty.call(t,a)||(t[a]={}),t[a][n]=()=>{delete t[a][n];let[i,r]=e[1].split("@");if(i){if(Object.prototype.hasOwnProperty.call(t,i))for(let e of Object.keys(t[i]))t[i][e]?.();let a=this.variables[i];if(a){if(void 0===r&&a.modes)for(let t in o(s,{type:a.type,value:a.value,space:a.space},"",e[2]),a.modes)o(s,a.modes[t],t,e[2]);else{let t=void 0!==r?a.modes?.[r]:a;if(t){let i={type:t.type,value:t.value};"color"===t.type&&(i.space=t.space),o(s,i,void 0,e[2])}}}}};else{let e=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(r);if(e){let[t,a,r,n]=i(e[1]);o(s,{type:"color",value:`${t} ${a} ${r}${1===n?"":" / "+n}`,space:"rgb"})}else{let e=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(r);if(e)o(s,{type:"color",value:e[1]+" "+e[2]+" "+e[3]+(e[4]?" / "+(e[4].startsWith("0.")?e[4].slice(1):e[4]):""),space:"rgb"});else{let e=/^hsl\((.*?)\)$/.exec(r);e?o(s,{type:"color",value:e[1],space:"hsl"}):o(s,{type:"string",value:r})}}}}};for(let e in s)a(s[e],[e]);for(let e of Object.keys(t))for(let i of Object.keys(t[e]))t[e][i]?.()}if(l&&Object.assign(this.at,a.flattenObject(l)),c)for(let e in c){let t=this.animations[e]={},i=c[e];for(let e in i){let a=t[e]={},r=i[e];for(let e in r)a[e]=r[e]}}let h=t?a.flattenObject(t):{},f=Object.keys(h),p=e=>{if(Object.prototype.hasOwnProperty.call(this.components,e))return;let t=this.components[e]=[],i=h[e];if(i)for(let e of i.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ")){let i=e=>{t.includes(e)||t.push(e)};if(f.includes(e))for(let t of(p(e),this.components[e]))i(t);else i(e)}};for(let e of f)p(e);if(u||n){let t=[];if(n)for(let e in n){let i=n[e];t.push([e,{declarations:i,type:o.Utility}])}u&&t.push(...Object.entries(u));let i=t.length,a=Object.keys(e);t.sort((e,t)=>e[1].type!==t[1].type?(t[1].type||0)-(e[1].type||0):t[0].localeCompare(e[0])).forEach(([e,t],r)=>{let s={id:e,keys:[],variables:{},matchers:{},order:i-1-r,definition:t};t.unit||(t.unit=""),t.separators||(t.separators=[","]),this.definedRules.push(s);let{matcher:n,type:l,subkey:u,ambiguousKeys:c,ambiguousValues:h,sign:f}=t;l===o.Utility&&(s.id="."+e,s.matchers.arbitrary=RegExp("^"+d(e)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"));let p=e=>{for(let t in this.variables){let i=this.variables[t];i.group===e&&(s.variables[i.key]=i)}};if(t.variables)for(let e of t.variables)p(e);p(e);let m=[],{key:y}=t;if((l===o.NativeShorthand||l===o.Native)&&(y||(t.key=y=e),m.push(e)),f)s.matchers.arbitrary=RegExp(`^${f}[^!*>+~:[@_]+\\|`);else if(n)s.matchers.arbitrary=n;else{let t=a.join("|");if(y||u?(y&&!m.includes(y)&&m.push(y),u&&m.push(u),l===o.Shorthand&&m.push(e)):m.push(e),c?.length){let e=c.length>1?`(?:${c.join("|")})`:c[0],i=Object.keys(s.variables);if(h?.length){let i=[];for(let e of h)e instanceof RegExp?i.push(e.source.replace("\\$colors",t)):i.unshift(`${e}(?:\\b|_)`);s.matchers.value=RegExp(`^${e}:(?:${i.join("|")})[^|]*?(?:@|$)`)}i.length&&(s.matchers.variable=RegExp(`^${e}:(?:${i.join("|")}(?![a-zA-Z0-9-]))[^|]*?(?:@|$)`))}}m.length&&(s.keys=m,s.matchers.key=RegExp(`^${m.length>1?`(${m.join("|")})`:m[0]}:.`))})}for(let e in this.components){let t=this.components[e].map(e=>this.create(e)).filter(e=>e?.text).reduce((e,t)=>(t.stateToken in e?e[t.stateToken].push(t):e[t.stateToken]=[t],e),{});this.components[e]=Object.keys(t).map(e=>{let i=t[e];return 1===i.length?i[0].name:"{"+t[e].map(e=>e.name.slice(0,e.name.length-e.stateToken.length)).join(";")+"}"+e})}}match(e){for(let t of this.definedRules)if(t.matchers.variable?.test(e))return t;for(let t of this.definedRules)if(t.matchers.value?.test(e))return t;for(let t of this.definedRules)if(t.matchers.key?.test(e))return t;for(let t of this.definedRules)if(t.matchers.arbitrary?.test(e))return t}generate(e,t){let i=[];if(Object.prototype.hasOwnProperty.call(this.components,e))i=this.components[e].map(i=>this.create(i,e,t));else{let a=e.indexOf("@");if(-1!==a){let r=e.slice(0,a);if(Object.prototype.hasOwnProperty.call(this.components,r)){let s=e.slice(a);i=this.components[r].map(i=>this.create(i+s,e,t))}else i=[this.create(e,void 0,t)]}else i=[this.create(e,void 0,t)]}return i.filter(e=>e?.text)}create(t,i,a){let r=this.generalLayer.rules.find(({key:e})=>e===(i?i+" ":"")+t);if(r)return r;let s=this.match(t);if(s)return new e.SyntaxRule(t,this,s,i,a)}createFromSelectorText(e){let t=e.split(" ");for(let e=0;e<t.length;e++){let i=t[e],a=this.getModeSelector(i);if((0!==e||i!==a)&&"."===i[0]){let e=i.slice(1),t="";for(let i=0;i<e.length;i++){let a=e[i],r=e[i+1];if("\\"===a){if(i++,"\\"!==r){t+=r;continue}}else if([".","#","[","!","*",">","+","~",":"].includes(a))break;t+=a}let a=this.generate(t);if(a.length)return a}}return[]}refresh(e){return this.reset(),e?this.customConfig=e:e=this.customConfig,this.config=e?.override?r(e):r(t.config,e),this.resolve(),this.classUsages.forEach((e,t)=>{this.add(t)}),this}reset(){return this.baseLayer.reset(),this.themeLayer.reset(),this.presetLayer.reset(),this.componentsLayer.reset(),this.generalLayer.reset(),this.animationsNonLayer.reset(),this}destroy(){return this.classUsages=new Map,d.splice(d.indexOf(this),1),this}add(...e){for(let t of e)this.generate(t).forEach(e=>e.layer.insert(e));return this}remove(...e){for(let t of e)if(Object.prototype.hasOwnProperty.call(this.components,t))for(let e of this.components[t])this.componentsLayer.delete(t+" "+e);else{let e=t.indexOf("@");if(-1!==e){let i=t.slice(0,e);if(Object.prototype.hasOwnProperty.call(this.components,i)){let a=t.slice(e);for(let e of this.components[i])this.componentsLayer.delete(e+a+" "+t)}else this.generalLayer.delete(t)}else this.generalLayer.delete(t)}}getModeSelector(e){let t=this.config.modes?.[e];if(t)switch(t){case"class":return"."+e;case"host":return":host(."+e+")"}}}let d=[];return globalThis.MasterCSS=c,globalThis.masterCSSs=d,eS.default=c,eS.masterCSSs=d,eS}function eC(){return q?Y:(q=1,Y=function(e,t){return e.mode===t.mode})}function eI(){return F?W:(F=1,W=function(e,t){let i=Object.keys(e.at),a=Object.keys(t.at);if(i.length!==a.length)return!1;for(let a of i){let i=e.at[a],r=t.at[a];for(let a of i){let i=e.resolveAtComponent(a);if(!r.find(e=>t.resolveAtComponent(e)===i))return!1}}return!0})}function ej(){return Q?Z:(Q=1,Z=function(e,t){let i=Object.keys(e.vendorSuffixSelectors),a=Object.keys(t.vendorSuffixSelectors);if(i.length!==a.length||!i.every(i=>{if(!Object.prototype.hasOwnProperty.call(t.vendorSuffixSelectors,i))return!1;let a=e.vendorSuffixSelectors[i],r=t.vendorSuffixSelectors[i];return a.length===r.length&&a.every(e=>r.includes(e))}))return!1;let r=Object.keys(e.vendorPrefixSelectors),s=Object.keys(t.vendorPrefixSelectors);return!!(r.length===s.length&&r.every(i=>{if(!Object.prototype.hasOwnProperty.call(t.vendorPrefixSelectors,i))return!1;let a=e.vendorPrefixSelectors[i],r=t.vendorPrefixSelectors[i];return a.length===r.length&&a.every(e=>r.includes(e))}))})}var eG=function(){if(en)return eo;en=1,Object.defineProperty(eo,"__esModule",{value:!0});var e=eN(),t=eg(),i=eT(),a=e$(),r=eR(),s=eV(),n=eA(),o=eU(),l=ey(),u=e_(),c=function(){if(D)return z;D=1;var e=ey(),t=eT();return z=function(i,a=new t.default){a.add(...i);let r=a.generalLayer.rules.filter(e=>e.type).sort((t,i)=>{if(t.type===e.Utility&&i.type!==e.Utility)return -1;if(t.type!==e.Utility&&i.type===e.Utility)return 1;if(t.id!==i.id)return t.name.localeCompare(i.name);{let e=t.vendorSuffixSelectors?.[""]?.[0],a=i.vendorSuffixSelectors?.[""]?.[0];if(-1===t.priority&&-1===i.priority){if(e&&a)return e.localeCompare(a);let r=t.atToken,s=i.atToken;if(r&&s&&!t.at.media?.find(({name:e})=>"min-width"===e||"max-width"===e)&&!i.at.media?.find(({name:e})=>"min-width"===e||"max-width"===e))return r.localeCompare(s);if(e&&!a)return 1;if(!e&&a)return -1;if(r&&!s)return 1;if(!r&&s)return -1}return t.id===i.id&&t.stateToken===i.stateToken?t.name.localeCompare(i.name):t.order-i.order}}).map(e=>e.name);return a.remove(...i),r}}(),d=eC(),h=eI(),f=ej(),p=function(){if(J)return H;J=1;var e=ej(),t=eC(),i=eI();return H=function(a,r){return e(a,r)&&t(a,r)&&i(a,r)}}(),m=et?ee:(et=1,ee=function(e,t){let i=Object.keys(e.declarations||{}),a=Object.keys(t.declarations||{});if(i.length!==a.length)return!1;for(let e of i)if(!Object.prototype.hasOwnProperty.call(t.declarations,e))return!1;return!0}),y=function(){if(ea)return ei;ea=1;var e=eT();return ei=function(t,i=new e.default){let a="";return i.add(...t),a=i.text,i.remove(...t),a}}(),b=function(){if(es)return er;es=1;var e=ev();return er=function(t){return Object.hasOwnProperty.call(e,t)}}(),g=eu(),v=ec(),k=ed(),x=ex(),N=eh(),S=ep(),E=ek(),w=ev();return eo.config=e.config,eo.ANIMATION_SIGN=t.ANIMATION_SIGN,eo.AT_SIGN=t.AT_SIGN,eo.BASE_UNIT_REGEX=t.BASE_UNIT_REGEX,eo.BORDER_STYLE_VALUES=t.BORDER_STYLE_VALUES,eo.CLASS_ATTRIBUTES=t.CLASS_ATTRIBUTES,eo.CLASS_DECLARATIONS=t.CLASS_DECLARATIONS,eo.CLASS_FUNCTIONS=t.CLASS_FUNCTIONS,eo.COLOR_VALUE_REGEX=t.COLOR_VALUE_REGEX,eo.DELIMITER_SIGN=t.DELIMITER_SIGN,eo.IMAGE_VALUE_REGEX=t.IMAGE_VALUE_REGEX,eo.NUMBER_VALUE_REGEX=t.NUMBER_VALUE_REGEX,eo.OFFICIAL_URL=t.OFFICIAL_URL,eo.QUERY_COMPARISON_OPERATORS=t.QUERY_COMPARISON_OPERATORS,eo.QUERY_LOGICAL_OPERATORS=t.QUERY_LOGICAL_OPERATORS,eo.SELECTOR_SIGNS=t.SELECTOR_SIGNS,eo.SEPARATOR_SIGN=t.SEPARATOR_SIGN,eo.SEPARATOR_SIGNS=t.SEPARATOR_SIGNS,eo.TRANSITION_SIGN=t.TRANSITION_SIGN,eo.UNIT_REGEX=t.UNIT_REGEX,eo.VALUE_DELIMITERS=t.VALUE_DELIMITERS,eo.VALUE_UNITS=t.VALUE_UNITS,eo.MasterCSS=i.default,eo.default=i.default,eo.masterCSSs=i.masterCSSs,eo.SyntaxRule=a.SyntaxRule,eo.Rule=r.Rule,eo.Layer=s,eo.SyntaxLayer=n,eo.NonLayer=o,eo.SyntaxRuleType=l,eo.extendConfig=u,eo.reorderForReadableClasses=c,eo.areRuleModesEqual=d,eo.areRuleAtEqual=h,eo.areRuleSelectorsEqual=f,eo.areRuleStatesEqual=p,eo.areRulesDuplicated=m,eo.generateCSS=y,eo.isCoreRule=b,eo.at=g,eo.selectors=v,eo.utilities=k,eo.functions=x,eo.animations=N,eo.variables=S,eo.modes=E,eo.rules=w,eo}();class eK extends eG.MasterCSS{root;customConfig;host;observing;progressive;container;observer;constructor(e=document,t=eG.config){if(super(t),this.root=e,this.customConfig=t,this.observing=!1,this.progressive=!1,globalThis.runtimeCSSs.find(e=>e.root===this.root))throw Error("Cannot create multiple RuntimeCSS instances for the same root element.");let i=this.root?.constructor.name;"HTMLDocument"===i||"Document"===i?(this.root.defaultView.globalThis.runtimeCSS=this,this.container=this.root.head,this.host=this.root.documentElement):(this.container=this.root,this.host=this.root.host),eM.push(this)}observe(){if(this.observing)return this;if(this.root.styleSheets)for(let e of this.root.styleSheets){let{ownerNode:t}=e;if(t&&"master"===t.id){this.style=t,this.progressive=!0;break}}this.progressive?this.hydrate(this.style.sheet.cssRules):(this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style),this.style.sheet.insertRule(this.layerStatementRule.text),this.layerStatementRule.nodes[0].native=this.style.sheet.cssRules.item(0));let e=new Map,t=t=>{t.classList.forEach(i=>{this.classUsages.has(i)?this.classUsages.set(i,this.classUsages.get(i)+1):(this.classUsages.set(i,1),this.add(i));let a=e.get(t);a?a.push(i):e.set(t,[i])})};return t(this.host),("HTMLDocument"===this.root.constructor.name?this.host:this.container).querySelectorAll("[class]").forEach(e=>{t(e)}),this.observer=new MutationObserver(e=>{let t=new Map,i=new Set,a=new Set,r=new Set,s=(e,i=!1)=>{let a=i?1:-1;e.forEach(e=>{t.set(e,(t.get(e)||0)+a)})},n=(e,t)=>{for(let i of(e.isConnected&&a.add(e),r.add(e),s(e.classList,t),e.children))n(i,t)};e.forEach(e=>{let t=e.target;if("attributes"===e.type){let i=e.oldValue?e.oldValue.split(/\s+/):[],a=t.classList,r=[];a.forEach(e=>{i.includes(e)||r.push(e)})}}),e.forEach(e=>{let t=e.target;switch(e.type){case"attributes":if(i.has(t)||r.has(t))return;i.add(t);let o=e.oldValue?e.oldValue.split(/\s+/):[],l=t.classList,u=[];l.forEach(e=>{o.includes(e)||u.push(e)});let c=o.filter(e=>!l.contains(e));u.length&&s(u,!0),c.length&&s(c,!1);break;case"childList":if(a.has(t))return;e.addedNodes.forEach(e=>"classList"in e&&n(e,!0)),e.removedNodes.forEach(e=>"classList"in e&&n(e,!1))}}),t.forEach((e,t)=>{let i=this.classUsages.get(t)||0,a=i+e;a>0?(this.classUsages.set(t,a),0===i&&this.add(t)):(this.classUsages.delete(t),this.remove(t))})}),this.observer.observe(this.root,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"],childList:!0,subtree:!0}),this.progressive||this.host.style.removeProperty("display"),this.observing=!0,this}hydrate(e){let t=[];for(let i=0;i<e.length;i++){let a=e[i];if("CSSLayerBlockRule"===a.constructor.name){if("theme"===a.name){let e,t;this.themeLayer.native=a;for(let i=0;i<a.cssRules.length;i++){let r=a.cssRules[i],s=("CSSMediaRule"===r.constructor.name?r.cssRules[0]:r).style[0].slice(2);s!==t&&(t=s,e=new eG.Rule(s),this.themeLayer.rules.push(e),this.themeLayer.usages[e.name]=0),e?.nodes.push({native:r,text:r.cssText})}this.themeLayer.rules.length&&this.rules.push(this.themeLayer)}else t.push(a)}else if("CSSLayerStatementRule"===a.constructor.name)this.layerStatementRule.nodes[0].native=a;else if("CSSKeyframesRule"===a.constructor.name){let e=new eG.Rule(a.name,[{native:a,text:a.cssText}]);this.animationsNonLayer.rules.push(e),this.rules.push(e),this.animationsNonLayer.usages[e.name]=0}}for(let e of t){let t=t=>{t.native=e;for(let i=0;i<e.cssRules.length;i++){let a=e.cssRules[i],r=e=>{if(e.selectorText){let t=this.createFromSelectorText(e.selectorText)[0];if(t)return t}else if(e.cssRules)for(let t of e.cssRules){let e=r(t);if(e)return e}},s=r(a);if(s)for(let e of(t.rules.push(s),t.insertVariables(s),t.insertAnimations(s),s.nodes))e.native||(e.native=a);else e.deleteRule?.(i--),console.error(`Cannot recognize the CSS rule in the ${t.name} layer. \`${a.cssText}\` (https://rc.css.master.co/messages/hydration-errors)`)}for(let e of t.rules)for(let t=e.nodes.length-1;t>=0;t--)e.nodes[t].native||e.nodes.splice(t,1);t.rules.length&&this.rules.push(t)};switch(e.name){case"base":t(this.baseLayer);break;case"preset":t(this.presetLayer);break;case"components":let i;this.componentsLayer.native=e;let a=e=>{if(e.selectorText){let t=this.createFromSelectorText(e.selectorText);if(t.length)return i=e.selectorText+"{",t}else if(e.cssRules)for(let t of e.cssRules){let e=this.createFromSelectorText(t.selectorText);if(e)return e}};for(let t=0;t<e.cssRules.length;t++){let r=e.cssRules[t],s=a(r);if(s){let e=!1;for(let t of s){for(let a of t.nodes)if(!a.native&&a.text.includes(i)){a.native=r,this.componentsLayer.rules.includes(t)||(this.componentsLayer.rules.push(t),this.componentsLayer.insertVariables(t),this.componentsLayer.insertAnimations(t)),e=!0;break}if(e)break}}else e?.deleteRule?.(t--),console.error(`Cannot recognize the CSS rule in the components layer. \`${r.cssText}\` (https://rc.css.master.co/messages/hydration-errors)`)}for(let e of this.componentsLayer.rules)for(let t=e.nodes.length-1;t>=0;t--)e.nodes[t].native||e.nodes.splice(t,1);this.componentsLayer.rules.length&&this.rules.push(this.componentsLayer);break;case"general":t(this.generalLayer)}}}disconnect(){if(this.observing)return this.observer&&(this.observer.disconnect(),this.observer=void 0),this.observing=!1,this.reset(),this.classUsages={},this.progressive||(this.style?.remove(),this.style=null),this}refresh(e=this.customConfig){if(!this.observing||!this.style.sheet)return this;for(let e=1;e<=this.style.sheet.cssRules.length-1;e++)this.style.sheet.deleteRule(e);return super.refresh(e),this}destroy(){return this.disconnect(),eM.splice(eM.indexOf(this),1),this}}let eM=[];function eX(e){return new eK(document,e).observe()}globalThis.RuntimeCSS=eK,globalThis.runtimeCSSs=eM;let eB=window.masterCSSConfigs,eP=window.masterCSSConfig;if(eP){let e=[];eB&&e.push(...eB),eP.extends&&e.push(...eP.extends),eX({...eP,extends:e})}else eB?eX({extends:eB}):eX()}();
|