@master/css 2.0.0-beta.135 → 2.0.0-beta.136

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/cjs/css.js CHANGED
@@ -1 +1 @@
1
- var T=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var Z=Object.prototype.hasOwnProperty;var q=(p,e,n)=>e in p?T(p,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):p[e]=n;var P=(p,e)=>{for(var n in e)T(p,n,{get:e[n],enumerable:!0})},U=(p,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let h of Y(e))!Z.call(p,h)&&h!==n&&T(p,h,{get:()=>e[h],enumerable:!(r=_(e,h))||r.enumerable});return p};var G=p=>U(T({},"__esModule",{value:!0}),p);var A=(p,e,n)=>(q(p,typeof e!="symbol"?e+"":e,n),n);var J={};P(J,{MasterCSS:()=>S});module.exports=G(J);function F(p){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&p instanceof e||p instanceof Date||p instanceof RegExp)}function I(p){if(typeof Buffer<"u"&&Buffer&&p instanceof Buffer){let e=Buffer.alloc(p.length);return p.copy(e),e}else{if(p instanceof Date)return new Date(p.getTime());if(p instanceof RegExp)return new RegExp(p);throw new Error("Unexpected situation")}}function $(p){let e=[];return p.forEach(function(n,r){typeof n=="object"&&n!==null?Array.isArray(n)?e[r]=$(n):F(n)?e[r]=I(n):e[r]=W({},n):e[r]=n}),e}function L(p,e){return e==="__proto__"?void 0:p[e]}function W(...p){let e={},n,r;return p.forEach(function(h){typeof h!="object"||h===null||Array.isArray(h)||Object.keys(h).forEach(function(M){if(r=L(e,M),n=L(h,M),n!==e)if(typeof n!="object"||n===null){e[M]=n;return}else if(Array.isArray(n)){e[M]=$(n);return}else if(F(n)){e[M]=I(n);return}else if(typeof r!="object"||r===null||Array.isArray(r)){e[M]=W({},n);return}else{e[M]=W(r,n);return}})}),e}var D=require("./rule"),O=require("./config"),H=require("./utils/rgb-to-hex"),Q=require("./constants/selector-symbols");var N=typeof window<"u",V=()=>{let p=document.createElement("style");return p.id="master",p},j=class{constructor(e){this.config=e;this.config?.override||(this.config=W(O.config,e)),this.cache(),N&&this.config.observe&&this.observe(document),j.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;e;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:n,selectors:r,themes:h,colors:M,values:E,breakpoints:R,mediaQueries:g,rules:C}=this.config;function w(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(t,s,i="",c={}){let a=x=>x?(i?i+"-":"")+x:i,y=Object.entries(t),v=[],B=[];for(let x of y){let k=x[1];(typeof k=="object"&&!Array.isArray(k)?v:B).push(x)}for(let[x,k]of v)o(k,s,a(x),c);if(s&&i)B.length&&(c[i]=B.reduce((x,[k,z])=>(x[k]=z,x),{}));else for(let[x,k]of B)c[a(x)]=k;return c}if(e)for(let[t,s]of Object.entries(o(e,!0)))this.semantics.push([new RegExp("^"+w(t)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[t,s]]);if(r)for(let[t,s]of Object.entries(o(r,!1))){let i=new RegExp(w(t)+"(?![a-z-])");for(let c of Array.isArray(s)?s:[s]){let a=c.match(/^::-[a-z]+-/m)?.[0]??"",y=this.selectors[a];y||(y=this.selectors[a]=[]);let v=y.find(([B])=>B===i);v||(v=[i,[]],y.push(v)),v[1].push(c)}}E&&(this.globalValues=o(E,!1)),R&&(this.breakpoints=o(R,!1)),g&&(this.mediaQueries=o(g,!1));let f=n?o(n,!1):{},b=h&&!Array.isArray(h)?Object.entries(h).filter(([,{classes:t}])=>t).reduce((t,[s,{classes:i}])=>(t[s]=o(i,!1),t),{}):{},u=[...Object.keys(f),...Object.entries(b).flatMap(([t,s])=>Object.keys(s))],m=t=>{if(t in this.classes)return;let s=this.classes[t]=[],i=(c,a)=>{if(!a)return;let y=Array.isArray(a)?a:a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let v of y){let B=x=>{x in this.themeAffectedClassesBy?c in this.themeAffectedClassesBy[x]?this.themeAffectedClassesBy[x][c].push(t):this.themeAffectedClassesBy[x][c]=[t]:this.themeAffectedClassesBy[x]={[c]:[t]},s.includes(x)||s.push(x)};if(u.includes(v)){m(v);for(let x of this.classes[v])B(x)}else B(v)}};i("",f?.[t]);for(let[c,a]of Object.entries(b))i(c,a?.[t])};for(let t of u)m(t);for(let t in this.themeAffectedClassesBy){let s=this.classesBy[t]=[];for(let i of Object.values(this.themeAffectedClassesBy[t]))for(let c of i)s.includes(c)||s.push(c)}let l=(t,s)=>{if(!s)return;let i=o(s,!0);for(let[c,a]of Object.entries(i)){let y=typeof a=="string"?{"":a}:a;for(let[v,B]of Object.entries(y)){let x=c+(v?"-"+v:"");x in this.colorThemesMap?this.colorThemesMap[x][t]=B:this.colorThemesMap[x]={[t]:B}}}for(let c in s)this.colorNames.includes(c)||this.colorNames.push(c)};if(l("",M),h)if(Array.isArray(h))this.themeNames.push(...h);else for(let t in h){let s=h[t];l(t,s.colors),this.themeNames.push(t)}let d=t=>{for(let[s,i]of Object.entries(this.colorThemesMap))for(let[c,a]of Object.entries(i))a.startsWith("#")||t(s,i,c,a)};if(d((t,s,i,c)=>{let a=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(c);if(a){let y="#"+(0,H.rgbToHex)(+a[1],+a[2],+a[3]);a[4]&&(y+=Math.round(255*+a[4]).toString(16)),s[i]=y}}),d((t,s,i,c)=>{let[a,y]=c.split("/"),v=this.colorThemesMap[a];if(v){let B=(i?v[i]:void 0)??v[""];s[i]=y?B.slice(0,7)+Math.round(255*+y).toString(16):B}else console.warn(`\`${c}\` doesn't exist in the extended config \`.colors\``),delete s[i],Object.keys(s).length||delete this.colorThemesMap[t]}),C)for(let t in C){let s=C[t],{native:i,values:c,colored:a}=s,y=s.match;if(s.id=t,s.native=i===!0?t.replace(/(?!^)[A-Z]/g,v=>"-"+v).toLowerCase():void 0,c&&(this.values[t]=o(c,!1)),y){let v=Object.keys(this.values[t]??{});y.includes("$values")&&(y=v.length?y.replace(/\$values/,v.join("|")):y.replace(/(?:\|)?\$values/,"")),a&&y.includes("$colors")&&(y=this.colorNames.length?y.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):y.replace(/(?:\|)?\$colors/,"")),this.matches[t]=new RegExp(y)}}}observe(e,n={subtree:!0,childList:!0}){if(this.root!==e){if(N&&e){this.root=e;let r=e===document;r&&(j.root=this),this.host=r?document.documentElement:root.host;let h=r?document.head:e,M=r?document.styleSheets:e.styleSheets;for(let R of M){let{href:g,ownerNode:C}=R;(C.id==="master"||g&&g.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(g))&&(this.style=C)}if(this.style)for(let R=0;R<this.style.sheet.cssRules.length;R++){let g=this.style.sheet.cssRules[R];if(g.constructor.name==="CSSKeyframesRule")continue;let C=o=>{if(o.selectorText){let b=o.selectorText.split(", ")[0].split(" ");for(let u=0;u<b.length;u++){let m=b[u];if(m[0]==="."){let l=m.slice(1),d="";for(let t=0;t<l.length;t++){let s=l[t],i=l[t+1];if(s==="\\"){if(t++,i!=="\\"){d+=i;continue}}else if(Q.SELECTOR_SYMBOLS.includes(s))break;d+=s}if(!(d in this.ruleBy)&&!(d in this.classes)){let t=this.create(d)[0];if(t)return t}}}}else if(o.cssRules)for(let f=0;f<o.cssRules.length;f++){let b=C(o.cssRules[f]);if(b)return b}},w=C(g);if(w){this.rules.push(w),this.ruleBy[w.className]=w;for(let o=0;o<w.natives.length;o++)w.natives[o].cssRule=this.style.sheet.cssRules[R+o];R+=w.natives.length-1,w.config.insert?.call(w)}}else this.style=V();h.append(this.style);let E=R=>{R.forEach(g=>{g in this.countBy?this.countBy[g]++:(this.countBy[g]=1,this.insert(g))})};E(this.host.classList),n.subtree&&this.host.querySelectorAll("[class]").forEach(R=>E(R.classList)),this.observer=new MutationObserver(R=>{let g={},C=[],w=[],o=[],f=(l,d)=>{d?l.classList.forEach(u):l.classList.forEach(b);let t=l.children;for(let s=0;s<t.length;s++){let i=t[s];i.classList&&(w.push(i),f(i,d))}},b=l=>{l in g?g[l]++:g[l]=1},u=l=>{l in g?g[l]--:l in this.countBy&&(g[l]=-1)},m=(l,d)=>{for(let t=0;t<l.length;t++){let s=l[t];s.classList&&!w.includes(s)&&!o.includes(s)&&(s.isConnected!==d?(w.push(s),f(s,d)):o.push(s))}};for(let l=0;l<R.length;l++){let d=R[l],{addedNodes:t,removedNodes:s,type:i,target:c}=d;if(i==="attributes"){if(C.find(a=>a.target===c))continue;C.push(d)}else m(t,!1),(!c.isConnected||!w.includes(c))&&m(s,!0)}if(!(!C.length&&!Object.keys(g).length)){for(let{oldValue:l,target:d}of C){let t=w.includes(d),s=d.classList,i=l?l.split(" "):[];if(t){if(d.isConnected)continue;for(let c of i)s.contains(c)||u(c)}else if(d.isConnected){s.forEach(c=>{i.includes(c)||b(c)});for(let c of i)s.contains(c)||u(c)}}for(let l in g){let d=g[l],t=(this.countBy[l]||0)+d;t===0?(delete this.countBy[l],this.delete(l)):(l in this.countBy||this.insert(l),this.countBy[l]=t)}}}),this.observer.observe(e,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.e=new MutationObserver(R=>{for(let g of R)for(let C of g.addedNodes)if(C.nodeName==="STYLE"||C.nodeName==="LINK"&&C.rel==="stylesheet"){let w=this.root.styleSheets;if(w.item(w.length-1).ownerNode!==this.style){let b=this.style.sheet.cssRules;h.append(this.style);for(let u of b)this.style.sheet.insertRule(u.cssText)}}}),this.e.observe(h,{childList:!0}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.e&&(this.e.disconnect(),this.e=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let n=e.cssRules.length-1;n>=0;n--)e.deleteRule(n);this.style?.remove(),this.style=null,this.root=null}match(e){for(let n in this.config.rules){let r=this.config.rules[n],h=this.matches[n],{symbol:M,native:E}=r;if(h&&h.test(e))return{origin:"match",config:r};if(M&&e.startsWith(M))return{origin:"symbol",config:r};if(E&&e.startsWith(E+":"))return{origin:"match",config:r}}for(let n of this.semantics)if(e.match(n[0]))return{origin:"semantics",value:n[1]}}create(e){let n=r=>{if(r in this.ruleBy)return this.ruleBy[r];let h=this.match(r);if(h)return new D.Rule(r,h,this)};return(e in this.classes?this.classes[e].map(r=>n(r)):[n(e)]).filter(r=>r&&r.text)}refresh(e){if(e?.override?this.config=e:this.config=W(O.config,e),this.cache(),!this.style)return;let n=V();this.style.replaceWith(n),this.style=n,this.rules.length=0,this.ruleBy={};for(let r in this.countBy)this.insert(r)}destroy(){let e=j.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let n=this.style?.sheet,r=h=>{let M=this.ruleBy[h];if(!(!M||h in this.classesBy&&this.classesBy[h].some(E=>E in this.countBy))){if(n&&M.natives.length){let E=M.natives[0];for(let R=0;R<n.cssRules.length;R++)if(n.cssRules[R]===E.cssRule){for(let C=0;C<M.natives.length;C++)n.deleteRule(R);break}}this.rules.splice(this.rules.indexOf(M),1),delete this.ruleBy[h],M.config.delete&&M.config.delete.call(M,h)}};if(e in this.classes){for(let h of this.classes[e])h in this.countBy||r(h);delete this.ruleBy[e]}else r(e)}insert(e){let n=this.create(e);return n.length?(this.insertRules(n),!0):!1}insertRules(e){for(let n of e){if(this.ruleBy[n.className])continue;let r,h=this.rules.length-1,{media:M,order:E,priority:R,hasWhere:g,className:C}=n,w=(o,f,b,u)=>{let m=0,l;f&&(m=o.findIndex(f)),b&&(l=o.findIndex(b)),m===-1&&(m=o.length),(l===void 0||l===-1)&&(l=o.length);let d=o.slice(m,l);for(let t=0;t<d.length;t++){let s=d[t];if(!(s.priority===-1||u&&u(s))&&(s.priority<R||s.priority===R&&(g&&!s.hasWhere||s.order>=E)))return m+t}return m+d.length};if(M){let o=this.rules.findIndex(f=>f.media);if(o!==-1){let f=M.features["max-width"],b=M.features["min-width"];if(f&&b){let u=f.value-b.value;for(let m=h;m>=o;m--){r=m;let l=this.rules[m],d=l.media,t=d.features["max-width"],s=d.features["min-width"];if(!t||!s){r++;break}let i=t.value-s.value;if(i===u){if(g!==l.hasWhere)continue;if(R!==-1){let c=[this.rules[m]];for(let a=m-1;a>=o;a--){let y=this.rules[a];if(y.hasWhere!==g)break;let v=y.media,B=v.features["max-width"],x=v.features["min-width"];if(!B||!x||B.value-x.value!==i)break;c.unshift(this.rules[a])}r=w(this.rules,a=>a.media&&a.priority!==-1&&a.media.features["min-width"]&&a.media.features["max-width"])}break}else if(i>u)break}}else if(b)for(let u=o;u<=h;u++){r=u;let m=this.rules[u],l=m.media,d=l.features["max-width"],t=l.features["min-width"];if(d){if(t)break;continue}let s=t?.value;if(s===b.value){if(!g&&m.hasWhere){r++;continue}if(R!==-1)r=w(this.rules,i=>i.media,i=>i.media&&i.priority!==-1&&i.media.features["min-width"]&&i.media.features["max-width"],i=>!i.media.features["min-width"]&&!i.media.features["max-width"]);else for(let i=u;i<=h;i++){let c=this.rules[i],a=c.media,y=a.features["min-width"];if(!a.features["max-width"]){if(c.hasWhere!==g||y.value!==s||c.order>=E)break;r=i+1}}break}else{if(s>b.value)break;r++}}else if(f)for(let u=h;u>=o;u--){r=u;let m=this.rules[u],l=m.media,d=l.features["max-width"];if(l.features["min-width"])continue;let s=d?.value;if(!s||s>f.value){r++;break}else if(s===f.value){if(g&&!m.hasWhere)continue;if(R!==-1)r=w(this.rules,i=>i.media,i=>i.media&&i.priority!==-1&&i.media.features["min-width"]&&i.media.features["max-width"],i=>!i.media.features["min-width"]&&!i.media.features["max-width"]);else{let i=[this.rules[u]];for(let c=u-1;c>=o;c--){let a=this.rules[c],y=a.media,v=y.features["min-width"],B=y.features["max-width"];if(!v&&(!B||B.value!==s||a.hasWhere!==g))break;i.unshift(a)}for(let c=0;c<i.length;c++){let a=i[c];if(!a.media.features["min-width"]){if(a.order>=E)break;r=u-i.length+2+c}}}break}}}if(r===void 0)if(o===-1)r=h+1;else if(R!==-1)r=o+w(this.rules.slice(o),void 0,f=>f.media.features["max-width"]||f.media.features["min-width"]);else if(g){let f=o;for(;f<this.rules.length;f++){let b=this.rules[f];if(b.priority!==-1||!b.hasWhere||b.order>=E){r=f;break}}r===void 0&&(r=f)}else for(let f=o;f<=h;f++){r=f;let b=this.rules[f],u=b.media;if(b.priority!==-1||u.features["max-width"]||u.features["min-width"])break;if(b.hasWhere)r++;else if(b.order>=E)break}}else if(R===-1){if(g)r=this.rules.findIndex(o=>!o.hasWhere||o.media||o.priority!==-1||o.order>=E),r===-1&&(r=h+1);else{let o=0;for(;o<this.rules.length;o++){let f=this.rules[o];if(f.media||!f.hasWhere&&(f.order>=E||f.priority!==-1)){r=o;break}}r===void 0&&(r=o)}!r&&Object.keys(this.keyframes).length&&r++}else r=w(this.rules,void 0,o=>o.media);if(this.rules.splice(r,0,n),this.ruleBy[C]=n,this.style){let o=this.style.sheet,f=0,b=u=>{let m=this.rules[u];if(m){if(!m.natives.length)return b(u-1);let l=m.natives[m.natives.length-1].cssRule;for(let d=0;d<o.cssRules.length;d++)if(o.cssRules[d]===l){f=d+1;break}}};b(r-1);for(let u=0;u<n.natives.length;)try{let m=n.natives[u];o.insertRule(m.text,f),m.cssRule=o.cssRules[f++],u++}catch(m){console.error(m),n.natives.splice(u,1)}}n.config.insert?.call(n)}}get text(){return this.rules.map(e=>e.text).join("")}},S=j;A(S,"root"),A(S,"config",O.config),A(S,"instances",[]),A(S,"refresh",e=>{for(let n of j.instances)n.refresh(e)});N&&(window.MasterCSS=S);0&&(module.exports={MasterCSS});
1
+ var O=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var q=Object.prototype.hasOwnProperty;var P=(p,e,n)=>e in p?O(p,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):p[e]=n;var U=(p,e)=>{for(var n in e)O(p,n,{get:e[n],enumerable:!0})},Y=(p,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let h of Z(e))!q.call(p,h)&&h!==n&&O(p,h,{get:()=>e[h],enumerable:!(r=_(e,h))||r.enumerable});return p};var G=p=>Y(O({},"__esModule",{value:!0}),p);var T=(p,e,n)=>(P(p,typeof e!="symbol"?e+"":e,n),n);var J={};U(J,{MasterCSS:()=>W});module.exports=G(J);function F(p){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&p instanceof e||p instanceof Date||p instanceof RegExp)}function I(p){if(typeof Buffer<"u"&&Buffer&&p instanceof Buffer){let e=Buffer.alloc(p.length);return p.copy(e),e}else{if(p instanceof Date)return new Date(p.getTime());if(p instanceof RegExp)return new RegExp(p);throw new Error("Unexpected situation")}}function $(p){let e=[];return p.forEach(function(n,r){typeof n=="object"&&n!==null?Array.isArray(n)?e[r]=$(n):F(n)?e[r]=I(n):e[r]=j({},n):e[r]=n}),e}function L(p,e){return e==="__proto__"?void 0:p[e]}function j(...p){let e={},n,r;return p.forEach(function(h){typeof h!="object"||h===null||Array.isArray(h)||Object.keys(h).forEach(function(M){if(r=L(e,M),n=L(h,M),n!==e)if(typeof n!="object"||n===null){e[M]=n;return}else if(Array.isArray(n)){e[M]=$(n);return}else if(F(n)){e[M]=I(n);return}else if(typeof r!="object"||r===null||Array.isArray(r)){e[M]=j({},n);return}else{e[M]=j(r,n);return}})}),e}var D=require("./rule"),S=require("./config"),H=require("./utils/rgb-to-hex"),Q=require("./constants/selector-symbols");var N=typeof window<"u",V=()=>{let p=document.createElement("style");return p.id="master",p},A=class{constructor(e){this.config=e;this.config?.override||(this.config=j(S.config,e)),this.cache(),N&&this.config.observe&&this.observe(document),A.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:n,selectors:r,themes:h,colors:M,values:B,breakpoints:R,mediaQueries:g,rules:k}=this.config;function w(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(t,s,i="",c={}){let a=x=>x?(i?i+"-":"")+x:i,y=Object.entries(t),v=[],C=[];for(let x of y){let E=x[1];(typeof E=="object"&&!Array.isArray(E)?v:C).push(x)}for(let[x,E]of v)o(E,s,a(x),c);if(s&&i)C.length&&(c[i]=C.reduce((x,[E,z])=>(x[E]=z,x),{}));else for(let[x,E]of C)c[a(x)]=E;return c}if(e)for(let[t,s]of Object.entries(o(e,!0)))this.semantics.push([new RegExp("^"+w(t)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[t,s]]);if(r)for(let[t,s]of Object.entries(o(r,!1))){let i=new RegExp(w(t)+"(?![a-z-])");for(let c of Array.isArray(s)?s:[s]){let a=c.match(/^::-[a-z]+-/m)?.[0]??"",y=this.selectors[a];y||(y=this.selectors[a]=[]);let v=y.find(([C])=>C===i);v||(v=[i,[]],y.push(v)),v[1].push(c)}}B&&(this.globalValues=o(B,!1)),R&&(this.breakpoints=o(R,!1)),g&&(this.mediaQueries=o(g,!1));let f=n?o(n,!1):{},b=h&&!Array.isArray(h)?Object.entries(h).filter(([,{classes:t}])=>t).reduce((t,[s,{classes:i}])=>(t[s]=o(i,!1),t),{}):{},u=[...Object.keys(f),...Object.entries(b).flatMap(([t,s])=>Object.keys(s))],m=t=>{if(t in this.classes)return;let s=this.classes[t]=[],i=(c,a)=>{if(!a)return;let y=Array.isArray(a)?a:a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let v of y){let C=x=>{x in this.themeAffectedClassesBy?c in this.themeAffectedClassesBy[x]?this.themeAffectedClassesBy[x][c].push(t):this.themeAffectedClassesBy[x][c]=[t]:this.themeAffectedClassesBy[x]={[c]:[t]},s.includes(x)||s.push(x)};if(u.includes(v)){m(v);for(let x of this.classes[v])C(x)}else C(v)}};i("",f?.[t]);for(let[c,a]of Object.entries(b))i(c,a?.[t])};for(let t of u)m(t);for(let t in this.themeAffectedClassesBy){let s=this.classesBy[t]=[];for(let i of Object.values(this.themeAffectedClassesBy[t]))for(let c of i)s.includes(c)||s.push(c)}let l=(t,s)=>{if(!s)return;let i=o(s,!0);for(let[c,a]of Object.entries(i)){let y=typeof a=="string"?{"":a}:a;for(let[v,C]of Object.entries(y)){let x=c+(v?"-"+v:"");x in this.colorThemesMap?this.colorThemesMap[x][t]=C:this.colorThemesMap[x]={[t]:C}}}for(let c in s)this.colorNames.includes(c)||this.colorNames.push(c)};if(l("",M),h)if(Array.isArray(h))this.themeNames.push(...h);else for(let t in h){let s=h[t];l(t,s.colors),this.themeNames.push(t)}let d=t=>{for(let[s,i]of Object.entries(this.colorThemesMap))for(let[c,a]of Object.entries(i))a.startsWith("#")||t(s,i,c,a)};if(d((t,s,i,c)=>{let a=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(c);if(a){let y="#"+(0,H.rgbToHex)(+a[1],+a[2],+a[3]);a[4]&&(y+=Math.round(255*+a[4]).toString(16)),s[i]=y}}),d((t,s,i,c)=>{let[a,y]=c.split("/"),v=this.colorThemesMap[a];if(v){let C=(i?v[i]:void 0)??v[""];s[i]=y?C.slice(0,7)+Math.round(255*+y).toString(16):C}else console.warn(`\`${c}\` doesn't exist in the extended config \`.colors\``),delete s[i],Object.keys(s).length||delete this.colorThemesMap[t]}),k)for(let t in k){let s=k[t],{native:i,values:c,colored:a}=s,y=s.match;if(s.id=t,s.native=i===!0?t.replace(/(?!^)[A-Z]/g,v=>"-"+v).toLowerCase():void 0,c&&(this.values[t]=o(c,!1)),y){let v=Object.keys(this.values[t]??{});y.includes("$values")&&(y=v.length?y.replace(/\$values/,v.join("|")):y.replace(/(?:\|)?\$values/,"")),a&&y.includes("$colors")&&(y=this.colorNames.length?y.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):y.replace(/(?:\|)?\$colors/,"")),this.matches[t]=new RegExp(y)}}}observe(e,n={subtree:!0,childList:!0}){if(this.root!==e){if(N&&e){this.root=e;let r=e===document;r&&(A.root=this),this.host=r?document.documentElement:root.host;let h=r?document.head:e,M=r?document.styleSheets:e.styleSheets;for(let R of M){let{href:g,ownerNode:k}=R;if(k.id==="master"||g&&g.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(g)){this.style=k;break}}if(this.style)for(let R=0;R<this.style.sheet.cssRules.length;R++){let g=this.style.sheet.cssRules[R];if(g.constructor.name==="CSSKeyframesRule")continue;let k=o=>{if(o.selectorText){let b=o.selectorText.split(", ")[0].split(" ");for(let u=0;u<b.length;u++){let m=b[u];if(m[0]==="."){let l=m.slice(1),d="";for(let t=0;t<l.length;t++){let s=l[t],i=l[t+1];if(s==="\\"){if(t++,i!=="\\"){d+=i;continue}}else if(Q.SELECTOR_SYMBOLS.includes(s))break;d+=s}if(!(d in this.ruleBy)&&!(d in this.classes)){let t=this.create(d)[0];if(t)return t}}}}else if(o.cssRules)for(let f=0;f<o.cssRules.length;f++){let b=k(o.cssRules[f]);if(b)return b}},w=k(g);if(w){this.rules.push(w),this.ruleBy[w.className]=w;for(let o=0;o<w.natives.length;o++)w.natives[o].cssRule=this.style.sheet.cssRules[R+o];R+=w.natives.length-1,w.config.insert?.call(w)}}else this.style=V(),h.append(this.style);let B=R=>{R.forEach(g=>{g in this.countBy?this.countBy[g]++:(this.countBy[g]=1,this.insert(g))})};B(this.host.classList),n.subtree&&this.host.querySelectorAll("[class]").forEach(R=>B(R.classList)),this.observer=new MutationObserver(R=>{let g={},k=[],w=[],o=[],f=(l,d)=>{d?l.classList.forEach(u):l.classList.forEach(b);let t=l.children;for(let s=0;s<t.length;s++){let i=t[s];i.classList&&(w.push(i),f(i,d))}},b=l=>{l in g?g[l]++:g[l]=1},u=l=>{l in g?g[l]--:l in this.countBy&&(g[l]=-1)},m=(l,d)=>{for(let t=0;t<l.length;t++){let s=l[t];s.classList&&!w.includes(s)&&!o.includes(s)&&(s.isConnected!==d?(w.push(s),f(s,d)):o.push(s))}};for(let l=0;l<R.length;l++){let d=R[l],{addedNodes:t,removedNodes:s,type:i,target:c}=d;if(i==="attributes"){if(k.find(a=>a.target===c))continue;k.push(d)}else m(t,!1),(!c.isConnected||!w.includes(c))&&m(s,!0)}if(!(!k.length&&!Object.keys(g).length)){for(let{oldValue:l,target:d}of k){let t=w.includes(d),s=d.classList,i=l?l.split(" "):[];if(t){if(d.isConnected)continue;for(let c of i)s.contains(c)||u(c)}else if(d.isConnected){s.forEach(c=>{i.includes(c)||b(c)});for(let c of i)s.contains(c)||u(c)}}for(let l in g){let d=g[l],t=(this.countBy[l]||0)+d;t===0?(delete this.countBy[l],this.delete(l)):(l in this.countBy||this.insert(l),this.countBy[l]=t)}}}),this.observer.observe(e,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let n=e.cssRules.length-1;n>=0;n--)e.deleteRule(n);this.style?.remove(),this.style=null,this.root=null}match(e){for(let n in this.config.rules){let r=this.config.rules[n],h=this.matches[n],{symbol:M,native:B}=r;if(h&&h.test(e))return{origin:"match",config:r};if(M&&e.startsWith(M))return{origin:"symbol",config:r};if(B&&e.startsWith(B+":"))return{origin:"match",config:r}}for(let n of this.semantics)if(e.match(n[0]))return{origin:"semantics",value:n[1]}}create(e){let n=r=>{if(r in this.ruleBy)return this.ruleBy[r];let h=this.match(r);if(h)return new D.Rule(r,h,this)};return(e in this.classes?this.classes[e].map(r=>n(r)):[n(e)]).filter(r=>r&&r.text)}refresh(e){if(e?.override?this.config=e:this.config=j(S.config,e),this.cache(),!this.style)return;let n=V();this.style.replaceWith(n),this.style=n,this.rules.length=0,this.ruleBy={};for(let r in this.countBy)this.insert(r)}destroy(){let e=A.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let n=this.style?.sheet,r=h=>{let M=this.ruleBy[h];if(!(!M||h in this.classesBy&&this.classesBy[h].some(B=>B in this.countBy))){if(n&&M.natives.length){let B=M.natives[0];for(let R=0;R<n.cssRules.length;R++)if(n.cssRules[R]===B.cssRule){for(let k=0;k<M.natives.length;k++)n.deleteRule(R);break}}this.rules.splice(this.rules.indexOf(M),1),delete this.ruleBy[h],M.config.delete&&M.config.delete.call(M,h)}};if(e in this.classes){for(let h of this.classes[e])h in this.countBy||r(h);delete this.ruleBy[e]}else r(e)}insert(e){let n=this.create(e);return n.length?(this.insertRules(n),!0):!1}insertRules(e){for(let n of e){if(this.ruleBy[n.className])continue;let r,h=this.rules.length-1,{media:M,order:B,priority:R,hasWhere:g,className:k}=n,w=(o,f,b,u)=>{let m=0,l;f&&(m=o.findIndex(f)),b&&(l=o.findIndex(b)),m===-1&&(m=o.length),(l===void 0||l===-1)&&(l=o.length);let d=o.slice(m,l);for(let t=0;t<d.length;t++){let s=d[t];if(!(s.priority===-1||u&&u(s))&&(s.priority<R||s.priority===R&&(g&&!s.hasWhere||s.order>=B)))return m+t}return m+d.length};if(M){let o=this.rules.findIndex(f=>f.media);if(o!==-1){let f=M.features["max-width"],b=M.features["min-width"];if(f&&b){let u=f.value-b.value;for(let m=h;m>=o;m--){r=m;let l=this.rules[m],d=l.media,t=d.features["max-width"],s=d.features["min-width"];if(!t||!s){r++;break}let i=t.value-s.value;if(i===u){if(g!==l.hasWhere)continue;if(R!==-1){let c=[this.rules[m]];for(let a=m-1;a>=o;a--){let y=this.rules[a];if(y.hasWhere!==g)break;let v=y.media,C=v.features["max-width"],x=v.features["min-width"];if(!C||!x||C.value-x.value!==i)break;c.unshift(this.rules[a])}r=w(this.rules,a=>a.media&&a.priority!==-1&&a.media.features["min-width"]&&a.media.features["max-width"])}break}else if(i>u)break}}else if(b)for(let u=o;u<=h;u++){r=u;let m=this.rules[u],l=m.media,d=l.features["max-width"],t=l.features["min-width"];if(d){if(t)break;continue}let s=t?.value;if(s===b.value){if(!g&&m.hasWhere){r++;continue}if(R!==-1)r=w(this.rules,i=>i.media,i=>i.media&&i.priority!==-1&&i.media.features["min-width"]&&i.media.features["max-width"],i=>!i.media.features["min-width"]&&!i.media.features["max-width"]);else for(let i=u;i<=h;i++){let c=this.rules[i],a=c.media,y=a.features["min-width"];if(!a.features["max-width"]){if(c.hasWhere!==g||y.value!==s||c.order>=B)break;r=i+1}}break}else{if(s>b.value)break;r++}}else if(f)for(let u=h;u>=o;u--){r=u;let m=this.rules[u],l=m.media,d=l.features["max-width"];if(l.features["min-width"])continue;let s=d?.value;if(!s||s>f.value){r++;break}else if(s===f.value){if(g&&!m.hasWhere)continue;if(R!==-1)r=w(this.rules,i=>i.media,i=>i.media&&i.priority!==-1&&i.media.features["min-width"]&&i.media.features["max-width"],i=>!i.media.features["min-width"]&&!i.media.features["max-width"]);else{let i=[this.rules[u]];for(let c=u-1;c>=o;c--){let a=this.rules[c],y=a.media,v=y.features["min-width"],C=y.features["max-width"];if(!v&&(!C||C.value!==s||a.hasWhere!==g))break;i.unshift(a)}for(let c=0;c<i.length;c++){let a=i[c];if(!a.media.features["min-width"]){if(a.order>=B)break;r=u-i.length+2+c}}}break}}}if(r===void 0)if(o===-1)r=h+1;else if(R!==-1)r=o+w(this.rules.slice(o),void 0,f=>f.media.features["max-width"]||f.media.features["min-width"]);else if(g){let f=o;for(;f<this.rules.length;f++){let b=this.rules[f];if(b.priority!==-1||!b.hasWhere||b.order>=B){r=f;break}}r===void 0&&(r=f)}else for(let f=o;f<=h;f++){r=f;let b=this.rules[f],u=b.media;if(b.priority!==-1||u.features["max-width"]||u.features["min-width"])break;if(b.hasWhere)r++;else if(b.order>=B)break}}else if(R===-1){if(g)r=this.rules.findIndex(o=>!o.hasWhere||o.media||o.priority!==-1||o.order>=B),r===-1&&(r=h+1);else{let o=0;for(;o<this.rules.length;o++){let f=this.rules[o];if(f.media||!f.hasWhere&&(f.order>=B||f.priority!==-1)){r=o;break}}r===void 0&&(r=o)}!r&&Object.keys(this.keyframes).length&&r++}else r=w(this.rules,void 0,o=>o.media);if(this.rules.splice(r,0,n),this.ruleBy[k]=n,this.style){let o=this.style.sheet,f=0,b=u=>{let m=this.rules[u];if(m){if(!m.natives.length)return b(u-1);let l=m.natives[m.natives.length-1].cssRule;for(let d=0;d<o.cssRules.length;d++)if(o.cssRules[d]===l){f=d+1;break}}};b(r-1);for(let u=0;u<n.natives.length;)try{let m=n.natives[u];o.insertRule(m.text,f),m.cssRule=o.cssRules[f++],u++}catch(m){console.error(m),n.natives.splice(u,1)}}n.config.insert?.call(n)}}get text(){return this.rules.map(e=>e.text).join("")}},W=A;T(W,"root"),T(W,"config",S.config),T(W,"instances",[]),T(W,"refresh",e=>{for(let n of A.instances)n.refresh(e)});N&&(window.MasterCSS=W);0&&(module.exports={MasterCSS});
package/dist/css.d.ts CHANGED
@@ -33,7 +33,6 @@ export declare class MasterCSS {
33
33
  readonly countBy: {};
34
34
  readonly observing = false;
35
35
  observer: MutationObserver;
36
- private _containerObserver;
37
36
  constructor(config?: Config);
38
37
  cache(): void;
39
38
  observe(targetRoot: Document | ShadowRoot | null, options?: MutationObserverInit): this;
package/dist/esm/css.mjs CHANGED
@@ -1 +1 @@
1
- var D=Object.defineProperty;var H=(w,s,r)=>s in w?D(w,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):w[s]=r;var A=(w,s,r)=>(H(w,typeof s!="symbol"?s+"":s,r),r);function L(w){let s=typeof Buffer<"u"?Buffer:null;return!!(s&&w instanceof s||w instanceof Date||w instanceof RegExp)}function F(w){if(typeof Buffer<"u"&&Buffer&&w instanceof Buffer){let s=Buffer.alloc(w.length);return w.copy(s),s}else{if(w instanceof Date)return new Date(w.getTime());if(w instanceof RegExp)return new RegExp(w);throw new Error("Unexpected situation")}}function I(w){let s=[];return w.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?s[n]=I(r):L(r)?s[n]=F(r):s[n]=W({},r):s[n]=r}),s}function N(w,s){return s==="__proto__"?void 0:w[s]}function W(...w){let s={},r,n;return w.forEach(function(u){typeof u!="object"||u===null||Array.isArray(u)||Object.keys(u).forEach(function(x){if(n=N(s,x),r=N(u,x),r!==s)if(typeof r!="object"||r===null){s[x]=r;return}else if(Array.isArray(r)){s[x]=I(r);return}else if(L(r)){s[x]=F(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){s[x]=W({},r);return}else{s[x]=W(n,r);return}})}),s}import{Rule as Q}from"./rule.mjs";import{config as T}from"./config/index.mjs";import{rgbToHex as z}from"./utils/rgb-to-hex.mjs";import{SELECTOR_SYMBOLS as _}from"./constants/selector-symbols.mjs";var O=typeof window<"u",$=()=>{let w=document.createElement("style");return w.id="master",w},j=class{constructor(s){this.config=s;this.config?.override||(this.config=W(T,s)),this.cache(),O&&this.config.observe&&this.observe(document),j.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;e;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:s,classes:r,selectors:n,themes:u,colors:x,values:E,breakpoints:b,mediaQueries:g,rules:C}=this.config;function M(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(e,t,i="",c={}){let a=v=>v?(i?i+"-":"")+v:i,y=Object.entries(e),R=[],B=[];for(let v of y){let k=v[1];(typeof k=="object"&&!Array.isArray(k)?R:B).push(v)}for(let[v,k]of R)o(k,t,a(v),c);if(t&&i)B.length&&(c[i]=B.reduce((v,[k,V])=>(v[k]=V,v),{}));else for(let[v,k]of B)c[a(v)]=k;return c}if(s)for(let[e,t]of Object.entries(o(s,!0)))this.semantics.push([new RegExp("^"+M(e)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[e,t]]);if(n)for(let[e,t]of Object.entries(o(n,!1))){let i=new RegExp(M(e)+"(?![a-z-])");for(let c of Array.isArray(t)?t:[t]){let a=c.match(/^::-[a-z]+-/m)?.[0]??"",y=this.selectors[a];y||(y=this.selectors[a]=[]);let R=y.find(([B])=>B===i);R||(R=[i,[]],y.push(R)),R[1].push(c)}}E&&(this.globalValues=o(E,!1)),b&&(this.breakpoints=o(b,!1)),g&&(this.mediaQueries=o(g,!1));let h=r?o(r,!1):{},p=u&&!Array.isArray(u)?Object.entries(u).filter(([,{classes:e}])=>e).reduce((e,[t,{classes:i}])=>(e[t]=o(i,!1),e),{}):{},f=[...Object.keys(h),...Object.entries(p).flatMap(([e,t])=>Object.keys(t))],m=e=>{if(e in this.classes)return;let t=this.classes[e]=[],i=(c,a)=>{if(!a)return;let y=Array.isArray(a)?a:a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let R of y){let B=v=>{v in this.themeAffectedClassesBy?c in this.themeAffectedClassesBy[v]?this.themeAffectedClassesBy[v][c].push(e):this.themeAffectedClassesBy[v][c]=[e]:this.themeAffectedClassesBy[v]={[c]:[e]},t.includes(v)||t.push(v)};if(f.includes(R)){m(R);for(let v of this.classes[R])B(v)}else B(R)}};i("",h?.[e]);for(let[c,a]of Object.entries(p))i(c,a?.[e])};for(let e of f)m(e);for(let e in this.themeAffectedClassesBy){let t=this.classesBy[e]=[];for(let i of Object.values(this.themeAffectedClassesBy[e]))for(let c of i)t.includes(c)||t.push(c)}let l=(e,t)=>{if(!t)return;let i=o(t,!0);for(let[c,a]of Object.entries(i)){let y=typeof a=="string"?{"":a}:a;for(let[R,B]of Object.entries(y)){let v=c+(R?"-"+R:"");v in this.colorThemesMap?this.colorThemesMap[v][e]=B:this.colorThemesMap[v]={[e]:B}}}for(let c in t)this.colorNames.includes(c)||this.colorNames.push(c)};if(l("",x),u)if(Array.isArray(u))this.themeNames.push(...u);else for(let e in u){let t=u[e];l(e,t.colors),this.themeNames.push(e)}let d=e=>{for(let[t,i]of Object.entries(this.colorThemesMap))for(let[c,a]of Object.entries(i))a.startsWith("#")||e(t,i,c,a)};if(d((e,t,i,c)=>{let a=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(c);if(a){let y="#"+z(+a[1],+a[2],+a[3]);a[4]&&(y+=Math.round(255*+a[4]).toString(16)),t[i]=y}}),d((e,t,i,c)=>{let[a,y]=c.split("/"),R=this.colorThemesMap[a];if(R){let B=(i?R[i]:void 0)??R[""];t[i]=y?B.slice(0,7)+Math.round(255*+y).toString(16):B}else console.warn(`\`${c}\` doesn't exist in the extended config \`.colors\``),delete t[i],Object.keys(t).length||delete this.colorThemesMap[e]}),C)for(let e in C){let t=C[e],{native:i,values:c,colored:a}=t,y=t.match;if(t.id=e,t.native=i===!0?e.replace(/(?!^)[A-Z]/g,R=>"-"+R).toLowerCase():void 0,c&&(this.values[e]=o(c,!1)),y){let R=Object.keys(this.values[e]??{});y.includes("$values")&&(y=R.length?y.replace(/\$values/,R.join("|")):y.replace(/(?:\|)?\$values/,"")),a&&y.includes("$colors")&&(y=this.colorNames.length?y.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):y.replace(/(?:\|)?\$colors/,"")),this.matches[e]=new RegExp(y)}}}observe(s,r={subtree:!0,childList:!0}){if(this.root!==s){if(O&&s){this.root=s;let n=s===document;n&&(j.root=this),this.host=n?document.documentElement:root.host;let u=n?document.head:s,x=n?document.styleSheets:s.styleSheets;for(let b of x){let{href:g,ownerNode:C}=b;(C.id==="master"||g&&g.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(g))&&(this.style=C)}if(this.style)for(let b=0;b<this.style.sheet.cssRules.length;b++){let g=this.style.sheet.cssRules[b];if(g.constructor.name==="CSSKeyframesRule")continue;let C=o=>{if(o.selectorText){let p=o.selectorText.split(", ")[0].split(" ");for(let f=0;f<p.length;f++){let m=p[f];if(m[0]==="."){let l=m.slice(1),d="";for(let e=0;e<l.length;e++){let t=l[e],i=l[e+1];if(t==="\\"){if(e++,i!=="\\"){d+=i;continue}}else if(_.includes(t))break;d+=t}if(!(d in this.ruleBy)&&!(d in this.classes)){let e=this.create(d)[0];if(e)return e}}}}else if(o.cssRules)for(let h=0;h<o.cssRules.length;h++){let p=C(o.cssRules[h]);if(p)return p}},M=C(g);if(M){this.rules.push(M),this.ruleBy[M.className]=M;for(let o=0;o<M.natives.length;o++)M.natives[o].cssRule=this.style.sheet.cssRules[b+o];b+=M.natives.length-1,M.config.insert?.call(M)}}else this.style=$();u.append(this.style);let E=b=>{b.forEach(g=>{g in this.countBy?this.countBy[g]++:(this.countBy[g]=1,this.insert(g))})};E(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(b=>E(b.classList)),this.observer=new MutationObserver(b=>{let g={},C=[],M=[],o=[],h=(l,d)=>{d?l.classList.forEach(f):l.classList.forEach(p);let e=l.children;for(let t=0;t<e.length;t++){let i=e[t];i.classList&&(M.push(i),h(i,d))}},p=l=>{l in g?g[l]++:g[l]=1},f=l=>{l in g?g[l]--:l in this.countBy&&(g[l]=-1)},m=(l,d)=>{for(let e=0;e<l.length;e++){let t=l[e];t.classList&&!M.includes(t)&&!o.includes(t)&&(t.isConnected!==d?(M.push(t),h(t,d)):o.push(t))}};for(let l=0;l<b.length;l++){let d=b[l],{addedNodes:e,removedNodes:t,type:i,target:c}=d;if(i==="attributes"){if(C.find(a=>a.target===c))continue;C.push(d)}else m(e,!1),(!c.isConnected||!M.includes(c))&&m(t,!0)}if(!(!C.length&&!Object.keys(g).length)){for(let{oldValue:l,target:d}of C){let e=M.includes(d),t=d.classList,i=l?l.split(" "):[];if(e){if(d.isConnected)continue;for(let c of i)t.contains(c)||f(c)}else if(d.isConnected){t.forEach(c=>{i.includes(c)||p(c)});for(let c of i)t.contains(c)||f(c)}}for(let l in g){let d=g[l],e=(this.countBy[l]||0)+d;e===0?(delete this.countBy[l],this.delete(l)):(l in this.countBy||this.insert(l),this.countBy[l]=e)}}}),this.observer.observe(s,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.e=new MutationObserver(b=>{for(let g of b)for(let C of g.addedNodes)if(C.nodeName==="STYLE"||C.nodeName==="LINK"&&C.rel==="stylesheet"){let M=this.root.styleSheets;if(M.item(M.length-1).ownerNode!==this.style){let p=this.style.sheet.cssRules;u.append(this.style);for(let f of p)this.style.sheet.insertRule(f.cssText)}}}),this.e.observe(u,{childList:!0}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.e&&(this.e.disconnect(),this.e=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let s=this.style?.sheet;if(s?.cssRules)for(let r=s.cssRules.length-1;r>=0;r--)s.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(s){for(let r in this.config.rules){let n=this.config.rules[r],u=this.matches[r],{symbol:x,native:E}=n;if(u&&u.test(s))return{origin:"match",config:n};if(x&&s.startsWith(x))return{origin:"symbol",config:n};if(E&&s.startsWith(E+":"))return{origin:"match",config:n}}for(let r of this.semantics)if(s.match(r[0]))return{origin:"semantics",value:r[1]}}create(s){let r=n=>{if(n in this.ruleBy)return this.ruleBy[n];let u=this.match(n);if(u)return new Q(n,u,this)};return(s in this.classes?this.classes[s].map(n=>r(n)):[r(s)]).filter(n=>n&&n.text)}refresh(s){if(s?.override?this.config=s:this.config=W(T,s),this.cache(),!this.style)return;let r=$();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let n in this.countBy)this.insert(n)}destroy(){let s=j.instances;this.disconnect(),s.splice(s.indexOf(this),1)}delete(s){let r=this.style?.sheet,n=u=>{let x=this.ruleBy[u];if(!(!x||u in this.classesBy&&this.classesBy[u].some(E=>E in this.countBy))){if(r&&x.natives.length){let E=x.natives[0];for(let b=0;b<r.cssRules.length;b++)if(r.cssRules[b]===E.cssRule){for(let C=0;C<x.natives.length;C++)r.deleteRule(b);break}}this.rules.splice(this.rules.indexOf(x),1),delete this.ruleBy[u],x.config.delete&&x.config.delete.call(x,u)}};if(s in this.classes){for(let u of this.classes[s])u in this.countBy||n(u);delete this.ruleBy[s]}else n(s)}insert(s){let r=this.create(s);return r.length?(this.insertRules(r),!0):!1}insertRules(s){for(let r of s){if(this.ruleBy[r.className])continue;let n,u=this.rules.length-1,{media:x,order:E,priority:b,hasWhere:g,className:C}=r,M=(o,h,p,f)=>{let m=0,l;h&&(m=o.findIndex(h)),p&&(l=o.findIndex(p)),m===-1&&(m=o.length),(l===void 0||l===-1)&&(l=o.length);let d=o.slice(m,l);for(let e=0;e<d.length;e++){let t=d[e];if(!(t.priority===-1||f&&f(t))&&(t.priority<b||t.priority===b&&(g&&!t.hasWhere||t.order>=E)))return m+e}return m+d.length};if(x){let o=this.rules.findIndex(h=>h.media);if(o!==-1){let h=x.features["max-width"],p=x.features["min-width"];if(h&&p){let f=h.value-p.value;for(let m=u;m>=o;m--){n=m;let l=this.rules[m],d=l.media,e=d.features["max-width"],t=d.features["min-width"];if(!e||!t){n++;break}let i=e.value-t.value;if(i===f){if(g!==l.hasWhere)continue;if(b!==-1){let c=[this.rules[m]];for(let a=m-1;a>=o;a--){let y=this.rules[a];if(y.hasWhere!==g)break;let R=y.media,B=R.features["max-width"],v=R.features["min-width"];if(!B||!v||B.value-v.value!==i)break;c.unshift(this.rules[a])}n=M(this.rules,a=>a.media&&a.priority!==-1&&a.media.features["min-width"]&&a.media.features["max-width"])}break}else if(i>f)break}}else if(p)for(let f=o;f<=u;f++){n=f;let m=this.rules[f],l=m.media,d=l.features["max-width"],e=l.features["min-width"];if(d){if(e)break;continue}let t=e?.value;if(t===p.value){if(!g&&m.hasWhere){n++;continue}if(b!==-1)n=M(this.rules,i=>i.media,i=>i.media&&i.priority!==-1&&i.media.features["min-width"]&&i.media.features["max-width"],i=>!i.media.features["min-width"]&&!i.media.features["max-width"]);else for(let i=f;i<=u;i++){let c=this.rules[i],a=c.media,y=a.features["min-width"];if(!a.features["max-width"]){if(c.hasWhere!==g||y.value!==t||c.order>=E)break;n=i+1}}break}else{if(t>p.value)break;n++}}else if(h)for(let f=u;f>=o;f--){n=f;let m=this.rules[f],l=m.media,d=l.features["max-width"];if(l.features["min-width"])continue;let t=d?.value;if(!t||t>h.value){n++;break}else if(t===h.value){if(g&&!m.hasWhere)continue;if(b!==-1)n=M(this.rules,i=>i.media,i=>i.media&&i.priority!==-1&&i.media.features["min-width"]&&i.media.features["max-width"],i=>!i.media.features["min-width"]&&!i.media.features["max-width"]);else{let i=[this.rules[f]];for(let c=f-1;c>=o;c--){let a=this.rules[c],y=a.media,R=y.features["min-width"],B=y.features["max-width"];if(!R&&(!B||B.value!==t||a.hasWhere!==g))break;i.unshift(a)}for(let c=0;c<i.length;c++){let a=i[c];if(!a.media.features["min-width"]){if(a.order>=E)break;n=f-i.length+2+c}}}break}}}if(n===void 0)if(o===-1)n=u+1;else if(b!==-1)n=o+M(this.rules.slice(o),void 0,h=>h.media.features["max-width"]||h.media.features["min-width"]);else if(g){let h=o;for(;h<this.rules.length;h++){let p=this.rules[h];if(p.priority!==-1||!p.hasWhere||p.order>=E){n=h;break}}n===void 0&&(n=h)}else for(let h=o;h<=u;h++){n=h;let p=this.rules[h],f=p.media;if(p.priority!==-1||f.features["max-width"]||f.features["min-width"])break;if(p.hasWhere)n++;else if(p.order>=E)break}}else if(b===-1){if(g)n=this.rules.findIndex(o=>!o.hasWhere||o.media||o.priority!==-1||o.order>=E),n===-1&&(n=u+1);else{let o=0;for(;o<this.rules.length;o++){let h=this.rules[o];if(h.media||!h.hasWhere&&(h.order>=E||h.priority!==-1)){n=o;break}}n===void 0&&(n=o)}!n&&Object.keys(this.keyframes).length&&n++}else n=M(this.rules,void 0,o=>o.media);if(this.rules.splice(n,0,r),this.ruleBy[C]=r,this.style){let o=this.style.sheet,h=0,p=f=>{let m=this.rules[f];if(m){if(!m.natives.length)return p(f-1);let l=m.natives[m.natives.length-1].cssRule;for(let d=0;d<o.cssRules.length;d++)if(o.cssRules[d]===l){h=d+1;break}}};p(n-1);for(let f=0;f<r.natives.length;)try{let m=r.natives[f];o.insertRule(m.text,h),m.cssRule=o.cssRules[h++],f++}catch(m){console.error(m),r.natives.splice(f,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(s=>s.text).join("")}},S=j;A(S,"root"),A(S,"config",T),A(S,"instances",[]),A(S,"refresh",s=>{for(let r of j.instances)r.refresh(s)});O&&(window.MasterCSS=S);export{S as MasterCSS};
1
+ var D=Object.defineProperty;var H=(M,s,r)=>s in M?D(M,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):M[s]=r;var T=(M,s,r)=>(H(M,typeof s!="symbol"?s+"":s,r),r);function L(M){let s=typeof Buffer<"u"?Buffer:null;return!!(s&&M instanceof s||M instanceof Date||M instanceof RegExp)}function F(M){if(typeof Buffer<"u"&&Buffer&&M instanceof Buffer){let s=Buffer.alloc(M.length);return M.copy(s),s}else{if(M instanceof Date)return new Date(M.getTime());if(M instanceof RegExp)return new RegExp(M);throw new Error("Unexpected situation")}}function I(M){let s=[];return M.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?s[n]=I(r):L(r)?s[n]=F(r):s[n]=j({},r):s[n]=r}),s}function N(M,s){return s==="__proto__"?void 0:M[s]}function j(...M){let s={},r,n;return M.forEach(function(d){typeof d!="object"||d===null||Array.isArray(d)||Object.keys(d).forEach(function(x){if(n=N(s,x),r=N(d,x),r!==s)if(typeof r!="object"||r===null){s[x]=r;return}else if(Array.isArray(r)){s[x]=I(r);return}else if(L(r)){s[x]=F(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){s[x]=j({},r);return}else{s[x]=j(n,r);return}})}),s}import{Rule as Q}from"./rule.mjs";import{config as O}from"./config/index.mjs";import{rgbToHex as z}from"./utils/rgb-to-hex.mjs";import{SELECTOR_SYMBOLS as _}from"./constants/selector-symbols.mjs";var S=typeof window<"u",$=()=>{let M=document.createElement("style");return M.id="master",M},A=class{constructor(s){this.config=s;this.config?.override||(this.config=j(O,s)),this.cache(),S&&this.config.observe&&this.observe(document),A.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:s,classes:r,selectors:n,themes:d,colors:x,values:B,breakpoints:b,mediaQueries:g,rules:k}=this.config;function w(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(e,t,i="",c={}){let a=v=>v?(i?i+"-":"")+v:i,y=Object.entries(e),R=[],C=[];for(let v of y){let E=v[1];(typeof E=="object"&&!Array.isArray(E)?R:C).push(v)}for(let[v,E]of R)o(E,t,a(v),c);if(t&&i)C.length&&(c[i]=C.reduce((v,[E,V])=>(v[E]=V,v),{}));else for(let[v,E]of C)c[a(v)]=E;return c}if(s)for(let[e,t]of Object.entries(o(s,!0)))this.semantics.push([new RegExp("^"+w(e)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[e,t]]);if(n)for(let[e,t]of Object.entries(o(n,!1))){let i=new RegExp(w(e)+"(?![a-z-])");for(let c of Array.isArray(t)?t:[t]){let a=c.match(/^::-[a-z]+-/m)?.[0]??"",y=this.selectors[a];y||(y=this.selectors[a]=[]);let R=y.find(([C])=>C===i);R||(R=[i,[]],y.push(R)),R[1].push(c)}}B&&(this.globalValues=o(B,!1)),b&&(this.breakpoints=o(b,!1)),g&&(this.mediaQueries=o(g,!1));let h=r?o(r,!1):{},p=d&&!Array.isArray(d)?Object.entries(d).filter(([,{classes:e}])=>e).reduce((e,[t,{classes:i}])=>(e[t]=o(i,!1),e),{}):{},f=[...Object.keys(h),...Object.entries(p).flatMap(([e,t])=>Object.keys(t))],m=e=>{if(e in this.classes)return;let t=this.classes[e]=[],i=(c,a)=>{if(!a)return;let y=Array.isArray(a)?a:a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let R of y){let C=v=>{v in this.themeAffectedClassesBy?c in this.themeAffectedClassesBy[v]?this.themeAffectedClassesBy[v][c].push(e):this.themeAffectedClassesBy[v][c]=[e]:this.themeAffectedClassesBy[v]={[c]:[e]},t.includes(v)||t.push(v)};if(f.includes(R)){m(R);for(let v of this.classes[R])C(v)}else C(R)}};i("",h?.[e]);for(let[c,a]of Object.entries(p))i(c,a?.[e])};for(let e of f)m(e);for(let e in this.themeAffectedClassesBy){let t=this.classesBy[e]=[];for(let i of Object.values(this.themeAffectedClassesBy[e]))for(let c of i)t.includes(c)||t.push(c)}let l=(e,t)=>{if(!t)return;let i=o(t,!0);for(let[c,a]of Object.entries(i)){let y=typeof a=="string"?{"":a}:a;for(let[R,C]of Object.entries(y)){let v=c+(R?"-"+R:"");v in this.colorThemesMap?this.colorThemesMap[v][e]=C:this.colorThemesMap[v]={[e]:C}}}for(let c in t)this.colorNames.includes(c)||this.colorNames.push(c)};if(l("",x),d)if(Array.isArray(d))this.themeNames.push(...d);else for(let e in d){let t=d[e];l(e,t.colors),this.themeNames.push(e)}let u=e=>{for(let[t,i]of Object.entries(this.colorThemesMap))for(let[c,a]of Object.entries(i))a.startsWith("#")||e(t,i,c,a)};if(u((e,t,i,c)=>{let a=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(c);if(a){let y="#"+z(+a[1],+a[2],+a[3]);a[4]&&(y+=Math.round(255*+a[4]).toString(16)),t[i]=y}}),u((e,t,i,c)=>{let[a,y]=c.split("/"),R=this.colorThemesMap[a];if(R){let C=(i?R[i]:void 0)??R[""];t[i]=y?C.slice(0,7)+Math.round(255*+y).toString(16):C}else console.warn(`\`${c}\` doesn't exist in the extended config \`.colors\``),delete t[i],Object.keys(t).length||delete this.colorThemesMap[e]}),k)for(let e in k){let t=k[e],{native:i,values:c,colored:a}=t,y=t.match;if(t.id=e,t.native=i===!0?e.replace(/(?!^)[A-Z]/g,R=>"-"+R).toLowerCase():void 0,c&&(this.values[e]=o(c,!1)),y){let R=Object.keys(this.values[e]??{});y.includes("$values")&&(y=R.length?y.replace(/\$values/,R.join("|")):y.replace(/(?:\|)?\$values/,"")),a&&y.includes("$colors")&&(y=this.colorNames.length?y.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):y.replace(/(?:\|)?\$colors/,"")),this.matches[e]=new RegExp(y)}}}observe(s,r={subtree:!0,childList:!0}){if(this.root!==s){if(S&&s){this.root=s;let n=s===document;n&&(A.root=this),this.host=n?document.documentElement:root.host;let d=n?document.head:s,x=n?document.styleSheets:s.styleSheets;for(let b of x){let{href:g,ownerNode:k}=b;if(k.id==="master"||g&&g.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(g)){this.style=k;break}}if(this.style)for(let b=0;b<this.style.sheet.cssRules.length;b++){let g=this.style.sheet.cssRules[b];if(g.constructor.name==="CSSKeyframesRule")continue;let k=o=>{if(o.selectorText){let p=o.selectorText.split(", ")[0].split(" ");for(let f=0;f<p.length;f++){let m=p[f];if(m[0]==="."){let l=m.slice(1),u="";for(let e=0;e<l.length;e++){let t=l[e],i=l[e+1];if(t==="\\"){if(e++,i!=="\\"){u+=i;continue}}else if(_.includes(t))break;u+=t}if(!(u in this.ruleBy)&&!(u in this.classes)){let e=this.create(u)[0];if(e)return e}}}}else if(o.cssRules)for(let h=0;h<o.cssRules.length;h++){let p=k(o.cssRules[h]);if(p)return p}},w=k(g);if(w){this.rules.push(w),this.ruleBy[w.className]=w;for(let o=0;o<w.natives.length;o++)w.natives[o].cssRule=this.style.sheet.cssRules[b+o];b+=w.natives.length-1,w.config.insert?.call(w)}}else this.style=$(),d.append(this.style);let B=b=>{b.forEach(g=>{g in this.countBy?this.countBy[g]++:(this.countBy[g]=1,this.insert(g))})};B(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(b=>B(b.classList)),this.observer=new MutationObserver(b=>{let g={},k=[],w=[],o=[],h=(l,u)=>{u?l.classList.forEach(f):l.classList.forEach(p);let e=l.children;for(let t=0;t<e.length;t++){let i=e[t];i.classList&&(w.push(i),h(i,u))}},p=l=>{l in g?g[l]++:g[l]=1},f=l=>{l in g?g[l]--:l in this.countBy&&(g[l]=-1)},m=(l,u)=>{for(let e=0;e<l.length;e++){let t=l[e];t.classList&&!w.includes(t)&&!o.includes(t)&&(t.isConnected!==u?(w.push(t),h(t,u)):o.push(t))}};for(let l=0;l<b.length;l++){let u=b[l],{addedNodes:e,removedNodes:t,type:i,target:c}=u;if(i==="attributes"){if(k.find(a=>a.target===c))continue;k.push(u)}else m(e,!1),(!c.isConnected||!w.includes(c))&&m(t,!0)}if(!(!k.length&&!Object.keys(g).length)){for(let{oldValue:l,target:u}of k){let e=w.includes(u),t=u.classList,i=l?l.split(" "):[];if(e){if(u.isConnected)continue;for(let c of i)t.contains(c)||f(c)}else if(u.isConnected){t.forEach(c=>{i.includes(c)||p(c)});for(let c of i)t.contains(c)||f(c)}}for(let l in g){let u=g[l],e=(this.countBy[l]||0)+u;e===0?(delete this.countBy[l],this.delete(l)):(l in this.countBy||this.insert(l),this.countBy[l]=e)}}}),this.observer.observe(s,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let s=this.style?.sheet;if(s?.cssRules)for(let r=s.cssRules.length-1;r>=0;r--)s.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(s){for(let r in this.config.rules){let n=this.config.rules[r],d=this.matches[r],{symbol:x,native:B}=n;if(d&&d.test(s))return{origin:"match",config:n};if(x&&s.startsWith(x))return{origin:"symbol",config:n};if(B&&s.startsWith(B+":"))return{origin:"match",config:n}}for(let r of this.semantics)if(s.match(r[0]))return{origin:"semantics",value:r[1]}}create(s){let r=n=>{if(n in this.ruleBy)return this.ruleBy[n];let d=this.match(n);if(d)return new Q(n,d,this)};return(s in this.classes?this.classes[s].map(n=>r(n)):[r(s)]).filter(n=>n&&n.text)}refresh(s){if(s?.override?this.config=s:this.config=j(O,s),this.cache(),!this.style)return;let r=$();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let n in this.countBy)this.insert(n)}destroy(){let s=A.instances;this.disconnect(),s.splice(s.indexOf(this),1)}delete(s){let r=this.style?.sheet,n=d=>{let x=this.ruleBy[d];if(!(!x||d in this.classesBy&&this.classesBy[d].some(B=>B in this.countBy))){if(r&&x.natives.length){let B=x.natives[0];for(let b=0;b<r.cssRules.length;b++)if(r.cssRules[b]===B.cssRule){for(let k=0;k<x.natives.length;k++)r.deleteRule(b);break}}this.rules.splice(this.rules.indexOf(x),1),delete this.ruleBy[d],x.config.delete&&x.config.delete.call(x,d)}};if(s in this.classes){for(let d of this.classes[s])d in this.countBy||n(d);delete this.ruleBy[s]}else n(s)}insert(s){let r=this.create(s);return r.length?(this.insertRules(r),!0):!1}insertRules(s){for(let r of s){if(this.ruleBy[r.className])continue;let n,d=this.rules.length-1,{media:x,order:B,priority:b,hasWhere:g,className:k}=r,w=(o,h,p,f)=>{let m=0,l;h&&(m=o.findIndex(h)),p&&(l=o.findIndex(p)),m===-1&&(m=o.length),(l===void 0||l===-1)&&(l=o.length);let u=o.slice(m,l);for(let e=0;e<u.length;e++){let t=u[e];if(!(t.priority===-1||f&&f(t))&&(t.priority<b||t.priority===b&&(g&&!t.hasWhere||t.order>=B)))return m+e}return m+u.length};if(x){let o=this.rules.findIndex(h=>h.media);if(o!==-1){let h=x.features["max-width"],p=x.features["min-width"];if(h&&p){let f=h.value-p.value;for(let m=d;m>=o;m--){n=m;let l=this.rules[m],u=l.media,e=u.features["max-width"],t=u.features["min-width"];if(!e||!t){n++;break}let i=e.value-t.value;if(i===f){if(g!==l.hasWhere)continue;if(b!==-1){let c=[this.rules[m]];for(let a=m-1;a>=o;a--){let y=this.rules[a];if(y.hasWhere!==g)break;let R=y.media,C=R.features["max-width"],v=R.features["min-width"];if(!C||!v||C.value-v.value!==i)break;c.unshift(this.rules[a])}n=w(this.rules,a=>a.media&&a.priority!==-1&&a.media.features["min-width"]&&a.media.features["max-width"])}break}else if(i>f)break}}else if(p)for(let f=o;f<=d;f++){n=f;let m=this.rules[f],l=m.media,u=l.features["max-width"],e=l.features["min-width"];if(u){if(e)break;continue}let t=e?.value;if(t===p.value){if(!g&&m.hasWhere){n++;continue}if(b!==-1)n=w(this.rules,i=>i.media,i=>i.media&&i.priority!==-1&&i.media.features["min-width"]&&i.media.features["max-width"],i=>!i.media.features["min-width"]&&!i.media.features["max-width"]);else for(let i=f;i<=d;i++){let c=this.rules[i],a=c.media,y=a.features["min-width"];if(!a.features["max-width"]){if(c.hasWhere!==g||y.value!==t||c.order>=B)break;n=i+1}}break}else{if(t>p.value)break;n++}}else if(h)for(let f=d;f>=o;f--){n=f;let m=this.rules[f],l=m.media,u=l.features["max-width"];if(l.features["min-width"])continue;let t=u?.value;if(!t||t>h.value){n++;break}else if(t===h.value){if(g&&!m.hasWhere)continue;if(b!==-1)n=w(this.rules,i=>i.media,i=>i.media&&i.priority!==-1&&i.media.features["min-width"]&&i.media.features["max-width"],i=>!i.media.features["min-width"]&&!i.media.features["max-width"]);else{let i=[this.rules[f]];for(let c=f-1;c>=o;c--){let a=this.rules[c],y=a.media,R=y.features["min-width"],C=y.features["max-width"];if(!R&&(!C||C.value!==t||a.hasWhere!==g))break;i.unshift(a)}for(let c=0;c<i.length;c++){let a=i[c];if(!a.media.features["min-width"]){if(a.order>=B)break;n=f-i.length+2+c}}}break}}}if(n===void 0)if(o===-1)n=d+1;else if(b!==-1)n=o+w(this.rules.slice(o),void 0,h=>h.media.features["max-width"]||h.media.features["min-width"]);else if(g){let h=o;for(;h<this.rules.length;h++){let p=this.rules[h];if(p.priority!==-1||!p.hasWhere||p.order>=B){n=h;break}}n===void 0&&(n=h)}else for(let h=o;h<=d;h++){n=h;let p=this.rules[h],f=p.media;if(p.priority!==-1||f.features["max-width"]||f.features["min-width"])break;if(p.hasWhere)n++;else if(p.order>=B)break}}else if(b===-1){if(g)n=this.rules.findIndex(o=>!o.hasWhere||o.media||o.priority!==-1||o.order>=B),n===-1&&(n=d+1);else{let o=0;for(;o<this.rules.length;o++){let h=this.rules[o];if(h.media||!h.hasWhere&&(h.order>=B||h.priority!==-1)){n=o;break}}n===void 0&&(n=o)}!n&&Object.keys(this.keyframes).length&&n++}else n=w(this.rules,void 0,o=>o.media);if(this.rules.splice(n,0,r),this.ruleBy[k]=r,this.style){let o=this.style.sheet,h=0,p=f=>{let m=this.rules[f];if(m){if(!m.natives.length)return p(f-1);let l=m.natives[m.natives.length-1].cssRule;for(let u=0;u<o.cssRules.length;u++)if(o.cssRules[u]===l){h=u+1;break}}};p(n-1);for(let f=0;f<r.natives.length;)try{let m=r.natives[f];o.insertRule(m.text,h),m.cssRule=o.cssRules[h++],f++}catch(m){console.error(m),r.natives.splice(f,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(s=>s.text).join("")}},W=A;T(W,"root"),T(W,"config",O),T(W,"instances",[]),T(W,"refresh",s=>{for(let r of A.instances)r.refresh(s)});S&&(window.MasterCSS=W);export{W as MasterCSS};
@@ -1 +1 @@
1
- (()=>{var Pe=Object.defineProperty;var Ue=(t,e,r)=>e in t?Pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var oe=(t,e,r)=>(Ue(t,typeof e!="symbol"?e+"":e,r),r);function Re(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Ce(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function Te(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=Te(r):Re(r)?e[i]=Ce(r):e[i]=K({},r):e[i]=r}),e}function Se(t,e){return e==="__proto__"?void 0:t[e]}function K(...t){let e={},r,i;return t.forEach(function(o){typeof o!="object"||o===null||Array.isArray(o)||Object.keys(o).forEach(function(a){if(i=Se(e,a),r=Se(o,a),r!==e)if(typeof r!="object"||r===null){e[a]=r;return}else if(Array.isArray(r)){e[a]=Te(r);return}else if(Re(r)){e[a]=Ce(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[a]=K({},r);return}else{e[a]=K(i,r);return}})}),e}var xe=[":disabled",":active",":focus",":hover"];var ie={"(":")","'":"'",'"':'"',"{":"}"};function ue(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,i=-1,o="",a,p=e.charCodeAt(0);if(r==1&&p==45)return"\\"+e;for(;++i<r;){if(a=e.charCodeAt(i),a==0){o+="\uFFFD";continue}if(a>=1&&a<=31||a==127||i==0&&a>=48&&a<=57||i==1&&a>=48&&a<=57&&p==45){o+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){o+=e.charAt(i);continue}o+="\\"+e.charAt(i)}return o}var He={unit:"",order:0,separators:[","]},fe=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=K(He,r.config);let{unit:o,order:a,colored:p,native:b,analyze:f,transform:c,declare:d,create:s}=this.config,{scope:h,important:S,functions:k}=i.config,{themeNames:R,colorNames:v,colorThemesMap:C,selectors:n,breakpoints:l,mediaQueries:u,themeAffectedClassesBy:m,globalValues:x}=i,T=m[e];this.order=a,s&&s.call(this,e);let $,W,B,Y,Z;if(r.origin==="semantics"){let[L,j]=r.value;Y=e.slice(L.length),$=j}else{let L;if(f)[L,B]=f.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),this.prefix.includes("(")?(this.prefix=void 0,L=e):L=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],L=e.slice(1));Z=[];let j=this,N=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let w="",y=0;(function M(g,A,E,O=void 0,I=[],U=[],z){let Q=O===void 0,P,q=D=>D==="'"||D==='"',re=()=>P=w.length,G=()=>{if(w){let D=w,V=Q?D:w.slice(P);if(w="",X="",N&&V in N&&!I.includes(V)){let H=y;y=0,M(N[V].toString(),A,void 0,O,[...I,V],U,z),y=H,Q||(w=w.slice(0,P)+w)}else if(x&&V in x&&!U.includes(V)){let H=y;y=0,M(x[V].toString(),A,void 0,O,I,[...U,V],z),y=H,Q||(w=w.slice(0,P)+w)}else if(Q){let H=!z&&j.analyzeUnitValue(V,A);Z.push({value:H?.value??V,unit:H?.unit})}else{let H=!z&&j.analyzeUnitValue(V,A);w=H?D.slice(0,P)+H.value+H.unit:D}re()}},J=q(E);re();let X="";for(;y<g.length;y++){let D=g[y];if(D===E){if(J){w+=D;let V=0;for(let H=w.length-2;w[H]==="\\";H--)V++;if(V%2)continue}else G(),w+=D;return}else if(!J&&D in ie){let V=D==="("&&X&&k?.[X];V?.name&&(w=w.slice(0,w.length-X.length)+V.name,X=V.name),w+=D,y++;let H=ie[D];M(g,V?.unit??A,H,X||O||"",I,U,z||!!V?.transform),V?.transform&&(w=w.slice(0,P+X.length+1)+V.transform.call(j,w.slice(P+X.length+1,-1))+w.slice(-1)),Q&&(q(H)?(Z.push(w),w=""):G()),X=""}else if((D==="|"||D===" ")&&E!=="}"&&(!J||O==="path"))G(),Q||(w+=" ",P++);else{if(!J){if(D==="."){if(isNaN(+g[y+1]))break;g[y-1]==="-"&&(w+="0")}else if(F.includes(D)){G(),Q?Z.push(D):(w+=D,P++);continue}else if(Q&&(D==="#"&&(w||Z.length&&g[y-1]!=="|"&&Z[y-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;X+=D}w+=D}}O===void 0&&G()})(L,o),Y=L.slice(y)}Y[0]==="!"&&(this.important=!0,Y=Y.slice(1));let we=L=>{let j=L.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((y,M)=>M%3?y:y.replace(/_/g," ")).join(""),N=[],F="",w=0;for(let y=0;y<j.length;y++){let M=j[y];if(M==="\\"){F+=M+j[++y];continue}!w&&M===","?(N.push(F),F=""):(F+=M,w&&M===")"?w--:M==="("&&w++)}return F&&N.push(F),N};this.prefixSelectors=B?we(B):[""];let pe=Y.split("@"),be=pe[0];if(be){this.vendorSuffixSelectors={};let L=(y,M,g,A)=>{for(let[E,O]of M)if(E.test(y)){for(let I of O)L(y.replace(E,I),M,g,!0);return}A&&g.push(y)},j=[];""in n?L(be,n[""],j,!0):j.push(be);let N={};for(let[y,M]of Object.entries(n)){if(!y)continue;let g=[];for(let A of j)L(A,M,g,!1);g.length&&(N[y]=g)}let F=(y,M)=>{let g=M.reduce((A,E)=>(A.push(...we(E)),A),[]);y in this.vendorSuffixSelectors?this.vendorSuffixSelectors[y].push(...g):this.vendorSuffixSelectors[y]=g},w=Object.keys(N);if(w.length)for(let y of w)F(y,N[y]);else F("",j);for(let y of Object.values(this.vendorSuffixSelectors))for(let M of y){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));for(let g=0;g<xe.length;g++)if(M.includes(xe[g])){(this.priority===-1||this.priority>g)&&(this.priority=g);break}}}else this.vendorSuffixSelectors={"":[""]};for(let L=1;L<pe.length;L++){let j=pe[L];if(j)if(R.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let N,F,w=j.indexOf("_");if(w!==-1)N=j.slice(0,w),F=j.slice(w);else{let y=j.indexOf("(");y!==-1&&(N=j.slice(0,y),F=j.slice(y))}if(!N){N="media";let y=[];this.media={token:j,features:{}};let M=j.split("&");for(let g of M)if(g==="all"||g==="print"||g==="screen"||g==="speech")this.media.type=g;else if(g==="\u{1F5A8}")this.media.type="print";else if(g==="landscape"||g==="portrait")y.push("(orientation:"+g+")");else if(g==="motion"||g==="reduced-motion")y.push("(prefers-reduced-motion:"+(g==="motion"?"no-preference":"reduce")+")");else if(u&&g in u)y.push(u[g]);else{let A={token:g},E="",O="",I=0;g.startsWith("<=")?(O="<=",E="max-width"):g.startsWith(">=")||l[g]?(O=">=",E="min-width"):g.startsWith(">")?(O=">",E="min-width",I=.02):g.startsWith("<")&&(O="<",E="max-width",I=-.02);let U=O?g.replace(O,""):g,z=l[U];switch(E){case"max-width":case"min-width":z?Object.assign(A,this.analyzeUnitValue(z.toString(),"px")):Object.assign(A,this.analyzeUnitValue(U,"px")),A.unit==="px"&&(A.value+=I),this.media.features[E]=A,y.push("("+E+":"+(A.value+A.unit)+")");break}}F="",this.media.type&&(F=this.media.type),y.length&&(F+=(F?" and ":"")+y.join(" and "))}F&&(this.at[N]=(N in this.at?this.at[N]+" and ":"")+F.replace(/_/g," "))}}let ve=(L,j)=>{let N,F=(M,g,A)=>{let E="";this.direction&&(E+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(z=>z+E),I=(z,Q)=>O.map(P=>(z?"."+z+" ":"")+(h?h+" ":"")+P).reduce((P,q)=>(P.push(A.reduce((re,G)=>(re.push(q+"."+ue(Q)+G),re),[]).join(",")),P),[]).join(","),U=I(g,e)+(T?Object.entries(T).filter(([z])=>this.theme||!p||!g||!z||z===g).map(([z,Q])=>Q.reduce((P,q)=>P+","+I(this.theme??((p||W)&&g||z),q),"")).join(""):"")+"{"+M+"}";for(let z of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))U="@"+z+" "+this.at[z]+"{"+U+"}";return U},w=[];if(Z){let M=this.theme?[this.theme,""]:[L],g,A;for(let E of Z)if(typeof E=="string")w.push(E);else{let O=E.value;if(E.unit)O+=E.unit;else if(p&&C&&v){let I=!1,U=!1;O=O.replace(new RegExp(`(^|,| |\\()((?:${v.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(z,Q,P,q)=>{U=!0;let re=C[P];if(re){let G;for(let J of M)if(G=re[J])break;if(G){I=!0;let J=G;if(q){let X=q.endsWith("%")?parseFloat(q)/100:+q;X=isNaN(X)?1:Math.min(Math.max(X,0),1),J+=Math.round(X*255).toString(16).toUpperCase().padStart(2,"0")}return Q+J}}return z}),U&&(A=I)}A!==void 0&&!g&&(g=A),w.push(O)}if(j&&(g===void 0?L:!g))return;if(N=w.reduce((E,O,I)=>E+O+(O===","||Z[I+1]===","||I===Z.length-1?"":" "),""),c&&(N=c.call(this,N,this.css.config)),p&&N==="current"&&(N="currentColor"),d){let E,O;if(Z.length===1){let I=Z[0];typeof I=="object"&&(E=I.value,O=I.unit)}$=d.call(this,O?E:N,O||"")}else $={[b]:N}}let y={};for(let M in $){let g=(O,I)=>{let U=I+((this.important||S)&&!I.endsWith("!important")?"!important":"");O in y?y[O].push(U):y[O]=[U]},A=M+":",E=$[M];if(typeof E=="object"){W=!0;for(let O in E)g(O,A+E[O])}else g(L,A+E.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let g in y)this.natives.push({text:F(y[g].join(";"),g,M),theme:g})};if(this.theme)ve(this.theme,!1);else if(p)for(let L of R)ve(L,!0);else ve("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let i=r??this.config.unit;if(i){let o="",a=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(a)if(e.includes("/")){let[p,b]=e.split("/");return{value:+p/+b*100+"%",unit:o}}else{let p=+a[1];return o=a[3]||"",o||((i==="rem"||i==="em")&&(p=p/this.css.config.rootSize),o=i||""),{value:p,unit:o}}}}};var ae={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function le(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function he(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function _(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let i in t)if(i&&+i>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let i=0,o="0"in t?le(t[0]):[0,0,0],a,p,b=[],f=()=>{let c=a-i,d=p.map((s,h)=>(s-o[h])/c);for(let s of b){let h=s-i,S=o.map((k,R)=>Math.round(k+d[R]*h));t[s]="#"+he.call(this,...S)}};for(let c=1;c<100;c++)c in t?(b.length?(a=c,p=le(t[c]),f(),b.length=0,o=p):o=le(t[c]),i=c):b.push(c);b.length&&(a=100,p="100"in t?le(t[100]):[255,255,255],f())}return e||(t[""]=t[r?"500":"50"]),t}var $e={black:"#000000",white:"#ffffff",slate:_({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:_({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:_({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:_({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:_({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:_({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:_({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:_({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:_({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:_({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:_({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:_({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:_({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:_({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:_({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:_({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:_({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:_({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:_({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:_({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Me="";var Oe={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Ee={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflow:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},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"}};var Be=["dark","light"];var se={content:"content-box",border:"border-box",padding:"padding-box"};var ce={min:"min-content",max:"max-content"};var ee={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in ae)ee[t]=ae[t]/16+"rem";var Ye={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(c,d)=>{let s=d.indexOf(":");if(s!==-1){c in e||(e[c]={});let h=e[c],S=d.slice(0,s);S in h||(h[S]=d.slice(s+1))}},i=c=>{let d=(s,h)=>{let S=h.slice(ue(c.className).length).match(/\{(.*)\}/)[1].split(";");for(let k of S)r(s,k)};if(this.theme){let s=c.natives.find(h=>h.theme===this.theme)??c.natives.find(h=>!h.theme);s&&d(this.theme,s.text)}else for(let s of c.natives)d(s.theme,s.text)},o=[],a="",p=()=>{a&&(o.push(a.replace(/ /g,"")),a="")},b=1;(function c(d){for(;b<t.length;b++){let s=t[b];if(!d){if(s===";"){p();continue}if(s==="}")break}if(a+=s,d===s){if(d==="'"||d==='"'){let h=0;for(let S=a.length-2;a[S]==="\\";S--)h++;if(h%2)continue}break}else s in ie&&d!=="'"&&d!=='"'&&(b++,c(ie[s]))}})(void 0),p();for(let c of o){let d=this.css.create(c);if(Array.isArray(d))for(let s of d)i(s);else d?i(d):r(this.theme??"",c)}let f={};for(let c in e)for(let[d,s]of Object.entries(e[c]))d in f?f[d][c]=s:f[d]={[c]:s};return f}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){let e={};switch(t){case"subpixel-antialiased":e["-webkit-font-smoothing"]=e["-moz-osx-font-smoothing"]="auto";break;case"antialiased":e["-webkit-font-smoothing"]="antialiased",e["-moz-osx-font-smoothing"]="grayscale";break}return e}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},margin:{match:"^m(?:argin(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ie.call(this,t+e)},get order(){return this.prefix==="margin:"||this.prefix==="m:"?-1:0}},padding:{match:"^p(?:adding(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ie.call(this,t+e)},get order(){return this.prefix==="padding:"||this.prefix==="p:"?-1:0}},flexBasis:{values:ee,unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:ee},height:{match:"^h:.",unit:"rem",native:!0,values:ee},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:ee},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:ee},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},inset:{match:"^(?:top|bottom|left|right):.",unit:"rem",native:!0,declare(t,e){return{[this.prefix.slice(0,-1)]:t+e}}},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:ee},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:ee},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflow:{match:"^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)",declare(t,e){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t+e};case"y":return{"overflow-y":t+e}}return{overflow:t+e}},get order(){return-1}},overscrollBehavior:{match:"^overscroll-behavior(?:-[xy])?:",declare(t,e){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t+e};case"y":return{"overscroll-behavior-y":t+e};default:return{"overscroll-behavior":t+e}}}},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{...se,fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return je.call(this,t)},delete(t){return Ae.call(this,t)},insert(){return Ne.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return je.call(this,t)},delete(t){return Ae.call(this,t)},insert(){return Ne.call(this)}},borderColor:{match:"^b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return de(this.prefix,t+e,"color")},get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderRadius:{match:"^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.",unit:"rem",declare(t,e){if(this.prefix){let i="",o=this.prefix.split("-");if(o.length>1)for(let a=1;a<o.length-1;a++)i+=o[a][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{"border-top-left-radius":t+e,"border-top-right-radius":t+e};case"tl":case"lt":return{"border-top-left-radius":t+e};case"rt":case"tr":return{"border-top-right-radius":t+e};case"b":return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e};case"bl":case"lb":return{"border-bottom-left-radius":t+e};case"br":case"rb":return{"border-bottom-right-radius":t+e};case"l":return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e};case"r":return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e};default:return{"border-radius":t+e}}}let r=this.prefix?.slice(0,-1);return{[["border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"].includes(r)?r:"border-radius"]:t+e}},get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}},borderStyle:{match:"^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))",declare(t,e){return de(this.prefix,t+e,"style")},get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderWidth:{match:"^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)",unit:"rem",declare(t,e){return de(this.prefix,t+e,"width")},get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0},border:{match:"^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):.",unit:"rem",colored:!0,values:{current:"currentColor"},declare(t,e){return de(this.prefix,t+e)},get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:se},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:se},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:ce},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:ce,native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:ce},gridTemplateRows:{native:!0,unit:"rem",values:ce},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},gap:{match:"^gap(?:-x|-y)?:.",unit:"rem",order:-1,declare(t,e){switch(this.prefix[4]){case"x":return{"column-gap":t+e};case"y":return{"row-gap":t+e};default:return{gap:t+e}}}},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMargin:{match:"^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t+e,"scroll-margin-right":t+e};case"y":return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e};case"l":return{"scroll-margin-left":t+e};case"r":return{"scroll-margin-right":t+e};case"t":return{"scroll-margin-top":t+e};case"b":return{"scroll-margin-bottom":t+e}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}},scrollPadding:{match:"^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t+e,"scroll-padding-right":t+e};case"y":return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e};case"l":return{"scroll-padding-left":t+e};case"r":return{"scroll-padding-right":t+e};case"t":return{"scroll-padding-top":t+e};case"b":return{"scroll-padding-bottom":t+e}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{...se,margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{...se,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},We=Ye;function je(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function Ae(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let i=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(i),t.natives.splice(i,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function Ne(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,o=r?.sheet;for(let a of this.keyframeNames)if(a in e)e[a].count++;else{let p={text:`@keyframes ${a} {`+Object.entries(t.keyframes[a]).map(([f,c])=>`${f} {${Object.entries(c).map(([d,s])=>d+": "+s).join(";")}}`).join(",")+"}",theme:""},b;if(Object.keys(e).length?(b=i[0]).natives.push(p):i.splice(0,0,b={natives:[p],get text(){return this.natives.map(f=>f.text).join("")}}),o){let f;for(let c=0;c<o.cssRules.length;c++){let d=o.cssRules[c];if(d.constructor.name!=="CSSKeyframesRule")break;if(d.name===a){f=d;break}}if(f)p.cssRule=f;else{let c=b.natives.length-1;o.insertRule(p.text,c),p.cssRule=o.cssRules[c]}}e[a]={native:p,count:1}}}}function Ie(t){if(this.prefix.includes("-"))return{[this.prefix.slice(0,-1)]:t};let r=this.prefix[0]==="m"?"margin":"padding",i=r+"-left",o=r+"-right",a=r+"-top",p=r+"-bottom";switch(this.prefix[1]){case"x":return{[i]:t,[o]:t};case"y":return{[a]:t,[p]:t};case"l":return{[i]:t};case"r":return{[o]:t};case"t":return{[a]:t};case"b":return{[p]:t};default:return{[r]:t}}}function de(t,e,r=""){let i="border-";r&&(r="-"+r);let o=/^b(order)?-?(.)?/.exec(t)[2],a=i+"left"+r,p=i+"right"+r,b=i+"top"+r,f=i+"bottom"+r;switch(o){case"x":return{[a]:e,[p]:e};case"y":return{[b]:e,[f]:e};case"l":return{[a]:e};case"r":return{[p]:e};case"t":return{[b]:e};case"b":return{[f]:e};default:return{["border"+r]:e}}}var Le={fade:{from:{opacity:0},to:{opacity:0}},flash:{"from,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},"100%":{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%,100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}},ping:{"75%,100%":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},"100%":{transform:"none"}},rotate:{from:{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:{from:{transform:"scale(0)"},"100%":{transform:"none"}}};var ye={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=f=>f==="+"||f==="-"||f==="*"||f==="/",r="",i,o="",a=!1,p=!1,b=(f,c="",d="")=>{if(i===2&&!p){let s=this.analyzeUnitValue(o,ye.calc.unit);s&&(o=s.value+s.unit)}r+=o+c+f+d,i=null,p=!1,o=""};for(let f=0;f<t.length;f++){let c=t[f];if(c==="("||c===")")a=c===")",b(c);else if(c===",")b(c,""," ");else{switch(i){case 1:break;case 2:if(e(c)){b(c," "," ");continue}else/[0-9]/.test(c)||(p=!0);break;default:a&&(r+=" "),isNaN(+c)?e(c)||(i=1):i=2;break}i?o+=c:r+=c}}return b(""),r}},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:""}};var ze="highest";var me={breakpoints:ae,colors:$e,rootSize:16,scope:Me,selectors:Oe,semantics:Ee,themes:Be,rules:We,override:!1,observe:!0,important:!1,functions:ye,keyframes:Le,precedence:ze};var De=[",",".","#","[","!","*",">","+","~",":","@"];var ke=typeof window<"u",Fe=()=>{let t=document.createElement("style");return t.id="master",t},ne=class{constructor(e){this.config=e;this.config?.override||(this.config=K(me,e)),this.cache(),ke&&this.config.observe&&this.observe(document),ne.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;e;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:i,themes:o,colors:a,values:p,breakpoints:b,mediaQueries:f,rules:c}=this.config;function d(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(n,l,u="",m={}){let x=B=>B?(u?u+"-":"")+B:u,T=Object.entries(n),$=[],W=[];for(let B of T){let Y=B[1];(typeof Y=="object"&&!Array.isArray(Y)?$:W).push(B)}for(let[B,Y]of $)s(Y,l,x(B),m);if(l&&u)W.length&&(m[u]=W.reduce((B,[Y,Z])=>(B[Y]=Z,B),{}));else for(let[B,Y]of W)m[x(B)]=Y;return m}if(e)for(let[n,l]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+d(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,l]]);if(i)for(let[n,l]of Object.entries(s(i,!1))){let u=new RegExp(d(n)+"(?![a-z-])");for(let m of Array.isArray(l)?l:[l]){let x=m.match(/^::-[a-z]+-/m)?.[0]??"",T=this.selectors[x];T||(T=this.selectors[x]=[]);let $=T.find(([W])=>W===u);$||($=[u,[]],T.push($)),$[1].push(m)}}p&&(this.globalValues=s(p,!1)),b&&(this.breakpoints=s(b,!1)),f&&(this.mediaQueries=s(f,!1));let h=r?s(r,!1):{},S=o&&!Array.isArray(o)?Object.entries(o).filter(([,{classes:n}])=>n).reduce((n,[l,{classes:u}])=>(n[l]=s(u,!1),n),{}):{},k=[...Object.keys(h),...Object.entries(S).flatMap(([n,l])=>Object.keys(l))],R=n=>{if(n in this.classes)return;let l=this.classes[n]=[],u=(m,x)=>{if(!x)return;let T=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let $ of T){let W=B=>{B in this.themeAffectedClassesBy?m in this.themeAffectedClassesBy[B]?this.themeAffectedClassesBy[B][m].push(n):this.themeAffectedClassesBy[B][m]=[n]:this.themeAffectedClassesBy[B]={[m]:[n]},l.includes(B)||l.push(B)};if(k.includes($)){R($);for(let B of this.classes[$])W(B)}else W($)}};u("",h?.[n]);for(let[m,x]of Object.entries(S))u(m,x?.[n])};for(let n of k)R(n);for(let n in this.themeAffectedClassesBy){let l=this.classesBy[n]=[];for(let u of Object.values(this.themeAffectedClassesBy[n]))for(let m of u)l.includes(m)||l.push(m)}let v=(n,l)=>{if(!l)return;let u=s(l,!0);for(let[m,x]of Object.entries(u)){let T=typeof x=="string"?{"":x}:x;for(let[$,W]of Object.entries(T)){let B=m+($?"-"+$:"");B in this.colorThemesMap?this.colorThemesMap[B][n]=W:this.colorThemesMap[B]={[n]:W}}}for(let m in l)this.colorNames.includes(m)||this.colorNames.push(m)};if(v("",a),o)if(Array.isArray(o))this.themeNames.push(...o);else for(let n in o){let l=o[n];v(n,l.colors),this.themeNames.push(n)}let C=n=>{for(let[l,u]of Object.entries(this.colorThemesMap))for(let[m,x]of Object.entries(u))x.startsWith("#")||n(l,u,m,x)};if(C((n,l,u,m)=>{let x=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(m);if(x){let T="#"+he(+x[1],+x[2],+x[3]);x[4]&&(T+=Math.round(255*+x[4]).toString(16)),l[u]=T}}),C((n,l,u,m)=>{let[x,T]=m.split("/"),$=this.colorThemesMap[x];if($){let W=(u?$[u]:void 0)??$[""];l[u]=T?W.slice(0,7)+Math.round(255*+T).toString(16):W}else console.warn(`\`${m}\` doesn't exist in the extended config \`.colors\``),delete l[u],Object.keys(l).length||delete this.colorThemesMap[n]}),c)for(let n in c){let l=c[n],{native:u,values:m,colored:x}=l,T=l.match;if(l.id=n,l.native=u===!0?n.replace(/(?!^)[A-Z]/g,$=>"-"+$).toLowerCase():void 0,m&&(this.values[n]=s(m,!1)),T){let $=Object.keys(this.values[n]??{});T.includes("$values")&&(T=$.length?T.replace(/\$values/,$.join("|")):T.replace(/(?:\|)?\$values/,"")),x&&T.includes("$colors")&&(T=this.colorNames.length?T.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):T.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp(T)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(ke&&e){this.root=e;let i=e===document;i&&(ne.root=this),this.host=i?document.documentElement:root.host;let o=i?document.head:e,a=i?document.styleSheets:e.styleSheets;for(let b of a){let{href:f,ownerNode:c}=b;(c.id==="master"||f&&f.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(f))&&(this.style=c)}if(this.style)for(let b=0;b<this.style.sheet.cssRules.length;b++){let f=this.style.sheet.cssRules[b];if(f.constructor.name==="CSSKeyframesRule")continue;let c=s=>{if(s.selectorText){let S=s.selectorText.split(", ")[0].split(" ");for(let k=0;k<S.length;k++){let R=S[k];if(R[0]==="."){let v=R.slice(1),C="";for(let n=0;n<v.length;n++){let l=v[n],u=v[n+1];if(l==="\\"){if(n++,u!=="\\"){C+=u;continue}}else if(De.includes(l))break;C+=l}if(!(C in this.ruleBy)&&!(C in this.classes)){let n=this.create(C)[0];if(n)return n}}}}else if(s.cssRules)for(let h=0;h<s.cssRules.length;h++){let S=c(s.cssRules[h]);if(S)return S}},d=c(f);if(d){this.rules.push(d),this.ruleBy[d.className]=d;for(let s=0;s<d.natives.length;s++)d.natives[s].cssRule=this.style.sheet.cssRules[b+s];b+=d.natives.length-1,d.config.insert?.call(d)}}else this.style=Fe();o.append(this.style);let p=b=>{b.forEach(f=>{f in this.countBy?this.countBy[f]++:(this.countBy[f]=1,this.insert(f))})};p(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(b=>p(b.classList)),this.observer=new MutationObserver(b=>{let f={},c=[],d=[],s=[],h=(v,C)=>{C?v.classList.forEach(k):v.classList.forEach(S);let n=v.children;for(let l=0;l<n.length;l++){let u=n[l];u.classList&&(d.push(u),h(u,C))}},S=v=>{v in f?f[v]++:f[v]=1},k=v=>{v in f?f[v]--:v in this.countBy&&(f[v]=-1)},R=(v,C)=>{for(let n=0;n<v.length;n++){let l=v[n];l.classList&&!d.includes(l)&&!s.includes(l)&&(l.isConnected!==C?(d.push(l),h(l,C)):s.push(l))}};for(let v=0;v<b.length;v++){let C=b[v],{addedNodes:n,removedNodes:l,type:u,target:m}=C;if(u==="attributes"){if(c.find(x=>x.target===m))continue;c.push(C)}else R(n,!1),(!m.isConnected||!d.includes(m))&&R(l,!0)}if(!(!c.length&&!Object.keys(f).length)){for(let{oldValue:v,target:C}of c){let n=d.includes(C),l=C.classList,u=v?v.split(" "):[];if(n){if(C.isConnected)continue;for(let m of u)l.contains(m)||k(m)}else if(C.isConnected){l.forEach(m=>{u.includes(m)||S(m)});for(let m of u)l.contains(m)||k(m)}}for(let v in f){let C=f[v],n=(this.countBy[v]||0)+C;n===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=n)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.e=new MutationObserver(b=>{for(let f of b)for(let c of f.addedNodes)if(c.nodeName==="STYLE"||c.nodeName==="LINK"&&c.rel==="stylesheet"){let d=this.root.styleSheets;if(d.item(d.length-1).ownerNode!==this.style){let S=this.style.sheet.cssRules;o.append(this.style);for(let k of S)this.style.sheet.insertRule(k.cssText)}}}),this.e.observe(o,{childList:!0}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.e&&(this.e.disconnect(),this.e=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r in this.config.rules){let i=this.config.rules[r],o=this.matches[r],{symbol:a,native:p}=i;if(o&&o.test(e))return{origin:"match",config:i};if(a&&e.startsWith(a))return{origin:"symbol",config:i};if(p&&e.startsWith(p+":"))return{origin:"match",config:i}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=i=>{if(i in this.ruleBy)return this.ruleBy[i];let o=this.match(i);if(o)return new fe(i,o,this)};return(e in this.classes?this.classes[e].map(i=>r(i)):[r(e)]).filter(i=>i&&i.text)}refresh(e){if(e?.override?this.config=e:this.config=K(me,e),this.cache(),!this.style)return;let r=Fe();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let i in this.countBy)this.insert(i)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=o=>{let a=this.ruleBy[o];if(!(!a||o in this.classesBy&&this.classesBy[o].some(p=>p in this.countBy))){if(r&&a.natives.length){let p=a.natives[0];for(let b=0;b<r.cssRules.length;b++)if(r.cssRules[b]===p.cssRule){for(let c=0;c<a.natives.length;c++)r.deleteRule(b);break}}this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[o],a.config.delete&&a.config.delete.call(a,o)}};if(e in this.classes){for(let o of this.classes[e])o in this.countBy||i(o);delete this.ruleBy[e]}else i(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let i,o=this.rules.length-1,{media:a,order:p,priority:b,hasWhere:f,className:c}=r,d=(s,h,S,k)=>{let R=0,v;h&&(R=s.findIndex(h)),S&&(v=s.findIndex(S)),R===-1&&(R=s.length),(v===void 0||v===-1)&&(v=s.length);let C=s.slice(R,v);for(let n=0;n<C.length;n++){let l=C[n];if(!(l.priority===-1||k&&k(l))&&(l.priority<b||l.priority===b&&(f&&!l.hasWhere||l.order>=p)))return R+n}return R+C.length};if(a){let s=this.rules.findIndex(h=>h.media);if(s!==-1){let h=a.features["max-width"],S=a.features["min-width"];if(h&&S){let k=h.value-S.value;for(let R=o;R>=s;R--){i=R;let v=this.rules[R],C=v.media,n=C.features["max-width"],l=C.features["min-width"];if(!n||!l){i++;break}let u=n.value-l.value;if(u===k){if(f!==v.hasWhere)continue;if(b!==-1){let m=[this.rules[R]];for(let x=R-1;x>=s;x--){let T=this.rules[x];if(T.hasWhere!==f)break;let $=T.media,W=$.features["max-width"],B=$.features["min-width"];if(!W||!B||W.value-B.value!==u)break;m.unshift(this.rules[x])}i=d(this.rules,x=>x.media&&x.priority!==-1&&x.media.features["min-width"]&&x.media.features["max-width"])}break}else if(u>k)break}}else if(S)for(let k=s;k<=o;k++){i=k;let R=this.rules[k],v=R.media,C=v.features["max-width"],n=v.features["min-width"];if(C){if(n)break;continue}let l=n?.value;if(l===S.value){if(!f&&R.hasWhere){i++;continue}if(b!==-1)i=d(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else for(let u=k;u<=o;u++){let m=this.rules[u],x=m.media,T=x.features["min-width"];if(!x.features["max-width"]){if(m.hasWhere!==f||T.value!==l||m.order>=p)break;i=u+1}}break}else{if(l>S.value)break;i++}}else if(h)for(let k=o;k>=s;k--){i=k;let R=this.rules[k],v=R.media,C=v.features["max-width"];if(v.features["min-width"])continue;let l=C?.value;if(!l||l>h.value){i++;break}else if(l===h.value){if(f&&!R.hasWhere)continue;if(b!==-1)i=d(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else{let u=[this.rules[k]];for(let m=k-1;m>=s;m--){let x=this.rules[m],T=x.media,$=T.features["min-width"],W=T.features["max-width"];if(!$&&(!W||W.value!==l||x.hasWhere!==f))break;u.unshift(x)}for(let m=0;m<u.length;m++){let x=u[m];if(!x.media.features["min-width"]){if(x.order>=p)break;i=k-u.length+2+m}}}break}}}if(i===void 0)if(s===-1)i=o+1;else if(b!==-1)i=s+d(this.rules.slice(s),void 0,h=>h.media.features["max-width"]||h.media.features["min-width"]);else if(f){let h=s;for(;h<this.rules.length;h++){let S=this.rules[h];if(S.priority!==-1||!S.hasWhere||S.order>=p){i=h;break}}i===void 0&&(i=h)}else for(let h=s;h<=o;h++){i=h;let S=this.rules[h],k=S.media;if(S.priority!==-1||k.features["max-width"]||k.features["min-width"])break;if(S.hasWhere)i++;else if(S.order>=p)break}}else if(b===-1){if(f)i=this.rules.findIndex(s=>!s.hasWhere||s.media||s.priority!==-1||s.order>=p),i===-1&&(i=o+1);else{let s=0;for(;s<this.rules.length;s++){let h=this.rules[s];if(h.media||!h.hasWhere&&(h.order>=p||h.priority!==-1)){i=s;break}}i===void 0&&(i=s)}!i&&Object.keys(this.keyframes).length&&i++}else i=d(this.rules,void 0,s=>s.media);if(this.rules.splice(i,0,r),this.ruleBy[c]=r,this.style){let s=this.style.sheet,h=0,S=k=>{let R=this.rules[k];if(R){if(!R.natives.length)return S(k-1);let v=R.natives[R.natives.length-1].cssRule;for(let C=0;C<s.cssRules.length;C++)if(s.cssRules[C]===v){h=C+1;break}}};S(i-1);for(let k=0;k<r.natives.length;)try{let R=r.natives[k];s.insertRule(R.text,h),R.cssRule=s.cssRules[h++],k++}catch(R){console.error(R),r.natives.splice(k,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},te=ne;oe(te,"root"),oe(te,"config",me),oe(te,"instances",[]),oe(te,"refresh",e=>{for(let r of ne.instances)r.refresh(e)});ke&&(window.MasterCSS=te);var Ve={store:"theme",init:!0},Qe=typeof document<"u",_e=typeof localStorage<"u",ge=class{constructor(e,r=Qe?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?K(Ve,e):Ve,this.settings.init&&this.init()}t=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;i;r;init(){let e=this.settings.default,r=this.storage;r&&(e=r),this.value=e}get storage(){let{store:e}=this.settings;if(_e&&e)return localStorage.getItem(e)}get systemValue(){return this.t.matches?"dark":"light"}set value(e){this.i=e,e==="system"?(this.t?.addEventListener?.("change",this.s),this.current=this.systemValue):(this.n(),this.current=e)}get value(){return this.i}set current(e){let r=this.r;this.r=e,this.host&&r!==e&&(r&&this.host.classList.remove(r),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.r}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,_e&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.t?.removeEventListener("change",this.s)}s=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};new te(window.masterCSSConfig);new ge(window.masterCSSThemeSettings);})();
1
+ (()=>{var Pe=Object.defineProperty;var Ue=(t,e,r)=>e in t?Pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var oe=(t,e,r)=>(Ue(t,typeof e!="symbol"?e+"":e,r),r);function Se(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Ce(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function Te(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=Te(r):Se(r)?e[i]=Ce(r):e[i]=K({},r):e[i]=r}),e}function Re(t,e){return e==="__proto__"?void 0:t[e]}function K(...t){let e={},r,i;return t.forEach(function(a){typeof a!="object"||a===null||Array.isArray(a)||Object.keys(a).forEach(function(o){if(i=Re(e,o),r=Re(a,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=Te(r);return}else if(Se(r)){e[o]=Ce(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[o]=K({},r);return}else{e[o]=K(i,r);return}})}),e}var xe=[":disabled",":active",":focus",":hover"];var ie={"(":")","'":"'",'"':'"',"{":"}"};function ue(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,i=-1,a="",o,g=e.charCodeAt(0);if(r==1&&g==45)return"\\"+e;for(;++i<r;){if(o=e.charCodeAt(i),o==0){a+="\uFFFD";continue}if(o>=1&&o<=31||o==127||i==0&&o>=48&&o<=57||i==1&&o>=48&&o<=57&&g==45){a+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){a+=e.charAt(i);continue}a+="\\"+e.charAt(i)}return a}var He={unit:"",order:0,separators:[","]},fe=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=K(He,r.config);let{unit:a,order:o,colored:g,native:b,analyze:f,transform:u,declare:p,create:s}=this.config,{scope:h,important:R,functions:k}=i.config,{themeNames:S,colorNames:v,colorThemesMap:C,selectors:n,breakpoints:l,mediaQueries:c,themeAffectedClassesBy:d,globalValues:x}=i,T=d[e];this.order=o,s&&s.call(this,e);let $,W,B,Y,Z;if(r.origin==="semantics"){let[L,j]=r.value;Y=e.slice(L.length),$=j}else{let L;if(f)[L,B]=f.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),this.prefix.includes("(")?(this.prefix=void 0,L=e):L=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],L=e.slice(1));Z=[];let j=this,N=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let w="",y=0;(function M(m,A,E,O=void 0,I=[],U=[],z){let Q=O===void 0,P,q=D=>D==="'"||D==='"',re=()=>P=w.length,G=()=>{if(w){let D=w,V=Q?D:w.slice(P);if(w="",X="",N&&V in N&&!I.includes(V)){let H=y;y=0,M(N[V].toString(),A,void 0,O,[...I,V],U,z),y=H,Q||(w=w.slice(0,P)+w)}else if(x&&V in x&&!U.includes(V)){let H=y;y=0,M(x[V].toString(),A,void 0,O,I,[...U,V],z),y=H,Q||(w=w.slice(0,P)+w)}else if(Q){let H=!z&&j.analyzeUnitValue(V,A);Z.push({value:H?.value??V,unit:H?.unit})}else{let H=!z&&j.analyzeUnitValue(V,A);w=H?D.slice(0,P)+H.value+H.unit:D}re()}},J=q(E);re();let X="";for(;y<m.length;y++){let D=m[y];if(D===E){if(J){w+=D;let V=0;for(let H=w.length-2;w[H]==="\\";H--)V++;if(V%2)continue}else G(),w+=D;return}else if(!J&&D in ie){let V=D==="("&&X&&k?.[X];V?.name&&(w=w.slice(0,w.length-X.length)+V.name,X=V.name),w+=D,y++;let H=ie[D];M(m,V?.unit??A,H,X||O||"",I,U,z||!!V?.transform),V?.transform&&(w=w.slice(0,P+X.length+1)+V.transform.call(j,w.slice(P+X.length+1,-1))+w.slice(-1)),Q&&(q(H)?(Z.push(w),w=""):G()),X=""}else if((D==="|"||D===" ")&&E!=="}"&&(!J||O==="path"))G(),Q||(w+=" ",P++);else{if(!J){if(D==="."){if(isNaN(+m[y+1]))break;m[y-1]==="-"&&(w+="0")}else if(F.includes(D)){G(),Q?Z.push(D):(w+=D,P++);continue}else if(Q&&(D==="#"&&(w||Z.length&&m[y-1]!=="|"&&Z[y-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;X+=D}w+=D}}O===void 0&&G()})(L,a),Y=L.slice(y)}Y[0]==="!"&&(this.important=!0,Y=Y.slice(1));let we=L=>{let j=L.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((y,M)=>M%3?y:y.replace(/_/g," ")).join(""),N=[],F="",w=0;for(let y=0;y<j.length;y++){let M=j[y];if(M==="\\"){F+=M+j[++y];continue}!w&&M===","?(N.push(F),F=""):(F+=M,w&&M===")"?w--:M==="("&&w++)}return F&&N.push(F),N};this.prefixSelectors=B?we(B):[""];let pe=Y.split("@"),be=pe[0];if(be){this.vendorSuffixSelectors={};let L=(y,M,m,A)=>{for(let[E,O]of M)if(E.test(y)){for(let I of O)L(y.replace(E,I),M,m,!0);return}A&&m.push(y)},j=[];""in n?L(be,n[""],j,!0):j.push(be);let N={};for(let[y,M]of Object.entries(n)){if(!y)continue;let m=[];for(let A of j)L(A,M,m,!1);m.length&&(N[y]=m)}let F=(y,M)=>{let m=M.reduce((A,E)=>(A.push(...we(E)),A),[]);y in this.vendorSuffixSelectors?this.vendorSuffixSelectors[y].push(...m):this.vendorSuffixSelectors[y]=m},w=Object.keys(N);if(w.length)for(let y of w)F(y,N[y]);else F("",j);for(let y of Object.values(this.vendorSuffixSelectors))for(let M of y){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));for(let m=0;m<xe.length;m++)if(M.includes(xe[m])){(this.priority===-1||this.priority>m)&&(this.priority=m);break}}}else this.vendorSuffixSelectors={"":[""]};for(let L=1;L<pe.length;L++){let j=pe[L];if(j)if(S.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let N,F,w=j.indexOf("_");if(w!==-1)N=j.slice(0,w),F=j.slice(w);else{let y=j.indexOf("(");y!==-1&&(N=j.slice(0,y),F=j.slice(y))}if(!N){N="media";let y=[];this.media={token:j,features:{}};let M=j.split("&");for(let m of M)if(m==="all"||m==="print"||m==="screen"||m==="speech")this.media.type=m;else if(m==="\u{1F5A8}")this.media.type="print";else if(m==="landscape"||m==="portrait")y.push("(orientation:"+m+")");else if(m==="motion"||m==="reduced-motion")y.push("(prefers-reduced-motion:"+(m==="motion"?"no-preference":"reduce")+")");else if(c&&m in c)y.push(c[m]);else{let A={token:m},E="",O="",I=0;m.startsWith("<=")?(O="<=",E="max-width"):m.startsWith(">=")||l[m]?(O=">=",E="min-width"):m.startsWith(">")?(O=">",E="min-width",I=.02):m.startsWith("<")&&(O="<",E="max-width",I=-.02);let U=O?m.replace(O,""):m,z=l[U];switch(E){case"max-width":case"min-width":z?Object.assign(A,this.analyzeUnitValue(z.toString(),"px")):Object.assign(A,this.analyzeUnitValue(U,"px")),A.unit==="px"&&(A.value+=I),this.media.features[E]=A,y.push("("+E+":"+(A.value+A.unit)+")");break}}F="",this.media.type&&(F=this.media.type),y.length&&(F+=(F?" and ":"")+y.join(" and "))}F&&(this.at[N]=(N in this.at?this.at[N]+" and ":"")+F.replace(/_/g," "))}}let ve=(L,j)=>{let N,F=(M,m,A)=>{let E="";this.direction&&(E+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(z=>z+E),I=(z,Q)=>O.map(P=>(z?"."+z+" ":"")+(h?h+" ":"")+P).reduce((P,q)=>(P.push(A.reduce((re,G)=>(re.push(q+"."+ue(Q)+G),re),[]).join(",")),P),[]).join(","),U=I(m,e)+(T?Object.entries(T).filter(([z])=>this.theme||!g||!m||!z||z===m).map(([z,Q])=>Q.reduce((P,q)=>P+","+I(this.theme??((g||W)&&m||z),q),"")).join(""):"")+"{"+M+"}";for(let z of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))U="@"+z+" "+this.at[z]+"{"+U+"}";return U},w=[];if(Z){let M=this.theme?[this.theme,""]:[L],m,A;for(let E of Z)if(typeof E=="string")w.push(E);else{let O=E.value;if(E.unit)O+=E.unit;else if(g&&C&&v){let I=!1,U=!1;O=O.replace(new RegExp(`(^|,| |\\()((?:${v.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(z,Q,P,q)=>{U=!0;let re=C[P];if(re){let G;for(let J of M)if(G=re[J])break;if(G){I=!0;let J=G;if(q){let X=q.endsWith("%")?parseFloat(q)/100:+q;X=isNaN(X)?1:Math.min(Math.max(X,0),1),J+=Math.round(X*255).toString(16).toUpperCase().padStart(2,"0")}return Q+J}}return z}),U&&(A=I)}A!==void 0&&!m&&(m=A),w.push(O)}if(j&&(m===void 0?L:!m))return;if(N=w.reduce((E,O,I)=>E+O+(O===","||Z[I+1]===","||I===Z.length-1?"":" "),""),u&&(N=u.call(this,N,this.css.config)),g&&N==="current"&&(N="currentColor"),p){let E,O;if(Z.length===1){let I=Z[0];typeof I=="object"&&(E=I.value,O=I.unit)}$=p.call(this,O?E:N,O||"")}else $={[b]:N}}let y={};for(let M in $){let m=(O,I)=>{let U=I+((this.important||R)&&!I.endsWith("!important")?"!important":"");O in y?y[O].push(U):y[O]=[U]},A=M+":",E=$[M];if(typeof E=="object"){W=!0;for(let O in E)m(O,A+E[O])}else m(L,A+E.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let m in y)this.natives.push({text:F(y[m].join(";"),m,M),theme:m})};if(this.theme)ve(this.theme,!1);else if(g)for(let L of S)ve(L,!0);else ve("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let i=r??this.config.unit;if(i){let a="",o=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(e.includes("/")){let[g,b]=e.split("/");return{value:+g/+b*100+"%",unit:a}}else{let g=+o[1];return a=o[3]||"",a||((i==="rem"||i==="em")&&(g=g/this.css.config.rootSize),a=i||""),{value:g,unit:a}}}}};var ae={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function le(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function he(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function _(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let i in t)if(i&&+i>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let i=0,a="0"in t?le(t[0]):[0,0,0],o,g,b=[],f=()=>{let u=o-i,p=g.map((s,h)=>(s-a[h])/u);for(let s of b){let h=s-i,R=a.map((k,S)=>Math.round(k+p[S]*h));t[s]="#"+he.call(this,...R)}};for(let u=1;u<100;u++)u in t?(b.length?(o=u,g=le(t[u]),f(),b.length=0,a=g):a=le(t[u]),i=u):b.push(u);b.length&&(o=100,g="100"in t?le(t[100]):[255,255,255],f())}return e||(t[""]=t[r?"500":"50"]),t}var $e={black:"#000000",white:"#ffffff",slate:_({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:_({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:_({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:_({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:_({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:_({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:_({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:_({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:_({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:_({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:_({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:_({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:_({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:_({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:_({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:_({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:_({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:_({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:_({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:_({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Me="";var Oe={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Ee={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflow:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},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"}};var Be=["dark","light"];var se={content:"content-box",border:"border-box",padding:"padding-box"};var ce={min:"min-content",max:"max-content"};var ee={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in ae)ee[t]=ae[t]/16+"rem";var Ye={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(u,p)=>{let s=p.indexOf(":");if(s!==-1){u in e||(e[u]={});let h=e[u],R=p.slice(0,s);R in h||(h[R]=p.slice(s+1))}},i=u=>{let p=(s,h)=>{let R=h.slice(ue(u.className).length).match(/\{(.*)\}/)[1].split(";");for(let k of R)r(s,k)};if(this.theme){let s=u.natives.find(h=>h.theme===this.theme)??u.natives.find(h=>!h.theme);s&&p(this.theme,s.text)}else for(let s of u.natives)p(s.theme,s.text)},a=[],o="",g=()=>{o&&(a.push(o.replace(/ /g,"")),o="")},b=1;(function u(p){for(;b<t.length;b++){let s=t[b];if(!p){if(s===";"){g();continue}if(s==="}")break}if(o+=s,p===s){if(p==="'"||p==='"'){let h=0;for(let R=o.length-2;o[R]==="\\";R--)h++;if(h%2)continue}break}else s in ie&&p!=="'"&&p!=='"'&&(b++,u(ie[s]))}})(void 0),g();for(let u of a){let p=this.css.create(u);if(Array.isArray(p))for(let s of p)i(s);else p?i(p):r(this.theme??"",u)}let f={};for(let u in e)for(let[p,s]of Object.entries(e[u]))p in f?f[p][u]=s:f[p]={[u]:s};return f}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){let e={};switch(t){case"subpixel-antialiased":e["-webkit-font-smoothing"]=e["-moz-osx-font-smoothing"]="auto";break;case"antialiased":e["-webkit-font-smoothing"]="antialiased",e["-moz-osx-font-smoothing"]="grayscale";break}return e}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},margin:{match:"^m(?:argin(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ie.call(this,t+e)},get order(){return this.prefix==="margin:"||this.prefix==="m:"?-1:0}},padding:{match:"^p(?:adding(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ie.call(this,t+e)},get order(){return this.prefix==="padding:"||this.prefix==="p:"?-1:0}},flexBasis:{values:ee,unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:ee},height:{match:"^h:.",unit:"rem",native:!0,values:ee},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:ee},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:ee},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},inset:{match:"^(?:top|bottom|left|right):.",unit:"rem",native:!0,declare(t,e){return{[this.prefix.slice(0,-1)]:t+e}}},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:ee},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:ee},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflow:{match:"^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)",declare(t,e){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t+e};case"y":return{"overflow-y":t+e}}return{overflow:t+e}},get order(){return-1}},overscrollBehavior:{match:"^overscroll-behavior(?:-[xy])?:",declare(t,e){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t+e};case"y":return{"overscroll-behavior-y":t+e};default:return{"overscroll-behavior":t+e}}}},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{...se,fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return je.call(this,t)},delete(t){return Ae.call(this,t)},insert(){return Ne.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return je.call(this,t)},delete(t){return Ae.call(this,t)},insert(){return Ne.call(this)}},borderColor:{match:"^b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return de(this.prefix,t+e,"color")},get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderRadius:{match:"^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.",unit:"rem",declare(t,e){if(this.prefix){let i="",a=this.prefix.split("-");if(a.length>1)for(let o=1;o<a.length-1;o++)i+=a[o][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{"border-top-left-radius":t+e,"border-top-right-radius":t+e};case"tl":case"lt":return{"border-top-left-radius":t+e};case"rt":case"tr":return{"border-top-right-radius":t+e};case"b":return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e};case"bl":case"lb":return{"border-bottom-left-radius":t+e};case"br":case"rb":return{"border-bottom-right-radius":t+e};case"l":return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e};case"r":return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e};default:return{"border-radius":t+e}}}let r=this.prefix?.slice(0,-1);return{[["border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"].includes(r)?r:"border-radius"]:t+e}},get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}},borderStyle:{match:"^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))",declare(t,e){return de(this.prefix,t+e,"style")},get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderWidth:{match:"^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)",unit:"rem",declare(t,e){return de(this.prefix,t+e,"width")},get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0},border:{match:"^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):.",unit:"rem",colored:!0,values:{current:"currentColor"},declare(t,e){return de(this.prefix,t+e)},get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:se},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:se},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:ce},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:ce,native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:ce},gridTemplateRows:{native:!0,unit:"rem",values:ce},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},gap:{match:"^gap(?:-x|-y)?:.",unit:"rem",order:-1,declare(t,e){switch(this.prefix[4]){case"x":return{"column-gap":t+e};case"y":return{"row-gap":t+e};default:return{gap:t+e}}}},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMargin:{match:"^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t+e,"scroll-margin-right":t+e};case"y":return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e};case"l":return{"scroll-margin-left":t+e};case"r":return{"scroll-margin-right":t+e};case"t":return{"scroll-margin-top":t+e};case"b":return{"scroll-margin-bottom":t+e}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}},scrollPadding:{match:"^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t+e,"scroll-padding-right":t+e};case"y":return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e};case"l":return{"scroll-padding-left":t+e};case"r":return{"scroll-padding-right":t+e};case"t":return{"scroll-padding-top":t+e};case"b":return{"scroll-padding-bottom":t+e}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{...se,margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{...se,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},We=Ye;function je(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function Ae(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let i=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(i),t.natives.splice(i,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function Ne(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,a=r?.sheet;for(let o of this.keyframeNames)if(o in e)e[o].count++;else{let g={text:`@keyframes ${o} {`+Object.entries(t.keyframes[o]).map(([f,u])=>`${f} {${Object.entries(u).map(([p,s])=>p+": "+s).join(";")}}`).join(",")+"}",theme:""},b;if(Object.keys(e).length?(b=i[0]).natives.push(g):i.splice(0,0,b={natives:[g],get text(){return this.natives.map(f=>f.text).join("")}}),a){let f;for(let u=0;u<a.cssRules.length;u++){let p=a.cssRules[u];if(p.constructor.name!=="CSSKeyframesRule")break;if(p.name===o){f=p;break}}if(f)g.cssRule=f;else{let u=b.natives.length-1;a.insertRule(g.text,u),g.cssRule=a.cssRules[u]}}e[o]={native:g,count:1}}}}function Ie(t){if(this.prefix.includes("-"))return{[this.prefix.slice(0,-1)]:t};let r=this.prefix[0]==="m"?"margin":"padding",i=r+"-left",a=r+"-right",o=r+"-top",g=r+"-bottom";switch(this.prefix[1]){case"x":return{[i]:t,[a]:t};case"y":return{[o]:t,[g]:t};case"l":return{[i]:t};case"r":return{[a]:t};case"t":return{[o]:t};case"b":return{[g]:t};default:return{[r]:t}}}function de(t,e,r=""){let i="border-";r&&(r="-"+r);let a=/^b(order)?-?(.)?/.exec(t)[2],o=i+"left"+r,g=i+"right"+r,b=i+"top"+r,f=i+"bottom"+r;switch(a){case"x":return{[o]:e,[g]:e};case"y":return{[b]:e,[f]:e};case"l":return{[o]:e};case"r":return{[g]:e};case"t":return{[b]:e};case"b":return{[f]:e};default:return{["border"+r]:e}}}var Le={fade:{from:{opacity:0},to:{opacity:0}},flash:{"from,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},"100%":{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%,100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}},ping:{"75%,100%":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},"100%":{transform:"none"}},rotate:{from:{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:{from:{transform:"scale(0)"},"100%":{transform:"none"}}};var ye={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=f=>f==="+"||f==="-"||f==="*"||f==="/",r="",i,a="",o=!1,g=!1,b=(f,u="",p="")=>{if(i===2&&!g){let s=this.analyzeUnitValue(a,ye.calc.unit);s&&(a=s.value+s.unit)}r+=a+u+f+p,i=null,g=!1,a=""};for(let f=0;f<t.length;f++){let u=t[f];if(u==="("||u===")")o=u===")",b(u);else if(u===",")b(u,""," ");else{switch(i){case 1:break;case 2:if(e(u)){b(u," "," ");continue}else/[0-9]/.test(u)||(g=!0);break;default:o&&(r+=" "),isNaN(+u)?e(u)||(i=1):i=2;break}i?a+=u:r+=u}}return b(""),r}},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:""}};var ze="highest";var me={breakpoints:ae,colors:$e,rootSize:16,scope:Me,selectors:Oe,semantics:Ee,themes:Be,rules:We,override:!1,observe:!0,important:!1,functions:ye,keyframes:Le,precedence:ze};var De=[",",".","#","[","!","*",">","+","~",":","@"];var ke=typeof window<"u",Fe=()=>{let t=document.createElement("style");return t.id="master",t},ne=class{constructor(e){this.config=e;this.config?.override||(this.config=K(me,e)),this.cache(),ke&&this.config.observe&&this.observe(document),ne.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:i,themes:a,colors:o,values:g,breakpoints:b,mediaQueries:f,rules:u}=this.config;function p(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(n,l,c="",d={}){let x=B=>B?(c?c+"-":"")+B:c,T=Object.entries(n),$=[],W=[];for(let B of T){let Y=B[1];(typeof Y=="object"&&!Array.isArray(Y)?$:W).push(B)}for(let[B,Y]of $)s(Y,l,x(B),d);if(l&&c)W.length&&(d[c]=W.reduce((B,[Y,Z])=>(B[Y]=Z,B),{}));else for(let[B,Y]of W)d[x(B)]=Y;return d}if(e)for(let[n,l]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+p(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,l]]);if(i)for(let[n,l]of Object.entries(s(i,!1))){let c=new RegExp(p(n)+"(?![a-z-])");for(let d of Array.isArray(l)?l:[l]){let x=d.match(/^::-[a-z]+-/m)?.[0]??"",T=this.selectors[x];T||(T=this.selectors[x]=[]);let $=T.find(([W])=>W===c);$||($=[c,[]],T.push($)),$[1].push(d)}}g&&(this.globalValues=s(g,!1)),b&&(this.breakpoints=s(b,!1)),f&&(this.mediaQueries=s(f,!1));let h=r?s(r,!1):{},R=a&&!Array.isArray(a)?Object.entries(a).filter(([,{classes:n}])=>n).reduce((n,[l,{classes:c}])=>(n[l]=s(c,!1),n),{}):{},k=[...Object.keys(h),...Object.entries(R).flatMap(([n,l])=>Object.keys(l))],S=n=>{if(n in this.classes)return;let l=this.classes[n]=[],c=(d,x)=>{if(!x)return;let T=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let $ of T){let W=B=>{B in this.themeAffectedClassesBy?d in this.themeAffectedClassesBy[B]?this.themeAffectedClassesBy[B][d].push(n):this.themeAffectedClassesBy[B][d]=[n]:this.themeAffectedClassesBy[B]={[d]:[n]},l.includes(B)||l.push(B)};if(k.includes($)){S($);for(let B of this.classes[$])W(B)}else W($)}};c("",h?.[n]);for(let[d,x]of Object.entries(R))c(d,x?.[n])};for(let n of k)S(n);for(let n in this.themeAffectedClassesBy){let l=this.classesBy[n]=[];for(let c of Object.values(this.themeAffectedClassesBy[n]))for(let d of c)l.includes(d)||l.push(d)}let v=(n,l)=>{if(!l)return;let c=s(l,!0);for(let[d,x]of Object.entries(c)){let T=typeof x=="string"?{"":x}:x;for(let[$,W]of Object.entries(T)){let B=d+($?"-"+$:"");B in this.colorThemesMap?this.colorThemesMap[B][n]=W:this.colorThemesMap[B]={[n]:W}}}for(let d in l)this.colorNames.includes(d)||this.colorNames.push(d)};if(v("",o),a)if(Array.isArray(a))this.themeNames.push(...a);else for(let n in a){let l=a[n];v(n,l.colors),this.themeNames.push(n)}let C=n=>{for(let[l,c]of Object.entries(this.colorThemesMap))for(let[d,x]of Object.entries(c))x.startsWith("#")||n(l,c,d,x)};if(C((n,l,c,d)=>{let x=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(d);if(x){let T="#"+he(+x[1],+x[2],+x[3]);x[4]&&(T+=Math.round(255*+x[4]).toString(16)),l[c]=T}}),C((n,l,c,d)=>{let[x,T]=d.split("/"),$=this.colorThemesMap[x];if($){let W=(c?$[c]:void 0)??$[""];l[c]=T?W.slice(0,7)+Math.round(255*+T).toString(16):W}else console.warn(`\`${d}\` doesn't exist in the extended config \`.colors\``),delete l[c],Object.keys(l).length||delete this.colorThemesMap[n]}),u)for(let n in u){let l=u[n],{native:c,values:d,colored:x}=l,T=l.match;if(l.id=n,l.native=c===!0?n.replace(/(?!^)[A-Z]/g,$=>"-"+$).toLowerCase():void 0,d&&(this.values[n]=s(d,!1)),T){let $=Object.keys(this.values[n]??{});T.includes("$values")&&(T=$.length?T.replace(/\$values/,$.join("|")):T.replace(/(?:\|)?\$values/,"")),x&&T.includes("$colors")&&(T=this.colorNames.length?T.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):T.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp(T)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(ke&&e){this.root=e;let i=e===document;i&&(ne.root=this),this.host=i?document.documentElement:root.host;let a=i?document.head:e,o=i?document.styleSheets:e.styleSheets;for(let b of o){let{href:f,ownerNode:u}=b;if(u.id==="master"||f&&f.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(f)){this.style=u;break}}if(this.style)for(let b=0;b<this.style.sheet.cssRules.length;b++){let f=this.style.sheet.cssRules[b];if(f.constructor.name==="CSSKeyframesRule")continue;let u=s=>{if(s.selectorText){let R=s.selectorText.split(", ")[0].split(" ");for(let k=0;k<R.length;k++){let S=R[k];if(S[0]==="."){let v=S.slice(1),C="";for(let n=0;n<v.length;n++){let l=v[n],c=v[n+1];if(l==="\\"){if(n++,c!=="\\"){C+=c;continue}}else if(De.includes(l))break;C+=l}if(!(C in this.ruleBy)&&!(C in this.classes)){let n=this.create(C)[0];if(n)return n}}}}else if(s.cssRules)for(let h=0;h<s.cssRules.length;h++){let R=u(s.cssRules[h]);if(R)return R}},p=u(f);if(p){this.rules.push(p),this.ruleBy[p.className]=p;for(let s=0;s<p.natives.length;s++)p.natives[s].cssRule=this.style.sheet.cssRules[b+s];b+=p.natives.length-1,p.config.insert?.call(p)}}else this.style=Fe(),a.append(this.style);let g=b=>{b.forEach(f=>{f in this.countBy?this.countBy[f]++:(this.countBy[f]=1,this.insert(f))})};g(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(b=>g(b.classList)),this.observer=new MutationObserver(b=>{let f={},u=[],p=[],s=[],h=(v,C)=>{C?v.classList.forEach(k):v.classList.forEach(R);let n=v.children;for(let l=0;l<n.length;l++){let c=n[l];c.classList&&(p.push(c),h(c,C))}},R=v=>{v in f?f[v]++:f[v]=1},k=v=>{v in f?f[v]--:v in this.countBy&&(f[v]=-1)},S=(v,C)=>{for(let n=0;n<v.length;n++){let l=v[n];l.classList&&!p.includes(l)&&!s.includes(l)&&(l.isConnected!==C?(p.push(l),h(l,C)):s.push(l))}};for(let v=0;v<b.length;v++){let C=b[v],{addedNodes:n,removedNodes:l,type:c,target:d}=C;if(c==="attributes"){if(u.find(x=>x.target===d))continue;u.push(C)}else S(n,!1),(!d.isConnected||!p.includes(d))&&S(l,!0)}if(!(!u.length&&!Object.keys(f).length)){for(let{oldValue:v,target:C}of u){let n=p.includes(C),l=C.classList,c=v?v.split(" "):[];if(n){if(C.isConnected)continue;for(let d of c)l.contains(d)||k(d)}else if(C.isConnected){l.forEach(d=>{c.includes(d)||R(d)});for(let d of c)l.contains(d)||k(d)}}for(let v in f){let C=f[v],n=(this.countBy[v]||0)+C;n===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=n)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r in this.config.rules){let i=this.config.rules[r],a=this.matches[r],{symbol:o,native:g}=i;if(a&&a.test(e))return{origin:"match",config:i};if(o&&e.startsWith(o))return{origin:"symbol",config:i};if(g&&e.startsWith(g+":"))return{origin:"match",config:i}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=i=>{if(i in this.ruleBy)return this.ruleBy[i];let a=this.match(i);if(a)return new fe(i,a,this)};return(e in this.classes?this.classes[e].map(i=>r(i)):[r(e)]).filter(i=>i&&i.text)}refresh(e){if(e?.override?this.config=e:this.config=K(me,e),this.cache(),!this.style)return;let r=Fe();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let i in this.countBy)this.insert(i)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=a=>{let o=this.ruleBy[a];if(!(!o||a in this.classesBy&&this.classesBy[a].some(g=>g in this.countBy))){if(r&&o.natives.length){let g=o.natives[0];for(let b=0;b<r.cssRules.length;b++)if(r.cssRules[b]===g.cssRule){for(let u=0;u<o.natives.length;u++)r.deleteRule(b);break}}this.rules.splice(this.rules.indexOf(o),1),delete this.ruleBy[a],o.config.delete&&o.config.delete.call(o,a)}};if(e in this.classes){for(let a of this.classes[e])a in this.countBy||i(a);delete this.ruleBy[e]}else i(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let i,a=this.rules.length-1,{media:o,order:g,priority:b,hasWhere:f,className:u}=r,p=(s,h,R,k)=>{let S=0,v;h&&(S=s.findIndex(h)),R&&(v=s.findIndex(R)),S===-1&&(S=s.length),(v===void 0||v===-1)&&(v=s.length);let C=s.slice(S,v);for(let n=0;n<C.length;n++){let l=C[n];if(!(l.priority===-1||k&&k(l))&&(l.priority<b||l.priority===b&&(f&&!l.hasWhere||l.order>=g)))return S+n}return S+C.length};if(o){let s=this.rules.findIndex(h=>h.media);if(s!==-1){let h=o.features["max-width"],R=o.features["min-width"];if(h&&R){let k=h.value-R.value;for(let S=a;S>=s;S--){i=S;let v=this.rules[S],C=v.media,n=C.features["max-width"],l=C.features["min-width"];if(!n||!l){i++;break}let c=n.value-l.value;if(c===k){if(f!==v.hasWhere)continue;if(b!==-1){let d=[this.rules[S]];for(let x=S-1;x>=s;x--){let T=this.rules[x];if(T.hasWhere!==f)break;let $=T.media,W=$.features["max-width"],B=$.features["min-width"];if(!W||!B||W.value-B.value!==c)break;d.unshift(this.rules[x])}i=p(this.rules,x=>x.media&&x.priority!==-1&&x.media.features["min-width"]&&x.media.features["max-width"])}break}else if(c>k)break}}else if(R)for(let k=s;k<=a;k++){i=k;let S=this.rules[k],v=S.media,C=v.features["max-width"],n=v.features["min-width"];if(C){if(n)break;continue}let l=n?.value;if(l===R.value){if(!f&&S.hasWhere){i++;continue}if(b!==-1)i=p(this.rules,c=>c.media,c=>c.media&&c.priority!==-1&&c.media.features["min-width"]&&c.media.features["max-width"],c=>!c.media.features["min-width"]&&!c.media.features["max-width"]);else for(let c=k;c<=a;c++){let d=this.rules[c],x=d.media,T=x.features["min-width"];if(!x.features["max-width"]){if(d.hasWhere!==f||T.value!==l||d.order>=g)break;i=c+1}}break}else{if(l>R.value)break;i++}}else if(h)for(let k=a;k>=s;k--){i=k;let S=this.rules[k],v=S.media,C=v.features["max-width"];if(v.features["min-width"])continue;let l=C?.value;if(!l||l>h.value){i++;break}else if(l===h.value){if(f&&!S.hasWhere)continue;if(b!==-1)i=p(this.rules,c=>c.media,c=>c.media&&c.priority!==-1&&c.media.features["min-width"]&&c.media.features["max-width"],c=>!c.media.features["min-width"]&&!c.media.features["max-width"]);else{let c=[this.rules[k]];for(let d=k-1;d>=s;d--){let x=this.rules[d],T=x.media,$=T.features["min-width"],W=T.features["max-width"];if(!$&&(!W||W.value!==l||x.hasWhere!==f))break;c.unshift(x)}for(let d=0;d<c.length;d++){let x=c[d];if(!x.media.features["min-width"]){if(x.order>=g)break;i=k-c.length+2+d}}}break}}}if(i===void 0)if(s===-1)i=a+1;else if(b!==-1)i=s+p(this.rules.slice(s),void 0,h=>h.media.features["max-width"]||h.media.features["min-width"]);else if(f){let h=s;for(;h<this.rules.length;h++){let R=this.rules[h];if(R.priority!==-1||!R.hasWhere||R.order>=g){i=h;break}}i===void 0&&(i=h)}else for(let h=s;h<=a;h++){i=h;let R=this.rules[h],k=R.media;if(R.priority!==-1||k.features["max-width"]||k.features["min-width"])break;if(R.hasWhere)i++;else if(R.order>=g)break}}else if(b===-1){if(f)i=this.rules.findIndex(s=>!s.hasWhere||s.media||s.priority!==-1||s.order>=g),i===-1&&(i=a+1);else{let s=0;for(;s<this.rules.length;s++){let h=this.rules[s];if(h.media||!h.hasWhere&&(h.order>=g||h.priority!==-1)){i=s;break}}i===void 0&&(i=s)}!i&&Object.keys(this.keyframes).length&&i++}else i=p(this.rules,void 0,s=>s.media);if(this.rules.splice(i,0,r),this.ruleBy[u]=r,this.style){let s=this.style.sheet,h=0,R=k=>{let S=this.rules[k];if(S){if(!S.natives.length)return R(k-1);let v=S.natives[S.natives.length-1].cssRule;for(let C=0;C<s.cssRules.length;C++)if(s.cssRules[C]===v){h=C+1;break}}};R(i-1);for(let k=0;k<r.natives.length;)try{let S=r.natives[k];s.insertRule(S.text,h),S.cssRule=s.cssRules[h++],k++}catch(S){console.error(S),r.natives.splice(k,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},te=ne;oe(te,"root"),oe(te,"config",me),oe(te,"instances",[]),oe(te,"refresh",e=>{for(let r of ne.instances)r.refresh(e)});ke&&(window.MasterCSS=te);var Ve={store:"theme",init:!0},Qe=typeof document<"u",_e=typeof localStorage<"u",ge=class{constructor(e,r=Qe?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?K(Ve,e):Ve,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;r;t;init(){let e=this.settings.default,r=this.storage;r&&(e=r),this.value=e}get storage(){let{store:e}=this.settings;if(_e&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.r=e,e==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.s(),this.current=e)}get value(){return this.r}set current(e){let r=this.t;this.t=e,this.host&&r!==e&&(r&&this.host.classList.remove(r),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,_e&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}s(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.s()}};new te(window.masterCSSConfig);new ge(window.masterCSSThemeSettings);})();
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var he=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Ke=Object.prototype.hasOwnProperty;var Je=(t,e,r)=>e in t?he(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var et=(t,e)=>{for(var r in e)he(t,r,{get:e[r],enumerable:!0})},tt=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ge(e))!Ke.call(t,n)&&n!==r&&he(t,n,{get:()=>e[n],enumerable:!(i=Ze(e,n))||i.enumerable});return t};var rt=t=>tt(he({},"__esModule",{value:!0}),t);var ae=(t,e,r)=>(Je(t,typeof e!="symbol"?e+"":e,r),r);var dt={};et(dt,{MasterCSS:()=>Z,Rule:()=>le,Theme:()=>Ie,breakpoints:()=>se,colors:()=>ke,config:()=>fe,default:()=>Z,defineContent:()=>ht,extend:()=>G,fillColorScale:()=>_,functions:()=>pe,getDocThemeInitScript:()=>ot,important:()=>Ee,keyframes:()=>Be,observe:()=>Oe,override:()=>Me,precedence:()=>je,render:()=>at,renderFromHTML:()=>Le,renderIntoHTML:()=>ut,rootSize:()=>we,rules:()=>Te,scope:()=>Se,selectors:()=>Re,semantics:()=>Ce,themeSettings:()=>Ne,themes:()=>$e});module.exports=rt(dt);function Fe(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Ve(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function _e(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=_e(r):Fe(r)?e[i]=Ve(r):e[i]=G({},r):e[i]=r}),e}function De(t,e){return e==="__proto__"?void 0:t[e]}function G(...t){let e={},r,i;return t.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(o){if(i=De(e,o),r=De(n,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=_e(r);return}else if(Fe(r)){e[o]=Ve(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[o]=G({},r);return}else{e[o]=G(i,r);return}})}),e}var ye=[":disabled",":active",":focus",":hover"];var ie={"(":")","'":"'",'"':'"',"{":"}"};function de(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,i=-1,n="",o,h=e.charCodeAt(0);if(r==1&&h==45)return"\\"+e;for(;++i<r;){if(o=e.charCodeAt(i),o==0){n+="\uFFFD";continue}if(o>=1&&o<=31||o==127||i==0&&o>=48&&o<=57||i==1&&o>=48&&o<=57&&h==45){n+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(i);continue}n+="\\"+e.charAt(i)}return n}var it={unit:"",order:0,separators:[","]},le=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=G(it,r.config);let{unit:n,order:o,colored:h,native:d,analyze:f,transform:a,declare:g,create:s}=this.config,{scope:m,important:k,functions:w}=i.config,{themeNames:R,colorNames:v,colorThemesMap:C,selectors:l,breakpoints:c,mediaQueries:u,themeAffectedClassesBy:p,globalValues:x}=i,$=p[e];this.order=o,s&&s.call(this,e);let T,L,B,Y,X;if(r.origin==="semantics"){let[W,j]=r.value;Y=e.slice(W.length),T=j}else{let W;if(f)[W,B]=f.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),this.prefix.includes("(")?(this.prefix=void 0,W=e):W=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],W=e.slice(1));X=[];let j=this,N=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",y=0;(function M(b,A,E,O=void 0,I=[],H=[],z){let Q=O===void 0,P,K=D=>D==="'"||D==='"',re=()=>P=S.length,J=()=>{if(S){let D=S,V=Q?D:S.slice(P);if(S="",q="",N&&V in N&&!I.includes(V)){let U=y;y=0,M(N[V].toString(),A,void 0,O,[...I,V],H,z),y=U,Q||(S=S.slice(0,P)+S)}else if(x&&V in x&&!H.includes(V)){let U=y;y=0,M(x[V].toString(),A,void 0,O,I,[...H,V],z),y=U,Q||(S=S.slice(0,P)+S)}else if(Q){let U=!z&&j.analyzeUnitValue(V,A);X.push({value:U?.value??V,unit:U?.unit})}else{let U=!z&&j.analyzeUnitValue(V,A);S=U?D.slice(0,P)+U.value+U.unit:D}re()}},ee=K(E);re();let q="";for(;y<b.length;y++){let D=b[y];if(D===E){if(ee){S+=D;let V=0;for(let U=S.length-2;S[U]==="\\";U--)V++;if(V%2)continue}else J(),S+=D;return}else if(!ee&&D in ie){let V=D==="("&&q&&w?.[q];V?.name&&(S=S.slice(0,S.length-q.length)+V.name,q=V.name),S+=D,y++;let U=ie[D];M(b,V?.unit??A,U,q||O||"",I,H,z||!!V?.transform),V?.transform&&(S=S.slice(0,P+q.length+1)+V.transform.call(j,S.slice(P+q.length+1,-1))+S.slice(-1)),Q&&(K(U)?(X.push(S),S=""):J()),q=""}else if((D==="|"||D===" ")&&E!=="}"&&(!ee||O==="path"))J(),Q||(S+=" ",P++);else{if(!ee){if(D==="."){if(isNaN(+b[y+1]))break;b[y-1]==="-"&&(S+="0")}else if(F.includes(D)){J(),Q?X.push(D):(S+=D,P++);continue}else if(Q&&(D==="#"&&(S||X.length&&b[y-1]!=="|"&&X[y-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;q+=D}S+=D}}O===void 0&&J()})(W,n),Y=W.slice(y)}Y[0]==="!"&&(this.important=!0,Y=Y.slice(1));let ze=W=>{let j=W.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((y,M)=>M%3?y:y.replace(/_/g," ")).join(""),N=[],F="",S=0;for(let y=0;y<j.length;y++){let M=j[y];if(M==="\\"){F+=M+j[++y];continue}!S&&M===","?(N.push(F),F=""):(F+=M,S&&M===")"?S--:M==="("&&S++)}return F&&N.push(F),N};this.prefixSelectors=B?ze(B):[""];let be=Y.split("@"),ve=be[0];if(ve){this.vendorSuffixSelectors={};let W=(y,M,b,A)=>{for(let[E,O]of M)if(E.test(y)){for(let I of O)W(y.replace(E,I),M,b,!0);return}A&&b.push(y)},j=[];""in l?W(ve,l[""],j,!0):j.push(ve);let N={};for(let[y,M]of Object.entries(l)){if(!y)continue;let b=[];for(let A of j)W(A,M,b,!1);b.length&&(N[y]=b)}let F=(y,M)=>{let b=M.reduce((A,E)=>(A.push(...ze(E)),A),[]);y in this.vendorSuffixSelectors?this.vendorSuffixSelectors[y].push(...b):this.vendorSuffixSelectors[y]=b},S=Object.keys(N);if(S.length)for(let y of S)F(y,N[y]);else F("",j);for(let y of Object.values(this.vendorSuffixSelectors))for(let M of y){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));for(let b=0;b<ye.length;b++)if(M.includes(ye[b])){(this.priority===-1||this.priority>b)&&(this.priority=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<be.length;W++){let j=be[W];if(j)if(R.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let N,F,S=j.indexOf("_");if(S!==-1)N=j.slice(0,S),F=j.slice(S);else{let y=j.indexOf("(");y!==-1&&(N=j.slice(0,y),F=j.slice(y))}if(!N){N="media";let y=[];this.media={token:j,features:{}};let M=j.split("&");for(let b of M)if(b==="all"||b==="print"||b==="screen"||b==="speech")this.media.type=b;else if(b==="\u{1F5A8}")this.media.type="print";else if(b==="landscape"||b==="portrait")y.push("(orientation:"+b+")");else if(b==="motion"||b==="reduced-motion")y.push("(prefers-reduced-motion:"+(b==="motion"?"no-preference":"reduce")+")");else if(u&&b in u)y.push(u[b]);else{let A={token:b},E="",O="",I=0;b.startsWith("<=")?(O="<=",E="max-width"):b.startsWith(">=")||c[b]?(O=">=",E="min-width"):b.startsWith(">")?(O=">",E="min-width",I=.02):b.startsWith("<")&&(O="<",E="max-width",I=-.02);let H=O?b.replace(O,""):b,z=c[H];switch(E){case"max-width":case"min-width":z?Object.assign(A,this.analyzeUnitValue(z.toString(),"px")):Object.assign(A,this.analyzeUnitValue(H,"px")),A.unit==="px"&&(A.value+=I),this.media.features[E]=A,y.push("("+E+":"+(A.value+A.unit)+")");break}}F="",this.media.type&&(F=this.media.type),y.length&&(F+=(F?" and ":"")+y.join(" and "))}F&&(this.at[N]=(N in this.at?this.at[N]+" and ":"")+F.replace(/_/g," "))}}let xe=(W,j)=>{let N,F=(M,b,A)=>{let E="";this.direction&&(E+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(z=>z+E),I=(z,Q)=>O.map(P=>(z?"."+z+" ":"")+(m?m+" ":"")+P).reduce((P,K)=>(P.push(A.reduce((re,J)=>(re.push(K+"."+de(Q)+J),re),[]).join(",")),P),[]).join(","),H=I(b,e)+($?Object.entries($).filter(([z])=>this.theme||!h||!b||!z||z===b).map(([z,Q])=>Q.reduce((P,K)=>P+","+I(this.theme??((h||L)&&b||z),K),"")).join(""):"")+"{"+M+"}";for(let z of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))H="@"+z+" "+this.at[z]+"{"+H+"}";return H},S=[];if(X){let M=this.theme?[this.theme,""]:[W],b,A;for(let E of X)if(typeof E=="string")S.push(E);else{let O=E.value;if(E.unit)O+=E.unit;else if(h&&C&&v){let I=!1,H=!1;O=O.replace(new RegExp(`(^|,| |\\()((?:${v.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(z,Q,P,K)=>{H=!0;let re=C[P];if(re){let J;for(let ee of M)if(J=re[ee])break;if(J){I=!0;let ee=J;if(K){let q=K.endsWith("%")?parseFloat(K)/100:+K;q=isNaN(q)?1:Math.min(Math.max(q,0),1),ee+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return Q+ee}}return z}),H&&(A=I)}A!==void 0&&!b&&(b=A),S.push(O)}if(j&&(b===void 0?W:!b))return;if(N=S.reduce((E,O,I)=>E+O+(O===","||X[I+1]===","||I===X.length-1?"":" "),""),a&&(N=a.call(this,N,this.css.config)),h&&N==="current"&&(N="currentColor"),g){let E,O;if(X.length===1){let I=X[0];typeof I=="object"&&(E=I.value,O=I.unit)}T=g.call(this,O?E:N,O||"")}else T={[d]:N}}let y={};for(let M in T){let b=(O,I)=>{let H=I+((this.important||k)&&!I.endsWith("!important")?"!important":"");O in y?y[O].push(H):y[O]=[H]},A=M+":",E=T[M];if(typeof E=="object"){L=!0;for(let O in E)b(O,A+E[O])}else b(W,A+E.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let b in y)this.natives.push({text:F(y[b].join(";"),b,M),theme:b})};if(this.theme)xe(this.theme,!1);else if(h)for(let W of R)xe(W,!0);else xe("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let i=r??this.config.unit;if(i){let n="",o=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(e.includes("/")){let[h,d]=e.split("/");return{value:+h/+d*100+"%",unit:n}}else{let h=+o[1];return n=o[3]||"",n||((i==="rem"||i==="em")&&(h=h/this.css.config.rootSize),n=i||""),{value:h,unit:n}}}}};var se={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function ce(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function me(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function _(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let i in t)if(i&&+i>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let i=0,n="0"in t?ce(t[0]):[0,0,0],o,h,d=[],f=()=>{let a=o-i,g=h.map((s,m)=>(s-n[m])/a);for(let s of d){let m=s-i,k=n.map((w,R)=>Math.round(w+g[R]*m));t[s]="#"+me.call(this,...k)}};for(let a=1;a<100;a++)a in t?(d.length?(o=a,h=ce(t[a]),f(),d.length=0,n=h):n=ce(t[a]),i=a):d.push(a);d.length&&(o=100,h="100"in t?ce(t[100]):[255,255,255],f())}return e||(t[""]=t[r?"500":"50"]),t}var ke={black:"#000000",white:"#ffffff",slate:_({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:_({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:_({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:_({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:_({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:_({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:_({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:_({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:_({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:_({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:_({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:_({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:_({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:_({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:_({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:_({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:_({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:_({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:_({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:_({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var we=16;var Se="";var Re={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Ce={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflow:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},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"}};var $e=["dark","light"];var ne={content:"content-box",border:"border-box",padding:"padding-box"};var ue={min:"min-content",max:"max-content"};var te={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in se)te[t]=se[t]/16+"rem";var st={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(a,g)=>{let s=g.indexOf(":");if(s!==-1){a in e||(e[a]={});let m=e[a],k=g.slice(0,s);k in m||(m[k]=g.slice(s+1))}},i=a=>{let g=(s,m)=>{let k=m.slice(de(a.className).length).match(/\{(.*)\}/)[1].split(";");for(let w of k)r(s,w)};if(this.theme){let s=a.natives.find(m=>m.theme===this.theme)??a.natives.find(m=>!m.theme);s&&g(this.theme,s.text)}else for(let s of a.natives)g(s.theme,s.text)},n=[],o="",h=()=>{o&&(n.push(o.replace(/ /g,"")),o="")},d=1;(function a(g){for(;d<t.length;d++){let s=t[d];if(!g){if(s===";"){h();continue}if(s==="}")break}if(o+=s,g===s){if(g==="'"||g==='"'){let m=0;for(let k=o.length-2;o[k]==="\\";k--)m++;if(m%2)continue}break}else s in ie&&g!=="'"&&g!=='"'&&(d++,a(ie[s]))}})(void 0),h();for(let a of n){let g=this.css.create(a);if(Array.isArray(g))for(let s of g)i(s);else g?i(g):r(this.theme??"",a)}let f={};for(let a in e)for(let[g,s]of Object.entries(e[a]))g in f?f[g][a]=s:f[g]={[a]:s};return f}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){let e={};switch(t){case"subpixel-antialiased":e["-webkit-font-smoothing"]=e["-moz-osx-font-smoothing"]="auto";break;case"antialiased":e["-webkit-font-smoothing"]="antialiased",e["-moz-osx-font-smoothing"]="grayscale";break}return e}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},margin:{match:"^m(?:argin(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ye.call(this,t+e)},get order(){return this.prefix==="margin:"||this.prefix==="m:"?-1:0}},padding:{match:"^p(?:adding(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ye.call(this,t+e)},get order(){return this.prefix==="padding:"||this.prefix==="p:"?-1:0}},flexBasis:{values:te,unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:te},height:{match:"^h:.",unit:"rem",native:!0,values:te},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:te},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:te},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},inset:{match:"^(?:top|bottom|left|right):.",unit:"rem",native:!0,declare(t,e){return{[this.prefix.slice(0,-1)]:t+e}}},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:te},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:te},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflow:{match:"^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)",declare(t,e){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t+e};case"y":return{"overflow-y":t+e}}return{overflow:t+e}},get order(){return-1}},overscrollBehavior:{match:"^overscroll-behavior(?:-[xy])?:",declare(t,e){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t+e};case"y":return{"overscroll-behavior-y":t+e};default:return{"overscroll-behavior":t+e}}}},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{...ne,fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return Pe.call(this,t)},delete(t){return He.call(this,t)},insert(){return Ue.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Pe.call(this,t)},delete(t){return He.call(this,t)},insert(){return Ue.call(this)}},borderColor:{match:"^b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return ge(this.prefix,t+e,"color")},get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderRadius:{match:"^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.",unit:"rem",declare(t,e){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let o=1;o<n.length-1;o++)i+=n[o][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{"border-top-left-radius":t+e,"border-top-right-radius":t+e};case"tl":case"lt":return{"border-top-left-radius":t+e};case"rt":case"tr":return{"border-top-right-radius":t+e};case"b":return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e};case"bl":case"lb":return{"border-bottom-left-radius":t+e};case"br":case"rb":return{"border-bottom-right-radius":t+e};case"l":return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e};case"r":return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e};default:return{"border-radius":t+e}}}let r=this.prefix?.slice(0,-1);return{[["border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"].includes(r)?r:"border-radius"]:t+e}},get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}},borderStyle:{match:"^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))",declare(t,e){return ge(this.prefix,t+e,"style")},get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderWidth:{match:"^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)",unit:"rem",declare(t,e){return ge(this.prefix,t+e,"width")},get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0},border:{match:"^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):.",unit:"rem",colored:!0,values:{current:"currentColor"},declare(t,e){return ge(this.prefix,t+e)},get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:ne},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:ne},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:ue},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:ue,native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:ue},gridTemplateRows:{native:!0,unit:"rem",values:ue},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},gap:{match:"^gap(?:-x|-y)?:.",unit:"rem",order:-1,declare(t,e){switch(this.prefix[4]){case"x":return{"column-gap":t+e};case"y":return{"row-gap":t+e};default:return{gap:t+e}}}},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMargin:{match:"^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t+e,"scroll-margin-right":t+e};case"y":return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e};case"l":return{"scroll-margin-left":t+e};case"r":return{"scroll-margin-right":t+e};case"t":return{"scroll-margin-top":t+e};case"b":return{"scroll-margin-bottom":t+e}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}},scrollPadding:{match:"^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t+e,"scroll-padding-right":t+e};case"y":return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e};case"l":return{"scroll-padding-left":t+e};case"r":return{"scroll-padding-right":t+e};case"t":return{"scroll-padding-top":t+e};case"b":return{"scroll-padding-bottom":t+e}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{...ne,margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{...ne,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},Te=st;function Pe(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function He(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let i=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(i),t.natives.splice(i,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function Ue(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,n=r?.sheet;for(let o of this.keyframeNames)if(o in e)e[o].count++;else{let h={text:`@keyframes ${o} {`+Object.entries(t.keyframes[o]).map(([f,a])=>`${f} {${Object.entries(a).map(([g,s])=>g+": "+s).join(";")}}`).join(",")+"}",theme:""},d;if(Object.keys(e).length?(d=i[0]).natives.push(h):i.splice(0,0,d={natives:[h],get text(){return this.natives.map(f=>f.text).join("")}}),n){let f;for(let a=0;a<n.cssRules.length;a++){let g=n.cssRules[a];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===o){f=g;break}}if(f)h.cssRule=f;else{let a=d.natives.length-1;n.insertRule(h.text,a),h.cssRule=n.cssRules[a]}}e[o]={native:h,count:1}}}}function Ye(t){if(this.prefix.includes("-"))return{[this.prefix.slice(0,-1)]:t};let r=this.prefix[0]==="m"?"margin":"padding",i=r+"-left",n=r+"-right",o=r+"-top",h=r+"-bottom";switch(this.prefix[1]){case"x":return{[i]:t,[n]:t};case"y":return{[o]:t,[h]:t};case"l":return{[i]:t};case"r":return{[n]:t};case"t":return{[o]:t};case"b":return{[h]:t};default:return{[r]:t}}}function ge(t,e,r=""){let i="border-";r&&(r="-"+r);let n=/^b(order)?-?(.)?/.exec(t)[2],o=i+"left"+r,h=i+"right"+r,d=i+"top"+r,f=i+"bottom"+r;switch(n){case"x":return{[o]:e,[h]:e};case"y":return{[d]:e,[f]:e};case"l":return{[o]:e};case"r":return{[h]:e};case"t":return{[d]:e};case"b":return{[f]:e};default:return{["border"+r]:e}}}var Me=!1;var Oe=!0;var Ee=!1;var Be={fade:{from:{opacity:0},to:{opacity:0}},flash:{"from,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},"100%":{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%,100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}},ping:{"75%,100%":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},"100%":{transform:"none"}},rotate:{from:{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:{from:{transform:"scale(0)"},"100%":{transform:"none"}}};var pe={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=f=>f==="+"||f==="-"||f==="*"||f==="/",r="",i,n="",o=!1,h=!1,d=(f,a="",g="")=>{if(i===2&&!h){let s=this.analyzeUnitValue(n,pe.calc.unit);s&&(n=s.value+s.unit)}r+=n+a+f+g,i=null,h=!1,n=""};for(let f=0;f<t.length;f++){let a=t[f];if(a==="("||a===")")o=a===")",d(a);else if(a===",")d(a,""," ");else{switch(i){case 1:break;case 2:if(e(a)){d(a," "," ");continue}else/[0-9]/.test(a)||(h=!0);break;default:o&&(r+=" "),isNaN(+a)?e(a)||(i=1):i=2;break}i?n+=a:r+=a}}return d(""),r}},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:""}};var je="highest";var fe={breakpoints:se,colors:ke,rootSize:16,scope:Se,selectors:Re,semantics:Ce,themes:$e,rules:Te,override:!1,observe:!0,important:!1,functions:pe,keyframes:Be,precedence:je};var Qe=[",",".","#","[","!","*",">","+","~",":","@"];var Ae=typeof window<"u",qe=()=>{let t=document.createElement("style");return t.id="master",t},oe=class{constructor(e){this.config=e;this.config?.override||(this.config=G(fe,e)),this.cache(),Ae&&this.config.observe&&this.observe(document),oe.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;e;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:i,themes:n,colors:o,values:h,breakpoints:d,mediaQueries:f,rules:a}=this.config;function g(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(l,c,u="",p={}){let x=B=>B?(u?u+"-":"")+B:u,$=Object.entries(l),T=[],L=[];for(let B of $){let Y=B[1];(typeof Y=="object"&&!Array.isArray(Y)?T:L).push(B)}for(let[B,Y]of T)s(Y,c,x(B),p);if(c&&u)L.length&&(p[u]=L.reduce((B,[Y,X])=>(B[Y]=X,B),{}));else for(let[B,Y]of L)p[x(B)]=Y;return p}if(e)for(let[l,c]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+g(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[l,c]]);if(i)for(let[l,c]of Object.entries(s(i,!1))){let u=new RegExp(g(l)+"(?![a-z-])");for(let p of Array.isArray(c)?c:[c]){let x=p.match(/^::-[a-z]+-/m)?.[0]??"",$=this.selectors[x];$||($=this.selectors[x]=[]);let T=$.find(([L])=>L===u);T||(T=[u,[]],$.push(T)),T[1].push(p)}}h&&(this.globalValues=s(h,!1)),d&&(this.breakpoints=s(d,!1)),f&&(this.mediaQueries=s(f,!1));let m=r?s(r,!1):{},k=n&&!Array.isArray(n)?Object.entries(n).filter(([,{classes:l}])=>l).reduce((l,[c,{classes:u}])=>(l[c]=s(u,!1),l),{}):{},w=[...Object.keys(m),...Object.entries(k).flatMap(([l,c])=>Object.keys(c))],R=l=>{if(l in this.classes)return;let c=this.classes[l]=[],u=(p,x)=>{if(!x)return;let $=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let T of $){let L=B=>{B in this.themeAffectedClassesBy?p in this.themeAffectedClassesBy[B]?this.themeAffectedClassesBy[B][p].push(l):this.themeAffectedClassesBy[B][p]=[l]:this.themeAffectedClassesBy[B]={[p]:[l]},c.includes(B)||c.push(B)};if(w.includes(T)){R(T);for(let B of this.classes[T])L(B)}else L(T)}};u("",m?.[l]);for(let[p,x]of Object.entries(k))u(p,x?.[l])};for(let l of w)R(l);for(let l in this.themeAffectedClassesBy){let c=this.classesBy[l]=[];for(let u of Object.values(this.themeAffectedClassesBy[l]))for(let p of u)c.includes(p)||c.push(p)}let v=(l,c)=>{if(!c)return;let u=s(c,!0);for(let[p,x]of Object.entries(u)){let $=typeof x=="string"?{"":x}:x;for(let[T,L]of Object.entries($)){let B=p+(T?"-"+T:"");B in this.colorThemesMap?this.colorThemesMap[B][l]=L:this.colorThemesMap[B]={[l]:L}}}for(let p in c)this.colorNames.includes(p)||this.colorNames.push(p)};if(v("",o),n)if(Array.isArray(n))this.themeNames.push(...n);else for(let l in n){let c=n[l];v(l,c.colors),this.themeNames.push(l)}let C=l=>{for(let[c,u]of Object.entries(this.colorThemesMap))for(let[p,x]of Object.entries(u))x.startsWith("#")||l(c,u,p,x)};if(C((l,c,u,p)=>{let x=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(p);if(x){let $="#"+me(+x[1],+x[2],+x[3]);x[4]&&($+=Math.round(255*+x[4]).toString(16)),c[u]=$}}),C((l,c,u,p)=>{let[x,$]=p.split("/"),T=this.colorThemesMap[x];if(T){let L=(u?T[u]:void 0)??T[""];c[u]=$?L.slice(0,7)+Math.round(255*+$).toString(16):L}else console.warn(`\`${p}\` doesn't exist in the extended config \`.colors\``),delete c[u],Object.keys(c).length||delete this.colorThemesMap[l]}),a)for(let l in a){let c=a[l],{native:u,values:p,colored:x}=c,$=c.match;if(c.id=l,c.native=u===!0?l.replace(/(?!^)[A-Z]/g,T=>"-"+T).toLowerCase():void 0,p&&(this.values[l]=s(p,!1)),$){let T=Object.keys(this.values[l]??{});$.includes("$values")&&($=T.length?$.replace(/\$values/,T.join("|")):$.replace(/(?:\|)?\$values/,"")),x&&$.includes("$colors")&&($=this.colorNames.length?$.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):$.replace(/(?:\|)?\$colors/,"")),this.matches[l]=new RegExp($)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(Ae&&e){this.root=e;let i=e===document;i&&(oe.root=this),this.host=i?document.documentElement:root.host;let n=i?document.head:e,o=i?document.styleSheets:e.styleSheets;for(let d of o){let{href:f,ownerNode:a}=d;(a.id==="master"||f&&f.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(f))&&(this.style=a)}if(this.style)for(let d=0;d<this.style.sheet.cssRules.length;d++){let f=this.style.sheet.cssRules[d];if(f.constructor.name==="CSSKeyframesRule")continue;let a=s=>{if(s.selectorText){let k=s.selectorText.split(", ")[0].split(" ");for(let w=0;w<k.length;w++){let R=k[w];if(R[0]==="."){let v=R.slice(1),C="";for(let l=0;l<v.length;l++){let c=v[l],u=v[l+1];if(c==="\\"){if(l++,u!=="\\"){C+=u;continue}}else if(Qe.includes(c))break;C+=c}if(!(C in this.ruleBy)&&!(C in this.classes)){let l=this.create(C)[0];if(l)return l}}}}else if(s.cssRules)for(let m=0;m<s.cssRules.length;m++){let k=a(s.cssRules[m]);if(k)return k}},g=a(f);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let s=0;s<g.natives.length;s++)g.natives[s].cssRule=this.style.sheet.cssRules[d+s];d+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=qe();n.append(this.style);let h=d=>{d.forEach(f=>{f in this.countBy?this.countBy[f]++:(this.countBy[f]=1,this.insert(f))})};h(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(d=>h(d.classList)),this.observer=new MutationObserver(d=>{let f={},a=[],g=[],s=[],m=(v,C)=>{C?v.classList.forEach(w):v.classList.forEach(k);let l=v.children;for(let c=0;c<l.length;c++){let u=l[c];u.classList&&(g.push(u),m(u,C))}},k=v=>{v in f?f[v]++:f[v]=1},w=v=>{v in f?f[v]--:v in this.countBy&&(f[v]=-1)},R=(v,C)=>{for(let l=0;l<v.length;l++){let c=v[l];c.classList&&!g.includes(c)&&!s.includes(c)&&(c.isConnected!==C?(g.push(c),m(c,C)):s.push(c))}};for(let v=0;v<d.length;v++){let C=d[v],{addedNodes:l,removedNodes:c,type:u,target:p}=C;if(u==="attributes"){if(a.find(x=>x.target===p))continue;a.push(C)}else R(l,!1),(!p.isConnected||!g.includes(p))&&R(c,!0)}if(!(!a.length&&!Object.keys(f).length)){for(let{oldValue:v,target:C}of a){let l=g.includes(C),c=C.classList,u=v?v.split(" "):[];if(l){if(C.isConnected)continue;for(let p of u)c.contains(p)||w(p)}else if(C.isConnected){c.forEach(p=>{u.includes(p)||k(p)});for(let p of u)c.contains(p)||w(p)}}for(let v in f){let C=f[v],l=(this.countBy[v]||0)+C;l===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=l)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.e=new MutationObserver(d=>{for(let f of d)for(let a of f.addedNodes)if(a.nodeName==="STYLE"||a.nodeName==="LINK"&&a.rel==="stylesheet"){let g=this.root.styleSheets;if(g.item(g.length-1).ownerNode!==this.style){let k=this.style.sheet.cssRules;n.append(this.style);for(let w of k)this.style.sheet.insertRule(w.cssText)}}}),this.e.observe(n,{childList:!0}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.e&&(this.e.disconnect(),this.e=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r in this.config.rules){let i=this.config.rules[r],n=this.matches[r],{symbol:o,native:h}=i;if(n&&n.test(e))return{origin:"match",config:i};if(o&&e.startsWith(o))return{origin:"symbol",config:i};if(h&&e.startsWith(h+":"))return{origin:"match",config:i}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=i=>{if(i in this.ruleBy)return this.ruleBy[i];let n=this.match(i);if(n)return new le(i,n,this)};return(e in this.classes?this.classes[e].map(i=>r(i)):[r(e)]).filter(i=>i&&i.text)}refresh(e){if(e?.override?this.config=e:this.config=G(fe,e),this.cache(),!this.style)return;let r=qe();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let i in this.countBy)this.insert(i)}destroy(){let e=oe.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=n=>{let o=this.ruleBy[n];if(!(!o||n in this.classesBy&&this.classesBy[n].some(h=>h in this.countBy))){if(r&&o.natives.length){let h=o.natives[0];for(let d=0;d<r.cssRules.length;d++)if(r.cssRules[d]===h.cssRule){for(let a=0;a<o.natives.length;a++)r.deleteRule(d);break}}this.rules.splice(this.rules.indexOf(o),1),delete this.ruleBy[n],o.config.delete&&o.config.delete.call(o,n)}};if(e in this.classes){for(let n of this.classes[e])n in this.countBy||i(n);delete this.ruleBy[e]}else i(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let i,n=this.rules.length-1,{media:o,order:h,priority:d,hasWhere:f,className:a}=r,g=(s,m,k,w)=>{let R=0,v;m&&(R=s.findIndex(m)),k&&(v=s.findIndex(k)),R===-1&&(R=s.length),(v===void 0||v===-1)&&(v=s.length);let C=s.slice(R,v);for(let l=0;l<C.length;l++){let c=C[l];if(!(c.priority===-1||w&&w(c))&&(c.priority<d||c.priority===d&&(f&&!c.hasWhere||c.order>=h)))return R+l}return R+C.length};if(o){let s=this.rules.findIndex(m=>m.media);if(s!==-1){let m=o.features["max-width"],k=o.features["min-width"];if(m&&k){let w=m.value-k.value;for(let R=n;R>=s;R--){i=R;let v=this.rules[R],C=v.media,l=C.features["max-width"],c=C.features["min-width"];if(!l||!c){i++;break}let u=l.value-c.value;if(u===w){if(f!==v.hasWhere)continue;if(d!==-1){let p=[this.rules[R]];for(let x=R-1;x>=s;x--){let $=this.rules[x];if($.hasWhere!==f)break;let T=$.media,L=T.features["max-width"],B=T.features["min-width"];if(!L||!B||L.value-B.value!==u)break;p.unshift(this.rules[x])}i=g(this.rules,x=>x.media&&x.priority!==-1&&x.media.features["min-width"]&&x.media.features["max-width"])}break}else if(u>w)break}}else if(k)for(let w=s;w<=n;w++){i=w;let R=this.rules[w],v=R.media,C=v.features["max-width"],l=v.features["min-width"];if(C){if(l)break;continue}let c=l?.value;if(c===k.value){if(!f&&R.hasWhere){i++;continue}if(d!==-1)i=g(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else for(let u=w;u<=n;u++){let p=this.rules[u],x=p.media,$=x.features["min-width"];if(!x.features["max-width"]){if(p.hasWhere!==f||$.value!==c||p.order>=h)break;i=u+1}}break}else{if(c>k.value)break;i++}}else if(m)for(let w=n;w>=s;w--){i=w;let R=this.rules[w],v=R.media,C=v.features["max-width"];if(v.features["min-width"])continue;let c=C?.value;if(!c||c>m.value){i++;break}else if(c===m.value){if(f&&!R.hasWhere)continue;if(d!==-1)i=g(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else{let u=[this.rules[w]];for(let p=w-1;p>=s;p--){let x=this.rules[p],$=x.media,T=$.features["min-width"],L=$.features["max-width"];if(!T&&(!L||L.value!==c||x.hasWhere!==f))break;u.unshift(x)}for(let p=0;p<u.length;p++){let x=u[p];if(!x.media.features["min-width"]){if(x.order>=h)break;i=w-u.length+2+p}}}break}}}if(i===void 0)if(s===-1)i=n+1;else if(d!==-1)i=s+g(this.rules.slice(s),void 0,m=>m.media.features["max-width"]||m.media.features["min-width"]);else if(f){let m=s;for(;m<this.rules.length;m++){let k=this.rules[m];if(k.priority!==-1||!k.hasWhere||k.order>=h){i=m;break}}i===void 0&&(i=m)}else for(let m=s;m<=n;m++){i=m;let k=this.rules[m],w=k.media;if(k.priority!==-1||w.features["max-width"]||w.features["min-width"])break;if(k.hasWhere)i++;else if(k.order>=h)break}}else if(d===-1){if(f)i=this.rules.findIndex(s=>!s.hasWhere||s.media||s.priority!==-1||s.order>=h),i===-1&&(i=n+1);else{let s=0;for(;s<this.rules.length;s++){let m=this.rules[s];if(m.media||!m.hasWhere&&(m.order>=h||m.priority!==-1)){i=s;break}}i===void 0&&(i=s)}!i&&Object.keys(this.keyframes).length&&i++}else i=g(this.rules,void 0,s=>s.media);if(this.rules.splice(i,0,r),this.ruleBy[a]=r,this.style){let s=this.style.sheet,m=0,k=w=>{let R=this.rules[w];if(R){if(!R.natives.length)return k(w-1);let v=R.natives[R.natives.length-1].cssRule;for(let C=0;C<s.cssRules.length;C++)if(s.cssRules[C]===v){m=C+1;break}}};k(i-1);for(let w=0;w<r.natives.length;)try{let R=r.natives[w];s.insertRule(R.text,m),R.cssRule=s.cssRules[m++],w++}catch(R){console.error(R),r.natives.splice(w,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},Z=oe;ae(Z,"root"),ae(Z,"config",fe),ae(Z,"instances",[]),ae(Z,"refresh",e=>{for(let r of oe.instances)r.refresh(e)});Ae&&(window.MasterCSS=Z);var Ne={store:"theme",init:!0},nt=typeof document<"u",Xe=typeof localStorage<"u",Ie=class{constructor(e,r=nt?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?G(Ne,e):Ne,this.settings.init&&this.init()}t=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;i;r;init(){let e=this.settings.default,r=this.storage;r&&(e=r),this.value=e}get storage(){let{store:e}=this.settings;if(Xe&&e)return localStorage.getItem(e)}get systemValue(){return this.t.matches?"dark":"light"}set value(e){this.i=e,e==="system"?(this.t?.addEventListener?.("change",this.s),this.current=this.systemValue):(this.n(),this.current=e)}get value(){return this.i}set current(e){let r=this.r;this.r=e,this.host&&r!==e&&(r&&this.host.classList.remove(r),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.r}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,Xe&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.t?.removeEventListener("change",this.s)}s=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};function ot(t){return t=Object.assign({store:"theme"},t),`let e${t.default?`='${t.default}'`:""};const c=localStorage.getItem("${t.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}function at(t,e){if(!t?.length)return;let r=new Z({...e,observe:!1});for(let i of t)i in r.countBy||r.insert(i)&&(r.countBy[i]=1);return r.text}var lt=/&(amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,ct={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'",quot:'"',"#34":'"'};function Le(t,e){if(!t)return;let r=new Z({...e,observe:!1}),i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(t);){let o=n[1].replace(/\n/g,"").split(" ").filter(h=>h).map(h=>h.replace(lt,(d,f)=>ct[f]));for(let h of o)h in r.countBy||(r.insert(h),r.countBy[h]=1)}return r.text}function ut(t,e){if(!t)return;let r=`<style id="master">${Le(t,e)}</style>`;return t.replace(/<\/head>/,`${r}$&`)}function ft(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(d,f){var a=f.match(/\n([\t ]+|(?!\s).)/g);return a?d.concat(a.map(function(g){var s,m;return(m=(s=g.match(/[\t ]/g))===null||s===void 0?void 0:s.length)!==null&&m!==void 0?m:0})):d},[]);if(n.length){var o=new RegExp(`
1
+ var he=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Ke=Object.prototype.hasOwnProperty;var Je=(t,e,r)=>e in t?he(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var et=(t,e)=>{for(var r in e)he(t,r,{get:e[r],enumerable:!0})},tt=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ge(e))!Ke.call(t,n)&&n!==r&&he(t,n,{get:()=>e[n],enumerable:!(i=Ze(e,n))||i.enumerable});return t};var rt=t=>tt(he({},"__esModule",{value:!0}),t);var ae=(t,e,r)=>(Je(t,typeof e!="symbol"?e+"":e,r),r);var dt={};et(dt,{MasterCSS:()=>Z,Rule:()=>le,Theme:()=>Ie,breakpoints:()=>se,colors:()=>ke,config:()=>fe,default:()=>Z,defineContent:()=>ht,extend:()=>G,fillColorScale:()=>_,functions:()=>pe,getDocThemeInitScript:()=>ot,important:()=>Ee,keyframes:()=>Be,observe:()=>Oe,override:()=>Me,precedence:()=>je,render:()=>at,renderFromHTML:()=>Le,renderIntoHTML:()=>ut,rootSize:()=>we,rules:()=>Te,scope:()=>Se,selectors:()=>Re,semantics:()=>Ce,themeSettings:()=>Ne,themes:()=>$e});module.exports=rt(dt);function Fe(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Ve(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function _e(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=_e(r):Fe(r)?e[i]=Ve(r):e[i]=G({},r):e[i]=r}),e}function De(t,e){return e==="__proto__"?void 0:t[e]}function G(...t){let e={},r,i;return t.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(o){if(i=De(e,o),r=De(n,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=_e(r);return}else if(Fe(r)){e[o]=Ve(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[o]=G({},r);return}else{e[o]=G(i,r);return}})}),e}var ye=[":disabled",":active",":focus",":hover"];var ie={"(":")","'":"'",'"':'"',"{":"}"};function de(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,i=-1,n="",o,h=e.charCodeAt(0);if(r==1&&h==45)return"\\"+e;for(;++i<r;){if(o=e.charCodeAt(i),o==0){n+="\uFFFD";continue}if(o>=1&&o<=31||o==127||i==0&&o>=48&&o<=57||i==1&&o>=48&&o<=57&&h==45){n+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(i);continue}n+="\\"+e.charAt(i)}return n}var it={unit:"",order:0,separators:[","]},le=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=G(it,r.config);let{unit:n,order:o,colored:h,native:d,analyze:f,transform:a,declare:g,create:s}=this.config,{scope:m,important:k,functions:w}=i.config,{themeNames:R,colorNames:v,colorThemesMap:C,selectors:l,breakpoints:c,mediaQueries:u,themeAffectedClassesBy:p,globalValues:x}=i,$=p[e];this.order=o,s&&s.call(this,e);let T,L,B,Y,X;if(r.origin==="semantics"){let[W,j]=r.value;Y=e.slice(W.length),T=j}else{let W;if(f)[W,B]=f.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),this.prefix.includes("(")?(this.prefix=void 0,W=e):W=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],W=e.slice(1));X=[];let j=this,N=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",y=0;(function M(b,A,E,O=void 0,I=[],H=[],z){let Q=O===void 0,P,K=D=>D==="'"||D==='"',re=()=>P=S.length,J=()=>{if(S){let D=S,V=Q?D:S.slice(P);if(S="",q="",N&&V in N&&!I.includes(V)){let U=y;y=0,M(N[V].toString(),A,void 0,O,[...I,V],H,z),y=U,Q||(S=S.slice(0,P)+S)}else if(x&&V in x&&!H.includes(V)){let U=y;y=0,M(x[V].toString(),A,void 0,O,I,[...H,V],z),y=U,Q||(S=S.slice(0,P)+S)}else if(Q){let U=!z&&j.analyzeUnitValue(V,A);X.push({value:U?.value??V,unit:U?.unit})}else{let U=!z&&j.analyzeUnitValue(V,A);S=U?D.slice(0,P)+U.value+U.unit:D}re()}},ee=K(E);re();let q="";for(;y<b.length;y++){let D=b[y];if(D===E){if(ee){S+=D;let V=0;for(let U=S.length-2;S[U]==="\\";U--)V++;if(V%2)continue}else J(),S+=D;return}else if(!ee&&D in ie){let V=D==="("&&q&&w?.[q];V?.name&&(S=S.slice(0,S.length-q.length)+V.name,q=V.name),S+=D,y++;let U=ie[D];M(b,V?.unit??A,U,q||O||"",I,H,z||!!V?.transform),V?.transform&&(S=S.slice(0,P+q.length+1)+V.transform.call(j,S.slice(P+q.length+1,-1))+S.slice(-1)),Q&&(K(U)?(X.push(S),S=""):J()),q=""}else if((D==="|"||D===" ")&&E!=="}"&&(!ee||O==="path"))J(),Q||(S+=" ",P++);else{if(!ee){if(D==="."){if(isNaN(+b[y+1]))break;b[y-1]==="-"&&(S+="0")}else if(F.includes(D)){J(),Q?X.push(D):(S+=D,P++);continue}else if(Q&&(D==="#"&&(S||X.length&&b[y-1]!=="|"&&X[y-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;q+=D}S+=D}}O===void 0&&J()})(W,n),Y=W.slice(y)}Y[0]==="!"&&(this.important=!0,Y=Y.slice(1));let ze=W=>{let j=W.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((y,M)=>M%3?y:y.replace(/_/g," ")).join(""),N=[],F="",S=0;for(let y=0;y<j.length;y++){let M=j[y];if(M==="\\"){F+=M+j[++y];continue}!S&&M===","?(N.push(F),F=""):(F+=M,S&&M===")"?S--:M==="("&&S++)}return F&&N.push(F),N};this.prefixSelectors=B?ze(B):[""];let be=Y.split("@"),ve=be[0];if(ve){this.vendorSuffixSelectors={};let W=(y,M,b,A)=>{for(let[E,O]of M)if(E.test(y)){for(let I of O)W(y.replace(E,I),M,b,!0);return}A&&b.push(y)},j=[];""in l?W(ve,l[""],j,!0):j.push(ve);let N={};for(let[y,M]of Object.entries(l)){if(!y)continue;let b=[];for(let A of j)W(A,M,b,!1);b.length&&(N[y]=b)}let F=(y,M)=>{let b=M.reduce((A,E)=>(A.push(...ze(E)),A),[]);y in this.vendorSuffixSelectors?this.vendorSuffixSelectors[y].push(...b):this.vendorSuffixSelectors[y]=b},S=Object.keys(N);if(S.length)for(let y of S)F(y,N[y]);else F("",j);for(let y of Object.values(this.vendorSuffixSelectors))for(let M of y){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));for(let b=0;b<ye.length;b++)if(M.includes(ye[b])){(this.priority===-1||this.priority>b)&&(this.priority=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<be.length;W++){let j=be[W];if(j)if(R.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let N,F,S=j.indexOf("_");if(S!==-1)N=j.slice(0,S),F=j.slice(S);else{let y=j.indexOf("(");y!==-1&&(N=j.slice(0,y),F=j.slice(y))}if(!N){N="media";let y=[];this.media={token:j,features:{}};let M=j.split("&");for(let b of M)if(b==="all"||b==="print"||b==="screen"||b==="speech")this.media.type=b;else if(b==="\u{1F5A8}")this.media.type="print";else if(b==="landscape"||b==="portrait")y.push("(orientation:"+b+")");else if(b==="motion"||b==="reduced-motion")y.push("(prefers-reduced-motion:"+(b==="motion"?"no-preference":"reduce")+")");else if(u&&b in u)y.push(u[b]);else{let A={token:b},E="",O="",I=0;b.startsWith("<=")?(O="<=",E="max-width"):b.startsWith(">=")||c[b]?(O=">=",E="min-width"):b.startsWith(">")?(O=">",E="min-width",I=.02):b.startsWith("<")&&(O="<",E="max-width",I=-.02);let H=O?b.replace(O,""):b,z=c[H];switch(E){case"max-width":case"min-width":z?Object.assign(A,this.analyzeUnitValue(z.toString(),"px")):Object.assign(A,this.analyzeUnitValue(H,"px")),A.unit==="px"&&(A.value+=I),this.media.features[E]=A,y.push("("+E+":"+(A.value+A.unit)+")");break}}F="",this.media.type&&(F=this.media.type),y.length&&(F+=(F?" and ":"")+y.join(" and "))}F&&(this.at[N]=(N in this.at?this.at[N]+" and ":"")+F.replace(/_/g," "))}}let xe=(W,j)=>{let N,F=(M,b,A)=>{let E="";this.direction&&(E+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(z=>z+E),I=(z,Q)=>O.map(P=>(z?"."+z+" ":"")+(m?m+" ":"")+P).reduce((P,K)=>(P.push(A.reduce((re,J)=>(re.push(K+"."+de(Q)+J),re),[]).join(",")),P),[]).join(","),H=I(b,e)+($?Object.entries($).filter(([z])=>this.theme||!h||!b||!z||z===b).map(([z,Q])=>Q.reduce((P,K)=>P+","+I(this.theme??((h||L)&&b||z),K),"")).join(""):"")+"{"+M+"}";for(let z of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))H="@"+z+" "+this.at[z]+"{"+H+"}";return H},S=[];if(X){let M=this.theme?[this.theme,""]:[W],b,A;for(let E of X)if(typeof E=="string")S.push(E);else{let O=E.value;if(E.unit)O+=E.unit;else if(h&&C&&v){let I=!1,H=!1;O=O.replace(new RegExp(`(^|,| |\\()((?:${v.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(z,Q,P,K)=>{H=!0;let re=C[P];if(re){let J;for(let ee of M)if(J=re[ee])break;if(J){I=!0;let ee=J;if(K){let q=K.endsWith("%")?parseFloat(K)/100:+K;q=isNaN(q)?1:Math.min(Math.max(q,0),1),ee+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return Q+ee}}return z}),H&&(A=I)}A!==void 0&&!b&&(b=A),S.push(O)}if(j&&(b===void 0?W:!b))return;if(N=S.reduce((E,O,I)=>E+O+(O===","||X[I+1]===","||I===X.length-1?"":" "),""),a&&(N=a.call(this,N,this.css.config)),h&&N==="current"&&(N="currentColor"),g){let E,O;if(X.length===1){let I=X[0];typeof I=="object"&&(E=I.value,O=I.unit)}T=g.call(this,O?E:N,O||"")}else T={[d]:N}}let y={};for(let M in T){let b=(O,I)=>{let H=I+((this.important||k)&&!I.endsWith("!important")?"!important":"");O in y?y[O].push(H):y[O]=[H]},A=M+":",E=T[M];if(typeof E=="object"){L=!0;for(let O in E)b(O,A+E[O])}else b(W,A+E.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let b in y)this.natives.push({text:F(y[b].join(";"),b,M),theme:b})};if(this.theme)xe(this.theme,!1);else if(h)for(let W of R)xe(W,!0);else xe("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let i=r??this.config.unit;if(i){let n="",o=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(e.includes("/")){let[h,d]=e.split("/");return{value:+h/+d*100+"%",unit:n}}else{let h=+o[1];return n=o[3]||"",n||((i==="rem"||i==="em")&&(h=h/this.css.config.rootSize),n=i||""),{value:h,unit:n}}}}};var se={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function ce(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function me(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function _(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let i in t)if(i&&+i>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let i=0,n="0"in t?ce(t[0]):[0,0,0],o,h,d=[],f=()=>{let a=o-i,g=h.map((s,m)=>(s-n[m])/a);for(let s of d){let m=s-i,k=n.map((w,R)=>Math.round(w+g[R]*m));t[s]="#"+me.call(this,...k)}};for(let a=1;a<100;a++)a in t?(d.length?(o=a,h=ce(t[a]),f(),d.length=0,n=h):n=ce(t[a]),i=a):d.push(a);d.length&&(o=100,h="100"in t?ce(t[100]):[255,255,255],f())}return e||(t[""]=t[r?"500":"50"]),t}var ke={black:"#000000",white:"#ffffff",slate:_({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:_({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:_({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:_({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:_({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:_({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:_({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:_({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:_({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:_({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:_({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:_({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:_({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:_({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:_({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:_({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:_({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:_({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:_({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:_({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var we=16;var Se="";var Re={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Ce={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflow:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},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"}};var $e=["dark","light"];var ne={content:"content-box",border:"border-box",padding:"padding-box"};var ue={min:"min-content",max:"max-content"};var te={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in se)te[t]=se[t]/16+"rem";var st={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(a,g)=>{let s=g.indexOf(":");if(s!==-1){a in e||(e[a]={});let m=e[a],k=g.slice(0,s);k in m||(m[k]=g.slice(s+1))}},i=a=>{let g=(s,m)=>{let k=m.slice(de(a.className).length).match(/\{(.*)\}/)[1].split(";");for(let w of k)r(s,w)};if(this.theme){let s=a.natives.find(m=>m.theme===this.theme)??a.natives.find(m=>!m.theme);s&&g(this.theme,s.text)}else for(let s of a.natives)g(s.theme,s.text)},n=[],o="",h=()=>{o&&(n.push(o.replace(/ /g,"")),o="")},d=1;(function a(g){for(;d<t.length;d++){let s=t[d];if(!g){if(s===";"){h();continue}if(s==="}")break}if(o+=s,g===s){if(g==="'"||g==='"'){let m=0;for(let k=o.length-2;o[k]==="\\";k--)m++;if(m%2)continue}break}else s in ie&&g!=="'"&&g!=='"'&&(d++,a(ie[s]))}})(void 0),h();for(let a of n){let g=this.css.create(a);if(Array.isArray(g))for(let s of g)i(s);else g?i(g):r(this.theme??"",a)}let f={};for(let a in e)for(let[g,s]of Object.entries(e[a]))g in f?f[g][a]=s:f[g]={[a]:s};return f}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){let e={};switch(t){case"subpixel-antialiased":e["-webkit-font-smoothing"]=e["-moz-osx-font-smoothing"]="auto";break;case"antialiased":e["-webkit-font-smoothing"]="antialiased",e["-moz-osx-font-smoothing"]="grayscale";break}return e}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},margin:{match:"^m(?:argin(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ye.call(this,t+e)},get order(){return this.prefix==="margin:"||this.prefix==="m:"?-1:0}},padding:{match:"^p(?:adding(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ye.call(this,t+e)},get order(){return this.prefix==="padding:"||this.prefix==="p:"?-1:0}},flexBasis:{values:te,unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:te},height:{match:"^h:.",unit:"rem",native:!0,values:te},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:te},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:te},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},inset:{match:"^(?:top|bottom|left|right):.",unit:"rem",native:!0,declare(t,e){return{[this.prefix.slice(0,-1)]:t+e}}},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:te},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:te},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflow:{match:"^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)",declare(t,e){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t+e};case"y":return{"overflow-y":t+e}}return{overflow:t+e}},get order(){return-1}},overscrollBehavior:{match:"^overscroll-behavior(?:-[xy])?:",declare(t,e){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t+e};case"y":return{"overscroll-behavior-y":t+e};default:return{"overscroll-behavior":t+e}}}},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{...ne,fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return Pe.call(this,t)},delete(t){return He.call(this,t)},insert(){return Ue.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Pe.call(this,t)},delete(t){return He.call(this,t)},insert(){return Ue.call(this)}},borderColor:{match:"^b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return ge(this.prefix,t+e,"color")},get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderRadius:{match:"^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.",unit:"rem",declare(t,e){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let o=1;o<n.length-1;o++)i+=n[o][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{"border-top-left-radius":t+e,"border-top-right-radius":t+e};case"tl":case"lt":return{"border-top-left-radius":t+e};case"rt":case"tr":return{"border-top-right-radius":t+e};case"b":return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e};case"bl":case"lb":return{"border-bottom-left-radius":t+e};case"br":case"rb":return{"border-bottom-right-radius":t+e};case"l":return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e};case"r":return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e};default:return{"border-radius":t+e}}}let r=this.prefix?.slice(0,-1);return{[["border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"].includes(r)?r:"border-radius"]:t+e}},get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}},borderStyle:{match:"^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))",declare(t,e){return ge(this.prefix,t+e,"style")},get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderWidth:{match:"^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)",unit:"rem",declare(t,e){return ge(this.prefix,t+e,"width")},get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0},border:{match:"^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):.",unit:"rem",colored:!0,values:{current:"currentColor"},declare(t,e){return ge(this.prefix,t+e)},get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:ne},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:ne},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:ue},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:ue,native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:ue},gridTemplateRows:{native:!0,unit:"rem",values:ue},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},gap:{match:"^gap(?:-x|-y)?:.",unit:"rem",order:-1,declare(t,e){switch(this.prefix[4]){case"x":return{"column-gap":t+e};case"y":return{"row-gap":t+e};default:return{gap:t+e}}}},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMargin:{match:"^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t+e,"scroll-margin-right":t+e};case"y":return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e};case"l":return{"scroll-margin-left":t+e};case"r":return{"scroll-margin-right":t+e};case"t":return{"scroll-margin-top":t+e};case"b":return{"scroll-margin-bottom":t+e}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}},scrollPadding:{match:"^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t+e,"scroll-padding-right":t+e};case"y":return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e};case"l":return{"scroll-padding-left":t+e};case"r":return{"scroll-padding-right":t+e};case"t":return{"scroll-padding-top":t+e};case"b":return{"scroll-padding-bottom":t+e}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{...ne,margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{...ne,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},Te=st;function Pe(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function He(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let i=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(i),t.natives.splice(i,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function Ue(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,n=r?.sheet;for(let o of this.keyframeNames)if(o in e)e[o].count++;else{let h={text:`@keyframes ${o} {`+Object.entries(t.keyframes[o]).map(([f,a])=>`${f} {${Object.entries(a).map(([g,s])=>g+": "+s).join(";")}}`).join(",")+"}",theme:""},d;if(Object.keys(e).length?(d=i[0]).natives.push(h):i.splice(0,0,d={natives:[h],get text(){return this.natives.map(f=>f.text).join("")}}),n){let f;for(let a=0;a<n.cssRules.length;a++){let g=n.cssRules[a];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===o){f=g;break}}if(f)h.cssRule=f;else{let a=d.natives.length-1;n.insertRule(h.text,a),h.cssRule=n.cssRules[a]}}e[o]={native:h,count:1}}}}function Ye(t){if(this.prefix.includes("-"))return{[this.prefix.slice(0,-1)]:t};let r=this.prefix[0]==="m"?"margin":"padding",i=r+"-left",n=r+"-right",o=r+"-top",h=r+"-bottom";switch(this.prefix[1]){case"x":return{[i]:t,[n]:t};case"y":return{[o]:t,[h]:t};case"l":return{[i]:t};case"r":return{[n]:t};case"t":return{[o]:t};case"b":return{[h]:t};default:return{[r]:t}}}function ge(t,e,r=""){let i="border-";r&&(r="-"+r);let n=/^b(order)?-?(.)?/.exec(t)[2],o=i+"left"+r,h=i+"right"+r,d=i+"top"+r,f=i+"bottom"+r;switch(n){case"x":return{[o]:e,[h]:e};case"y":return{[d]:e,[f]:e};case"l":return{[o]:e};case"r":return{[h]:e};case"t":return{[d]:e};case"b":return{[f]:e};default:return{["border"+r]:e}}}var Me=!1;var Oe=!0;var Ee=!1;var Be={fade:{from:{opacity:0},to:{opacity:0}},flash:{"from,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},"100%":{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%,100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}},ping:{"75%,100%":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},"100%":{transform:"none"}},rotate:{from:{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:{from:{transform:"scale(0)"},"100%":{transform:"none"}}};var pe={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=f=>f==="+"||f==="-"||f==="*"||f==="/",r="",i,n="",o=!1,h=!1,d=(f,a="",g="")=>{if(i===2&&!h){let s=this.analyzeUnitValue(n,pe.calc.unit);s&&(n=s.value+s.unit)}r+=n+a+f+g,i=null,h=!1,n=""};for(let f=0;f<t.length;f++){let a=t[f];if(a==="("||a===")")o=a===")",d(a);else if(a===",")d(a,""," ");else{switch(i){case 1:break;case 2:if(e(a)){d(a," "," ");continue}else/[0-9]/.test(a)||(h=!0);break;default:o&&(r+=" "),isNaN(+a)?e(a)||(i=1):i=2;break}i?n+=a:r+=a}}return d(""),r}},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:""}};var je="highest";var fe={breakpoints:se,colors:ke,rootSize:16,scope:Se,selectors:Re,semantics:Ce,themes:$e,rules:Te,override:!1,observe:!0,important:!1,functions:pe,keyframes:Be,precedence:je};var Qe=[",",".","#","[","!","*",">","+","~",":","@"];var Ae=typeof window<"u",qe=()=>{let t=document.createElement("style");return t.id="master",t},oe=class{constructor(e){this.config=e;this.config?.override||(this.config=G(fe,e)),this.cache(),Ae&&this.config.observe&&this.observe(document),oe.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:i,themes:n,colors:o,values:h,breakpoints:d,mediaQueries:f,rules:a}=this.config;function g(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(l,c,u="",p={}){let x=B=>B?(u?u+"-":"")+B:u,$=Object.entries(l),T=[],L=[];for(let B of $){let Y=B[1];(typeof Y=="object"&&!Array.isArray(Y)?T:L).push(B)}for(let[B,Y]of T)s(Y,c,x(B),p);if(c&&u)L.length&&(p[u]=L.reduce((B,[Y,X])=>(B[Y]=X,B),{}));else for(let[B,Y]of L)p[x(B)]=Y;return p}if(e)for(let[l,c]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+g(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[l,c]]);if(i)for(let[l,c]of Object.entries(s(i,!1))){let u=new RegExp(g(l)+"(?![a-z-])");for(let p of Array.isArray(c)?c:[c]){let x=p.match(/^::-[a-z]+-/m)?.[0]??"",$=this.selectors[x];$||($=this.selectors[x]=[]);let T=$.find(([L])=>L===u);T||(T=[u,[]],$.push(T)),T[1].push(p)}}h&&(this.globalValues=s(h,!1)),d&&(this.breakpoints=s(d,!1)),f&&(this.mediaQueries=s(f,!1));let m=r?s(r,!1):{},k=n&&!Array.isArray(n)?Object.entries(n).filter(([,{classes:l}])=>l).reduce((l,[c,{classes:u}])=>(l[c]=s(u,!1),l),{}):{},w=[...Object.keys(m),...Object.entries(k).flatMap(([l,c])=>Object.keys(c))],R=l=>{if(l in this.classes)return;let c=this.classes[l]=[],u=(p,x)=>{if(!x)return;let $=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let T of $){let L=B=>{B in this.themeAffectedClassesBy?p in this.themeAffectedClassesBy[B]?this.themeAffectedClassesBy[B][p].push(l):this.themeAffectedClassesBy[B][p]=[l]:this.themeAffectedClassesBy[B]={[p]:[l]},c.includes(B)||c.push(B)};if(w.includes(T)){R(T);for(let B of this.classes[T])L(B)}else L(T)}};u("",m?.[l]);for(let[p,x]of Object.entries(k))u(p,x?.[l])};for(let l of w)R(l);for(let l in this.themeAffectedClassesBy){let c=this.classesBy[l]=[];for(let u of Object.values(this.themeAffectedClassesBy[l]))for(let p of u)c.includes(p)||c.push(p)}let v=(l,c)=>{if(!c)return;let u=s(c,!0);for(let[p,x]of Object.entries(u)){let $=typeof x=="string"?{"":x}:x;for(let[T,L]of Object.entries($)){let B=p+(T?"-"+T:"");B in this.colorThemesMap?this.colorThemesMap[B][l]=L:this.colorThemesMap[B]={[l]:L}}}for(let p in c)this.colorNames.includes(p)||this.colorNames.push(p)};if(v("",o),n)if(Array.isArray(n))this.themeNames.push(...n);else for(let l in n){let c=n[l];v(l,c.colors),this.themeNames.push(l)}let C=l=>{for(let[c,u]of Object.entries(this.colorThemesMap))for(let[p,x]of Object.entries(u))x.startsWith("#")||l(c,u,p,x)};if(C((l,c,u,p)=>{let x=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(p);if(x){let $="#"+me(+x[1],+x[2],+x[3]);x[4]&&($+=Math.round(255*+x[4]).toString(16)),c[u]=$}}),C((l,c,u,p)=>{let[x,$]=p.split("/"),T=this.colorThemesMap[x];if(T){let L=(u?T[u]:void 0)??T[""];c[u]=$?L.slice(0,7)+Math.round(255*+$).toString(16):L}else console.warn(`\`${p}\` doesn't exist in the extended config \`.colors\``),delete c[u],Object.keys(c).length||delete this.colorThemesMap[l]}),a)for(let l in a){let c=a[l],{native:u,values:p,colored:x}=c,$=c.match;if(c.id=l,c.native=u===!0?l.replace(/(?!^)[A-Z]/g,T=>"-"+T).toLowerCase():void 0,p&&(this.values[l]=s(p,!1)),$){let T=Object.keys(this.values[l]??{});$.includes("$values")&&($=T.length?$.replace(/\$values/,T.join("|")):$.replace(/(?:\|)?\$values/,"")),x&&$.includes("$colors")&&($=this.colorNames.length?$.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):$.replace(/(?:\|)?\$colors/,"")),this.matches[l]=new RegExp($)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(Ae&&e){this.root=e;let i=e===document;i&&(oe.root=this),this.host=i?document.documentElement:root.host;let n=i?document.head:e,o=i?document.styleSheets:e.styleSheets;for(let d of o){let{href:f,ownerNode:a}=d;if(a.id==="master"||f&&f.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(f)){this.style=a;break}}if(this.style)for(let d=0;d<this.style.sheet.cssRules.length;d++){let f=this.style.sheet.cssRules[d];if(f.constructor.name==="CSSKeyframesRule")continue;let a=s=>{if(s.selectorText){let k=s.selectorText.split(", ")[0].split(" ");for(let w=0;w<k.length;w++){let R=k[w];if(R[0]==="."){let v=R.slice(1),C="";for(let l=0;l<v.length;l++){let c=v[l],u=v[l+1];if(c==="\\"){if(l++,u!=="\\"){C+=u;continue}}else if(Qe.includes(c))break;C+=c}if(!(C in this.ruleBy)&&!(C in this.classes)){let l=this.create(C)[0];if(l)return l}}}}else if(s.cssRules)for(let m=0;m<s.cssRules.length;m++){let k=a(s.cssRules[m]);if(k)return k}},g=a(f);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let s=0;s<g.natives.length;s++)g.natives[s].cssRule=this.style.sheet.cssRules[d+s];d+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=qe(),n.append(this.style);let h=d=>{d.forEach(f=>{f in this.countBy?this.countBy[f]++:(this.countBy[f]=1,this.insert(f))})};h(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(d=>h(d.classList)),this.observer=new MutationObserver(d=>{let f={},a=[],g=[],s=[],m=(v,C)=>{C?v.classList.forEach(w):v.classList.forEach(k);let l=v.children;for(let c=0;c<l.length;c++){let u=l[c];u.classList&&(g.push(u),m(u,C))}},k=v=>{v in f?f[v]++:f[v]=1},w=v=>{v in f?f[v]--:v in this.countBy&&(f[v]=-1)},R=(v,C)=>{for(let l=0;l<v.length;l++){let c=v[l];c.classList&&!g.includes(c)&&!s.includes(c)&&(c.isConnected!==C?(g.push(c),m(c,C)):s.push(c))}};for(let v=0;v<d.length;v++){let C=d[v],{addedNodes:l,removedNodes:c,type:u,target:p}=C;if(u==="attributes"){if(a.find(x=>x.target===p))continue;a.push(C)}else R(l,!1),(!p.isConnected||!g.includes(p))&&R(c,!0)}if(!(!a.length&&!Object.keys(f).length)){for(let{oldValue:v,target:C}of a){let l=g.includes(C),c=C.classList,u=v?v.split(" "):[];if(l){if(C.isConnected)continue;for(let p of u)c.contains(p)||w(p)}else if(C.isConnected){c.forEach(p=>{u.includes(p)||k(p)});for(let p of u)c.contains(p)||w(p)}}for(let v in f){let C=f[v],l=(this.countBy[v]||0)+C;l===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=l)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r in this.config.rules){let i=this.config.rules[r],n=this.matches[r],{symbol:o,native:h}=i;if(n&&n.test(e))return{origin:"match",config:i};if(o&&e.startsWith(o))return{origin:"symbol",config:i};if(h&&e.startsWith(h+":"))return{origin:"match",config:i}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=i=>{if(i in this.ruleBy)return this.ruleBy[i];let n=this.match(i);if(n)return new le(i,n,this)};return(e in this.classes?this.classes[e].map(i=>r(i)):[r(e)]).filter(i=>i&&i.text)}refresh(e){if(e?.override?this.config=e:this.config=G(fe,e),this.cache(),!this.style)return;let r=qe();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let i in this.countBy)this.insert(i)}destroy(){let e=oe.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=n=>{let o=this.ruleBy[n];if(!(!o||n in this.classesBy&&this.classesBy[n].some(h=>h in this.countBy))){if(r&&o.natives.length){let h=o.natives[0];for(let d=0;d<r.cssRules.length;d++)if(r.cssRules[d]===h.cssRule){for(let a=0;a<o.natives.length;a++)r.deleteRule(d);break}}this.rules.splice(this.rules.indexOf(o),1),delete this.ruleBy[n],o.config.delete&&o.config.delete.call(o,n)}};if(e in this.classes){for(let n of this.classes[e])n in this.countBy||i(n);delete this.ruleBy[e]}else i(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let i,n=this.rules.length-1,{media:o,order:h,priority:d,hasWhere:f,className:a}=r,g=(s,m,k,w)=>{let R=0,v;m&&(R=s.findIndex(m)),k&&(v=s.findIndex(k)),R===-1&&(R=s.length),(v===void 0||v===-1)&&(v=s.length);let C=s.slice(R,v);for(let l=0;l<C.length;l++){let c=C[l];if(!(c.priority===-1||w&&w(c))&&(c.priority<d||c.priority===d&&(f&&!c.hasWhere||c.order>=h)))return R+l}return R+C.length};if(o){let s=this.rules.findIndex(m=>m.media);if(s!==-1){let m=o.features["max-width"],k=o.features["min-width"];if(m&&k){let w=m.value-k.value;for(let R=n;R>=s;R--){i=R;let v=this.rules[R],C=v.media,l=C.features["max-width"],c=C.features["min-width"];if(!l||!c){i++;break}let u=l.value-c.value;if(u===w){if(f!==v.hasWhere)continue;if(d!==-1){let p=[this.rules[R]];for(let x=R-1;x>=s;x--){let $=this.rules[x];if($.hasWhere!==f)break;let T=$.media,L=T.features["max-width"],B=T.features["min-width"];if(!L||!B||L.value-B.value!==u)break;p.unshift(this.rules[x])}i=g(this.rules,x=>x.media&&x.priority!==-1&&x.media.features["min-width"]&&x.media.features["max-width"])}break}else if(u>w)break}}else if(k)for(let w=s;w<=n;w++){i=w;let R=this.rules[w],v=R.media,C=v.features["max-width"],l=v.features["min-width"];if(C){if(l)break;continue}let c=l?.value;if(c===k.value){if(!f&&R.hasWhere){i++;continue}if(d!==-1)i=g(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else for(let u=w;u<=n;u++){let p=this.rules[u],x=p.media,$=x.features["min-width"];if(!x.features["max-width"]){if(p.hasWhere!==f||$.value!==c||p.order>=h)break;i=u+1}}break}else{if(c>k.value)break;i++}}else if(m)for(let w=n;w>=s;w--){i=w;let R=this.rules[w],v=R.media,C=v.features["max-width"];if(v.features["min-width"])continue;let c=C?.value;if(!c||c>m.value){i++;break}else if(c===m.value){if(f&&!R.hasWhere)continue;if(d!==-1)i=g(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else{let u=[this.rules[w]];for(let p=w-1;p>=s;p--){let x=this.rules[p],$=x.media,T=$.features["min-width"],L=$.features["max-width"];if(!T&&(!L||L.value!==c||x.hasWhere!==f))break;u.unshift(x)}for(let p=0;p<u.length;p++){let x=u[p];if(!x.media.features["min-width"]){if(x.order>=h)break;i=w-u.length+2+p}}}break}}}if(i===void 0)if(s===-1)i=n+1;else if(d!==-1)i=s+g(this.rules.slice(s),void 0,m=>m.media.features["max-width"]||m.media.features["min-width"]);else if(f){let m=s;for(;m<this.rules.length;m++){let k=this.rules[m];if(k.priority!==-1||!k.hasWhere||k.order>=h){i=m;break}}i===void 0&&(i=m)}else for(let m=s;m<=n;m++){i=m;let k=this.rules[m],w=k.media;if(k.priority!==-1||w.features["max-width"]||w.features["min-width"])break;if(k.hasWhere)i++;else if(k.order>=h)break}}else if(d===-1){if(f)i=this.rules.findIndex(s=>!s.hasWhere||s.media||s.priority!==-1||s.order>=h),i===-1&&(i=n+1);else{let s=0;for(;s<this.rules.length;s++){let m=this.rules[s];if(m.media||!m.hasWhere&&(m.order>=h||m.priority!==-1)){i=s;break}}i===void 0&&(i=s)}!i&&Object.keys(this.keyframes).length&&i++}else i=g(this.rules,void 0,s=>s.media);if(this.rules.splice(i,0,r),this.ruleBy[a]=r,this.style){let s=this.style.sheet,m=0,k=w=>{let R=this.rules[w];if(R){if(!R.natives.length)return k(w-1);let v=R.natives[R.natives.length-1].cssRule;for(let C=0;C<s.cssRules.length;C++)if(s.cssRules[C]===v){m=C+1;break}}};k(i-1);for(let w=0;w<r.natives.length;)try{let R=r.natives[w];s.insertRule(R.text,m),R.cssRule=s.cssRules[m++],w++}catch(R){console.error(R),r.natives.splice(w,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},Z=oe;ae(Z,"root"),ae(Z,"config",fe),ae(Z,"instances",[]),ae(Z,"refresh",e=>{for(let r of oe.instances)r.refresh(e)});Ae&&(window.MasterCSS=Z);var Ne={store:"theme",init:!0},nt=typeof document<"u",Xe=typeof localStorage<"u",Ie=class{constructor(e,r=nt?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?G(Ne,e):Ne,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;r;t;init(){let e=this.settings.default,r=this.storage;r&&(e=r),this.value=e}get storage(){let{store:e}=this.settings;if(Xe&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.r=e,e==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.s(),this.current=e)}get value(){return this.r}set current(e){let r=this.t;this.t=e,this.host&&r!==e&&(r&&this.host.classList.remove(r),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,Xe&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}s(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.s()}};function ot(t){return t=Object.assign({store:"theme"},t),`let e${t.default?`='${t.default}'`:""};const c=localStorage.getItem("${t.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}function at(t,e){if(!t?.length)return;let r=new Z({...e,observe:!1});for(let i of t)i in r.countBy||r.insert(i)&&(r.countBy[i]=1);return r.text}var lt=/&(amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,ct={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'",quot:'"',"#34":'"'};function Le(t,e){if(!t)return;let r=new Z({...e,observe:!1}),i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(t);){let o=n[1].replace(/\n/g,"").split(" ").filter(h=>h).map(h=>h.replace(lt,(d,f)=>ct[f]));for(let h of o)h in r.countBy||(r.insert(h),r.countBy[h]=1)}return r.text}function ut(t,e){if(!t)return;let r=`<style id="master">${Le(t,e)}</style>`;return t.replace(/<\/head>/,`${r}$&`)}function ft(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(d,f){var a=f.match(/\n([\t ]+|(?!\s).)/g);return a?d.concat(a.map(function(g){var s,m;return(m=(s=g.match(/[\t ]/g))===null||s===void 0?void 0:s.length)!==null&&m!==void 0?m:0})):d},[]);if(n.length){var o=new RegExp(`
2
2
  [ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(d){return d.replace(o,`
3
3
  `)})}i[0]=i[0].replace(/^\r?\n/,"");var h=i[0];return e.forEach(function(d,f){var a=h.match(/(?:^|\n)( *)$/),g=a?a[1]:"",s=d;typeof d=="string"&&d.includes(`
4
4
  `)&&(s=String(d).split(`
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var Xe=Object.defineProperty;var Ze=(t,e,r)=>e in t?Xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var oe=(t,e,r)=>(Ze(t,typeof e!="symbol"?e+"":e,r),r);function Re(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Ce(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function $e(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=$e(r):Re(r)?e[i]=Ce(r):e[i]=J({},r):e[i]=r}),e}function Se(t,e){return e==="__proto__"?void 0:t[e]}function J(...t){let e={},r,i;return t.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(o){if(i=Se(e,o),r=Se(n,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=$e(r);return}else if(Re(r)){e[o]=Ce(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[o]=J({},r);return}else{e[o]=J(i,r);return}})}),e}var ve=[":disabled",":active",":focus",":hover"];var ie={"(":")","'":"'",'"':'"',"{":"}"};function ue(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,i=-1,n="",o,h=e.charCodeAt(0);if(r==1&&h==45)return"\\"+e;for(;++i<r;){if(o=e.charCodeAt(i),o==0){n+="\uFFFD";continue}if(o>=1&&o<=31||o==127||i==0&&o>=48&&o<=57||i==1&&o>=48&&o<=57&&h==45){n+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(i);continue}n+="\\"+e.charAt(i)}return n}var Ge={unit:"",order:0,separators:[","]},fe=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=J(Ge,r.config);let{unit:n,order:o,colored:h,native:d,analyze:f,transform:a,declare:g,create:s}=this.config,{scope:m,important:k,functions:w}=i.config,{themeNames:R,colorNames:v,colorThemesMap:C,selectors:l,breakpoints:c,mediaQueries:u,themeAffectedClassesBy:p,globalValues:x}=i,$=p[e];this.order=o,s&&s.call(this,e);let T,L,B,Y,X;if(r.origin==="semantics"){let[W,j]=r.value;Y=e.slice(W.length),T=j}else{let W;if(f)[W,B]=f.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),this.prefix.includes("(")?(this.prefix=void 0,W=e):W=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],W=e.slice(1));X=[];let j=this,N=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",y=0;(function M(b,A,E,O=void 0,I=[],H=[],z){let Q=O===void 0,P,G=D=>D==="'"||D==='"',re=()=>P=S.length,K=()=>{if(S){let D=S,V=Q?D:S.slice(P);if(S="",q="",N&&V in N&&!I.includes(V)){let U=y;y=0,M(N[V].toString(),A,void 0,O,[...I,V],H,z),y=U,Q||(S=S.slice(0,P)+S)}else if(x&&V in x&&!H.includes(V)){let U=y;y=0,M(x[V].toString(),A,void 0,O,I,[...H,V],z),y=U,Q||(S=S.slice(0,P)+S)}else if(Q){let U=!z&&j.analyzeUnitValue(V,A);X.push({value:U?.value??V,unit:U?.unit})}else{let U=!z&&j.analyzeUnitValue(V,A);S=U?D.slice(0,P)+U.value+U.unit:D}re()}},ee=G(E);re();let q="";for(;y<b.length;y++){let D=b[y];if(D===E){if(ee){S+=D;let V=0;for(let U=S.length-2;S[U]==="\\";U--)V++;if(V%2)continue}else K(),S+=D;return}else if(!ee&&D in ie){let V=D==="("&&q&&w?.[q];V?.name&&(S=S.slice(0,S.length-q.length)+V.name,q=V.name),S+=D,y++;let U=ie[D];M(b,V?.unit??A,U,q||O||"",I,H,z||!!V?.transform),V?.transform&&(S=S.slice(0,P+q.length+1)+V.transform.call(j,S.slice(P+q.length+1,-1))+S.slice(-1)),Q&&(G(U)?(X.push(S),S=""):K()),q=""}else if((D==="|"||D===" ")&&E!=="}"&&(!ee||O==="path"))K(),Q||(S+=" ",P++);else{if(!ee){if(D==="."){if(isNaN(+b[y+1]))break;b[y-1]==="-"&&(S+="0")}else if(F.includes(D)){K(),Q?X.push(D):(S+=D,P++);continue}else if(Q&&(D==="#"&&(S||X.length&&b[y-1]!=="|"&&X[y-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;q+=D}S+=D}}O===void 0&&K()})(W,n),Y=W.slice(y)}Y[0]==="!"&&(this.important=!0,Y=Y.slice(1));let we=W=>{let j=W.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((y,M)=>M%3?y:y.replace(/_/g," ")).join(""),N=[],F="",S=0;for(let y=0;y<j.length;y++){let M=j[y];if(M==="\\"){F+=M+j[++y];continue}!S&&M===","?(N.push(F),F=""):(F+=M,S&&M===")"?S--:M==="("&&S++)}return F&&N.push(F),N};this.prefixSelectors=B?we(B):[""];let ge=Y.split("@"),pe=ge[0];if(pe){this.vendorSuffixSelectors={};let W=(y,M,b,A)=>{for(let[E,O]of M)if(E.test(y)){for(let I of O)W(y.replace(E,I),M,b,!0);return}A&&b.push(y)},j=[];""in l?W(pe,l[""],j,!0):j.push(pe);let N={};for(let[y,M]of Object.entries(l)){if(!y)continue;let b=[];for(let A of j)W(A,M,b,!1);b.length&&(N[y]=b)}let F=(y,M)=>{let b=M.reduce((A,E)=>(A.push(...we(E)),A),[]);y in this.vendorSuffixSelectors?this.vendorSuffixSelectors[y].push(...b):this.vendorSuffixSelectors[y]=b},S=Object.keys(N);if(S.length)for(let y of S)F(y,N[y]);else F("",j);for(let y of Object.values(this.vendorSuffixSelectors))for(let M of y){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));for(let b=0;b<ve.length;b++)if(M.includes(ve[b])){(this.priority===-1||this.priority>b)&&(this.priority=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<ge.length;W++){let j=ge[W];if(j)if(R.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let N,F,S=j.indexOf("_");if(S!==-1)N=j.slice(0,S),F=j.slice(S);else{let y=j.indexOf("(");y!==-1&&(N=j.slice(0,y),F=j.slice(y))}if(!N){N="media";let y=[];this.media={token:j,features:{}};let M=j.split("&");for(let b of M)if(b==="all"||b==="print"||b==="screen"||b==="speech")this.media.type=b;else if(b==="\u{1F5A8}")this.media.type="print";else if(b==="landscape"||b==="portrait")y.push("(orientation:"+b+")");else if(b==="motion"||b==="reduced-motion")y.push("(prefers-reduced-motion:"+(b==="motion"?"no-preference":"reduce")+")");else if(u&&b in u)y.push(u[b]);else{let A={token:b},E="",O="",I=0;b.startsWith("<=")?(O="<=",E="max-width"):b.startsWith(">=")||c[b]?(O=">=",E="min-width"):b.startsWith(">")?(O=">",E="min-width",I=.02):b.startsWith("<")&&(O="<",E="max-width",I=-.02);let H=O?b.replace(O,""):b,z=c[H];switch(E){case"max-width":case"min-width":z?Object.assign(A,this.analyzeUnitValue(z.toString(),"px")):Object.assign(A,this.analyzeUnitValue(H,"px")),A.unit==="px"&&(A.value+=I),this.media.features[E]=A,y.push("("+E+":"+(A.value+A.unit)+")");break}}F="",this.media.type&&(F=this.media.type),y.length&&(F+=(F?" and ":"")+y.join(" and "))}F&&(this.at[N]=(N in this.at?this.at[N]+" and ":"")+F.replace(/_/g," "))}}let be=(W,j)=>{let N,F=(M,b,A)=>{let E="";this.direction&&(E+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(z=>z+E),I=(z,Q)=>O.map(P=>(z?"."+z+" ":"")+(m?m+" ":"")+P).reduce((P,G)=>(P.push(A.reduce((re,K)=>(re.push(G+"."+ue(Q)+K),re),[]).join(",")),P),[]).join(","),H=I(b,e)+($?Object.entries($).filter(([z])=>this.theme||!h||!b||!z||z===b).map(([z,Q])=>Q.reduce((P,G)=>P+","+I(this.theme??((h||L)&&b||z),G),"")).join(""):"")+"{"+M+"}";for(let z of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))H="@"+z+" "+this.at[z]+"{"+H+"}";return H},S=[];if(X){let M=this.theme?[this.theme,""]:[W],b,A;for(let E of X)if(typeof E=="string")S.push(E);else{let O=E.value;if(E.unit)O+=E.unit;else if(h&&C&&v){let I=!1,H=!1;O=O.replace(new RegExp(`(^|,| |\\()((?:${v.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(z,Q,P,G)=>{H=!0;let re=C[P];if(re){let K;for(let ee of M)if(K=re[ee])break;if(K){I=!0;let ee=K;if(G){let q=G.endsWith("%")?parseFloat(G)/100:+G;q=isNaN(q)?1:Math.min(Math.max(q,0),1),ee+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return Q+ee}}return z}),H&&(A=I)}A!==void 0&&!b&&(b=A),S.push(O)}if(j&&(b===void 0?W:!b))return;if(N=S.reduce((E,O,I)=>E+O+(O===","||X[I+1]===","||I===X.length-1?"":" "),""),a&&(N=a.call(this,N,this.css.config)),h&&N==="current"&&(N="currentColor"),g){let E,O;if(X.length===1){let I=X[0];typeof I=="object"&&(E=I.value,O=I.unit)}T=g.call(this,O?E:N,O||"")}else T={[d]:N}}let y={};for(let M in T){let b=(O,I)=>{let H=I+((this.important||k)&&!I.endsWith("!important")?"!important":"");O in y?y[O].push(H):y[O]=[H]},A=M+":",E=T[M];if(typeof E=="object"){L=!0;for(let O in E)b(O,A+E[O])}else b(W,A+E.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let b in y)this.natives.push({text:F(y[b].join(";"),b,M),theme:b})};if(this.theme)be(this.theme,!1);else if(h)for(let W of R)be(W,!0);else be("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let i=r??this.config.unit;if(i){let n="",o=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(e.includes("/")){let[h,d]=e.split("/");return{value:+h/+d*100+"%",unit:n}}else{let h=+o[1];return n=o[3]||"",n||((i==="rem"||i==="em")&&(h=h/this.css.config.rootSize),n=i||""),{value:h,unit:n}}}}};var ae={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function le(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function he(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function _(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let i in t)if(i&&+i>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let i=0,n="0"in t?le(t[0]):[0,0,0],o,h,d=[],f=()=>{let a=o-i,g=h.map((s,m)=>(s-n[m])/a);for(let s of d){let m=s-i,k=n.map((w,R)=>Math.round(w+g[R]*m));t[s]="#"+he.call(this,...k)}};for(let a=1;a<100;a++)a in t?(d.length?(o=a,h=le(t[a]),f(),d.length=0,n=h):n=le(t[a]),i=a):d.push(a);d.length&&(o=100,h="100"in t?le(t[100]):[255,255,255],f())}return e||(t[""]=t[r?"500":"50"]),t}var Te={black:"#000000",white:"#ffffff",slate:_({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:_({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:_({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:_({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:_({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:_({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:_({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:_({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:_({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:_({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:_({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:_({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:_({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:_({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:_({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:_({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:_({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:_({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:_({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:_({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Me=16;var Oe="";var Ee={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Be={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflow:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},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"}};var je=["dark","light"];var se={content:"content-box",border:"border-box",padding:"padding-box"};var ce={min:"min-content",max:"max-content"};var te={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in ae)te[t]=ae[t]/16+"rem";var Ke={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(a,g)=>{let s=g.indexOf(":");if(s!==-1){a in e||(e[a]={});let m=e[a],k=g.slice(0,s);k in m||(m[k]=g.slice(s+1))}},i=a=>{let g=(s,m)=>{let k=m.slice(ue(a.className).length).match(/\{(.*)\}/)[1].split(";");for(let w of k)r(s,w)};if(this.theme){let s=a.natives.find(m=>m.theme===this.theme)??a.natives.find(m=>!m.theme);s&&g(this.theme,s.text)}else for(let s of a.natives)g(s.theme,s.text)},n=[],o="",h=()=>{o&&(n.push(o.replace(/ /g,"")),o="")},d=1;(function a(g){for(;d<t.length;d++){let s=t[d];if(!g){if(s===";"){h();continue}if(s==="}")break}if(o+=s,g===s){if(g==="'"||g==='"'){let m=0;for(let k=o.length-2;o[k]==="\\";k--)m++;if(m%2)continue}break}else s in ie&&g!=="'"&&g!=='"'&&(d++,a(ie[s]))}})(void 0),h();for(let a of n){let g=this.css.create(a);if(Array.isArray(g))for(let s of g)i(s);else g?i(g):r(this.theme??"",a)}let f={};for(let a in e)for(let[g,s]of Object.entries(e[a]))g in f?f[g][a]=s:f[g]={[a]:s};return f}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){let e={};switch(t){case"subpixel-antialiased":e["-webkit-font-smoothing"]=e["-moz-osx-font-smoothing"]="auto";break;case"antialiased":e["-webkit-font-smoothing"]="antialiased",e["-moz-osx-font-smoothing"]="grayscale";break}return e}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},margin:{match:"^m(?:argin(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Le.call(this,t+e)},get order(){return this.prefix==="margin:"||this.prefix==="m:"?-1:0}},padding:{match:"^p(?:adding(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Le.call(this,t+e)},get order(){return this.prefix==="padding:"||this.prefix==="p:"?-1:0}},flexBasis:{values:te,unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:te},height:{match:"^h:.",unit:"rem",native:!0,values:te},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:te},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:te},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},inset:{match:"^(?:top|bottom|left|right):.",unit:"rem",native:!0,declare(t,e){return{[this.prefix.slice(0,-1)]:t+e}}},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:te},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:te},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflow:{match:"^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)",declare(t,e){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t+e};case"y":return{"overflow-y":t+e}}return{overflow:t+e}},get order(){return-1}},overscrollBehavior:{match:"^overscroll-behavior(?:-[xy])?:",declare(t,e){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t+e};case"y":return{"overscroll-behavior-y":t+e};default:return{"overscroll-behavior":t+e}}}},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{...se,fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return Ae.call(this,t)},delete(t){return Ne.call(this,t)},insert(){return Ie.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Ae.call(this,t)},delete(t){return Ne.call(this,t)},insert(){return Ie.call(this)}},borderColor:{match:"^b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return de(this.prefix,t+e,"color")},get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderRadius:{match:"^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.",unit:"rem",declare(t,e){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let o=1;o<n.length-1;o++)i+=n[o][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{"border-top-left-radius":t+e,"border-top-right-radius":t+e};case"tl":case"lt":return{"border-top-left-radius":t+e};case"rt":case"tr":return{"border-top-right-radius":t+e};case"b":return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e};case"bl":case"lb":return{"border-bottom-left-radius":t+e};case"br":case"rb":return{"border-bottom-right-radius":t+e};case"l":return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e};case"r":return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e};default:return{"border-radius":t+e}}}let r=this.prefix?.slice(0,-1);return{[["border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"].includes(r)?r:"border-radius"]:t+e}},get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}},borderStyle:{match:"^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))",declare(t,e){return de(this.prefix,t+e,"style")},get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderWidth:{match:"^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)",unit:"rem",declare(t,e){return de(this.prefix,t+e,"width")},get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0},border:{match:"^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):.",unit:"rem",colored:!0,values:{current:"currentColor"},declare(t,e){return de(this.prefix,t+e)},get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:se},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:se},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:ce},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:ce,native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:ce},gridTemplateRows:{native:!0,unit:"rem",values:ce},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},gap:{match:"^gap(?:-x|-y)?:.",unit:"rem",order:-1,declare(t,e){switch(this.prefix[4]){case"x":return{"column-gap":t+e};case"y":return{"row-gap":t+e};default:return{gap:t+e}}}},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMargin:{match:"^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t+e,"scroll-margin-right":t+e};case"y":return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e};case"l":return{"scroll-margin-left":t+e};case"r":return{"scroll-margin-right":t+e};case"t":return{"scroll-margin-top":t+e};case"b":return{"scroll-margin-bottom":t+e}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}},scrollPadding:{match:"^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t+e,"scroll-padding-right":t+e};case"y":return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e};case"l":return{"scroll-padding-left":t+e};case"r":return{"scroll-padding-right":t+e};case"t":return{"scroll-padding-top":t+e};case"b":return{"scroll-padding-bottom":t+e}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{...se,margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{...se,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},We=Ke;function Ae(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function Ne(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let i=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(i),t.natives.splice(i,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function Ie(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,n=r?.sheet;for(let o of this.keyframeNames)if(o in e)e[o].count++;else{let h={text:`@keyframes ${o} {`+Object.entries(t.keyframes[o]).map(([f,a])=>`${f} {${Object.entries(a).map(([g,s])=>g+": "+s).join(";")}}`).join(",")+"}",theme:""},d;if(Object.keys(e).length?(d=i[0]).natives.push(h):i.splice(0,0,d={natives:[h],get text(){return this.natives.map(f=>f.text).join("")}}),n){let f;for(let a=0;a<n.cssRules.length;a++){let g=n.cssRules[a];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===o){f=g;break}}if(f)h.cssRule=f;else{let a=d.natives.length-1;n.insertRule(h.text,a),h.cssRule=n.cssRules[a]}}e[o]={native:h,count:1}}}}function Le(t){if(this.prefix.includes("-"))return{[this.prefix.slice(0,-1)]:t};let r=this.prefix[0]==="m"?"margin":"padding",i=r+"-left",n=r+"-right",o=r+"-top",h=r+"-bottom";switch(this.prefix[1]){case"x":return{[i]:t,[n]:t};case"y":return{[o]:t,[h]:t};case"l":return{[i]:t};case"r":return{[n]:t};case"t":return{[o]:t};case"b":return{[h]:t};default:return{[r]:t}}}function de(t,e,r=""){let i="border-";r&&(r="-"+r);let n=/^b(order)?-?(.)?/.exec(t)[2],o=i+"left"+r,h=i+"right"+r,d=i+"top"+r,f=i+"bottom"+r;switch(n){case"x":return{[o]:e,[h]:e};case"y":return{[d]:e,[f]:e};case"l":return{[o]:e};case"r":return{[h]:e};case"t":return{[d]:e};case"b":return{[f]:e};default:return{["border"+r]:e}}}var ze=!1;var De=!0;var Fe=!1;var Ve={fade:{from:{opacity:0},to:{opacity:0}},flash:{"from,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},"100%":{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%,100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}},ping:{"75%,100%":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},"100%":{transform:"none"}},rotate:{from:{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:{from:{transform:"scale(0)"},"100%":{transform:"none"}}};var xe={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=f=>f==="+"||f==="-"||f==="*"||f==="/",r="",i,n="",o=!1,h=!1,d=(f,a="",g="")=>{if(i===2&&!h){let s=this.analyzeUnitValue(n,xe.calc.unit);s&&(n=s.value+s.unit)}r+=n+a+f+g,i=null,h=!1,n=""};for(let f=0;f<t.length;f++){let a=t[f];if(a==="("||a===")")o=a===")",d(a);else if(a===",")d(a,""," ");else{switch(i){case 1:break;case 2:if(e(a)){d(a," "," ");continue}else/[0-9]/.test(a)||(h=!0);break;default:o&&(r+=" "),isNaN(+a)?e(a)||(i=1):i=2;break}i?n+=a:r+=a}}return d(""),r}},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:""}};var _e="highest";var me={breakpoints:ae,colors:Te,rootSize:16,scope:Oe,selectors:Ee,semantics:Be,themes:je,rules:We,override:!1,observe:!0,important:!1,functions:xe,keyframes:Ve,precedence:_e};var Pe=[",",".","#","[","!","*",">","+","~",":","@"];var ye=typeof window<"u",He=()=>{let t=document.createElement("style");return t.id="master",t},ne=class{constructor(e){this.config=e;this.config?.override||(this.config=J(me,e)),this.cache(),ye&&this.config.observe&&this.observe(document),ne.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;e;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:i,themes:n,colors:o,values:h,breakpoints:d,mediaQueries:f,rules:a}=this.config;function g(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(l,c,u="",p={}){let x=B=>B?(u?u+"-":"")+B:u,$=Object.entries(l),T=[],L=[];for(let B of $){let Y=B[1];(typeof Y=="object"&&!Array.isArray(Y)?T:L).push(B)}for(let[B,Y]of T)s(Y,c,x(B),p);if(c&&u)L.length&&(p[u]=L.reduce((B,[Y,X])=>(B[Y]=X,B),{}));else for(let[B,Y]of L)p[x(B)]=Y;return p}if(e)for(let[l,c]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+g(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[l,c]]);if(i)for(let[l,c]of Object.entries(s(i,!1))){let u=new RegExp(g(l)+"(?![a-z-])");for(let p of Array.isArray(c)?c:[c]){let x=p.match(/^::-[a-z]+-/m)?.[0]??"",$=this.selectors[x];$||($=this.selectors[x]=[]);let T=$.find(([L])=>L===u);T||(T=[u,[]],$.push(T)),T[1].push(p)}}h&&(this.globalValues=s(h,!1)),d&&(this.breakpoints=s(d,!1)),f&&(this.mediaQueries=s(f,!1));let m=r?s(r,!1):{},k=n&&!Array.isArray(n)?Object.entries(n).filter(([,{classes:l}])=>l).reduce((l,[c,{classes:u}])=>(l[c]=s(u,!1),l),{}):{},w=[...Object.keys(m),...Object.entries(k).flatMap(([l,c])=>Object.keys(c))],R=l=>{if(l in this.classes)return;let c=this.classes[l]=[],u=(p,x)=>{if(!x)return;let $=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let T of $){let L=B=>{B in this.themeAffectedClassesBy?p in this.themeAffectedClassesBy[B]?this.themeAffectedClassesBy[B][p].push(l):this.themeAffectedClassesBy[B][p]=[l]:this.themeAffectedClassesBy[B]={[p]:[l]},c.includes(B)||c.push(B)};if(w.includes(T)){R(T);for(let B of this.classes[T])L(B)}else L(T)}};u("",m?.[l]);for(let[p,x]of Object.entries(k))u(p,x?.[l])};for(let l of w)R(l);for(let l in this.themeAffectedClassesBy){let c=this.classesBy[l]=[];for(let u of Object.values(this.themeAffectedClassesBy[l]))for(let p of u)c.includes(p)||c.push(p)}let v=(l,c)=>{if(!c)return;let u=s(c,!0);for(let[p,x]of Object.entries(u)){let $=typeof x=="string"?{"":x}:x;for(let[T,L]of Object.entries($)){let B=p+(T?"-"+T:"");B in this.colorThemesMap?this.colorThemesMap[B][l]=L:this.colorThemesMap[B]={[l]:L}}}for(let p in c)this.colorNames.includes(p)||this.colorNames.push(p)};if(v("",o),n)if(Array.isArray(n))this.themeNames.push(...n);else for(let l in n){let c=n[l];v(l,c.colors),this.themeNames.push(l)}let C=l=>{for(let[c,u]of Object.entries(this.colorThemesMap))for(let[p,x]of Object.entries(u))x.startsWith("#")||l(c,u,p,x)};if(C((l,c,u,p)=>{let x=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(p);if(x){let $="#"+he(+x[1],+x[2],+x[3]);x[4]&&($+=Math.round(255*+x[4]).toString(16)),c[u]=$}}),C((l,c,u,p)=>{let[x,$]=p.split("/"),T=this.colorThemesMap[x];if(T){let L=(u?T[u]:void 0)??T[""];c[u]=$?L.slice(0,7)+Math.round(255*+$).toString(16):L}else console.warn(`\`${p}\` doesn't exist in the extended config \`.colors\``),delete c[u],Object.keys(c).length||delete this.colorThemesMap[l]}),a)for(let l in a){let c=a[l],{native:u,values:p,colored:x}=c,$=c.match;if(c.id=l,c.native=u===!0?l.replace(/(?!^)[A-Z]/g,T=>"-"+T).toLowerCase():void 0,p&&(this.values[l]=s(p,!1)),$){let T=Object.keys(this.values[l]??{});$.includes("$values")&&($=T.length?$.replace(/\$values/,T.join("|")):$.replace(/(?:\|)?\$values/,"")),x&&$.includes("$colors")&&($=this.colorNames.length?$.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):$.replace(/(?:\|)?\$colors/,"")),this.matches[l]=new RegExp($)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(ye&&e){this.root=e;let i=e===document;i&&(ne.root=this),this.host=i?document.documentElement:root.host;let n=i?document.head:e,o=i?document.styleSheets:e.styleSheets;for(let d of o){let{href:f,ownerNode:a}=d;(a.id==="master"||f&&f.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(f))&&(this.style=a)}if(this.style)for(let d=0;d<this.style.sheet.cssRules.length;d++){let f=this.style.sheet.cssRules[d];if(f.constructor.name==="CSSKeyframesRule")continue;let a=s=>{if(s.selectorText){let k=s.selectorText.split(", ")[0].split(" ");for(let w=0;w<k.length;w++){let R=k[w];if(R[0]==="."){let v=R.slice(1),C="";for(let l=0;l<v.length;l++){let c=v[l],u=v[l+1];if(c==="\\"){if(l++,u!=="\\"){C+=u;continue}}else if(Pe.includes(c))break;C+=c}if(!(C in this.ruleBy)&&!(C in this.classes)){let l=this.create(C)[0];if(l)return l}}}}else if(s.cssRules)for(let m=0;m<s.cssRules.length;m++){let k=a(s.cssRules[m]);if(k)return k}},g=a(f);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let s=0;s<g.natives.length;s++)g.natives[s].cssRule=this.style.sheet.cssRules[d+s];d+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=He();n.append(this.style);let h=d=>{d.forEach(f=>{f in this.countBy?this.countBy[f]++:(this.countBy[f]=1,this.insert(f))})};h(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(d=>h(d.classList)),this.observer=new MutationObserver(d=>{let f={},a=[],g=[],s=[],m=(v,C)=>{C?v.classList.forEach(w):v.classList.forEach(k);let l=v.children;for(let c=0;c<l.length;c++){let u=l[c];u.classList&&(g.push(u),m(u,C))}},k=v=>{v in f?f[v]++:f[v]=1},w=v=>{v in f?f[v]--:v in this.countBy&&(f[v]=-1)},R=(v,C)=>{for(let l=0;l<v.length;l++){let c=v[l];c.classList&&!g.includes(c)&&!s.includes(c)&&(c.isConnected!==C?(g.push(c),m(c,C)):s.push(c))}};for(let v=0;v<d.length;v++){let C=d[v],{addedNodes:l,removedNodes:c,type:u,target:p}=C;if(u==="attributes"){if(a.find(x=>x.target===p))continue;a.push(C)}else R(l,!1),(!p.isConnected||!g.includes(p))&&R(c,!0)}if(!(!a.length&&!Object.keys(f).length)){for(let{oldValue:v,target:C}of a){let l=g.includes(C),c=C.classList,u=v?v.split(" "):[];if(l){if(C.isConnected)continue;for(let p of u)c.contains(p)||w(p)}else if(C.isConnected){c.forEach(p=>{u.includes(p)||k(p)});for(let p of u)c.contains(p)||w(p)}}for(let v in f){let C=f[v],l=(this.countBy[v]||0)+C;l===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=l)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.e=new MutationObserver(d=>{for(let f of d)for(let a of f.addedNodes)if(a.nodeName==="STYLE"||a.nodeName==="LINK"&&a.rel==="stylesheet"){let g=this.root.styleSheets;if(g.item(g.length-1).ownerNode!==this.style){let k=this.style.sheet.cssRules;n.append(this.style);for(let w of k)this.style.sheet.insertRule(w.cssText)}}}),this.e.observe(n,{childList:!0}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.e&&(this.e.disconnect(),this.e=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r in this.config.rules){let i=this.config.rules[r],n=this.matches[r],{symbol:o,native:h}=i;if(n&&n.test(e))return{origin:"match",config:i};if(o&&e.startsWith(o))return{origin:"symbol",config:i};if(h&&e.startsWith(h+":"))return{origin:"match",config:i}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=i=>{if(i in this.ruleBy)return this.ruleBy[i];let n=this.match(i);if(n)return new fe(i,n,this)};return(e in this.classes?this.classes[e].map(i=>r(i)):[r(e)]).filter(i=>i&&i.text)}refresh(e){if(e?.override?this.config=e:this.config=J(me,e),this.cache(),!this.style)return;let r=He();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let i in this.countBy)this.insert(i)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=n=>{let o=this.ruleBy[n];if(!(!o||n in this.classesBy&&this.classesBy[n].some(h=>h in this.countBy))){if(r&&o.natives.length){let h=o.natives[0];for(let d=0;d<r.cssRules.length;d++)if(r.cssRules[d]===h.cssRule){for(let a=0;a<o.natives.length;a++)r.deleteRule(d);break}}this.rules.splice(this.rules.indexOf(o),1),delete this.ruleBy[n],o.config.delete&&o.config.delete.call(o,n)}};if(e in this.classes){for(let n of this.classes[e])n in this.countBy||i(n);delete this.ruleBy[e]}else i(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let i,n=this.rules.length-1,{media:o,order:h,priority:d,hasWhere:f,className:a}=r,g=(s,m,k,w)=>{let R=0,v;m&&(R=s.findIndex(m)),k&&(v=s.findIndex(k)),R===-1&&(R=s.length),(v===void 0||v===-1)&&(v=s.length);let C=s.slice(R,v);for(let l=0;l<C.length;l++){let c=C[l];if(!(c.priority===-1||w&&w(c))&&(c.priority<d||c.priority===d&&(f&&!c.hasWhere||c.order>=h)))return R+l}return R+C.length};if(o){let s=this.rules.findIndex(m=>m.media);if(s!==-1){let m=o.features["max-width"],k=o.features["min-width"];if(m&&k){let w=m.value-k.value;for(let R=n;R>=s;R--){i=R;let v=this.rules[R],C=v.media,l=C.features["max-width"],c=C.features["min-width"];if(!l||!c){i++;break}let u=l.value-c.value;if(u===w){if(f!==v.hasWhere)continue;if(d!==-1){let p=[this.rules[R]];for(let x=R-1;x>=s;x--){let $=this.rules[x];if($.hasWhere!==f)break;let T=$.media,L=T.features["max-width"],B=T.features["min-width"];if(!L||!B||L.value-B.value!==u)break;p.unshift(this.rules[x])}i=g(this.rules,x=>x.media&&x.priority!==-1&&x.media.features["min-width"]&&x.media.features["max-width"])}break}else if(u>w)break}}else if(k)for(let w=s;w<=n;w++){i=w;let R=this.rules[w],v=R.media,C=v.features["max-width"],l=v.features["min-width"];if(C){if(l)break;continue}let c=l?.value;if(c===k.value){if(!f&&R.hasWhere){i++;continue}if(d!==-1)i=g(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else for(let u=w;u<=n;u++){let p=this.rules[u],x=p.media,$=x.features["min-width"];if(!x.features["max-width"]){if(p.hasWhere!==f||$.value!==c||p.order>=h)break;i=u+1}}break}else{if(c>k.value)break;i++}}else if(m)for(let w=n;w>=s;w--){i=w;let R=this.rules[w],v=R.media,C=v.features["max-width"];if(v.features["min-width"])continue;let c=C?.value;if(!c||c>m.value){i++;break}else if(c===m.value){if(f&&!R.hasWhere)continue;if(d!==-1)i=g(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else{let u=[this.rules[w]];for(let p=w-1;p>=s;p--){let x=this.rules[p],$=x.media,T=$.features["min-width"],L=$.features["max-width"];if(!T&&(!L||L.value!==c||x.hasWhere!==f))break;u.unshift(x)}for(let p=0;p<u.length;p++){let x=u[p];if(!x.media.features["min-width"]){if(x.order>=h)break;i=w-u.length+2+p}}}break}}}if(i===void 0)if(s===-1)i=n+1;else if(d!==-1)i=s+g(this.rules.slice(s),void 0,m=>m.media.features["max-width"]||m.media.features["min-width"]);else if(f){let m=s;for(;m<this.rules.length;m++){let k=this.rules[m];if(k.priority!==-1||!k.hasWhere||k.order>=h){i=m;break}}i===void 0&&(i=m)}else for(let m=s;m<=n;m++){i=m;let k=this.rules[m],w=k.media;if(k.priority!==-1||w.features["max-width"]||w.features["min-width"])break;if(k.hasWhere)i++;else if(k.order>=h)break}}else if(d===-1){if(f)i=this.rules.findIndex(s=>!s.hasWhere||s.media||s.priority!==-1||s.order>=h),i===-1&&(i=n+1);else{let s=0;for(;s<this.rules.length;s++){let m=this.rules[s];if(m.media||!m.hasWhere&&(m.order>=h||m.priority!==-1)){i=s;break}}i===void 0&&(i=s)}!i&&Object.keys(this.keyframes).length&&i++}else i=g(this.rules,void 0,s=>s.media);if(this.rules.splice(i,0,r),this.ruleBy[a]=r,this.style){let s=this.style.sheet,m=0,k=w=>{let R=this.rules[w];if(R){if(!R.natives.length)return k(w-1);let v=R.natives[R.natives.length-1].cssRule;for(let C=0;C<s.cssRules.length;C++)if(s.cssRules[C]===v){m=C+1;break}}};k(i-1);for(let w=0;w<r.natives.length;)try{let R=r.natives[w];s.insertRule(R.text,m),R.cssRule=s.cssRules[m++],w++}catch(R){console.error(R),r.natives.splice(w,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},Z=ne;oe(Z,"root"),oe(Z,"config",me),oe(Z,"instances",[]),oe(Z,"refresh",e=>{for(let r of ne.instances)r.refresh(e)});ye&&(window.MasterCSS=Z);var Ue={store:"theme",init:!0},Je=typeof document<"u",Ye=typeof localStorage<"u",Qe=class{constructor(e,r=Je?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?J(Ue,e):Ue,this.settings.init&&this.init()}t=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;i;r;init(){let e=this.settings.default,r=this.storage;r&&(e=r),this.value=e}get storage(){let{store:e}=this.settings;if(Ye&&e)return localStorage.getItem(e)}get systemValue(){return this.t.matches?"dark":"light"}set value(e){this.i=e,e==="system"?(this.t?.addEventListener?.("change",this.s),this.current=this.systemValue):(this.n(),this.current=e)}get value(){return this.i}set current(e){let r=this.r;this.r=e,this.host&&r!==e&&(r&&this.host.classList.remove(r),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.r}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,Ye&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.t?.removeEventListener("change",this.s)}s=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};function gr(t){return t=Object.assign({store:"theme"},t),`let e${t.default?`='${t.default}'`:""};const c=localStorage.getItem("${t.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}function vr(t,e){if(!t?.length)return;let r=new Z({...e,observe:!1});for(let i of t)i in r.countBy||r.insert(i)&&(r.countBy[i]=1);return r.text}var et=/&(amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,tt={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'",quot:'"',"#34":'"'};function qe(t,e){if(!t)return;let r=new Z({...e,observe:!1}),i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(t);){let o=n[1].replace(/\n/g,"").split(" ").filter(h=>h).map(h=>h.replace(et,(d,f)=>tt[f]));for(let h of o)h in r.countBy||(r.insert(h),r.countBy[h]=1)}return r.text}function Sr(t,e){if(!t)return;let r=`<style id="master">${qe(t,e)}</style>`;return t.replace(/<\/head>/,`${r}$&`)}function rt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(d,f){var a=f.match(/\n([\t ]+|(?!\s).)/g);return a?d.concat(a.map(function(g){var s,m;return(m=(s=g.match(/[\t ]/g))===null||s===void 0?void 0:s.length)!==null&&m!==void 0?m:0})):d},[]);if(n.length){var o=new RegExp(`
1
+ var Xe=Object.defineProperty;var Ze=(t,e,r)=>e in t?Xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var oe=(t,e,r)=>(Ze(t,typeof e!="symbol"?e+"":e,r),r);function Re(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Ce(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function $e(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=$e(r):Re(r)?e[i]=Ce(r):e[i]=J({},r):e[i]=r}),e}function Se(t,e){return e==="__proto__"?void 0:t[e]}function J(...t){let e={},r,i;return t.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(o){if(i=Se(e,o),r=Se(n,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=$e(r);return}else if(Re(r)){e[o]=Ce(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[o]=J({},r);return}else{e[o]=J(i,r);return}})}),e}var ve=[":disabled",":active",":focus",":hover"];var ie={"(":")","'":"'",'"':'"',"{":"}"};function ue(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,i=-1,n="",o,h=e.charCodeAt(0);if(r==1&&h==45)return"\\"+e;for(;++i<r;){if(o=e.charCodeAt(i),o==0){n+="\uFFFD";continue}if(o>=1&&o<=31||o==127||i==0&&o>=48&&o<=57||i==1&&o>=48&&o<=57&&h==45){n+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(i);continue}n+="\\"+e.charAt(i)}return n}var Ge={unit:"",order:0,separators:[","]},fe=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=J(Ge,r.config);let{unit:n,order:o,colored:h,native:d,analyze:f,transform:a,declare:g,create:s}=this.config,{scope:m,important:k,functions:w}=i.config,{themeNames:R,colorNames:v,colorThemesMap:C,selectors:l,breakpoints:c,mediaQueries:u,themeAffectedClassesBy:p,globalValues:x}=i,$=p[e];this.order=o,s&&s.call(this,e);let T,L,B,Y,X;if(r.origin==="semantics"){let[W,j]=r.value;Y=e.slice(W.length),T=j}else{let W;if(f)[W,B]=f.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),this.prefix.includes("(")?(this.prefix=void 0,W=e):W=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],W=e.slice(1));X=[];let j=this,N=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",y=0;(function M(b,A,E,O=void 0,I=[],H=[],z){let Q=O===void 0,P,G=D=>D==="'"||D==='"',re=()=>P=S.length,K=()=>{if(S){let D=S,V=Q?D:S.slice(P);if(S="",q="",N&&V in N&&!I.includes(V)){let U=y;y=0,M(N[V].toString(),A,void 0,O,[...I,V],H,z),y=U,Q||(S=S.slice(0,P)+S)}else if(x&&V in x&&!H.includes(V)){let U=y;y=0,M(x[V].toString(),A,void 0,O,I,[...H,V],z),y=U,Q||(S=S.slice(0,P)+S)}else if(Q){let U=!z&&j.analyzeUnitValue(V,A);X.push({value:U?.value??V,unit:U?.unit})}else{let U=!z&&j.analyzeUnitValue(V,A);S=U?D.slice(0,P)+U.value+U.unit:D}re()}},ee=G(E);re();let q="";for(;y<b.length;y++){let D=b[y];if(D===E){if(ee){S+=D;let V=0;for(let U=S.length-2;S[U]==="\\";U--)V++;if(V%2)continue}else K(),S+=D;return}else if(!ee&&D in ie){let V=D==="("&&q&&w?.[q];V?.name&&(S=S.slice(0,S.length-q.length)+V.name,q=V.name),S+=D,y++;let U=ie[D];M(b,V?.unit??A,U,q||O||"",I,H,z||!!V?.transform),V?.transform&&(S=S.slice(0,P+q.length+1)+V.transform.call(j,S.slice(P+q.length+1,-1))+S.slice(-1)),Q&&(G(U)?(X.push(S),S=""):K()),q=""}else if((D==="|"||D===" ")&&E!=="}"&&(!ee||O==="path"))K(),Q||(S+=" ",P++);else{if(!ee){if(D==="."){if(isNaN(+b[y+1]))break;b[y-1]==="-"&&(S+="0")}else if(F.includes(D)){K(),Q?X.push(D):(S+=D,P++);continue}else if(Q&&(D==="#"&&(S||X.length&&b[y-1]!=="|"&&X[y-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;q+=D}S+=D}}O===void 0&&K()})(W,n),Y=W.slice(y)}Y[0]==="!"&&(this.important=!0,Y=Y.slice(1));let we=W=>{let j=W.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((y,M)=>M%3?y:y.replace(/_/g," ")).join(""),N=[],F="",S=0;for(let y=0;y<j.length;y++){let M=j[y];if(M==="\\"){F+=M+j[++y];continue}!S&&M===","?(N.push(F),F=""):(F+=M,S&&M===")"?S--:M==="("&&S++)}return F&&N.push(F),N};this.prefixSelectors=B?we(B):[""];let ge=Y.split("@"),pe=ge[0];if(pe){this.vendorSuffixSelectors={};let W=(y,M,b,A)=>{for(let[E,O]of M)if(E.test(y)){for(let I of O)W(y.replace(E,I),M,b,!0);return}A&&b.push(y)},j=[];""in l?W(pe,l[""],j,!0):j.push(pe);let N={};for(let[y,M]of Object.entries(l)){if(!y)continue;let b=[];for(let A of j)W(A,M,b,!1);b.length&&(N[y]=b)}let F=(y,M)=>{let b=M.reduce((A,E)=>(A.push(...we(E)),A),[]);y in this.vendorSuffixSelectors?this.vendorSuffixSelectors[y].push(...b):this.vendorSuffixSelectors[y]=b},S=Object.keys(N);if(S.length)for(let y of S)F(y,N[y]);else F("",j);for(let y of Object.values(this.vendorSuffixSelectors))for(let M of y){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));for(let b=0;b<ve.length;b++)if(M.includes(ve[b])){(this.priority===-1||this.priority>b)&&(this.priority=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<ge.length;W++){let j=ge[W];if(j)if(R.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let N,F,S=j.indexOf("_");if(S!==-1)N=j.slice(0,S),F=j.slice(S);else{let y=j.indexOf("(");y!==-1&&(N=j.slice(0,y),F=j.slice(y))}if(!N){N="media";let y=[];this.media={token:j,features:{}};let M=j.split("&");for(let b of M)if(b==="all"||b==="print"||b==="screen"||b==="speech")this.media.type=b;else if(b==="\u{1F5A8}")this.media.type="print";else if(b==="landscape"||b==="portrait")y.push("(orientation:"+b+")");else if(b==="motion"||b==="reduced-motion")y.push("(prefers-reduced-motion:"+(b==="motion"?"no-preference":"reduce")+")");else if(u&&b in u)y.push(u[b]);else{let A={token:b},E="",O="",I=0;b.startsWith("<=")?(O="<=",E="max-width"):b.startsWith(">=")||c[b]?(O=">=",E="min-width"):b.startsWith(">")?(O=">",E="min-width",I=.02):b.startsWith("<")&&(O="<",E="max-width",I=-.02);let H=O?b.replace(O,""):b,z=c[H];switch(E){case"max-width":case"min-width":z?Object.assign(A,this.analyzeUnitValue(z.toString(),"px")):Object.assign(A,this.analyzeUnitValue(H,"px")),A.unit==="px"&&(A.value+=I),this.media.features[E]=A,y.push("("+E+":"+(A.value+A.unit)+")");break}}F="",this.media.type&&(F=this.media.type),y.length&&(F+=(F?" and ":"")+y.join(" and "))}F&&(this.at[N]=(N in this.at?this.at[N]+" and ":"")+F.replace(/_/g," "))}}let be=(W,j)=>{let N,F=(M,b,A)=>{let E="";this.direction&&(E+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(z=>z+E),I=(z,Q)=>O.map(P=>(z?"."+z+" ":"")+(m?m+" ":"")+P).reduce((P,G)=>(P.push(A.reduce((re,K)=>(re.push(G+"."+ue(Q)+K),re),[]).join(",")),P),[]).join(","),H=I(b,e)+($?Object.entries($).filter(([z])=>this.theme||!h||!b||!z||z===b).map(([z,Q])=>Q.reduce((P,G)=>P+","+I(this.theme??((h||L)&&b||z),G),"")).join(""):"")+"{"+M+"}";for(let z of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))H="@"+z+" "+this.at[z]+"{"+H+"}";return H},S=[];if(X){let M=this.theme?[this.theme,""]:[W],b,A;for(let E of X)if(typeof E=="string")S.push(E);else{let O=E.value;if(E.unit)O+=E.unit;else if(h&&C&&v){let I=!1,H=!1;O=O.replace(new RegExp(`(^|,| |\\()((?:${v.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(z,Q,P,G)=>{H=!0;let re=C[P];if(re){let K;for(let ee of M)if(K=re[ee])break;if(K){I=!0;let ee=K;if(G){let q=G.endsWith("%")?parseFloat(G)/100:+G;q=isNaN(q)?1:Math.min(Math.max(q,0),1),ee+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return Q+ee}}return z}),H&&(A=I)}A!==void 0&&!b&&(b=A),S.push(O)}if(j&&(b===void 0?W:!b))return;if(N=S.reduce((E,O,I)=>E+O+(O===","||X[I+1]===","||I===X.length-1?"":" "),""),a&&(N=a.call(this,N,this.css.config)),h&&N==="current"&&(N="currentColor"),g){let E,O;if(X.length===1){let I=X[0];typeof I=="object"&&(E=I.value,O=I.unit)}T=g.call(this,O?E:N,O||"")}else T={[d]:N}}let y={};for(let M in T){let b=(O,I)=>{let H=I+((this.important||k)&&!I.endsWith("!important")?"!important":"");O in y?y[O].push(H):y[O]=[H]},A=M+":",E=T[M];if(typeof E=="object"){L=!0;for(let O in E)b(O,A+E[O])}else b(W,A+E.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let b in y)this.natives.push({text:F(y[b].join(";"),b,M),theme:b})};if(this.theme)be(this.theme,!1);else if(h)for(let W of R)be(W,!0);else be("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let i=r??this.config.unit;if(i){let n="",o=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(e.includes("/")){let[h,d]=e.split("/");return{value:+h/+d*100+"%",unit:n}}else{let h=+o[1];return n=o[3]||"",n||((i==="rem"||i==="em")&&(h=h/this.css.config.rootSize),n=i||""),{value:h,unit:n}}}}};var ae={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function le(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function he(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function _(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let i in t)if(i&&+i>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let i=0,n="0"in t?le(t[0]):[0,0,0],o,h,d=[],f=()=>{let a=o-i,g=h.map((s,m)=>(s-n[m])/a);for(let s of d){let m=s-i,k=n.map((w,R)=>Math.round(w+g[R]*m));t[s]="#"+he.call(this,...k)}};for(let a=1;a<100;a++)a in t?(d.length?(o=a,h=le(t[a]),f(),d.length=0,n=h):n=le(t[a]),i=a):d.push(a);d.length&&(o=100,h="100"in t?le(t[100]):[255,255,255],f())}return e||(t[""]=t[r?"500":"50"]),t}var Te={black:"#000000",white:"#ffffff",slate:_({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:_({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:_({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:_({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:_({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:_({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:_({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:_({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:_({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:_({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:_({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:_({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:_({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:_({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:_({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:_({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:_({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:_({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:_({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:_({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Me=16;var Oe="";var Ee={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Be={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflow:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},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"}};var je=["dark","light"];var se={content:"content-box",border:"border-box",padding:"padding-box"};var ce={min:"min-content",max:"max-content"};var te={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in ae)te[t]=ae[t]/16+"rem";var Ke={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(a,g)=>{let s=g.indexOf(":");if(s!==-1){a in e||(e[a]={});let m=e[a],k=g.slice(0,s);k in m||(m[k]=g.slice(s+1))}},i=a=>{let g=(s,m)=>{let k=m.slice(ue(a.className).length).match(/\{(.*)\}/)[1].split(";");for(let w of k)r(s,w)};if(this.theme){let s=a.natives.find(m=>m.theme===this.theme)??a.natives.find(m=>!m.theme);s&&g(this.theme,s.text)}else for(let s of a.natives)g(s.theme,s.text)},n=[],o="",h=()=>{o&&(n.push(o.replace(/ /g,"")),o="")},d=1;(function a(g){for(;d<t.length;d++){let s=t[d];if(!g){if(s===";"){h();continue}if(s==="}")break}if(o+=s,g===s){if(g==="'"||g==='"'){let m=0;for(let k=o.length-2;o[k]==="\\";k--)m++;if(m%2)continue}break}else s in ie&&g!=="'"&&g!=='"'&&(d++,a(ie[s]))}})(void 0),h();for(let a of n){let g=this.css.create(a);if(Array.isArray(g))for(let s of g)i(s);else g?i(g):r(this.theme??"",a)}let f={};for(let a in e)for(let[g,s]of Object.entries(e[a]))g in f?f[g][a]=s:f[g]={[a]:s};return f}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){let e={};switch(t){case"subpixel-antialiased":e["-webkit-font-smoothing"]=e["-moz-osx-font-smoothing"]="auto";break;case"antialiased":e["-webkit-font-smoothing"]="antialiased",e["-moz-osx-font-smoothing"]="grayscale";break}return e}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},margin:{match:"^m(?:argin(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Le.call(this,t+e)},get order(){return this.prefix==="margin:"||this.prefix==="m:"?-1:0}},padding:{match:"^p(?:adding(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Le.call(this,t+e)},get order(){return this.prefix==="padding:"||this.prefix==="p:"?-1:0}},flexBasis:{values:te,unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:te},height:{match:"^h:.",unit:"rem",native:!0,values:te},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:te},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:te},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},inset:{match:"^(?:top|bottom|left|right):.",unit:"rem",native:!0,declare(t,e){return{[this.prefix.slice(0,-1)]:t+e}}},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:te},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:te},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflow:{match:"^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)",declare(t,e){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t+e};case"y":return{"overflow-y":t+e}}return{overflow:t+e}},get order(){return-1}},overscrollBehavior:{match:"^overscroll-behavior(?:-[xy])?:",declare(t,e){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t+e};case"y":return{"overscroll-behavior-y":t+e};default:return{"overscroll-behavior":t+e}}}},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{...se,fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return Ae.call(this,t)},delete(t){return Ne.call(this,t)},insert(){return Ie.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Ae.call(this,t)},delete(t){return Ne.call(this,t)},insert(){return Ie.call(this)}},borderColor:{match:"^b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return de(this.prefix,t+e,"color")},get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderRadius:{match:"^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.",unit:"rem",declare(t,e){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let o=1;o<n.length-1;o++)i+=n[o][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{"border-top-left-radius":t+e,"border-top-right-radius":t+e};case"tl":case"lt":return{"border-top-left-radius":t+e};case"rt":case"tr":return{"border-top-right-radius":t+e};case"b":return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e};case"bl":case"lb":return{"border-bottom-left-radius":t+e};case"br":case"rb":return{"border-bottom-right-radius":t+e};case"l":return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e};case"r":return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e};default:return{"border-radius":t+e}}}let r=this.prefix?.slice(0,-1);return{[["border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"].includes(r)?r:"border-radius"]:t+e}},get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}},borderStyle:{match:"^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))",declare(t,e){return de(this.prefix,t+e,"style")},get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderWidth:{match:"^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)",unit:"rem",declare(t,e){return de(this.prefix,t+e,"width")},get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0},border:{match:"^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):.",unit:"rem",colored:!0,values:{current:"currentColor"},declare(t,e){return de(this.prefix,t+e)},get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:se},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:se},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:ce},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:ce,native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:ce},gridTemplateRows:{native:!0,unit:"rem",values:ce},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},gap:{match:"^gap(?:-x|-y)?:.",unit:"rem",order:-1,declare(t,e){switch(this.prefix[4]){case"x":return{"column-gap":t+e};case"y":return{"row-gap":t+e};default:return{gap:t+e}}}},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMargin:{match:"^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t+e,"scroll-margin-right":t+e};case"y":return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e};case"l":return{"scroll-margin-left":t+e};case"r":return{"scroll-margin-right":t+e};case"t":return{"scroll-margin-top":t+e};case"b":return{"scroll-margin-bottom":t+e}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}},scrollPadding:{match:"^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t+e,"scroll-padding-right":t+e};case"y":return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e};case"l":return{"scroll-padding-left":t+e};case"r":return{"scroll-padding-right":t+e};case"t":return{"scroll-padding-top":t+e};case"b":return{"scroll-padding-bottom":t+e}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{...se,margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{...se,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},We=Ke;function Ae(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function Ne(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let i=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(i),t.natives.splice(i,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function Ie(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,n=r?.sheet;for(let o of this.keyframeNames)if(o in e)e[o].count++;else{let h={text:`@keyframes ${o} {`+Object.entries(t.keyframes[o]).map(([f,a])=>`${f} {${Object.entries(a).map(([g,s])=>g+": "+s).join(";")}}`).join(",")+"}",theme:""},d;if(Object.keys(e).length?(d=i[0]).natives.push(h):i.splice(0,0,d={natives:[h],get text(){return this.natives.map(f=>f.text).join("")}}),n){let f;for(let a=0;a<n.cssRules.length;a++){let g=n.cssRules[a];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===o){f=g;break}}if(f)h.cssRule=f;else{let a=d.natives.length-1;n.insertRule(h.text,a),h.cssRule=n.cssRules[a]}}e[o]={native:h,count:1}}}}function Le(t){if(this.prefix.includes("-"))return{[this.prefix.slice(0,-1)]:t};let r=this.prefix[0]==="m"?"margin":"padding",i=r+"-left",n=r+"-right",o=r+"-top",h=r+"-bottom";switch(this.prefix[1]){case"x":return{[i]:t,[n]:t};case"y":return{[o]:t,[h]:t};case"l":return{[i]:t};case"r":return{[n]:t};case"t":return{[o]:t};case"b":return{[h]:t};default:return{[r]:t}}}function de(t,e,r=""){let i="border-";r&&(r="-"+r);let n=/^b(order)?-?(.)?/.exec(t)[2],o=i+"left"+r,h=i+"right"+r,d=i+"top"+r,f=i+"bottom"+r;switch(n){case"x":return{[o]:e,[h]:e};case"y":return{[d]:e,[f]:e};case"l":return{[o]:e};case"r":return{[h]:e};case"t":return{[d]:e};case"b":return{[f]:e};default:return{["border"+r]:e}}}var ze=!1;var De=!0;var Fe=!1;var Ve={fade:{from:{opacity:0},to:{opacity:0}},flash:{"from,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},"100%":{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%,100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}},ping:{"75%,100%":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},"100%":{transform:"none"}},rotate:{from:{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:{from:{transform:"scale(0)"},"100%":{transform:"none"}}};var xe={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=f=>f==="+"||f==="-"||f==="*"||f==="/",r="",i,n="",o=!1,h=!1,d=(f,a="",g="")=>{if(i===2&&!h){let s=this.analyzeUnitValue(n,xe.calc.unit);s&&(n=s.value+s.unit)}r+=n+a+f+g,i=null,h=!1,n=""};for(let f=0;f<t.length;f++){let a=t[f];if(a==="("||a===")")o=a===")",d(a);else if(a===",")d(a,""," ");else{switch(i){case 1:break;case 2:if(e(a)){d(a," "," ");continue}else/[0-9]/.test(a)||(h=!0);break;default:o&&(r+=" "),isNaN(+a)?e(a)||(i=1):i=2;break}i?n+=a:r+=a}}return d(""),r}},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:""}};var _e="highest";var me={breakpoints:ae,colors:Te,rootSize:16,scope:Oe,selectors:Ee,semantics:Be,themes:je,rules:We,override:!1,observe:!0,important:!1,functions:xe,keyframes:Ve,precedence:_e};var Pe=[",",".","#","[","!","*",">","+","~",":","@"];var ye=typeof window<"u",He=()=>{let t=document.createElement("style");return t.id="master",t},ne=class{constructor(e){this.config=e;this.config?.override||(this.config=J(me,e)),this.cache(),ye&&this.config.observe&&this.observe(document),ne.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:i,themes:n,colors:o,values:h,breakpoints:d,mediaQueries:f,rules:a}=this.config;function g(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(l,c,u="",p={}){let x=B=>B?(u?u+"-":"")+B:u,$=Object.entries(l),T=[],L=[];for(let B of $){let Y=B[1];(typeof Y=="object"&&!Array.isArray(Y)?T:L).push(B)}for(let[B,Y]of T)s(Y,c,x(B),p);if(c&&u)L.length&&(p[u]=L.reduce((B,[Y,X])=>(B[Y]=X,B),{}));else for(let[B,Y]of L)p[x(B)]=Y;return p}if(e)for(let[l,c]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+g(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[l,c]]);if(i)for(let[l,c]of Object.entries(s(i,!1))){let u=new RegExp(g(l)+"(?![a-z-])");for(let p of Array.isArray(c)?c:[c]){let x=p.match(/^::-[a-z]+-/m)?.[0]??"",$=this.selectors[x];$||($=this.selectors[x]=[]);let T=$.find(([L])=>L===u);T||(T=[u,[]],$.push(T)),T[1].push(p)}}h&&(this.globalValues=s(h,!1)),d&&(this.breakpoints=s(d,!1)),f&&(this.mediaQueries=s(f,!1));let m=r?s(r,!1):{},k=n&&!Array.isArray(n)?Object.entries(n).filter(([,{classes:l}])=>l).reduce((l,[c,{classes:u}])=>(l[c]=s(u,!1),l),{}):{},w=[...Object.keys(m),...Object.entries(k).flatMap(([l,c])=>Object.keys(c))],R=l=>{if(l in this.classes)return;let c=this.classes[l]=[],u=(p,x)=>{if(!x)return;let $=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let T of $){let L=B=>{B in this.themeAffectedClassesBy?p in this.themeAffectedClassesBy[B]?this.themeAffectedClassesBy[B][p].push(l):this.themeAffectedClassesBy[B][p]=[l]:this.themeAffectedClassesBy[B]={[p]:[l]},c.includes(B)||c.push(B)};if(w.includes(T)){R(T);for(let B of this.classes[T])L(B)}else L(T)}};u("",m?.[l]);for(let[p,x]of Object.entries(k))u(p,x?.[l])};for(let l of w)R(l);for(let l in this.themeAffectedClassesBy){let c=this.classesBy[l]=[];for(let u of Object.values(this.themeAffectedClassesBy[l]))for(let p of u)c.includes(p)||c.push(p)}let v=(l,c)=>{if(!c)return;let u=s(c,!0);for(let[p,x]of Object.entries(u)){let $=typeof x=="string"?{"":x}:x;for(let[T,L]of Object.entries($)){let B=p+(T?"-"+T:"");B in this.colorThemesMap?this.colorThemesMap[B][l]=L:this.colorThemesMap[B]={[l]:L}}}for(let p in c)this.colorNames.includes(p)||this.colorNames.push(p)};if(v("",o),n)if(Array.isArray(n))this.themeNames.push(...n);else for(let l in n){let c=n[l];v(l,c.colors),this.themeNames.push(l)}let C=l=>{for(let[c,u]of Object.entries(this.colorThemesMap))for(let[p,x]of Object.entries(u))x.startsWith("#")||l(c,u,p,x)};if(C((l,c,u,p)=>{let x=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(p);if(x){let $="#"+he(+x[1],+x[2],+x[3]);x[4]&&($+=Math.round(255*+x[4]).toString(16)),c[u]=$}}),C((l,c,u,p)=>{let[x,$]=p.split("/"),T=this.colorThemesMap[x];if(T){let L=(u?T[u]:void 0)??T[""];c[u]=$?L.slice(0,7)+Math.round(255*+$).toString(16):L}else console.warn(`\`${p}\` doesn't exist in the extended config \`.colors\``),delete c[u],Object.keys(c).length||delete this.colorThemesMap[l]}),a)for(let l in a){let c=a[l],{native:u,values:p,colored:x}=c,$=c.match;if(c.id=l,c.native=u===!0?l.replace(/(?!^)[A-Z]/g,T=>"-"+T).toLowerCase():void 0,p&&(this.values[l]=s(p,!1)),$){let T=Object.keys(this.values[l]??{});$.includes("$values")&&($=T.length?$.replace(/\$values/,T.join("|")):$.replace(/(?:\|)?\$values/,"")),x&&$.includes("$colors")&&($=this.colorNames.length?$.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):$.replace(/(?:\|)?\$colors/,"")),this.matches[l]=new RegExp($)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(ye&&e){this.root=e;let i=e===document;i&&(ne.root=this),this.host=i?document.documentElement:root.host;let n=i?document.head:e,o=i?document.styleSheets:e.styleSheets;for(let d of o){let{href:f,ownerNode:a}=d;if(a.id==="master"||f&&f.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(f)){this.style=a;break}}if(this.style)for(let d=0;d<this.style.sheet.cssRules.length;d++){let f=this.style.sheet.cssRules[d];if(f.constructor.name==="CSSKeyframesRule")continue;let a=s=>{if(s.selectorText){let k=s.selectorText.split(", ")[0].split(" ");for(let w=0;w<k.length;w++){let R=k[w];if(R[0]==="."){let v=R.slice(1),C="";for(let l=0;l<v.length;l++){let c=v[l],u=v[l+1];if(c==="\\"){if(l++,u!=="\\"){C+=u;continue}}else if(Pe.includes(c))break;C+=c}if(!(C in this.ruleBy)&&!(C in this.classes)){let l=this.create(C)[0];if(l)return l}}}}else if(s.cssRules)for(let m=0;m<s.cssRules.length;m++){let k=a(s.cssRules[m]);if(k)return k}},g=a(f);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let s=0;s<g.natives.length;s++)g.natives[s].cssRule=this.style.sheet.cssRules[d+s];d+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=He(),n.append(this.style);let h=d=>{d.forEach(f=>{f in this.countBy?this.countBy[f]++:(this.countBy[f]=1,this.insert(f))})};h(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(d=>h(d.classList)),this.observer=new MutationObserver(d=>{let f={},a=[],g=[],s=[],m=(v,C)=>{C?v.classList.forEach(w):v.classList.forEach(k);let l=v.children;for(let c=0;c<l.length;c++){let u=l[c];u.classList&&(g.push(u),m(u,C))}},k=v=>{v in f?f[v]++:f[v]=1},w=v=>{v in f?f[v]--:v in this.countBy&&(f[v]=-1)},R=(v,C)=>{for(let l=0;l<v.length;l++){let c=v[l];c.classList&&!g.includes(c)&&!s.includes(c)&&(c.isConnected!==C?(g.push(c),m(c,C)):s.push(c))}};for(let v=0;v<d.length;v++){let C=d[v],{addedNodes:l,removedNodes:c,type:u,target:p}=C;if(u==="attributes"){if(a.find(x=>x.target===p))continue;a.push(C)}else R(l,!1),(!p.isConnected||!g.includes(p))&&R(c,!0)}if(!(!a.length&&!Object.keys(f).length)){for(let{oldValue:v,target:C}of a){let l=g.includes(C),c=C.classList,u=v?v.split(" "):[];if(l){if(C.isConnected)continue;for(let p of u)c.contains(p)||w(p)}else if(C.isConnected){c.forEach(p=>{u.includes(p)||k(p)});for(let p of u)c.contains(p)||w(p)}}for(let v in f){let C=f[v],l=(this.countBy[v]||0)+C;l===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=l)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r in this.config.rules){let i=this.config.rules[r],n=this.matches[r],{symbol:o,native:h}=i;if(n&&n.test(e))return{origin:"match",config:i};if(o&&e.startsWith(o))return{origin:"symbol",config:i};if(h&&e.startsWith(h+":"))return{origin:"match",config:i}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=i=>{if(i in this.ruleBy)return this.ruleBy[i];let n=this.match(i);if(n)return new fe(i,n,this)};return(e in this.classes?this.classes[e].map(i=>r(i)):[r(e)]).filter(i=>i&&i.text)}refresh(e){if(e?.override?this.config=e:this.config=J(me,e),this.cache(),!this.style)return;let r=He();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let i in this.countBy)this.insert(i)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=n=>{let o=this.ruleBy[n];if(!(!o||n in this.classesBy&&this.classesBy[n].some(h=>h in this.countBy))){if(r&&o.natives.length){let h=o.natives[0];for(let d=0;d<r.cssRules.length;d++)if(r.cssRules[d]===h.cssRule){for(let a=0;a<o.natives.length;a++)r.deleteRule(d);break}}this.rules.splice(this.rules.indexOf(o),1),delete this.ruleBy[n],o.config.delete&&o.config.delete.call(o,n)}};if(e in this.classes){for(let n of this.classes[e])n in this.countBy||i(n);delete this.ruleBy[e]}else i(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let i,n=this.rules.length-1,{media:o,order:h,priority:d,hasWhere:f,className:a}=r,g=(s,m,k,w)=>{let R=0,v;m&&(R=s.findIndex(m)),k&&(v=s.findIndex(k)),R===-1&&(R=s.length),(v===void 0||v===-1)&&(v=s.length);let C=s.slice(R,v);for(let l=0;l<C.length;l++){let c=C[l];if(!(c.priority===-1||w&&w(c))&&(c.priority<d||c.priority===d&&(f&&!c.hasWhere||c.order>=h)))return R+l}return R+C.length};if(o){let s=this.rules.findIndex(m=>m.media);if(s!==-1){let m=o.features["max-width"],k=o.features["min-width"];if(m&&k){let w=m.value-k.value;for(let R=n;R>=s;R--){i=R;let v=this.rules[R],C=v.media,l=C.features["max-width"],c=C.features["min-width"];if(!l||!c){i++;break}let u=l.value-c.value;if(u===w){if(f!==v.hasWhere)continue;if(d!==-1){let p=[this.rules[R]];for(let x=R-1;x>=s;x--){let $=this.rules[x];if($.hasWhere!==f)break;let T=$.media,L=T.features["max-width"],B=T.features["min-width"];if(!L||!B||L.value-B.value!==u)break;p.unshift(this.rules[x])}i=g(this.rules,x=>x.media&&x.priority!==-1&&x.media.features["min-width"]&&x.media.features["max-width"])}break}else if(u>w)break}}else if(k)for(let w=s;w<=n;w++){i=w;let R=this.rules[w],v=R.media,C=v.features["max-width"],l=v.features["min-width"];if(C){if(l)break;continue}let c=l?.value;if(c===k.value){if(!f&&R.hasWhere){i++;continue}if(d!==-1)i=g(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else for(let u=w;u<=n;u++){let p=this.rules[u],x=p.media,$=x.features["min-width"];if(!x.features["max-width"]){if(p.hasWhere!==f||$.value!==c||p.order>=h)break;i=u+1}}break}else{if(c>k.value)break;i++}}else if(m)for(let w=n;w>=s;w--){i=w;let R=this.rules[w],v=R.media,C=v.features["max-width"];if(v.features["min-width"])continue;let c=C?.value;if(!c||c>m.value){i++;break}else if(c===m.value){if(f&&!R.hasWhere)continue;if(d!==-1)i=g(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else{let u=[this.rules[w]];for(let p=w-1;p>=s;p--){let x=this.rules[p],$=x.media,T=$.features["min-width"],L=$.features["max-width"];if(!T&&(!L||L.value!==c||x.hasWhere!==f))break;u.unshift(x)}for(let p=0;p<u.length;p++){let x=u[p];if(!x.media.features["min-width"]){if(x.order>=h)break;i=w-u.length+2+p}}}break}}}if(i===void 0)if(s===-1)i=n+1;else if(d!==-1)i=s+g(this.rules.slice(s),void 0,m=>m.media.features["max-width"]||m.media.features["min-width"]);else if(f){let m=s;for(;m<this.rules.length;m++){let k=this.rules[m];if(k.priority!==-1||!k.hasWhere||k.order>=h){i=m;break}}i===void 0&&(i=m)}else for(let m=s;m<=n;m++){i=m;let k=this.rules[m],w=k.media;if(k.priority!==-1||w.features["max-width"]||w.features["min-width"])break;if(k.hasWhere)i++;else if(k.order>=h)break}}else if(d===-1){if(f)i=this.rules.findIndex(s=>!s.hasWhere||s.media||s.priority!==-1||s.order>=h),i===-1&&(i=n+1);else{let s=0;for(;s<this.rules.length;s++){let m=this.rules[s];if(m.media||!m.hasWhere&&(m.order>=h||m.priority!==-1)){i=s;break}}i===void 0&&(i=s)}!i&&Object.keys(this.keyframes).length&&i++}else i=g(this.rules,void 0,s=>s.media);if(this.rules.splice(i,0,r),this.ruleBy[a]=r,this.style){let s=this.style.sheet,m=0,k=w=>{let R=this.rules[w];if(R){if(!R.natives.length)return k(w-1);let v=R.natives[R.natives.length-1].cssRule;for(let C=0;C<s.cssRules.length;C++)if(s.cssRules[C]===v){m=C+1;break}}};k(i-1);for(let w=0;w<r.natives.length;)try{let R=r.natives[w];s.insertRule(R.text,m),R.cssRule=s.cssRules[m++],w++}catch(R){console.error(R),r.natives.splice(w,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},Z=ne;oe(Z,"root"),oe(Z,"config",me),oe(Z,"instances",[]),oe(Z,"refresh",e=>{for(let r of ne.instances)r.refresh(e)});ye&&(window.MasterCSS=Z);var Ue={store:"theme",init:!0},Je=typeof document<"u",Ye=typeof localStorage<"u",Qe=class{constructor(e,r=Je?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?J(Ue,e):Ue,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;r;t;init(){let e=this.settings.default,r=this.storage;r&&(e=r),this.value=e}get storage(){let{store:e}=this.settings;if(Ye&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.r=e,e==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.s(),this.current=e)}get value(){return this.r}set current(e){let r=this.t;this.t=e,this.host&&r!==e&&(r&&this.host.classList.remove(r),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,Ye&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}s(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.s()}};function gr(t){return t=Object.assign({store:"theme"},t),`let e${t.default?`='${t.default}'`:""};const c=localStorage.getItem("${t.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}function vr(t,e){if(!t?.length)return;let r=new Z({...e,observe:!1});for(let i of t)i in r.countBy||r.insert(i)&&(r.countBy[i]=1);return r.text}var et=/&(amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,tt={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'",quot:'"',"#34":'"'};function qe(t,e){if(!t)return;let r=new Z({...e,observe:!1}),i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(t);){let o=n[1].replace(/\n/g,"").split(" ").filter(h=>h).map(h=>h.replace(et,(d,f)=>tt[f]));for(let h of o)h in r.countBy||(r.insert(h),r.countBy[h]=1)}return r.text}function Sr(t,e){if(!t)return;let r=`<style id="master">${qe(t,e)}</style>`;return t.replace(/<\/head>/,`${r}$&`)}function rt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(d,f){var a=f.match(/\n([\t ]+|(?!\s).)/g);return a?d.concat(a.map(function(g){var s,m;return(m=(s=g.match(/[\t ]/g))===null||s===void 0?void 0:s.length)!==null&&m!==void 0?m:0})):d},[]);if(n.length){var o=new RegExp(`
2
2
  [ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(d){return d.replace(o,`
3
3
  `)})}i[0]=i[0].replace(/^\r?\n/,"");var h=i[0];return e.forEach(function(d,f){var a=h.match(/(?:^|\n)( *)$/),g=a?a[1]:"",s=d;typeof d=="string"&&d.includes(`
4
4
  `)&&(s=String(d).split(`
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@master/css","scripts":{"build":"techor pack --extra-external @master/css-compiler --shakable","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/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":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/keyframes.css":"^2.0.0-beta.135","@master/normal.css":"^2.0.0-beta.135","@techor/fs":"^2.1.4","@techor/log":"^2.1.4","chokidar":"^3.5.3","commander":"^10.0.0","fast-glob":"^3.2.12"},"devDependencies":{"@techor/extend":"^2.1.4","ts-dedent":"^2.2.0","vite":"^4.2.1"},"version":"2.0.0-beta.135"}
1
+ {"name":"@master/css","scripts":{"build":"techor pack --extra-external @master/css-compiler --shakable","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/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":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/keyframes.css":"^2.0.0-beta.136","@master/normal.css":"^2.0.0-beta.136","@techor/fs":"^2.1.4","@techor/log":"^2.1.4","chokidar":"^3.5.3","commander":"^10.0.0","fast-glob":"^3.2.12"},"devDependencies":{"@techor/extend":"^2.1.4","ts-dedent":"^2.2.0","vite":"^4.2.1"},"version":"2.0.0-beta.136"}