@master/css 2.0.0-beta.21 → 2.0.0-beta.210
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/README.md +113 -109
- package/dist/bin/index.bundle.js +36 -0
- package/dist/bin/index.d.ts +2 -0
- package/dist/config/animations.d.ts +110 -0
- package/dist/config/functions.d.ts +3 -0
- package/dist/config/index.d.ts +68 -25
- package/dist/config/{breakpoints.d.ts → media-queries.d.ts} +3 -2
- package/dist/config/rules.d.ts +279 -3
- package/dist/config/selectors.d.ts +3 -2
- package/dist/config/semantics.d.ts +189 -80
- package/dist/config/styles.d.ts +3 -0
- package/dist/config/variables.d.ts +113 -0
- package/dist/constants/base-unit-regex.d.ts +1 -0
- package/dist/constants/config-esm-text.d.ts +1 -0
- package/dist/constants/config-text.d.ts +1 -0
- package/dist/constants/config-ts-text.d.ts +1 -0
- package/dist/constants/selector-symbols.d.ts +1 -0
- package/dist/constants/start-symbol.d.ts +2 -1
- package/dist/core.d.ts +96 -0
- package/dist/functions/init-runtime.d.ts +9 -0
- package/dist/functions/reorder-for-readable-classes.d.ts +12 -0
- package/dist/functions/transform-color-with-opacity.d.ts +1 -0
- package/dist/index.bundle.js +35 -0
- package/dist/index.bundle.mjs +35 -0
- package/dist/index.d.ts +13 -21
- package/dist/layer.d.ts +11 -0
- package/dist/polyfills/css-escape.d.ts +0 -1
- package/dist/rule.d.ts +104 -53
- package/dist/runtime.browser.bundle.js +1 -0
- package/dist/runtime.browser.d.ts +4 -0
- package/dist/runtime.d.ts +23 -0
- package/dist/types/global.d.ts +11 -0
- package/dist/utils/extend-config.d.ts +2 -0
- package/dist/utils/flatten-object.d.ts +1 -0
- package/dist/utils/hex-to-rgb.d.ts +1 -1
- package/dist/utils/is-plain-object.d.ts +1 -1
- package/dist/utils/rgb-to-hex.d.ts +1 -1
- package/package.json +1 -162
- package/LICENSE +0 -21
- package/dist/apis/extend.d.ts +0 -5
- package/dist/apis/render-from-html.d.ts +0 -3
- package/dist/apis/render-into-html.d.ts +0 -3
- package/dist/apis/render.d.ts +0 -3
- package/dist/config/colors.d.ts +0 -25
- package/dist/config/root-size.d.ts +0 -2
- package/dist/config/scheme.d.ts +0 -7
- package/dist/config/themes.d.ts +0 -2
- package/dist/config/values.d.ts +0 -126
- package/dist/css.d.ts +0 -80
- package/dist/index.browser.d.ts +0 -1
- package/dist/index.browser.js +0 -2
- package/dist/index.browser.js.map +0 -7
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -7
- package/dist/index.mjs +0 -2
- package/dist/index.mjs.map +0 -7
- package/dist/rules/accent-color.d.ts +0 -7
- package/dist/rules/align-content.d.ts +0 -6
- package/dist/rules/align-items.d.ts +0 -6
- package/dist/rules/align-self.d.ts +0 -6
- package/dist/rules/animation-delay.d.ts +0 -7
- package/dist/rules/animation-direction.d.ts +0 -6
- package/dist/rules/animation-duration.d.ts +0 -7
- package/dist/rules/animation-fill-mode.d.ts +0 -6
- package/dist/rules/animation-iteration-count.d.ts +0 -7
- package/dist/rules/animation-name.d.ts +0 -6
- package/dist/rules/animation-play-state.d.ts +0 -6
- package/dist/rules/animation-timing-function.d.ts +0 -6
- package/dist/rules/animation.d.ts +0 -8
- package/dist/rules/appearance.d.ts +0 -5
- package/dist/rules/aspect-radio.d.ts +0 -7
- package/dist/rules/backdrop-filter.d.ts +0 -11
- package/dist/rules/background-attachment.d.ts +0 -6
- package/dist/rules/background-blend-mode.d.ts +0 -5
- package/dist/rules/background-clip.d.ts +0 -9
- package/dist/rules/background-color.d.ts +0 -8
- package/dist/rules/background-image.d.ts +0 -7
- package/dist/rules/background-origin.d.ts +0 -6
- package/dist/rules/background-position.d.ts +0 -7
- package/dist/rules/background-repeat.d.ts +0 -6
- package/dist/rules/background-size.d.ts +0 -6
- package/dist/rules/background.d.ts +0 -8
- package/dist/rules/border-collapse.d.ts +0 -6
- package/dist/rules/border-color.d.ts +0 -11
- package/dist/rules/border-image-outset.d.ts +0 -5
- package/dist/rules/border-image-repeat.d.ts +0 -6
- package/dist/rules/border-image-slice.d.ts +0 -6
- package/dist/rules/border-image-source.d.ts +0 -6
- package/dist/rules/border-image-width.d.ts +0 -6
- package/dist/rules/border-image.d.ts +0 -6
- package/dist/rules/border-radius.d.ts +0 -9
- package/dist/rules/border-spacing.d.ts +0 -5
- package/dist/rules/border-style.d.ts +0 -9
- package/dist/rules/border-width.d.ts +0 -9
- package/dist/rules/border.d.ts +0 -10
- package/dist/rules/box-decoration-break.d.ts +0 -9
- package/dist/rules/box-shadow.d.ts +0 -7
- package/dist/rules/box-sizing.d.ts +0 -6
- package/dist/rules/break-after.d.ts +0 -5
- package/dist/rules/break-before.d.ts +0 -5
- package/dist/rules/break-inside.d.ts +0 -5
- package/dist/rules/caret-color.d.ts +0 -7
- package/dist/rules/clear.d.ts +0 -5
- package/dist/rules/clip-path.d.ts +0 -6
- package/dist/rules/color.d.ts +0 -8
- package/dist/rules/column-span.d.ts +0 -6
- package/dist/rules/columns.d.ts +0 -8
- package/dist/rules/contain.d.ts +0 -5
- package/dist/rules/content.d.ts +0 -5
- package/dist/rules/counter-increment.d.ts +0 -6
- package/dist/rules/counter-reset.d.ts +0 -6
- package/dist/rules/cursor.d.ts +0 -5
- package/dist/rules/cx.d.ts +0 -6
- package/dist/rules/cy.d.ts +0 -6
- package/dist/rules/direction.d.ts +0 -5
- package/dist/rules/display.d.ts +0 -6
- package/dist/rules/fill.d.ts +0 -7
- package/dist/rules/filter.d.ts +0 -8
- package/dist/rules/flex-basis.d.ts +0 -5
- package/dist/rules/flex-direction.d.ts +0 -6
- package/dist/rules/flex-grow.d.ts +0 -6
- package/dist/rules/flex-shrink.d.ts +0 -6
- package/dist/rules/flex-wrap.d.ts +0 -6
- package/dist/rules/flex.d.ts +0 -7
- package/dist/rules/float.d.ts +0 -5
- package/dist/rules/font-family.d.ts +0 -6
- package/dist/rules/font-size.d.ts +0 -6
- package/dist/rules/font-smoothing.d.ts +0 -9
- package/dist/rules/font-style.d.ts +0 -7
- package/dist/rules/font-variant-numeric.d.ts +0 -6
- package/dist/rules/font-weight.d.ts +0 -7
- package/dist/rules/font.d.ts +0 -8
- package/dist/rules/gap.d.ts +0 -9
- package/dist/rules/grid-area.d.ts +0 -7
- package/dist/rules/grid-auto-columns.d.ts +0 -6
- package/dist/rules/grid-auto-flow.d.ts +0 -6
- package/dist/rules/grid-auto-rows.d.ts +0 -5
- package/dist/rules/grid-column-end.d.ts +0 -7
- package/dist/rules/grid-column-start.d.ts +0 -7
- package/dist/rules/grid-column.d.ts +0 -9
- package/dist/rules/grid-columns.d.ts +0 -10
- package/dist/rules/grid-row-end.d.ts +0 -6
- package/dist/rules/grid-row-start.d.ts +0 -6
- package/dist/rules/grid-row.d.ts +0 -9
- package/dist/rules/grid-rows.d.ts +0 -9
- package/dist/rules/grid-template-areas.d.ts +0 -5
- package/dist/rules/grid-template-columns.d.ts +0 -6
- package/dist/rules/grid-template-rows.d.ts +0 -5
- package/dist/rules/grid-template.d.ts +0 -6
- package/dist/rules/grid.d.ts +0 -6
- package/dist/rules/group.d.ts +0 -9
- package/dist/rules/height.d.ts +0 -6
- package/dist/rules/inset.d.ts +0 -9
- package/dist/rules/isolation.d.ts +0 -5
- package/dist/rules/justify-content.d.ts +0 -6
- package/dist/rules/justify-items.d.ts +0 -6
- package/dist/rules/justify-self.d.ts +0 -6
- package/dist/rules/letter-spacing.d.ts +0 -7
- package/dist/rules/line-clamp.d.ts +0 -9
- package/dist/rules/line-height.d.ts +0 -7
- package/dist/rules/lines.d.ts +0 -9
- package/dist/rules/list-style-image.d.ts +0 -6
- package/dist/rules/list-style-position.d.ts +0 -6
- package/dist/rules/list-style-type.d.ts +0 -6
- package/dist/rules/list-style.d.ts +0 -6
- package/dist/rules/margin.d.ts +0 -9
- package/dist/rules/mask-image.d.ts +0 -8
- package/dist/rules/max-height.d.ts +0 -6
- package/dist/rules/max-width.d.ts +0 -6
- package/dist/rules/min-height.d.ts +0 -6
- package/dist/rules/min-width.d.ts +0 -6
- package/dist/rules/mix-blend-mode.d.ts +0 -6
- package/dist/rules/object-fit.d.ts +0 -6
- package/dist/rules/object-position.d.ts +0 -6
- package/dist/rules/opacity.d.ts +0 -6
- package/dist/rules/order.d.ts +0 -7
- package/dist/rules/outline-color.d.ts +0 -7
- package/dist/rules/outline-offset.d.ts +0 -5
- package/dist/rules/outline-style.d.ts +0 -6
- package/dist/rules/outline-width.d.ts +0 -6
- package/dist/rules/outline.d.ts +0 -7
- package/dist/rules/overflow.d.ts +0 -9
- package/dist/rules/overscroll-behavior.d.ts +0 -8
- package/dist/rules/padding.d.ts +0 -9
- package/dist/rules/place-content.d.ts +0 -6
- package/dist/rules/place-items.d.ts +0 -6
- package/dist/rules/place-self.d.ts +0 -6
- package/dist/rules/placement.d.ts +0 -8
- package/dist/rules/pointer-events.d.ts +0 -5
- package/dist/rules/position.d.ts +0 -5
- package/dist/rules/quotes.d.ts +0 -5
- package/dist/rules/resize.d.ts +0 -5
- package/dist/rules/rx.d.ts +0 -6
- package/dist/rules/ry.d.ts +0 -6
- package/dist/rules/scroll-behavior.d.ts +0 -5
- package/dist/rules/scroll-margin.d.ts +0 -9
- package/dist/rules/scroll-padding.d.ts +0 -9
- package/dist/rules/scroll-snap-align.d.ts +0 -6
- package/dist/rules/scroll-snap-stop.d.ts +0 -6
- package/dist/rules/scroll-snap-type.d.ts +0 -6
- package/dist/rules/shape-image-threshold.d.ts +0 -6
- package/dist/rules/shape-margin.d.ts +0 -6
- package/dist/rules/shape-outside.d.ts +0 -6
- package/dist/rules/spacing.d.ts +0 -9
- package/dist/rules/stroke-dasharray.d.ts +0 -5
- package/dist/rules/stroke-dashoffset.d.ts +0 -5
- package/dist/rules/stroke-width.d.ts +0 -6
- package/dist/rules/stroke.d.ts +0 -6
- package/dist/rules/table-layout.d.ts +0 -5
- package/dist/rules/text-align.d.ts +0 -6
- package/dist/rules/text-decoration-color.d.ts +0 -7
- package/dist/rules/text-decoration-line.d.ts +0 -6
- package/dist/rules/text-decoration-style.d.ts +0 -6
- package/dist/rules/text-decoration-thickness.d.ts +0 -7
- package/dist/rules/text-decoration.d.ts +0 -8
- package/dist/rules/text-fill-color.d.ts +0 -10
- package/dist/rules/text-indent.d.ts +0 -5
- package/dist/rules/text-orientation.d.ts +0 -6
- package/dist/rules/text-overflow.d.ts +0 -6
- package/dist/rules/text-rendering.d.ts +0 -6
- package/dist/rules/text-shadow.d.ts +0 -6
- package/dist/rules/text-size.d.ts +0 -8
- package/dist/rules/text-stroke-color.d.ts +0 -10
- package/dist/rules/text-stroke-width.d.ts +0 -8
- package/dist/rules/text-stroke.d.ts +0 -8
- package/dist/rules/text-transform.d.ts +0 -6
- package/dist/rules/text-underline-offset.d.ts +0 -5
- package/dist/rules/touch-action.d.ts +0 -5
- package/dist/rules/transform-box.d.ts +0 -6
- package/dist/rules/transform-origin.d.ts +0 -7
- package/dist/rules/transform-style.d.ts +0 -6
- package/dist/rules/transform.d.ts +0 -9
- package/dist/rules/transition-delay.d.ts +0 -7
- package/dist/rules/transition-duration.d.ts +0 -7
- package/dist/rules/transition-property.d.ts +0 -6
- package/dist/rules/transition-timing-function.d.ts +0 -6
- package/dist/rules/transition.d.ts +0 -7
- package/dist/rules/user-drag.d.ts +0 -8
- package/dist/rules/user-select.d.ts +0 -8
- package/dist/rules/variable.d.ts +0 -9
- package/dist/rules/vertical-align.d.ts +0 -6
- package/dist/rules/visibility.d.ts +0 -5
- package/dist/rules/white-space.d.ts +0 -6
- package/dist/rules/width.d.ts +0 -6
- package/dist/rules/will-change.d.ts +0 -5
- package/dist/rules/word-break.d.ts +0 -6
- package/dist/rules/word-spacing.d.ts +0 -6
- package/dist/rules/writing-mode.d.ts +0 -6
- package/dist/rules/x.d.ts +0 -6
- package/dist/rules/y.d.ts +0 -6
- package/dist/rules/z-index.d.ts +0 -7
- package/dist/utils/get-border-props.d.ts +0 -3
- package/dist/utils/get-css-property-text.d.ts +0 -5
- package/dist/utils/normalize-css-calc-text.d.ts +0 -5
- package/dist/utils/parse-value-unit.d.ts +0 -2
- package/dist/utils/parse-value.d.ts +0 -6
- package/readme.md +0 -118
- /package/dist/{apis → functions}/fill-color-scale.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(()=>{var K={"(":")","'":"'",'"':'"',"{":"}"};function Z(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),n=r.length,o=-1,c="",i,u=r.charCodeAt(0);if(n==1&&u==45)return"\\"+r;for(;++o<n;){if(i=r.charCodeAt(o),i==0){c+="\uFFFD";continue}if(i>=1&&i<=31||i==127||o==0&&i>=48&&i<=57||o==1&&i>=48&&i<=57&&u==45){c+="\\"+i.toString(16)+" ";continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){c+=r.charAt(o);continue}c+="\\"+r.charAt(o)}return c}var re=/^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m;var De=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ne=class{constructor(r,n,o){this.className=r;this.css=o;Object.assign(this,n);let{id:c,definition:i}=n,{analyze:u,transformValue:s,declare:g,transformValueComponents:f,create:h,layer:b,unit:p,colored:a}=i;this.layer=b,this.colored=!!a,i.unit||(i.unit=""),i.separators||(i.separators=[","]);let{scope:m,important:l,themeDriver:t}=o.config,{selectors:d,mediaQueries:v,stylesBy:x,animations:D}=o,y=x[r];h&&h.call(this,r),this.declarations=i.declarations;let R,S;if(b===-8)R=r.slice(c.length-1);else{let O;if(u)[O,S]=u.call(this,r);else{let k=r.indexOf(":");this.prefix=r.slice(0,k+1),O=r.slice(k+1)}this.valueComponents=[],R=O.slice(this.parseValue(this.valueComponents,0,O,p,""))}R[0]==="!"&&(this.important=!0,R=R.slice(1)),this.stateToken=R;let N=(O,k)=>{let T=(C,j,V,E)=>{for(let[$,L]of j)if($.test(C)){for(let W of L)T(C.replace($,W),j,V,!0);return}E&&V.push(C)},P=C=>{let j=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((L,W)=>W%3?L:L.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),V=[],E="",$=0;for(let L=0;L<j.length;L++){let W=j[L];if(W==="\\"){E+=W+j[++L];continue}!$&&W===","?(V.push(E),E=""):(E+=W,$&&W===")"?$--:W==="("&&$++)}return E&&V.push(E),V},M=[];""in d?T(O,d[""],M,!0):M.push(O);let A={};for(let[C,j]of Object.entries(d)){if(!C)continue;let V=[];for(let E of M)T(E,j,V,!1);V.length&&(A[C]=V)}let B=(C,j)=>{let V=j.reduce((E,$)=>(E.push(...P($)),E),[]);C in k?k[C].push(...V):k[C]=V},I=Object.keys(A);if(I.length)for(let C of I)B(C,A[C]);else B("",M)};S?(this.vendorPrefixSelectors={},N(S,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let w=R.split("@"),ce=w[0];if(ce){this.vendorSuffixSelectors={},N(ce,this.vendorSuffixSelectors);for(let O of Object.values(this.vendorSuffixSelectors))for(let k of O){this.hasWhere!==!1&&(this.hasWhere=k.includes(":where("));let T=[":disabled",":active",":focus",":hover"];for(let P=0;P<T.length;P++)if(k.includes(T[P])){(this.priority===-1||this.priority>P)&&(this.priority=P);break}}}else this.vendorSuffixSelectors={"":[""]};let q={},Ne=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),fe=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(Ne)q[""]=fe?[""]:Object.keys(this.vendorSuffixSelectors);else if(fe)for(let O in this.vendorPrefixSelectors)q[O]=[""];else for(let O in this.vendorPrefixSelectors){let k=q[O]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,O))k.push(O);else for(let T in this.vendorSuffixSelectors)k.push(T)}for(let O=1;O<w.length;O++){let k=w[O];if(k)if(k==="rtl"||k==="ltr")this.direction=k;else{let T="",P,M=De.exec(k);if(M)T=M[1],P=k.slice(T.length);else{this.media={token:k,features:{}};let A=[],B=C=>{if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")A.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")A.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else{let j=v[C];if(j&&typeof j=="string")A.push(j);else{let V="",E="",$=0;C.startsWith("<=")?(E="<=",V="max-width"):C.startsWith(">=")||j?(E=">=",V="min-width"):C.startsWith(">")?(E=">",V="min-width",$=.02):C.startsWith("<")&&(E="<",V="max-width",$=-.02);let L=E?C.replace(E,""):C,W=v[L];switch(V){case"max-width":case"min-width":let U={};typeof W=="number"?U={type:"number",value:W+$,unit:"px"}:(U=this.parseValueComponent(L,"px"),U.type==="number"&&U.unit==="px"&&(U.value+=$)),this.media.features[V]=U,U.type==="number"?A.push("("+V+":"+(U.value+U.unit)+")"):A.push("("+V+":"+U.value+")");break}}}},I=k.includes("&");if(I){let C=k.split("&");for(let j of C)B(j)}else B(k);if(this.media.type&&(P=this.media.type),A.length&&(P=A.join(" and ")),P)T="media";else if(!I){this.theme=k;continue}}P&&(this.at[T]=(T in this.at?this.at[T]+" and ":"")+P.replace(/\|/g," "))}}let X;this.valueComponents&&(f&&(this.valueComponents=f.call(this,this.valueComponents)),X=this.resolveValue(this.valueComponents,p,[],!1),s&&(X=s.call(this,X)),g?this.declarations=g.call(this,X):c&&(this.declarations={[c]:X}));let se=[];for(let O in this.declarations){let k=M=>{if(D&&(M.startsWith("animation")||M.startsWith("animation-name"))){let A=M.split(":")[1].split("!important")[0].split(" ").filter(B=>B in this.css.animations&&(!this.animationNames||!this.animationNames.includes(B)));A.length&&(this.animationNames||(this.animationNames=[]),this.animationNames=A)}se.push(M+((this.important||l)&&!M.endsWith("!important")?"!important":""))},T=O+":",P=this.declarations[O];if(Array.isArray(P))for(let M of P)k(T+M.toString());else k(T+P.toString())}if(se.length)for(let O in q)for(let k of q[O]){let T="";this.direction&&(T+="[dir="+this.direction+"] ");let P=this.vendorPrefixSelectors[O],M=this.vendorSuffixSelectors[k],A=P.map(C=>C+T),B=C=>A.map(j=>(this.theme&&t!=="media"?t==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(m?m+" ":"")+j).reduce((j,V)=>(j.push(M.reduce((E,$)=>(E.push(V+"."+Z(C)+$),E),[]).join(",")),j),[]).join(","),I=B(r)+(y?y.reduce((C,j)=>C+","+B(j),""):"")+"{"+se.join(";")+"}";for(let C of Object.keys(this.at).sort((j,V)=>V==="supports"?-1:1))I="@"+C+(C.includes(" ")?"":" ")+this.at[C]+"{"+I+"}";this.theme&&t==="media"&&(I=`@media(prefers-color-scheme:${this.theme}){`+I+"}"),this.natives.push({text:I})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;animationNames;variableNames;resolveValue=(r,n,o,c)=>{let{functions:i}=this.css.config,u="";for(let s of r)switch(s.type){case"function":let g=i&&i[s.name];if(g?.transform&&!s.bypassTransform){let h=g.transform.call(this,this.resolveValue(s.children,g.unit??n,o,c||s.name==="calc"),o);u+=typeof h=="string"?h:this.resolveValue(h,g?.unit??n,o,c)}else u+=s.name+s.symbol+this.resolveValue(s.children,g?.unit??n,o,c)+K[s.symbol];break;case"variable":let f=this.css.variables[s.name];if(f){let h=(b,p)=>{if(f.themes)if(this.theme){let a=f.themes[this.theme]??f;a?.value&&b(a)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(s.name)||this.variableNames.push(s.name),p();else b(f)};switch(f.type){case"string":h(p=>{let a=[];this.parseValue(a,0,p.value,n,"",void 0,c,[...o,s.name]),u+=this.resolveValue(a,n,[...o,s.name],c)},()=>{u+=`var(--${s.name})`});break;case"number":h(p=>{if(c)u+=p.value;else{let a=this.parseValueComponent(p.value,n);u+=a.value+(a.unit??"")}},()=>{u+=n?`calc(var(--${s.name}) / 16 * 1rem)`:`var(--${s.name})`});break;case"color":let b=s.alpha?"/"+s.alpha:"";h(p=>{u+=`${p.space}(${p.value}${b})`},()=>{u+=`${f.space}(var(--${s.name})${b})`});break}}else u+=`var(--${s.name}${s.fallback?","+s.fallback:""})`;break;case"separator":u+=s.text||s.value;break;case"number":u+=s.value+(s.unit||"");break;default:u+=s.value;break}return u};get text(){return this.natives.map(r=>r.text).join("")}parseValue=(r,n,o,c,i,u,s=!1,g=[])=>{let f=u===void 0,h=!f&&(u.endsWith("$")||u.endsWith("var")),p=(t=>t==="'"||t==='"')(i),a=[","];this.definition.separators?.length&&a.push(...this.definition.separators);let m="",l=()=>{if(m){let t=!1;if(!h||r.length){let d=(v,x)=>{let D=Object.prototype.hasOwnProperty.call(this.variables,v)?this.variables[v]:Object.prototype.hasOwnProperty.call(this.css.variables,v)?this.css.variables[v]:void 0;if(D){let y=D.name??v;if(!g.includes(y)){t=!0;let R={type:"variable",name:y,variable:this.css.variables[y]};x&&(R.alpha=x),r.push(R)}}};if(d(m),!t&&this.colored){let[v,x]=m.split("/");d(v,x)}}if(!t){if(!h){let d=re.exec(m);d&&(m=(+d[1]*(this.css.config.baseUnit??1)).toString())}s?r.push({type:"string",value:m}):r.push(this.parseValueComponent(m,c))}m=""}};for(;n<o.length;n++){let t=o[n];if(t===i){if(p){let d=0;for(let v=m.length-1;m[v]==="\\";v--)d++;if(d%2){m+=t;continue}else l()}else l();return n}else if(!p&&t in K){let d=m,v={type:"function",name:d,symbol:t,children:[]};r.push(v),m="";let x=t==="("?this.css.config.functions?.[d]:void 0;!this.colored&&x?.colored&&(this.colored=!0),n=this.parseValue(v.children,++n,o,x?.unit??c,K[t],d||u||"",s||d==="calc")}else if((t==="|"||t===" ")&&i!=="}"&&(!p||u==="path"))l(),r.push({type:"separator",value:" "});else{if(!p){if(t===".")if(isNaN(+o[n+1])){if(f)break}else o[n-1]==="-"&&(m+="0");else if(a.includes(t)){l(),r.push({type:"separator",value:t,text:(t===","?"":" ")+t+(t===","?"":" ")});continue}else if(f&&(t==="#"&&(m||r.length&&r[r.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(t)))break}m+=t}}return l(),n};parseValueComponent(r,n=this.definition.unit){let o=n??this.definition.unit,c="",i;if(typeof r=="number")return o&&!c?((o==="rem"||o==="em")&&(i=r/(this.css.config.rootSize||1)),c=o||""):i=r,{value:i,unit:c,type:"number"};if(o){if(/^\d+\/\d+/.test(r)){let[s,g]=r.split("/");return{value:+s/+g*100,unit:"%",type:"number"}}let u=r.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(u)return i=+u[1],c=u[3]||"",c||((o==="rem"||o==="em")&&(i=i/(this.css.config.rootSize||1)),c=o||""),{value:i,unit:c,type:"number"}}return{value:r,type:"string"}}};var we={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ue=we;var ke={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},de=ke;var Ve={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},he=Ve;var Oe={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"}}},me=Oe;function Y(e){e.startsWith("#")&&(e=e.slice(1));let r,n,o,c;return e.length===3||e.length===4?(r=parseInt(e[0]+e[0],16),n=parseInt(e[1]+e[1],16),o=parseInt(e[2]+e[2],16),c=e.length===4?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(e.length===6||e.length===8)&&(r=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16),c=e.length===8?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[r,n,o,c]}function pe(e,r,n){return((1<<24)+(e<<16)+(r<<8)+n).toString(16).slice(1)}function z(e){typeof e=="string"&&(e={"":e});let r=""in e,n=!1;for(let o in e)if(o&&+o>=100){n=!0;break}if(!n&&(!r||Object.keys(e).length>1)){let o=0,c="0"in e?Y(e[0]):[0,0,0],i,u,s=[],g=()=>{let f=i-o,h=u.map((b,p)=>(b-c[p])/f);for(let b of s){let p=b-o,a=c.map((m,l)=>Math.round(m+h[l]*p));e[b]="#"+pe(a[0],a[1],a[2])}};for(let f=1;f<100;f++)f in e?(s.length?(i=f,u=Y(e[f]),g(),s.length=0,c=u):c=Y(e[f]),o=f):s.push(f);s.length&&(i=100,u="100"in e?Y(e[100]):[255,255,255],g())}return r||(e[""]=e[n?"500":"50"]),e}var je={"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"]},"box-size":{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"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",black:"#000000"},black:"#000000",white:"#ffffff",current:"currentColor",slate:z({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:z({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:z({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:z({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:z({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:z({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:z({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:z({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:z({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:z({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:z({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:z({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:z({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:z({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:z({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:z({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:z({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:z({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:z({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:z({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},ge=je;var _=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],H=function(e){return e.length<2||e.find(n=>n.type==="string"&&_.includes(n.value)||n.type==="variable"&&_.includes(n.variable?.value))||e.push({type:"separator",value:" "},{type:"string",value:"solid"}),e},Ee={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(e){let r=0;for(;r<e.length&&!(e[r]==="{"&&e[r-1]!=="\\");r++);return[e.slice(r),e.slice(0,r)]},declare(e){let r={},n=g=>{let f=g.indexOf(":");if(f!==-1){let h=g.slice(0,f);r[h]=g.slice(f+1)}},o=g=>{let f=h=>{let b=h.slice(Z(g.className).length).match(/\{(.*)\}/)?.[1].split(";");if(b)for(let p of b)n(p)};for(let h of g.natives)f(h.text);if(g.animationNames){this.animationNames||(this.animationNames=[]);for(let h of g.animationNames)this.animationNames.includes(h)||this.animationNames.push(h)}if(g.variableNames){this.variableNames||(this.variableNames=[]);for(let h of g.variableNames)this.variableNames.includes(h)||this.variableNames.push(h)}},c=[],i="",u=()=>{i&&(c.push(i.replace(/ /g,"|")),i="")},s=1;(function g(f){for(;s<e.length;s++){let h=e[s];if(!f){if(h===";"){u();continue}if(h==="}")break}if(i+=h,f===h){if(f==="'"||f==='"'){let b=0;for(let p=i.length-2;i[p]==="\\";p--)b++;if(b%2)continue}break}else h in K&&f!=="'"&&f!=='"'&&(s++,g(K[h]))}})(""),u();for(let g of c){let f=this.css.generate(g);if(f.length)for(let h of f)o(h);else n(g)}return r}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},"font-size":{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-3},"font-weight":{match:["f(?:ont)?",["bolder"]],layer:-3},"font-family":{match:["f(?:ont)?"],layer:-3},"font-smoothing":{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-3,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":{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-3,unit:"deg"},"font-variant-numeric":{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-3},"font-variant":{layer:-7},"font-feature-settings":{match:/^font-feature:/,layer:-3},font:{match:/^f:/,layer:-7,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},color:{match:/^(?:color|fg|foreground):/,layer:-3,colored:!0,variables:["foreground"]},"margin-left":{match:/^ml:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-right":{match:/^mr:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-top":{match:/^mt:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-bottom":{match:/^mb:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-x":{match:/^(?:mx|margin-x):/,unit:"rem",layer:-5,declare(e){return{"margin-left":e,"margin-right":e}},variables:["spacing"]},"margin-y":{match:/^(?:my|margin-y):/,unit:"rem",layer:-5,declare(e){return{"margin-top":e,"margin-bottom":e}},variables:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-7,variables:["spacing"]},"margin-inline-start":{match:/^mis:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline-end":{match:/^mie:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline":{match:/^mi:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-left":{match:/^pl:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-right":{match:/^pr:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-top":{match:/^pt:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-bottom":{match:/^pb:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-x":{match:/^(?:px|padding-x):/,unit:"rem",layer:-5,declare(e){return{"padding-left":e,"padding-right":e}},variables:["spacing"]},"padding-y":{match:/^(?:py|padding-y):/,unit:"rem",layer:-5,declare(e){return{"padding-top":e,"padding-bottom":e}},variables:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-inline-start":{match:/^pis:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline-end":{match:/^pie:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline":{match:/^pi:/,unit:"rem",layer:-7,variables:["spacing"]},"flex-basis":{variables:["box-size"],unit:"rem",layer:-3},"flex-wrap":{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-3},"flex-grow":{layer:-3},"flex-shrink":{layer:-3},"flex-direction":{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-3},flex:{layer:-7},display:{match:/^d:/,layer:-3},width:{match:/^w:/,unit:"rem",layer:-3,variables:["box-size"]},height:{match:/^h:/,unit:"rem",layer:-3,variables:["box-size"]},"min-width":{match:/^min-w:/,unit:"rem",layer:-3,variables:["box-size"]},"min-height":{match:/^min-h:/,unit:"rem",layer:-3,variables:["box-size"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[r,n]=e.split(" x ");return{width:r,height:n}}},"min-box":{match:/^min:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[r,n]=e.split(" x ");return{"min-width":r,"min-height":n}}},"max-box":{match:/^max:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[r,n]=e.split(" x ");return{"max-width":r,"max-height":n}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["box-size",["slice","clone"]],layer:-3,declare(e){return{"box-decoration-break":e,"-webkit-box-decoration-break":e}}},contain:{layer:-3},content:{layer:-3},"counter-increment":{layer:-3},"counter-reset":{layer:-3},"letter-spacing":{match:/^ls:/,layer:-3,unit:"em"},"line-height":{match:/^lh:/,layer:-3},"object-fit":{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-3},"object-position":{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-3},"text-align":{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-3},"text-decoration-color":{match:["text-decoration"],layer:-3,colored:!0,variables:["foreground"]},"text-decoration-style":{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-3},"text-decoration-thickness":{match:["text-decoration",["from-font"]],numeric:!0,layer:-3,unit:"em"},"text-decoration-line":{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-3},"text-decoration":{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-7,variables:["foreground"]},"text-underline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"text-overflow":{match:["t(?:ext)?",["ellipsis","clip"]],layer:-3},"text-orientation":{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-3},"text-transform":{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-3},"text-rendering":{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-3},"text-indent":{unit:"rem",layer:-3},"vertical-align":{match:/^(?:v|vertical):/,layer:-3},columns:{match:/^(?:columns|cols):/,layer:-7},"white-space":{layer:-3},top:{layer:-3,unit:"rem",variables:["spacing"]},bottom:{layer:-3,unit:"rem",variables:["spacing"]},left:{layer:-3,unit:"rem",variables:["spacing"]},right:{layer:-3,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-7,variables:["spacing"]},lines:{match:/^lines:/,declare(e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e}}},"max-height":{match:/^max-h:/,unit:"rem",layer:-3,variables:["box-size"]},"max-width":{match:/^max-w:/,unit:"rem",layer:-3,variables:["box-size"]},opacity:{layer:-3},visibility:{layer:-3},clear:{layer:-3},float:{layer:-3},isolation:{layer:-3},"overflow-x":{layer:-3,declare(e){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},"overflow-y":{layer:-3,declare(e){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-7,declare(e){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},"overscroll-behavior-x":{layer:-3},"overscroll-behavior-y":{layer:-3},"overscroll-behavior":{layer:-7},"z-index":{match:/^z:/,layer:-3},position:{layer:-3},cursor:{layer:-3},"pointer-events":{layer:-3},resize:{layer:-3},"touch-action":{layer:-3},"word-break":{layer:-3},"word-spacing":{layer:-3,unit:"em"},"user-drag":{layer:-3,declare(e){return{"user-drag":e,"-webkit-user-drag":e}}},"user-select":{layer:-3,declare(e){return{"user-select":e,"-webkit-user-select":e}}},"text-shadow":{unit:"rem",layer:-3,colored:!0},"text-size":{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(e){return{"font-size":e,"line-height":`calc(${e} + ${.875}em)`}}},"text-fill-color":{match:["(?:text-fill|text|t)"],layer:-3,colored:!0,variables:["foreground"],declare(e){return{"-webkit-text-fill-color":e}}},"text-stroke-width":{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-3,declare(e){return{"-webkit-text-stroke-width":e}}},"text-stroke-color":{match:["text-stroke"],layer:-3,colored:!0,variables:["foreground"],declare(e){return{"-webkit-text-stroke-color":e}}},"text-stroke":{unit:"rem",layer:-3,declare(e){return{"-webkit-text-stroke":e}}},"box-shadow":{match:/^s(?:hadow)?:/,unit:"rem",layer:-3,colored:!0},"table-layout":{layer:-3},"transform-box":{match:["transform"],layer:-3},"transform-style":{match:["transform",["flat","preserve-3d"]],layer:-3},"transform-origin":{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-3},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-3,analyze(e){return[e.startsWith("transform")?e.slice(10):e]},variables:["spacing"]},"transition-property":{match:/^~property:/,layer:-3},"transitionTiming-function":{match:/^~easing:/,layer:-3},"transition-duration":{match:/^~duration:/,layer:-3,unit:"ms"},"transition-delay":{match:/^~delay:/,layer:-3,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let r=e.indexOf(":");return this.prefix=e.slice(0,r+1),[e.slice(r+1)]}},layer:-7},"animation-delay":{match:/^@delay:/,layer:-3,unit:"ms"},"animation-direction":{match:/^@direction:/,layer:-3},"animation-duration":{match:/^@duration:/,layer:-3,unit:"ms"},"animation-fill-mode":{match:/^@fill:/,layer:-3},"animation-iteration-count":{match:/^@iteration:/,layer:-3},"animation-name":{match:/^@name:/,layer:-3},"animation-play-state":{match:/^@play:/,layer:-3},"animation-timing-function":{match:/^@easing:/,layer:-3},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-7,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let r=e.indexOf(":");return this.prefix=e.slice(0,r+1),[e.slice(r+1)]}}},"border-collapse":{match:["b(?:order)?",["collapse","separate"]],layer:-3},"border-spacing":{unit:"rem",layer:-3},"border-top-color":{match:["b(?:t|order-top(?:-color)?)"],layer:-3,colored:!0},"border-bottom-color":{match:["b(?:b|order-bottom(?:-color)?)"],layer:-3,colored:!0},"border-left-color":{match:["b(?:l|order-left(?:-color)?)"],layer:-3,colored:!0},"border-right-color":{match:["b(?:r|order-right(?:-color)?)"],layer:-3,colored:!0},"border-x-color":{match:["b(?:x|order-x(?:-color)?)"],layer:-5,colored:!0,declare(e){return{"border-left-color":e,"border-right-color":e}}},"border-y-color":{match:["b(?:y|order-y(?:-color)?)"],layer:-5,colored:!0,declare(e){return{"border-top-color":e,"border-bottom-color":e}}},"border-color":{match:["b(?:order)?(?:-color)?"],layer:-7,colored:!0},"border-top-left-radius":{match:/^r(?:tl|lt):/,unit:"rem",layer:-3},"border-top-right-radius":{match:/^r(?:tr|rt):/,unit:"rem",layer:-3},"border-bottom-left-radius":{match:/^r(?:bl|lb):/,unit:"rem",layer:-3},"border-bottom-right-radius":{match:/^r(?:br|rb):/,unit:"rem",layer:-3},"border-top-radius":{match:/^rt:/,unit:"rem",layer:-5,declare(e){return{"border-top-left-radius":e,"border-top-right-radius":e}}},"border-bottom-radius":{match:/^rb:/,unit:"rem",layer:-5,declare(e){return{"border-bottom-left-radius":e,"border-bottom-right-radius":e}}},"border-left-radius":{match:/^rl:/,unit:"rem",layer:-5,declare(e){return{"border-top-left-radius":e,"border-bottom-left-radius":e}}},"border-right-radius":{match:/^rr:/,unit:"rem",layer:-5,declare(e){return{"border-top-right-radius":e,"border-bottom-right-radius":e}}},"border-radius":{match:/^r:/,unit:"rem",layer:-7},"border-top-style":{match:["b(?:t|order-top(?:-style)?)",_],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",_],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",_],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",_],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",_],layer:-5,declare(e){return{"border-left-style":e,"border-right-style":e}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",_],layer:-5,declare(e){return{"border-top-style":e,"border-bottom-style":e}}},"border-style":{match:["b(?:order)?(?:-style)?",_],layer:-7},"border-top-width":{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-bottom-width":{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-left-width":{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-right-width":{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-x-width":{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e){return{"border-left-width":e,"border-right-width":e}}},"border-y-width":{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e){return{"border-top-width":e,"border-bottom-width":e}}},"border-width":{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-7},"border-image-outset":{unit:"rem",layer:-3},"border-image-repeat":{match:["border-image",["stretch","repeat","round","space"]],layer:-3},"border-image-slice":{layer:-3},"border-image-source":{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-3},"border-image-width":{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-3},"border-image":{layer:-7},"border-top":{match:/^bt:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:H},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:H},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:H},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:H},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:H,declare(e){return{"border-left":e,"border-right":e}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:H,declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:H},"background-attachment":{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-3},"background-blend-mode":{layer:-3},"background-color":{match:["(?:bg|background)"],layer:-3,colored:!0},"background-clip":{match:["(?:bg|background)",["text"]],layer:-3,declare(e){return{"-webkit-background-clip":e,"background-clip":e}}},"background-origin":{match:["(?:bg|background)"],layer:-3},"background-position":{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-3,unit:"px"},"background-repeat":{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-3},"background-size":{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-3},"background-image":{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},background:{match:/^bg:/,colored:!0,layer:-7},gradient:{match:/^gradient\(/,layer:-3,colored:!0,declare(e){return{"background-image":"linear-"+e}}},"mix-blend-mode":{match:/^blend:/,layer:-3},"backdrop-filter":{match:/^bd:/,layer:-3,colored:!0,declare(e){return{"backdrop-filter":e,"-webkit-backdrop-filter":e}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-3,colored:!0},fill:{match:/^fill:/,layer:-3,colored:!0,variables:["foreground"]},"stroke-dasharray":{layer:-3},"stroke-dashoffset":{layer:-3,variables:["spacing"]},"stroke-width":{match:["stroke(?:-width)?"],numeric:!0,layer:-3},stroke:{match:["stroke"],layer:-3,colored:!0,variables:["foreground"]},x:{layer:-3,variables:["spacing"]},y:{layer:-3,variables:["spacing"]},cx:{layer:-3,variables:["spacing"]},cy:{layer:-3,variables:["spacing"]},rx:{layer:-3},ry:{layer:-3},"grid-column-start":{match:/^grid-col-start:/,layer:-3},"grid-column-end":{match:/^grid-col-end:/,layer:-3},"grid-column":{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-columns":{match:/^grid-cols:/,declare(e){return{display:"grid","grid-template-columns":"repeat("+e+",minmax(0,1fr))"}},layer:-1},"grid-row-start":{layer:-3},"grid-row-end":{layer:-3},"grid-row":{match:/^grid-row-span:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-rows":{match:/^grid-rows:/,declare(e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+",minmax(0,1fr))"}},layer:-1},"grid-auto-columns":{match:/^grid-auto-cols:/,layer:-3,variables:["box-size"]},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3,variables:["box-size"]},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem",variables:["box-size"]},"grid-template-rows":{layer:-3,unit:"rem",variables:["box-size"]},"grid-template":{layer:-7},"grid-area":{layer:-7},grid:{layer:-7},"column-gap":{match:/^gap-x:/,unit:"rem",layer:-3,variables:["spacing"]},"row-gap":{match:/^gap-y:/,unit:"rem",layer:-3,variables:["spacing"]},gap:{unit:"rem",layer:-7,variables:["spacing"]},order:{match:/^o:/,layer:-3},"break-inside":{layer:-3},"break-before":{layer:-3},"break-after":{layer:-3},"aspect-ratio":{match:/^aspect:/,layer:-3},"column-span":{match:/^col-span:/,layer:-3},"align-content":{match:/^ac:/,layer:-3},"align-items":{match:/^ai:/,layer:-3},"align-self":{match:/^as:/,layer:-3},"justify-content":{match:/^jc:/,layer:-3},"justify-items":{match:/^ji:/,layer:-3},"justify-self":{match:/^js:/,layer:-3},"place-content":{layer:-7},"place-items":{layer:-7},"place-self":{layer:-7},"list-style-position":{match:["list-style",["inside","outside"]],layer:-3},"list-style-type":{match:["list-style",["disc","decimal"]],layer:-3},"list-style-image":{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},"list-style":{layer:-7},"outline-color":{match:["outline"],layer:-3,colored:!0},"outline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"outline-style":{match:["outline",_],layer:-3},"outline-width":{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-3},outline:{unit:"rem",layer:-7,colored:!0,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:H},"accent-color":{match:/^accent:/,layer:-3,colored:!0,variables:["foreground"]},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0,variables:["foreground"]},"scroll-behavior":{layer:-3},"scroll-margin-left":{match:/^scroll-ml:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-right":{match:/^scroll-mr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-top":{match:/^scroll-mt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{match:/^scroll-mb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-x":{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-5,declare(e){return{"scroll-margin-left":e,"scroll-margin-right":e}},variables:["spacing"]},"scroll-margin-y":{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-5,declare(e){return{"scroll-margin-top":e,"scroll-margin-bottom":e}},variables:["spacing"]},"scroll-margin":{match:/^scroll-m:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-padding-left":{match:/^scroll-pl:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-right":{match:/^scroll-pr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-top":{match:/^scroll-pt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{match:/^scroll-pb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-x":{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-5,declare(e){return{"scroll-padding-left":e,"scroll-padding-right":e}},variables:["spacing"]},"scroll-padding-y":{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-5,declare(e){return{"scroll-padding-top":e,"scroll-padding-bottom":e}},variables:["spacing"]},"scroll-padding":{match:/^scroll-p:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-snap-align":{match:["scroll-snap",["start","end","center"]],layer:-3},"scroll-snap-stop":{match:["scroll-snap",["normal","always"]],layer:-3},"scroll-snap-type":{match:["scroll-snap",["x","y","block","inline","both"]],layer:-3},"will-change":{layer:-3},"writing-mode":{match:/^writing:/,layer:-3},direction:{layer:-3},"shape-outside":{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-3},"shape-margin":{match:["shape"],numeric:!0,unit:"rem",layer:-3,variables:["spacing"]},"shape-image-threshold":{layer:-3},"clip-path":{match:/^clip:/,layer:-3},quotes:{layer:-3},"mask-image":{layer:-3,declare(e){return{"mask-image":e,"-webkit-mask-image":e}}}},ye=Ee;var oe={$:{colored:!0,transform(e){let r,n,o=e.indexOf(",");return o!==-1?(r=e.slice(0,o),n=e.slice(o+1)):r=e,[{type:"variable",name:r,fallback:n}]}},calc:{transform(e,r){let n=[],o=0,c=(i,u,s,g,f)=>{let h=n!==i,b=[],p=!1,a=!1,m=!1,l=!1,t,d="",v=(y,R="",S="")=>{if(t===!1&&y!==" "&&this.definition.unit&&(t=void 0,l||x()),d){if(!f){let N=re.exec(d);N&&(d=(+N[1]*(this.css.config.baseUnit??1)).toString())}if(!p&&!s){let N=this.parseValueComponent(d);if(!a&&isNaN(+d)&&N.type==="number"&&N.unit!=="%"&&(a=!0),l)isNaN(+d)?N.type==="number"?(i.push(N),N.unit!=="%"&&(m=!0)):i.push(N):i.push({type:"number",value:+d});else if(h){let w={type:"string",value:d};b.push(w),i.push(w)}else i.push(N)}else i.push({type:"string",value:d});d=""}y&&((y==="+"||y==="-")&&D(),R&&e[o-1]===" "&&(R=""),S&&e[o+1]===" "&&(S=""),u?i.push({type:"separator",value:y,text:y}):i.push({type:"separator",value:y,text:R+y+S})),p=!1},x=()=>{(this.definition.unit==="rem"||this.definition.unit==="em")&&i.push({type:"separator",value:"/",text:" / "},{type:"number",value:this.css.config.rootSize}),i.push({type:"separator",value:"*",text:" * "},{type:"number",value:1,unit:this.definition.unit})},D=()=>{l&&!m&&!g&&(!h||a)&&x(),l=!1,m=!1};for(;o<e.length;o++){let y=e[o];if(y==="("){let R=/^([+-])/.exec(d);R&&i.push({type:"string",value:R[1]});let S=R?d.slice(1):d,N={type:"function",name:S,symbol:y,children:[],bypassTransform:S==="calc"};i.push(N),d="",o++;let w=S==="$"||S==="var";t=c(N.children,S!==""&&S!=="calc"&&(w||Object.prototype.hasOwnProperty.call(oe,S)),p||w||l&&m,l,w),!t&&S==="$"&&(t=this.css.variables[N.children[0].value]?.type==="string"),t&&(a=!0,m=!0)}else if(y===")"){if(v(""),a)for(let R of b)Object.assign(R,this.parseValueComponent(R.value));return a}else if(y===",")v(y,""," ");else if(y===" ")v(y);else{let R=e[o-1];switch(y){case"+":!d&&R!==")"?d+=y:v(y," "," ");break;case"-":!d&&R!==")"?d+=y:v(y," "," ");break;case"*":this.definition.unit&&(l=!0),v(y," "," ");break;case"/":this.definition.unit&&(l=!0),v(y," "," "),p=!0;break;default:d+=y;break}}}v(""),D()};return c(n,!1,!1,!1,!1),"calc("+this.resolveValue(n,oe.calc.unit??this.definition.unit,r,!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:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},be=oe;var F={mediaQueries:ue,selectors:de,semantics:he,rules:ye,functions:be,animations:me,variables:ge,scope:"",rootSize:16,baseUnit:4,override:!1,important:!1,themeDriver:"class"};function G(e,r=""){return Object.entries(e).reduce((n,[o,c])=>{let i=r?`${r}${o?"-"+o:""}`:o;return typeof c=="object"&&!Array.isArray(c)?Object.assign(n,G(c,i)):n[i]=c,n},{})}function Re(e){let r=typeof Buffer<"u"?Buffer:null;return!!(r&&e instanceof r||e instanceof Date||e instanceof RegExp)}function xe(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let r=Buffer.alloc(e.length);return e.copy(r),r}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function Ce(e){let r=[];return e.forEach(function(n,o){typeof n=="object"&&n!==null?Array.isArray(n)?r[o]=Ce(n):Re(n)?r[o]=xe(n):r[o]=Q({},n):r[o]=n}),r}function ve(e,r){return r==="__proto__"?void 0:e[r]}function Q(...e){let r={},n,o;return e.forEach(function(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(i){if(o=ve(r,i),n=ve(c,i),n!==r)if(typeof n!="object"||n===null){r[i]=n;return}else if(Array.isArray(n)){r[i]=Ce(n);return}else if(Re(n)){r[i]=xe(n);return}else if(typeof o!="object"||o===null||Array.isArray(o)){r[i]=Q({},n);return}else{r[i]=Q(o,n);return}})}),r}function J(...e){let r=c=>{let i=Q({},c),u=s=>{for(let g in s){let f=s[g];typeof f=="object"&&!Array.isArray(f)?u(f):g&&!g.startsWith("@")&&(s[g]={"":f})}};return i.styles?u(i.styles):i.styles={},i.mediaQueries?u(i.mediaQueries):i.mediaQueries={},i.variables?u(i.variables):i.variables={},i},n=[];for(let c of e)(function i(u){if(u.extends?.length)for(let s of u.extends)i("config"in s?s.config:s);n.push(r(u))})(c);let o=n[0];for(let c=1;c<n.length;c++){let i=n[c];o=Q(o,i),Object.prototype.hasOwnProperty.call(i,"animations")&&o.animations&&Object.assign(o.animations,i.animations)}return o}var ee=class e{constructor(r=F){this.customConfig=r;r?.override?this.config=J(r):this.config=J(F,r),this.resolve(),this.constructor===e&&ae.push(this)}static config=F;rules=[];ruleBy={};classesUsage={};config;RegisteredSemanticRules=[];RegisteredRules=[];resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.RegisteredRules.length=0,this.RegisteredSemanticRules.length=0,this.variablesNativeRules={},this.hasKeyframesRule=!1;let r={current:void 0,currentColor:void 0,transparent:void 0},{styles:n,selectors:o,variables:c,semantics:i,mediaQueries:u,rules:s,animations:g}=this.config;function f(a){return a.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(o){let a=G(o);for(let m in a){let l=a[m],t=new RegExp(f(m)+"(?![a-z-])");for(let d of Array.isArray(l)?l:[l]){let v=d.match(/^::-[a-z]+-/m)?.[0]??"",x=this.selectors[v];x||(x=this.selectors[v]=[]);let D=x.find(([y])=>y===t);D||(D=[t,[]],x.push(D)),D[1].push(d)}}}if(c){let a={},m=(l,t,d)=>{if(!l)return;let v=(D,y,R,S)=>{if(y===void 0)return;if(y.type==="color"){if(S){let w=y.value.indexOf("/");y={...y,value:w===-1?y.value+" / "+(S.startsWith("0.")?S.slice(1):S):y.value.slice(0,w+2)+(+y.value.slice(w+2)*+S).toString().slice(1)}}r[D]=void 0}let N=R??d;if(N!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,D)){let w=this.variables[D];N?(w.themes||(w.themes={}),w.themes[N]=y):(w.value=y.value,y.type==="color"&&(w.space=y.space))}else if(N){let w={type:y.type,themes:{[N]:y}};y.type==="color"&&(w.space=y.space),this.variables[D]=w}else this.variables[D]=y;else this.variables[D]=y},x=typeof l;if(x==="object")if(Array.isArray(l))v(t,{type:"string",value:l.join(",")});else{let D=Object.keys(l);for(let y of D)y===""||y.startsWith("@")?m(l[y],t,y||D.some(R=>R.startsWith("@"))?y.slice(1):void 0):m(l[y],t+"-"+y,void 0)}else if(x==="number")v(t,{type:"number",value:l}),v("-"+t,{type:"number",value:l*-1});else if(x==="string"){let D=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(l);if(D)Object.prototype.hasOwnProperty.call(a,t)||(a[t]={}),a[t][d]=()=>{delete a[t][d];let[y,R]=D[1].split("@");if(y){if(Object.prototype.hasOwnProperty.call(a,y))for(let N of Object.keys(a[y]))a[y][N]?.();let S=this.variables[y];if(S)if(R===void 0&&S.themes){v(t,{type:S.type,value:S.value,space:S.space},"",D[2]);for(let N in S.themes)v(t,S.themes[N],N,D[2])}else{let N=R!==void 0?S.themes?.[R]:S;if(N){let w={type:N.type,value:N.value};N.type==="color"&&(w.space=N.space),v(t,w,void 0,D[2])}}}};else{let y=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(l);if(y){let[R,S,N,w]=Y(y[1]);v(t,{type:"color",value:`${R} ${S} ${N}${w===1?"":" / "+w}`,space:"rgb"})}else{let R=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(l);if(R)v(t,{type:"color",value:R[1]+" "+R[2]+" "+R[3]+(R[4]?" / "+(R[4].startsWith("0.")?R[4].slice(1):R[4]):""),space:"rgb"});else{let S=/^hsl\((.*?)\)$/.exec(l);S?v(t,{type:"color",value:S[1],space:"hsl"}):v(t,{type:"string",value:l})}}}}};for(let l in c)m(c[l],l);for(let l of Object.keys(a))for(let t of Object.keys(a[l]))a[l][t]?.()}if(u&&(this.mediaQueries=G(u)),g)for(let a in g){let m=this.animations[a]={},l=g[a];for(let t in l){let d=m[t]={},v=l[t];for(let x in v)d[x]=v[x]}}let h=n?G(n):{},b=Object.keys(h),p=a=>{if(Object.prototype.hasOwnProperty.call(this.styles,a))return;let m=this.styles[a]=[],l=h[a];if(!l)return;let t=l.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let d of t){let v=x=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,x)){let D=this.stylesBy[x];D.includes(a)||D.push(a)}else this.stylesBy[x]=[a];m.includes(x)||m.push(x)};if(b.includes(d)){p(d);for(let x of this.styles[d])v(x)}else v(d)}};for(let a of b)p(a);if(i&&Object.entries(i).sort((a,m)=>a[0].localeCompare(m[0])).forEach(([a,m],l)=>{this.RegisteredSemanticRules.push({id:"."+a,match:new RegExp("^"+f(a)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:l,definition:{declarations:m,layer:-8}})}),s){let a=Object.entries(s).sort((t,d)=>t[1].layer!==d[1].layer?(d[1].layer||0)-(t[1].layer||0):d[0].localeCompare(t[0])),m=a.length,l=Object.keys(r);a.forEach(([t,d],v)=>{let x={id:t,variables:{},order:this.RegisteredSemanticRules.length+m-1-v,definition:d};this.RegisteredRules.push(x);let D=d.match,y=R=>{for(let S in this.variables)if(S.startsWith(R+"-")||S.startsWith("-"+R+"-")){let N=S.slice(R.length+(R.startsWith("-")?0:1));x.variables[N]={...this.variables[S],name:S}}};if(d.variables)for(let R of d.variables)y(R);if(y(t),D)if(Array.isArray(D)){let[R,S=[]]=D,N=[];S.length&&N.push(`(?:${S.join("|")})(?![a-zA-Z0-9-])`),Object.keys(x.variables).length&&N.push(`(?:${Object.keys(x.variables).join("|")})(?![a-zA-Z0-9-])`),d.colored&&N.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${l.join("|")})(?![a-zA-Z0-9-])`),d.numeric&&N.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),N.length&&(x.match=new RegExp(`^${R}:(?:${N.join("|")})[^|]*?(?:@|$)`))}else x.match=D})}}match(r){for(let n of this.RegisteredRules)if(n.match?.test(r)||(n.definition.layer===-2||n.definition.layer===-6||n.definition.layer===-3||n.definition.layer===-7)&&r.startsWith(n.id+":"))return n;for(let n of this.RegisteredSemanticRules)if(n.match?.test(r))return n}generate(r){return(Object.prototype.hasOwnProperty.call(this.styles,r)?this.styles[r].map(n=>this.create(n)):[this.create(r)]).filter(n=>n&&n.text)}create(r){if(Object.prototype.hasOwnProperty.call(this.ruleBy,r))return this.ruleBy[r];let n=this.match(r);if(n)return new ne(r,n,this)}refresh(r=this.customConfig){r?.override?this.config=J(r):this.config=J(F,r),this.resolve(),this.rules.length=0,this.ruleBy={};for(let n in this.classesUsage)this.add(n);return this}reset(){this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules={};for(let r in this.animations){let n=this.animations[r];n.usage=0,n.native=void 0}for(let r in this.variables){let n=this.variables[r];n.usage=0}return this}destroy(){return this.reset(),ae.splice(ae.indexOf(this),1),this}add(...r){for(let n of r){let o=this.generate(n);if(o.length)for(let c of o)this.insert(c)}return this}delete(...r){let n=this.style?.sheet,o=c=>{let i=this.ruleBy[c];if(!(!i||Object.prototype.hasOwnProperty.call(this.stylesBy,c)&&this.stylesBy[c].some(u=>Object.prototype.hasOwnProperty.call(this.classesUsage,u)))){if(n&&i.natives.length){let u=i.natives[0];for(let s=0;s<n.cssRules.length;s++)if(n.cssRules[s]===u.cssRule){for(let f=0;f<i.natives.length;f++)n.deleteRule(s);break}}if(this.rules.splice(this.rules.indexOf(i),1),delete this.ruleBy[c],i.variableNames)for(let u of i.variableNames){let s=this.variables[u];if(s.usage||(s.usage=0),!--s.usage){let g=f=>{let h=this.variablesNativeRules[f];if(h.cssRule.style.removeProperty("--"+u),!h.cssRule.style.length){let b=this.rules[0],p=b.natives.indexOf(h);n?.deleteRule(p),b.natives.splice(p,1),delete this.variablesNativeRules[f],b.natives.length||(this.rules.splice(0,1),this.variablesNativeRules={})}};if(s.value&&g(""),s.themes)for(let f in s.themes)g(f)}}if(i.animationNames){let u=Object.keys(this.variablesNativeRules).length?1:0,s=this.rules[u];for(let g of i.animationNames){let f=this.animations[g];if(f.usage||(f.usage=0),!--f.usage&&f.native){let h=s.natives.indexOf(f.native);this.style.sheet?.deleteRule(Object.keys(this.variablesNativeRules).length+h),s.natives.splice(h,1),f.native=void 0}}s.natives.length||(this.rules.splice(u,1),this.hasKeyframesRule=!1)}i.definition.delete?.call(i,c)}};for(let c of r)if(Object.prototype.hasOwnProperty.call(this.styles,c)){for(let i of this.styles[c])Object.prototype.hasOwnProperty.call(this.classesUsage,i)||o(i);delete this.ruleBy[c]}else o(c)}insert(r){if(this.ruleBy[r.className])return;let n,o=this.rules.length-1,{media:c,order:i,priority:u,hasWhere:s,className:g}=r,f=(p,a,m)=>{let l=p;for(;l<=o;l++){let t=this.rules[l];if(a?.(t))return m?-1:l-1;if(m?.(t))return l}return m?-1:l-1},h,b;if(c){let p=this.rules.findIndex(a=>a.media);if(p===-1)n=o+1;else{let{"max-width":a,"min-width":m}=c.features;if(a||m){let l=this.rules.findIndex(t=>t.media?.features["max-width"]||t.media?.features["min-width"]);if(l===-1)n=o+1;else if(a&&m){if(u===-1?(h=f(l,t=>t.priority!==-1,t=>t.media.features["max-width"]&&t.media.features["min-width"]),b=f(l,t=>t.priority!==-1)):(h=f(l,void 0,t=>t.media.features["max-width"]&&t.media.features["min-width"]&&t.priority!==-1),b=o),h!==-1){let t=a.value-m.value,d=b,v=h;for(h=void 0;d>=v;d--){let{"max-width":x,"min-width":D}=this.rules[d].media.features,y=x.value-D.value;if(y<t)b=d-1;else if(y===t)h=d;else break}}if(h!==-1&&h!==void 0){let t=a.value-m.value;for(let d=b;d>=h;d--){let{"max-width":v,"min-width":x}=this.rules[d].media.features,D=v.value-x.value;if(D<t)b=d-1;else if(D>t){h=d+1;break}}}}else if(m){if(u===-1?(h=f(l,t=>t.media.features["max-width"]&&t.media.features["min-width"]||t.priority!==-1,t=>!t.media.features["max-width"]&&t.media.features["min-width"]),b=f(l,t=>t.media.features["max-width"]&&t.media.features["min-width"]||t.priority!==-1)):(h=f(l,t=>t.media.features["max-width"]&&t.media.features["min-width"]&&t.priority!==-1,t=>!t.media.features["max-width"]&&t.media.features["min-width"]&&t.priority!==-1),b=f(l,t=>t.media.features["max-width"]&&t.media.features["min-width"]&&t.priority!==-1)),h!==-1)for(let t=b;t>=h;t--){let d=this.rules[t].media.features["min-width"].value;if(d>m.value)b=t-1;else if(d<m.value){h=t+1;break}}}else if(u===-1?(h=f(l,t=>t.media.features["min-width"]||t.priority!==-1,t=>t.media.features["max-width"]),b=f(l,t=>t.media.features["min-width"]||t.priority!==-1)):(h=f(l,t=>t.media.features["min-width"]&&t.priority!==-1,t=>t.media.features["max-width"]&&t.priority!==-1),b=f(l,t=>t.media.features["min-width"]&&t.priority!==-1)),h!==-1)for(let t=b;t>=h;t--){let d=this.rules[t].media.features["max-width"].value;if(d<a.value)b=t-1;else if(d>a.value){h=t+1;break}}}else u===-1?(h=p,b=f(p,l=>l.media?.features["max-width"]||l.media?.features["min-width"]||l.priority!==-1)):(h=f(p,l=>l.media?.features["max-width"]||l.media?.features["min-width"],l=>l.priority!==-1),b=f(p,l=>l.media?.features["max-width"]||l.media?.features["min-width"]))}}else{let p=Object.keys(this.variablesNativeRules).length?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;u===-1?(h=p,b=f(p,a=>a.media||a.priority!==-1)):(h=f(p,a=>a.media,a=>a.priority!==-1),b=f(p,a=>a.media))}if(n===void 0&&b!==void 0&&h!==void 0)if(h===-1)n=b+1;else{if(u===-1)for(let p=h;p<=b;p++){let a=this.rules[p];if(!(!s&&a.hasWhere)&&(s&&!a.hasWhere||a.order>=i)){n=p;break}}else for(let p=h;p<=b;p++){let a=this.rules[p];if(!(!s&&a.hasWhere)){if(s&&!a.hasWhere){n=p;break}if(a.priority<u){n=p;break}else if(a.priority===u){if(a.order>=i){n=p;break}}else n=p+1}}n===void 0&&(n=b+1)}if(this.rules.splice(n,0,r),this.ruleBy[g]=r,this.style){let p=this.style.sheet,a=0,m=l=>{let t=this.rules[l];if(t){if(!t.natives.length)return m(l-1);let d=t.natives[t.natives.length-1],v=d.cssRule?.parentRule??d.cssRule;if(p){for(let x=0;x<p.cssRules.length;x++)if(p.cssRules[x]===v){a=x+1;break}}}};m(n-1);for(let l=0;l<r.natives.length;)try{let t=r.natives[l];p?.insertRule(t.text,a),t.cssRule=p?.cssRules[a++],l++}catch(t){console.error(t),r.natives.splice(l,1)}}this.handleRuleWithVariableNames(r),this.handleRuleWithAnimationNames(r),r.definition.insert?.call(r)}get text(){return this.rules.map(r=>r.text).join("")}handleRuleWithAnimationNames(r,n=!1){if(r.animationNames){let o=this.style?.sheet;for(let c of r.animationNames){let i=this.animations[c];if(i.usage)i.usage++;else{let u={text:`@keyframes ${c}{`+Object.entries(i).filter(([f])=>f!=="usage"&&f!=="native").map(([f,h])=>`${f}{${Object.entries(h).map(([b,p])=>b+":"+p).join(";")}}`).join("")+"}"},s=Object.keys(this.variablesNativeRules).length?1:0,g;if(this.hasKeyframesRule?(g=this.rules[s]).natives.push(u):(this.rules.splice(s,0,g={natives:[u],get text(){return this.natives.map(f=>f.text).join("")}}),this.hasKeyframesRule=!0),o){let f;if(n)for(let h=0;h<o.cssRules.length;h++){let b=o.cssRules[h];if(b.constructor.name==="CSSKeyframesRule"&&b.name===c){f=b;break}}if(f)u.cssRule=f;else{let h=Object.keys(this.variablesNativeRules).length+g.natives.length-1;o.insertRule(u.text,h),u.cssRule=o.cssRules[h]}}i.usage=1,i.native=u}}}}handleRuleWithVariableNames(r,n=!1){if(r.variableNames){let o=this.style?.sheet;for(let c of r.variableNames){let i=this.variables[c];if(i.usage)i.usage++;else{let u=(s,g)=>{let f=this.variablesNativeRules[s];if(!f){let b,p,a;if(s)switch(this.config.themeDriver){case"media":p=`@media(prefers-color-scheme:${s})`,a=":root";break;case"host":a=`:host(.${s})`;break;default:a=`.${s}`;break}else a=":root";if(o){let m=Object.keys(this.variablesNativeRules).length?this.rules[0].natives.length:0;o.insertRule((p?p+"{":"")+a+"{}"+(p?p+"}":""),m),b=p?o.cssRules[m].cssRules[0]:o.cssRules[m]}else{let m=new Map,l=Object.defineProperties({},{getPropertyValue:{value:t=>m.get(t)},removeProperty:{value:t=>{m.delete(t);for(let d=0;d<l.length;d++)l[d]===t&&delete l[d]}},setProperty:{value:(t,d)=>{l[l.length]=t,m.set(t,d)}},length:{get(){return Object.keys(l).length}}});b={selectorText:a,style:l,styleMap:m},p&&(b.parentRule={conditionText:p})}f=this.pushVariableNativeRule(s,b)}let h="--"+c;(!n||!f.cssRule.style.getPropertyValue(h))&&f.cssRule.style.setProperty(h,g.value.toString())};if(i.value&&u("",i),i.themes)for(let s in i.themes)u(s,i.themes[s]);i.usage=1}}}}pushVariableNativeRule(r,n){if(!Object.keys(this.variablesNativeRules).length){this.variablesNativeRules={};let u={natives:[],get text(){return this.natives.map(s=>s.text).join("")}};this.rules.splice(0,0,u)}let o="",c="}";n.parentRule&&(o+=n.parentRule.conditionText.replace(/ /g,"")+"{",c+="}"),o+=n.selectorText+"{";let i={cssRule:n,get text(){let u=[];for(let s=0;s<n.style.length;s++){let g=n.style[s];u.push(g+":"+n.style.getPropertyValue(g))}return o+u.join(";")+c}};return this.rules[0].natives.push(this.variablesNativeRules[r]=i),i}},ae=[];globalThis.MasterCSS=ee,globalThis.masterCSSs=ae;var Se=[",",".","#","[","!","*",">","+","~",":","@"];var ie=class extends ee{constructor(n=document,o=F){super(o);this.root=n;this.customConfig=o;n||(this.root=document),this.root===document?(globalThis.runtimeCSS=this,this.container=document.head,this.host=document.documentElement):(this.container=this.root,this.host=this.root.host),te.push(this)}host;observing=!1;container;observer;observe(n={subtree:!0,childList:!0}){if(this.observing||!this.root)return this;if(te.find(c=>c!==this&&c.root===this.root))return console.warn("Cannot observe the same root element repeatedly."),this;if(this.root?.styleSheets)for(let c of this.root.styleSheets){let{ownerNode:i}=c;if(i&&i.id==="master"){this.style=i;break}}if(this.style?.sheet){let c=0;for(;c<this.style.sheet.cssRules.length;c++){let i=this.style.sheet.cssRules[c];switch(i.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let s=/\(prefers-color-scheme: (.*?)\)/.exec(i.conditionText);if(s){let g=i.cssRules[0];if(g?.constructor.name==="CSSStyleRule"&&g.selectorText===":root"){this.pushVariableNativeRule(s[1],g);continue}}}break;case"CSSStyleRule":let u=i.selectorText;if(i.style.length){let s=!0;for(let g=0;g<i.style.length;g++)if(!i.style[g]?.startsWith("--")){s=!1;break}if(s){if(u===":root"){this.pushVariableNativeRule("",i);continue}else if(this.config.themeDriver==="host"){let g=/:host(.*?)/.exec(u);if(g){this.pushVariableNativeRule(g[1],i);continue}}else if(!u.startsWith(".\\$")){this.pushVariableNativeRule(u.slice(1),i);continue}}}break}break}for(;c<this.style.sheet.cssRules.length;c++){let i=s=>{if(s.selectorText){let f=s.selectorText.split(", ")[0].split(" ");for(let h=0;h<f.length;h++){let b=f[h];if(b[0]==="."){let p=b.slice(1),a="";for(let m=0;m<p.length;m++){let l=p[m],t=p[m+1];if(l==="\\"){if(m++,t!=="\\"){a+=t;continue}}else if(Se.includes(l))break;a+=l}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,a)&&!Object.prototype.hasOwnProperty.call(this.styles,a)){let m=this.generate(a)[0];if(m)return m}}}}else if(s.cssRules)for(let g=0;g<s.cssRules.length;g++){let f=i(s.cssRules[g]);if(f)return f}},u=i(this.style.sheet.cssRules[c]);if(u){this.rules.push(u),this.ruleBy[u.className]=u;for(let s=0;s<u.natives.length;s++)u.natives[s].cssRule=this.style.sheet.cssRules[c+s];c+=u.natives.length-1,this.handleRuleWithVariableNames(u,!0),this.handleRuleWithAnimationNames(u,!0),u.definition.insert?.call(u)}}}else this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style);let o=c=>{c.forEach(i=>{Object.prototype.hasOwnProperty.call(this.classesUsage,i)?this.classesUsage[i]++:(this.classesUsage[i]=1,this.add(i))})};return o(this.host.classList),n.subtree&&this.host.querySelectorAll("[class]").forEach(c=>o(c.classList)),this.observer=new MutationObserver(c=>{let i={},u=[],s=[],g=[],f=(a,m)=>{m?a.classList.forEach(b):a.classList.forEach(h);let l=a.children;for(let t=0;t<l.length;t++){let d=l[t];d.classList&&(s.push(d),f(d,m))}},h=a=>{Object.prototype.hasOwnProperty.call(i,a)?i[a]++:i[a]=1},b=a=>{Object.prototype.hasOwnProperty.call(i,a)?i[a]--:Object.prototype.hasOwnProperty.call(this.classesUsage,a)&&(i[a]=-1)},p=(a,m)=>{for(let l=0;l<a.length;l++){let t=a[l];t.classList&&!s.includes(t)&&!g.includes(t)&&(t.isConnected!==m?(s.push(t),f(t,m)):g.push(t))}};for(let a=0;a<c.length;a++){let m=c[a],{addedNodes:l,removedNodes:t,type:d,target:v}=m;if(d==="attributes"){if(u.find(x=>x.target===v))continue;u.push(m)}else p(l,!1),(!v.isConnected||!s.includes(v))&&p(t,!0)}if(!(!u.length&&!Object.keys(i).length)){for(let{oldValue:a,target:m}of u){let l=s.includes(m),t=m.classList,d=a?a.split(" "):[];if(l){if(m.isConnected)continue;for(let v of d)t.contains(v)||b(v)}else if(m.isConnected){t.forEach(v=>{d.includes(v)||h(v)});for(let v of d)t.contains(v)||b(v)}}for(let a in i){let m=i[a],l=(this.classesUsage[a]||0)+m;l===0?(delete this.classesUsage[a],this.delete(a)):(Object.prototype.hasOwnProperty.call(this.classesUsage,a)||this.add(a),this.classesUsage[a]=l)}}}),this.observer.observe(this.root,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.removeProperty("display"),this.observing=!0,this}refresh(n=this.customConfig){let o=document.createElement("style");return o.id="master",this.style.replaceWith(o),this.style=o,super.refresh(n),this}reset(){super.reset();let n=this.style?.sheet;if(n?.cssRules)for(let o=n.cssRules.length-1;o>=0;o--)n.deleteRule(o);return 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(),te.splice(te.indexOf(this),1),this}},te=[];globalThis.RuntimeCSS=ie,globalThis.runtimeCSSs=te;function le(e){return new ie(document,e).observe()}le(window.masterCSSConfig);})();
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Config } from './config';
|
|
2
|
+
import { MasterCSS } from './core';
|
|
3
|
+
import './types/global';
|
|
4
|
+
export declare class RuntimeCSS extends MasterCSS {
|
|
5
|
+
root: Document | ShadowRoot | undefined | null;
|
|
6
|
+
customConfig: Config;
|
|
7
|
+
readonly host: Element;
|
|
8
|
+
readonly observing = false;
|
|
9
|
+
readonly container: HTMLElement | ShadowRoot;
|
|
10
|
+
observer?: MutationObserver | null;
|
|
11
|
+
constructor(root?: Document | ShadowRoot | undefined | null, customConfig?: Config);
|
|
12
|
+
/**
|
|
13
|
+
* Observe the DOM for changes and update the running stylesheet. (browser only)
|
|
14
|
+
* @param options mutation observer options
|
|
15
|
+
* @returns this
|
|
16
|
+
*/
|
|
17
|
+
observe(options?: MutationObserverInit): this;
|
|
18
|
+
refresh(customConfig?: Config): this;
|
|
19
|
+
reset(): this;
|
|
20
|
+
disconnect(): this;
|
|
21
|
+
destroy(): this;
|
|
22
|
+
}
|
|
23
|
+
export declare const runtimeCSSs: RuntimeCSS[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Config } from '../config';
|
|
2
|
+
import type { RuntimeCSS as _RuntimeCSS } from '../runtime';
|
|
3
|
+
import type { MasterCSS as _MasterCSS } from '../core';
|
|
4
|
+
declare global {
|
|
5
|
+
var MasterCSS: typeof _MasterCSS;
|
|
6
|
+
var masterCSSs: _MasterCSS[];
|
|
7
|
+
var RuntimeCSS: typeof _RuntimeCSS;
|
|
8
|
+
var runtimeCSSs: _RuntimeCSS[];
|
|
9
|
+
var runtimeCSS: _RuntimeCSS;
|
|
10
|
+
var masterCSSConfig: Config;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function flattenObject(obj: Record<string, any>, parentKey?: string): Record<string, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function hexToRgb(hex:
|
|
1
|
+
export declare function hexToRgb(hex: string): (number | undefined)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function rgbToHex(r:
|
|
1
|
+
export declare function rgbToHex(r: number, g: number, b: number): string;
|
package/package.json
CHANGED
|
@@ -1,162 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@master/css",
|
|
3
|
-
"license": "MIT",
|
|
4
|
-
"description": "A Virtual CSS language with enhanced syntax. ( ~13KB )",
|
|
5
|
-
"author": "Aoyue Design LLC.",
|
|
6
|
-
"funding": "https://docs.master.co/css/donate",
|
|
7
|
-
"homepage": "https://css.master.co",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/master-co/css.git"
|
|
11
|
-
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
"style",
|
|
14
|
-
"styles",
|
|
15
|
-
"html",
|
|
16
|
-
"variants",
|
|
17
|
-
"virtual",
|
|
18
|
-
"virtual-css",
|
|
19
|
-
"utility",
|
|
20
|
-
"css",
|
|
21
|
-
"ui",
|
|
22
|
-
"lightweight",
|
|
23
|
-
"class",
|
|
24
|
-
"webpack",
|
|
25
|
-
"plugin",
|
|
26
|
-
"integration",
|
|
27
|
-
"vite",
|
|
28
|
-
"parcel",
|
|
29
|
-
"build-tools",
|
|
30
|
-
"mastercss"
|
|
31
|
-
],
|
|
32
|
-
"sideEffects": [
|
|
33
|
-
"./src/polyfills/css-escape.ts"
|
|
34
|
-
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build:iife": "esbuild src/index.browser.ts --bundle --outfile=dist/index.browser.js --format=iife",
|
|
37
|
-
"build:cjs": "esbuild src/index.ts --bundle --outfile=dist/index.cjs --format=cjs --platform=node",
|
|
38
|
-
"build:esm": "esbuild src/index.ts --bundle --outfile=dist/index.mjs --format=esm --platform=node",
|
|
39
|
-
"build:css": "esbuild src/index.css --bundle --outfile=dist/index.css",
|
|
40
|
-
"dev:iife": "npm run build:iife -- --watch",
|
|
41
|
-
"dev:cjs": "npm run build:cjs -- --watch",
|
|
42
|
-
"dev:esm": "npm run build:esm -- --watch",
|
|
43
|
-
"prod": "rm -rf dist && npm run build:cjs -- --minify --sourcemap && npm run build:iife -- --minify --sourcemap && npm run build:esm -- --minify --sourcemap && tsc --emitDeclarationOnly",
|
|
44
|
-
"test": "jest",
|
|
45
|
-
"lint": "eslint ./src"
|
|
46
|
-
},
|
|
47
|
-
"main": "./dist/index.cjs",
|
|
48
|
-
"jsnext:main": "./dist/index.mjs",
|
|
49
|
-
"browser": "./dist/index.browser.js",
|
|
50
|
-
"esnext": "./dist/index.mjs",
|
|
51
|
-
"module": "./dist/index.mjs",
|
|
52
|
-
"types": "./dist/index.d.ts",
|
|
53
|
-
"exports": {
|
|
54
|
-
".": {
|
|
55
|
-
"require": "./dist/index.cjs",
|
|
56
|
-
"import": "./dist/index.mjs",
|
|
57
|
-
"types": "./dist/index.d.ts"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"jest": {
|
|
61
|
-
"testEnvironment": "node",
|
|
62
|
-
"transform": {
|
|
63
|
-
"^.+\\.(t|j)sx?$": "@swc/jest"
|
|
64
|
-
},
|
|
65
|
-
"testMatch": [
|
|
66
|
-
"<rootDir>/tests/*.ts",
|
|
67
|
-
"<rootDir>/src/**/*.test.ts"
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
"private": false,
|
|
71
|
-
"publishConfig": {
|
|
72
|
-
"access": "public"
|
|
73
|
-
},
|
|
74
|
-
"engines": {
|
|
75
|
-
"node": ">=14"
|
|
76
|
-
},
|
|
77
|
-
"release": {
|
|
78
|
-
"plugins": [
|
|
79
|
-
[
|
|
80
|
-
"@semantic-release/commit-analyzer",
|
|
81
|
-
{
|
|
82
|
-
"preset": "angular",
|
|
83
|
-
"releaseRules": [
|
|
84
|
-
{
|
|
85
|
-
"type": "docs",
|
|
86
|
-
"scope": "README",
|
|
87
|
-
"release": "patch"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"type": "refactor",
|
|
91
|
-
"release": "patch"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"type": "style",
|
|
95
|
-
"release": "patch"
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
"parserOpts": {
|
|
99
|
-
"noteKeywords": [
|
|
100
|
-
"BREAKING CHANGE",
|
|
101
|
-
"BREAKING CHANGES"
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"@semantic-release/release-notes-generator",
|
|
107
|
-
[
|
|
108
|
-
"@semantic-release/exec",
|
|
109
|
-
{
|
|
110
|
-
"prepareCmd": "npm run prod"
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
[
|
|
114
|
-
"@semantic-release/github",
|
|
115
|
-
{
|
|
116
|
-
"assets": [
|
|
117
|
-
{
|
|
118
|
-
"path": "dist/index.browser.js",
|
|
119
|
-
"label": "master-css.min.js"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
[
|
|
125
|
-
"@semantic-release/npm"
|
|
126
|
-
]
|
|
127
|
-
],
|
|
128
|
-
"branches": [
|
|
129
|
-
"+([0-9])?(.{+([0-9]),x}).x",
|
|
130
|
-
"main",
|
|
131
|
-
"next",
|
|
132
|
-
"next-major",
|
|
133
|
-
{
|
|
134
|
-
"name": "beta",
|
|
135
|
-
"prerelease": true
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"name": "alpha",
|
|
139
|
-
"prerelease": true
|
|
140
|
-
}
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
"files": [
|
|
144
|
-
"dist"
|
|
145
|
-
],
|
|
146
|
-
"devDependencies": {
|
|
147
|
-
"@semantic-release/exec": "^6.0.3",
|
|
148
|
-
"@swc/core": "^1.3.9",
|
|
149
|
-
"@swc/jest": "^0.2.23",
|
|
150
|
-
"@types/jest": "^29.2.0",
|
|
151
|
-
"@types/node": "^18.11.0",
|
|
152
|
-
"@typescript-eslint/eslint-plugin": "^5.40.1",
|
|
153
|
-
"@typescript-eslint/parser": "^5.40.1",
|
|
154
|
-
"esbuild": "^0.15.10",
|
|
155
|
-
"eslint": "^8.25.0",
|
|
156
|
-
"jest": "^29.2.2",
|
|
157
|
-
"semantic-release": "^19.0.5",
|
|
158
|
-
"typescript": "^4.8.4",
|
|
159
|
-
"dedent": "^0.7.0"
|
|
160
|
-
},
|
|
161
|
-
"version": "2.0.0-beta.21"
|
|
162
|
-
}
|
|
1
|
+
{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A markup-driven CSS language with enhanced syntax","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","browser":"./dist/runtime.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/runtime.browser.d.ts"},"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"bin":{"mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"files":["dist"],"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.210","@techor/fs":"^2.5.4","@techor/log":"^2.5.4","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.5.4","@techor/pack":"^2.5.4","@types/jest":"^29.5.11","css-shared":"^2.0.0-beta.210","csstype":"^3.1.2","puppeteer":"^21.0.1","vite":"^4.2.1"},"version":"2.0.0-beta.210"}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Aoyue Design LLC.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
package/dist/apis/extend.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare type ExpandDeep<T> = T extends Record<string | number | symbol, unknown> ? {
|
|
2
|
-
[K in keyof T]: ExpandDeep<T[K]>;
|
|
3
|
-
} : T extends Array<infer E> ? Array<ExpandDeep<E>> : T;
|
|
4
|
-
export default function extend<T extends Record<string, any>>(object: T, ...otherObjects: any[]): ExpandDeep<any>;
|
|
5
|
-
export {};
|
package/dist/apis/render.d.ts
DELETED
package/dist/config/colors.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const defaultColors: {
|
|
2
|
-
slate: any;
|
|
3
|
-
gray: any;
|
|
4
|
-
brown: any;
|
|
5
|
-
orange: any;
|
|
6
|
-
gold: any;
|
|
7
|
-
yellow: any;
|
|
8
|
-
grass: any;
|
|
9
|
-
green: any;
|
|
10
|
-
beryl: any;
|
|
11
|
-
teal: any;
|
|
12
|
-
cyan: any;
|
|
13
|
-
sky: any;
|
|
14
|
-
blue: any;
|
|
15
|
-
indigo: any;
|
|
16
|
-
violet: any;
|
|
17
|
-
purple: any;
|
|
18
|
-
fuchsia: any;
|
|
19
|
-
pink: any;
|
|
20
|
-
crimson: any;
|
|
21
|
-
red: any;
|
|
22
|
-
black: string;
|
|
23
|
-
white: string;
|
|
24
|
-
};
|
|
25
|
-
export default defaultColors;
|
package/dist/config/scheme.d.ts
DELETED
package/dist/config/themes.d.ts
DELETED
package/dist/config/values.d.ts
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
declare const defaultValues: {
|
|
2
|
-
BackgroundClip: {
|
|
3
|
-
content: string;
|
|
4
|
-
border: string;
|
|
5
|
-
padding: string;
|
|
6
|
-
};
|
|
7
|
-
BackgroundOrigin: {
|
|
8
|
-
content: string;
|
|
9
|
-
border: string;
|
|
10
|
-
padding: string;
|
|
11
|
-
};
|
|
12
|
-
BoxSizing: {
|
|
13
|
-
content: string;
|
|
14
|
-
border: string;
|
|
15
|
-
};
|
|
16
|
-
ClipPath: {
|
|
17
|
-
margin: string;
|
|
18
|
-
fill: string;
|
|
19
|
-
stroke: string;
|
|
20
|
-
view: string;
|
|
21
|
-
content: string;
|
|
22
|
-
border: string;
|
|
23
|
-
padding: string;
|
|
24
|
-
};
|
|
25
|
-
FlexDirection: {
|
|
26
|
-
col: string;
|
|
27
|
-
'col-reverse': string;
|
|
28
|
-
};
|
|
29
|
-
FontFamily: {
|
|
30
|
-
mono: string;
|
|
31
|
-
sans: string;
|
|
32
|
-
serif: string;
|
|
33
|
-
};
|
|
34
|
-
FontWeight: {
|
|
35
|
-
thin: number;
|
|
36
|
-
extralight: number;
|
|
37
|
-
light: number;
|
|
38
|
-
regular: number;
|
|
39
|
-
medium: number;
|
|
40
|
-
semibold: number;
|
|
41
|
-
bold: number;
|
|
42
|
-
extrabold: number;
|
|
43
|
-
heavy: number;
|
|
44
|
-
};
|
|
45
|
-
GridAutoColumns: {
|
|
46
|
-
min: string;
|
|
47
|
-
max: string;
|
|
48
|
-
};
|
|
49
|
-
GridAutoRows: {
|
|
50
|
-
min: string;
|
|
51
|
-
max: string;
|
|
52
|
-
};
|
|
53
|
-
GridTemplateColumns: {
|
|
54
|
-
min: string;
|
|
55
|
-
max: string;
|
|
56
|
-
};
|
|
57
|
-
GridTemplateRows: {
|
|
58
|
-
min: string;
|
|
59
|
-
max: string;
|
|
60
|
-
};
|
|
61
|
-
Order: {
|
|
62
|
-
first: number;
|
|
63
|
-
last: number;
|
|
64
|
-
};
|
|
65
|
-
Position: {
|
|
66
|
-
abs: string;
|
|
67
|
-
rel: string;
|
|
68
|
-
};
|
|
69
|
-
ShapeOutside: {
|
|
70
|
-
margin: string;
|
|
71
|
-
content: string;
|
|
72
|
-
border: string;
|
|
73
|
-
padding: string;
|
|
74
|
-
};
|
|
75
|
-
TransformBox: {
|
|
76
|
-
fill: string;
|
|
77
|
-
stroke: string;
|
|
78
|
-
view: string;
|
|
79
|
-
content: string;
|
|
80
|
-
border: string;
|
|
81
|
-
padding: string;
|
|
82
|
-
};
|
|
83
|
-
Width: {
|
|
84
|
-
full: string;
|
|
85
|
-
fit: string;
|
|
86
|
-
max: string;
|
|
87
|
-
min: string;
|
|
88
|
-
};
|
|
89
|
-
MinWidth: {
|
|
90
|
-
full: string;
|
|
91
|
-
fit: string;
|
|
92
|
-
max: string;
|
|
93
|
-
min: string;
|
|
94
|
-
};
|
|
95
|
-
MinHeight: {
|
|
96
|
-
full: string;
|
|
97
|
-
fit: string;
|
|
98
|
-
max: string;
|
|
99
|
-
min: string;
|
|
100
|
-
};
|
|
101
|
-
MaxWidth: {
|
|
102
|
-
full: string;
|
|
103
|
-
fit: string;
|
|
104
|
-
max: string;
|
|
105
|
-
min: string;
|
|
106
|
-
};
|
|
107
|
-
MaxHeight: {
|
|
108
|
-
full: string;
|
|
109
|
-
fit: string;
|
|
110
|
-
max: string;
|
|
111
|
-
min: string;
|
|
112
|
-
};
|
|
113
|
-
Height: {
|
|
114
|
-
full: string;
|
|
115
|
-
fit: string;
|
|
116
|
-
max: string;
|
|
117
|
-
min: string;
|
|
118
|
-
};
|
|
119
|
-
FlexBasis: {
|
|
120
|
-
full: string;
|
|
121
|
-
fit: string;
|
|
122
|
-
max: string;
|
|
123
|
-
min: string;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
export default defaultValues;
|