@unocss/runtime 0.20.2 → 0.21.2

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/core.global.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{var st=Object.defineProperty,ot=Object.defineProperties;var at=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var H=(r,t,e)=>t in r?st(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,_=(r,t)=>{for(var e in t||(t={}))ct.call(t,e)&&H(r,e,t[e]);if(z)for(var e of z(t))lt.call(t,e)&&H(r,e,t[e]);return r},I=(r,t)=>ot(r,at(t));function ut(r){let t=r.length,e=-1,n,i="",s=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){i+="\uFFFD";continue}if(n===44){i+="\\2c ";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&s===45){i+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){i+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=r.charAt(e);continue}i+=`\\${r.charAt(e)}`}return i}var v=ut;function E(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function q(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>E(t)):[r]:[E(r)]}function ft(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(r[i][0]===t&&r[i][1]===e)return!1;return!0})}function M(r){return r==null?"":ft(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function K(r){return r&&typeof r=="object"&&!Array.isArray(r)}function D(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let i=_({},e);return K(e)&&K(n)&&Object.keys(n).forEach(s=>{K(n[s])?s in e?i[s]=D(e[s],n[s]):Object.assign(i,{[s]:n[s]}):Object.assign(i,{[s]:n[s]})}),i}function N(r){return typeof r[0]=="string"}function W(r){return typeof r[0]=="string"}function O(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var pt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/;function Z(r=""){return pt.test(r)}function J(r){return typeof r=="function"?{match:r}:r}function k(r){return r.length===3}function Q(r){return r!=null}var L=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,n),i.get(e)}set(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([i,s])=>t(s,e,i)))}};var dt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function X(r){let t=[],e;for(;e=dt.exec(r);){let i=e.index,s=i+e[0].length,[,o,c,u]=e,l=u.split(/\s/g).map(g=>g.replace(/^(!?)(.*)/,`$1${o}${c}$2`)).join(" ");t.unshift([i,s,l])}let n=r;return t.forEach(([i,s,o])=>{n=n.slice(0,i)+o+n.slice(s)}),n}var Y=new Set;function tt(r){Y.has(r)||(console.warn("[unocss]",r),Y.add(r))}var ht=r=>r.split(/[\s'"`;>=]+/g).filter(Z),F={name:"split",order:0,extract({code:r}){return new Set(ht(r))}};function gt(r){return O(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var mt={shortcuts:-1,default:0};function B(r={},t={}){var C;let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(O),i=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],s=Object.assign(mt,...n.map(f=>f.layers),r.layers);function o(f){return j([...i.flatMap(y=>O(y[f]||[])),...O(e[f]||[])])}let c=o("extractors");c.length||c.push(F),c.sort((f,y)=>(f.order||0)-(y.order||0));let u=o("rules"),l={},g=u.length;u.forEach((f,y)=>{N(f)&&(l[f[0]]=[y,f[1],f[2]],delete u[y])});let U=[...i.map(f=>f.theme||{}),e.theme||{}].reduce((f,y)=>D(f,y),{}),x=Object.assign({},...((C=e.presets)==null?void 0:C.map(f=>Array.isArray(f)?f:[f]).flat(1).map(f=>{var y;return(y=f.options)!=null?y:{}}))||[]);return I(_({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},e),{presets:i,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:s,theme:U,rulesSize:g,rulesDynamic:u,rulesStaticMap:l,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),variants:o("variants").map(J),shortcuts:gt(o("shortcuts")),extractors:c,options:x})}var et="0.20.2";var rt=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=B(t,e)}version=et;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.config=B(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,e,n=new Set){let i={get original(){return t},code:t,id:e,options:this.config.options};for(let s of this.config.extractors){let o=await s.extract(i);o==null||o.forEach(c=>n.add(c))}return n}async generate(t,{id:e,scope:n,preflights:i=!0,safelist:s=!0,minify:o=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,e):t;s&&this.config.safelist.forEach(a=>c.add(a));let u=o?"":`
2
- `,l=new Set(["default"]),g=new Set,U=new Map,x=(a,d)=>{var p;this._cache.set(a,d),g.add(a);for(let h of d){let w=h[3]||"";U.has(w)||U.set(w,[]),U.get(w).push(h),((p=h[4])==null?void 0:p.layer)&&l.add(h[4].layer)}},C=a=>{this.blocked.add(a),this._cache.set(a,null)};await Promise.all(Array.from(c).map(async a=>{var R;if(g.has(a)||this.blocked.has(a))return;if(this._cache.has(a)){let S=this._cache.get(a);S&&x(a,S);return}let d=a;for(let S of this.config.preprocess)d=S(a);if(this.isBlocked(d))return C(d);let p=this.matchVariants(a,d);if(!p||this.isBlocked(p[1]))return C(a);let h={rawSelector:a,currentSelector:p[1],theme:this.config.theme,generator:this,variantHandlers:p[2],constructCSS:(...S)=>this.constructCustomCSS(h,...S),options:this.config.options},w=this.expandShortcut(p[1],h);if(w){let S=await this.stringifyShortcuts(p,h,w[0],w[1]);if(S==null?void 0:S.length)return x(a,S)}else{let S=(R=await this.parseUtil(p,h))==null?void 0:R.map(b=>this.stringifyUtil(b)).filter(Q);if(S==null?void 0:S.length)return x(a,S)}this._cache.set(a,null)})),i&&this.config.preflights.forEach(a=>{a.layer&&l.add(a.layer)});let f={},y=this.config.sortLayers(Array.from(l).sort((a,d)=>{var p,h;return((p=this.config.layers[a])!=null?p:0)-((h=this.config.layers[d])!=null?h:0)||a.localeCompare(d)})),m=a=>{if(f[a])return f[a];let d=Array.from(U).sort((p,h)=>{var S;let w=this.parentOrders.get(p[0]),R=this.parentOrders.get(h[0]);return w!==void 0&&R!==void 0?w-R:(S=p[0])==null?void 0:S.localeCompare(h[0]||"")}).map(([p,h])=>{let w=h.length,R=h.filter(b=>{var A;return(((A=b[4])==null?void 0:A.layer)||"default")===a}).sort((b,A)=>{var T;return b[0]-A[0]||((T=b[1])==null?void 0:T.localeCompare(A[1]||""))||0}).map(b=>[b[1]?xt(b[1],n):b[1],b[2]]);if(!R.length)return;let S=R.reverse().map(([b,A],T)=>{if(b&&this.config.mergeSelectors)for(let P=T+1;P<w;P++){let V=R[P];if(V&&V[0]&&V[1]===A)return V[0]=`${V[0]},${b}`,null}return b?`${b}{${A}}`:A}).filter(Boolean).reverse().join(u);return p?`${p}{${u}${S}${u}}`:S}).filter(Boolean).join(u);return i&&(d=[...this.config.preflights.filter(p=>(p.layer||"default")===a).map(p=>p.getCSS()).filter(Boolean),d].join(u)),f[a]=!o&&d?`/* layer: ${a} */${u}${d}`:d},$=(a=y,d)=>a.filter(p=>!(d==null?void 0:d.includes(p))).map(p=>m(p)||"").filter(Boolean).join(u);return{get css(){return $()},layers:y,getLayers:$,getLayer:m,matched:g}}matchVariants(t,e){let n=new Set,i=[],s=e||t,o=!1,c={rawSelector:t,theme:this.config.theme,generator:this,options:this.config.options};for(;;){o=!1;for(let u of this.config.variants){if(!u.multiPass&&n.has(u))continue;let l=u.match(s,c);if(!!l&&(typeof l=="string"&&(l={matcher:l}),l)){s=l.matcher,Array.isArray(l.parent)&&this.parentOrders.set(l.parent[0],l.parent[1]),i.push(l),n.add(u),o=!0;break}}if(!o)break;if(i.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,s,i]}applyVariants(t,e=t[4],n=t[1]){let i=[...e].sort((c,u)=>(c.order||0)-(u.order||0)),s=i.reduce((c,u)=>{var l;return((l=u.body)==null?void 0:l.call(u,c))||c},t[2]),o={selector:i.reduce((c,u)=>{var l;return((l=u.selector)==null?void 0:l.call(u,c,s))||c},Ct(n)),entries:s,parent:i.reduce((c,u)=>Array.isArray(u.parent)?u.parent[0]:u.parent||c,void 0)};for(let c of this.config.postprocess)c(o);return o}constructCustomCSS(t,e,n){e=E(e);let{selector:i,entries:s,parent:o}=this.applyVariants([0,n||t.rawSelector,e,void 0,t.variantHandlers]),c=`${i}{${M(s)}}`;return o?`${o}{${c}}`:c}async parseUtil(t,e,n=!1){var g,U;let[i,s,o]=typeof t=="string"?this.matchVariants(t):t,c=this.config.rulesStaticMap[s];if(c&&c[1]&&(n||!((g=c[2])==null?void 0:g.internal)))return[[c[0],i,E(c[1]),c[2],o]];e.variantHandlers=o;let{rulesDynamic:u,rulesSize:l}=this.config;for(let x=l;x>=0;x--){let C=u[x];if(!C||((U=C[2])==null?void 0:U.internal)&&!n)continue;let[f,y,m]=C,$=s.match(f);if(!$)continue;let a=await y($,e);if(!a)continue;if(typeof a=="string")return[[x,a,m]];let d=q(a).filter(p=>p.length);if(d.length)return d.map(p=>[x,i,p,m,o])}}stringifyUtil(t){if(!t)return;if(k(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:e,entries:n,parent:i}=this.applyVariants(t),s=M(n);if(!!s)return[t[0],e,s,i,t[3]]}expandShortcut(t,e,n=3){if(n===0)return;let i,s;for(let o of this.config.shortcuts)if(W(o)){if(o[0]===t){i=i||o[2],s=o[1];break}}else{let c=t.match(o[0]);if(c&&(s=o[1](c,e)),s){i=i||o[2];break}}if(typeof s=="string"&&(s=X(s).split(/\s+/g)),!!s)return[s.flatMap(o=>{var c;return((c=this.expandShortcut(o,e,n-1))==null?void 0:c[0])||[o]}).filter(o=>o!==""),i]}async stringifyShortcuts(t,e,n,i={layer:this.config.shortcutsLayer}){let s=new L,o=(await Promise.all(j(n).map(async l=>{let g=await this.parseUtil(l,e,!0);return g||tt(`unmatched utility "${l}" in shortcut "${t[1]}"`),g||[]}))).flat(1).filter(Boolean).sort((l,g)=>l[0]-g[0]),[c,,u]=t;for(let l of o){if(k(l))continue;let{selector:g,entries:U,parent:x}=this.applyVariants(l,[...l[4],...u],c),C=s.getFallback(g,x,[[],l[0]]);C[0].push(...U),l[0]>C[1]&&(C[1]=l[0])}return s.map(([l,g],U,x)=>{let C=M(l);if(C)return[g,U,C,x,i]}).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function nt(r,t){return new rt(r,t)}var it=/ \$\$ /,yt=r=>r.match(it);function xt(r,t){return yt(r)?r.replace(it,t?` ${t} `:" "):t?`${t} ${r}`:r}function Ct(r){return r.startsWith("[")?r.replace(/^\[(.+?)(~?=)"(.*)"\]$/,(t,e,n,i)=>`[${v(e)}${n}"${v(i)}"]`):`.${v(r)}`}function G(r={}){var y;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}Object.assign(r,(y=window.__unocss)==null?void 0:y.runtime);let t,e=!1,n,i=nt(window.__unocss||{},r.defaults),s=new Set,o;function c(){o!=null&&clearTimeout(o),o=setTimeout(u,0)}async function u(){let m=await i.generate(s);t||(t=document.createElement("style"),document.head.appendChild(t)),t.innerHTML=m.css}async function l(m){await i.applyExtractors(m,void 0,s),c()}async function g(){let m=document.body&&document.body.outerHTML;m&&await l(m)}let U=new MutationObserver(m=>{e||m.forEach($=>{let a=$.target;if(a===t||n&&!n(a))return;let d=Array.from(a.attributes).map(h=>h.value?`${h.name}="${h.value}"`:h.name).join(" "),p=`<${a.tagName.toLowerCase()} ${d}>`;l(p)})}),x=!1;function C(){if(!x)return;let m=document.documentElement||document.body;!m||(U.observe(m,{childList:!0,subtree:!0,attributes:!0}),x=!0)}function f(){g(),C()}window.__unocss_runtime=window.__unocss_runtime={version:i.version,uno:i,extractAll:g,inspect(m){n=m},toggleObserver(m){m===void 0?e=!e:e=!!m}},f(),window.addEventListener("load",f),window.addEventListener("DOMContentLoaded",f)}G();})();
1
+ (()=>{var ot=Object.defineProperty,at=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var lt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable;var I=(r,t,e)=>t in r?ot(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,M=(r,t)=>{for(var e in t||(t={}))lt.call(t,e)&&I(r,e,t[e]);if(H)for(var e of H(t))ut.call(t,e)&&I(r,e,t[e]);return r},q=(r,t)=>at(r,ct(t));function ft(r){let t=r.length,e=-1,n,i="",s=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){i+="\uFFFD";continue}if(n===44){i+="\\2c ";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&s===45){i+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){i+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=r.charAt(e);continue}i+=`\\${r.charAt(e)}`}return i}var j=ft;function V(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function N(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>V(t)):[r]:[V(r)]}function pt(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(r[i][0]===t&&r[i][1]===e)return!1;return!0})}function v(r){return r==null?"":pt(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function D(r){return r&&typeof r=="object"&&!Array.isArray(r)}function k(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let i=M({},e);return D(e)&&D(n)&&Object.keys(n).forEach(s=>{D(n[s])?s in e?i[s]=k(e[s],n[s]):Object.assign(i,{[s]:n[s]}):Object.assign(i,{[s]:n[s]})}),i}function T(r){let t,e,n;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(n=r[t])&&typeof n=="object"?T(n):n;return e}if(Object.prototype.toString.call(r)==="[object Object]"){e={};for(t in r)t==="__proto__"?Object.defineProperty(e,t,{value:T(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(n=r[t])&&typeof n=="object"?T(n):n;return e}return r}function W(r){return typeof r[0]=="string"}function Z(r){return typeof r[0]=="string"}function _(r=[]){return Array.isArray(r)?r:[r]}function P(r){return Array.from(new Set(r))}var dt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/;function J(r=""){return dt.test(r)}function Q(r){return typeof r=="function"?{match:r}:r}function L(r){return r.length===3}function X(r){return r!=null}var F=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,n),i.get(e)}set(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([i,s])=>t(s,e,i)))}};var ht=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Y(r){let t=[],e;for(;e=ht.exec(r);){let i=e.index,s=i+e[0].length,[,o,c,f]=e,l=f.split(/\s/g).map(m=>m.replace(/^(!?)(.*)/,`$1${o}${c}$2`)).join(" ");t.unshift([i,s,l])}let n=r;return t.forEach(([i,s,o])=>{n=n.slice(0,i)+o+n.slice(s)}),n}var tt=new Set;function et(r){tt.has(r)||(console.warn("[unocss]",r),tt.add(r))}var gt=r=>r.split(/[\s'"`;>=]+/g).filter(J),B={name:"split",order:0,extract({code:r}){return new Set(gt(r))}};function mt(r){return _(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var yt={shortcuts:-1,default:0};function G(r={},t={}){let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(_),i=[...n.filter(u=>u.enforce==="pre"),...n.filter(u=>!u.enforce),...n.filter(u=>u.enforce==="post")],s=Object.assign(yt,...n.map(u=>u.layers),r.layers);function o(u){return P([...i.flatMap(h=>_(h[u]||[])),..._(e[u]||[])])}let c=o("extractors");c.length||c.push(B),c.sort((u,h)=>(u.order||0)-(h.order||0));let f=o("rules"),l={},m=f.length;f.forEach((u,h)=>{W(u)&&(l[u[0]]=[h,u[1],u[2]],delete f[h])});let x=T([...i.map(u=>u.theme||{}),e.theme||{}].reduce((u,h)=>k(u,h),{}));return o("extendTheme").forEach(u=>u(x)),q(M({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},e),{presets:i,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:s,theme:x,rulesSize:m,rulesDynamic:f,rulesStaticMap:l,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),variants:o("variants").map(Q),shortcuts:mt(o("shortcuts")),extractors:c})}var rt="0.21.2";var nt=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=G(t,e)}version=rt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.config=G(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,e,n=new Set){let i={get original(){return t},code:t,id:e};for(let s of this.config.extractors){let o=await s.extract(i);o==null||o.forEach(c=>n.add(c))}return n}async generate(t,{id:e,scope:n,preflights:i=!0,safelist:s=!0,minify:o=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,e):t;s&&this.config.safelist.forEach(a=>c.add(a));let f=o?"":`
2
+ `,l=new Set(["default"]),m=new Set,x=new Map,u=(a,d)=>{var p;this._cache.set(a,d),m.add(a);for(let g of d){let C=g[3]||"";x.has(C)||x.set(C,[]),x.get(C).push(g),((p=g[4])==null?void 0:p.layer)&&l.add(g[4].layer)}},h=a=>{this.blocked.add(a),this._cache.set(a,null)};await Promise.all(Array.from(c).map(async a=>{var U;if(m.has(a)||this.blocked.has(a))return;if(this._cache.has(a)){let S=this._cache.get(a);S&&u(a,S);return}let d=a;for(let S of this.config.preprocess)d=S(a);if(this.isBlocked(d))return h(d);let p=this.matchVariants(a,d);if(!p||this.isBlocked(p[1]))return h(a);let g={rawSelector:a,currentSelector:p[1],theme:this.config.theme,generator:this,variantHandlers:p[2],constructCSS:(...S)=>this.constructCustomCSS(g,...S)},C=this.expandShortcut(p[1],g);if(C){let S=await this.stringifyShortcuts(p,g,C[0],C[1]);if(S==null?void 0:S.length)return u(a,S)}else{let S=(U=await this.parseUtil(p,g))==null?void 0:U.map(b=>this.stringifyUtil(b)).filter(X);if(S==null?void 0:S.length)return u(a,S)}this._cache.set(a,null)})),i&&this.config.preflights.forEach(a=>{a.layer&&l.add(a.layer)});let w={},A=this.config.sortLayers(Array.from(l).sort((a,d)=>{var p,g;return((p=this.config.layers[a])!=null?p:0)-((g=this.config.layers[d])!=null?g:0)||a.localeCompare(d)})),y=a=>{if(w[a])return w[a];let d=Array.from(x).sort((p,g)=>{var C,U,S;return((C=this.parentOrders.get(p[0]))!=null?C:0)-((U=this.parentOrders.get(g[0]))!=null?U:0)||((S=p[0])==null?void 0:S.localeCompare(g[0]||""))||0}).map(([p,g])=>{let C=g.length,U=g.filter(b=>{var R;return(((R=b[4])==null?void 0:R.layer)||"default")===a}).sort((b,R)=>{var O;return b[0]-R[0]||((O=b[1])==null?void 0:O.localeCompare(R[1]||""))||0}).map(b=>[b[1]?bt(b[1],n):b[1],b[2]]);if(!U.length)return;let S=U.reverse().map(([b,R],O)=>{if(b&&this.config.mergeSelectors)for(let K=O+1;K<C;K++){let E=U[K];if(E&&E[0]&&E[1]===R)return E[0]=`${E[0]},${f}${b}`,null}return b?`${b}{${R}}`:R}).filter(Boolean).reverse().join(f);return p?`${p}{${f}${S}${f}}`:S}).filter(Boolean).join(f);return i&&(d=[...this.config.preflights.filter(p=>(p.layer||"default")===a).map(p=>p.getCSS()).filter(Boolean),d].join(f)),w[a]=!o&&d?`/* layer: ${a} */${f}${d}`:d},$=(a=A,d)=>a.filter(p=>!(d==null?void 0:d.includes(p))).map(p=>y(p)||"").filter(Boolean).join(f);return{get css(){return $()},layers:A,getLayers:$,getLayer:y,matched:m}}matchVariants(t,e){let n=new Set,i=[],s=e||t,o=!1,c={rawSelector:t,theme:this.config.theme,generator:this};for(;;){o=!1;for(let f of this.config.variants){if(!f.multiPass&&n.has(f))continue;let l=f.match(s,c);if(!!l&&(typeof l=="string"&&(l={matcher:l}),l)){s=l.matcher,Array.isArray(l.parent)&&this.parentOrders.set(l.parent[0],l.parent[1]),i.push(l),n.add(f),o=!0;break}}if(!o)break;if(i.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,s,i]}applyVariants(t,e=t[4],n=t[1]){let i=[...e].sort((c,f)=>(c.order||0)-(f.order||0)),s=i.reduce((c,f)=>{var l;return((l=f.body)==null?void 0:l.call(f,c))||c},t[2]),o={selector:i.reduce((c,f)=>{var l;return((l=f.selector)==null?void 0:l.call(f,c,s))||c},Ct(n)),entries:s,parent:i.reduce((c,f)=>Array.isArray(f.parent)?f.parent[0]:f.parent||c,void 0)};for(let c of this.config.postprocess)c(o);return o}constructCustomCSS(t,e,n){e=V(e);let{selector:i,entries:s,parent:o}=this.applyVariants([0,n||t.rawSelector,e,void 0,t.variantHandlers]),c=`${i}{${v(s)}}`;return o?`${o}{${c}}`:c}async parseUtil(t,e,n=!1){var m,x;let[i,s,o]=typeof t=="string"?this.matchVariants(t):t,c=this.config.rulesStaticMap[s];if(c&&c[1]&&(n||!((m=c[2])==null?void 0:m.internal)))return[[c[0],i,V(c[1]),c[2],o]];e.variantHandlers=o;let{rulesDynamic:f,rulesSize:l}=this.config;for(let u=l;u>=0;u--){let h=f[u];if(!h||((x=h[2])==null?void 0:x.internal)&&!n)continue;let[w,A,y]=h,$=s.match(w);if(!$)continue;let a=await A($,e);if(!a)continue;if(typeof a=="string")return[[u,a,y]];let d=N(a).filter(p=>p.length);if(d.length)return d.map(p=>[u,i,p,y,o])}}stringifyUtil(t){if(!t)return;if(L(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:e,entries:n,parent:i}=this.applyVariants(t),s=v(n);if(!!s)return[t[0],e,s,i,t[3]]}expandShortcut(t,e,n=3){if(n===0)return;let i,s;for(let o of this.config.shortcuts)if(Z(o)){if(o[0]===t){i=i||o[2],s=o[1];break}}else{let c=t.match(o[0]);if(c&&(s=o[1](c,e)),s){i=i||o[2];break}}if(typeof s=="string"&&(s=Y(s).split(/\s+/g)),!!s)return[s.flatMap(o=>{var c;return((c=this.expandShortcut(o,e,n-1))==null?void 0:c[0])||[o]}).filter(o=>o!==""),i]}async stringifyShortcuts(t,e,n,i={layer:this.config.shortcutsLayer}){let s=new F,o=(await Promise.all(P(n).map(async l=>{let m=await this.parseUtil(l,e,!0);return m||et(`unmatched utility "${l}" in shortcut "${t[1]}"`),m||[]}))).flat(1).filter(Boolean).sort((l,m)=>l[0]-m[0]),[c,,f]=t;for(let l of o){if(L(l))continue;let{selector:m,entries:x,parent:u}=this.applyVariants(l,[...l[4],...f],c),h=s.getFallback(m,u,[[],l[0]]);h[0].push(...x),l[0]>h[1]&&(h[1]=l[0])}return s.map(([l,m],x,u)=>{let h=v(l);if(h)return[m,x,h,u,i]}).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function it(r,t){return new nt(r,t)}var st=/ \$\$ /,xt=r=>r.match(st);function bt(r,t){return xt(r)?r.replace(st,t?` ${t} `:" "):t?`${t} ${r}`:r}function Ct(r){return r.startsWith("[")?r.replace(/^\[(.+?)(~?=)"(.*)"\]$/,(t,e,n,i)=>`[${j(e)}${n}"${j(i)}"]`):`.${j(r)}`}function z(r={}){var A;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}Object.assign(r,(A=window.__unocss)==null?void 0:A.runtime);let t,e=!1,n,i=it(window.__unocss||{},r.defaults),s=new Set,o;function c(){o!=null&&clearTimeout(o),o=setTimeout(f,0)}async function f(){let y=await i.generate(s);t||(t=document.createElement("style"),document.head.appendChild(t)),t.innerHTML=y.css}async function l(y){await i.applyExtractors(y,void 0,s),c()}async function m(){let y=document.body&&document.body.outerHTML;y&&await l(y)}let x=new MutationObserver(y=>{e||y.forEach($=>{let a=$.target;if(a===t||n&&!n(a))return;let d=Array.from(a.attributes).map(g=>g.value?`${g.name}="${g.value}"`:g.name).join(" "),p=`<${a.tagName.toLowerCase()} ${d}>`;l(p)})}),u=!1;function h(){if(!u)return;let y=document.documentElement||document.body;!y||(x.observe(y,{childList:!0,subtree:!0,attributes:!0}),u=!0)}function w(){m(),h()}window.__unocss_runtime=window.__unocss_runtime={version:i.version,uno:i,extractAll:m,inspect(y){n=y},toggleObserver(y){y===void 0?e=!e:e=!!y}},w(),window.addEventListener("load",w),window.addEventListener("DOMContentLoaded",w)}z();})();
package/mini.global.js CHANGED
@@ -1,3 +1,3 @@
1
- (()=>{var $e=Object.defineProperty,jr=Object.defineProperties;var Ur=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var Mr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable;var Se=(e,t,r)=>t in e?$e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))Mr.call(t,r)&&Se(e,r,t[r]);if(ve)for(var r of ve(t))Or.call(t,r)&&Se(e,r,t[r]);return e},U=(e,t)=>jr(e,Ur(t));var Fr=(e,t)=>{for(var r in t)$e(e,r,{get:t[r],enumerable:!0})};var _r={mid:"middle",base:"baseline",btm:"bottom"},Re=[[/^(?:vertical|align|v)-(baseline|top|bottom|middle|text-top|text-bottom|mid|base|btm)$/,([,e])=>({"vertical-align":_r[e]||e})]],ke=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var T={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],a:[""]},ee={t:["-top-left","-top-right"],r:["-top-right","-bottom-right"],b:["-bottom-left","-bottom-right"],l:["-bottom-left","-top-left"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""]},te={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]};function D(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dr(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var W=Dr;function L(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Ce(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>L(t)):[e]:[L(e)]}function Lr(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function B(e){return e==null?"":Lr(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function re(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ne(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=k({},r);return re(r)&&re(n)&&Object.keys(n).forEach(i=>{re(n[i])?i in r?o[i]=ne(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function Ee(e){return typeof e[0]=="string"}function Te(e){return typeof e[0]=="string"}function V(e=[]){return Array.isArray(e)?e:[e]}function I(e){return Array.from(new Set(e))}var Hr=/^#?([\da-f]+)$/i;function Ve(e=""){let[,t]=e.match(Hr)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return t.length===3||(r[3]=Math.round(r[3]/255*100)/100),r;case 6:case 8:let n=Number.parseInt(t,16);return t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255,Math.round((n&255)/255*100)/100]}}var Nr=/^\[(.+?)~?="(.*)"\]$/,Kr=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/;function Ae(e){return e.match(Nr)}function H(e=""){return Kr.test(e)}function ze(e){return typeof e=="function"?{match:e}:e}function oe(e){return e.length===3}function Pe(e){return e!=null}var ie=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}};var Wr=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function je(e){let t=[],r;for(;r=Wr.exec(e);){let o=r.index,i=o+r[0].length,[,s,a,f]=r,l=f.split(/\s/g).map(d=>d.replace(/^(!?)(.*)/,`$1${s}${a}$2`)).join(" ");t.unshift([o,i,l])}let n=e;return t.forEach(([o,i,s])=>{n=n.slice(0,o)+s+n.slice(i)}),n}var Ue=new Set;function Me(e){Ue.has(e)||(console.warn("[unocss]",e),Ue.add(e))}function Oe(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let s of o){let a=e[s](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var Br=e=>e.split(/[\s'"`;>=]+/g).filter(H),N={name:"split",order:0,extract({code:e}){return new Set(Br(e))}};function Ir(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Gr={shortcuts:-1,default:0};function se(e={},t={}){var g;let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(V),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],i=Object.assign(Gr,...n.map(p=>p.layers),e.layers);function s(p){return I([...o.flatMap(v=>V(v[p]||[])),...V(r[p]||[])])}let a=s("extractors");a.length||a.push(N),a.sort((p,v)=>(p.order||0)-(v.order||0));let f=s("rules"),l={},d=f.length;f.forEach((p,v)=>{Ee(p)&&(l[p[0]]=[v,p[1],p[2]],delete f[v])});let x=[...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,v)=>ne(p,v),{}),$=Object.assign({},...((g=r.presets)==null?void 0:g.map(p=>Array.isArray(p)?p:[p]).flat(1).map(p=>{var v;return(v=p.options)!=null?v:{}}))||[]);return U(k({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:p=>p},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:x,rulesSize:d,rulesDynamic:f,rulesStaticMap:l,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(ze),shortcuts:Ir(s("shortcuts")),extractors:a,options:$})}var Fe="0.20.2";var _e=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=se(t,r)}version=Fe;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=se(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r,options:this.config.options};for(let i of this.config.extractors){let s=await i.extract(o);s==null||s.forEach(a=>n.add(a))}return n}async generate(t,{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:s=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(u=>a.add(u));let f=s?"":`
2
- `,l=new Set(["default"]),d=new Set,x=new Map,$=(u,h)=>{var m;this._cache.set(u,h),d.add(u);for(let b of h){let E=b[3]||"";x.has(E)||x.set(E,[]),x.get(E).push(b),((m=b[4])==null?void 0:m.layer)&&l.add(b[4].layer)}},g=u=>{this.blocked.add(u),this._cache.set(u,null)};await Promise.all(Array.from(a).map(async u=>{var z;if(d.has(u)||this.blocked.has(u))return;if(this._cache.has(u)){let w=this._cache.get(u);w&&$(u,w);return}let h=u;for(let w of this.config.preprocess)h=w(u);if(this.isBlocked(h))return g(h);let m=this.matchVariants(u,h);if(!m||this.isBlocked(m[1]))return g(u);let b={rawSelector:u,currentSelector:m[1],theme:this.config.theme,generator:this,variantHandlers:m[2],constructCSS:(...w)=>this.constructCustomCSS(b,...w),options:this.config.options},E=this.expandShortcut(m[1],b);if(E){let w=await this.stringifyShortcuts(m,b,E[0],E[1]);if(w==null?void 0:w.length)return $(u,w)}else{let w=(z=await this.parseUtil(m,b))==null?void 0:z.map(S=>this.stringifyUtil(S)).filter(Pe);if(w==null?void 0:w.length)return $(u,w)}this._cache.set(u,null)})),o&&this.config.preflights.forEach(u=>{u.layer&&l.add(u.layer)});let p={},v=this.config.sortLayers(Array.from(l).sort((u,h)=>{var m,b;return((m=this.config.layers[u])!=null?m:0)-((b=this.config.layers[h])!=null?b:0)||u.localeCompare(h)})),y=u=>{if(p[u])return p[u];let h=Array.from(x).sort((m,b)=>{var w;let E=this.parentOrders.get(m[0]),z=this.parentOrders.get(b[0]);return E!==void 0&&z!==void 0?E-z:(w=m[0])==null?void 0:w.localeCompare(b[0]||"")}).map(([m,b])=>{let E=b.length,z=b.filter(S=>{var P;return(((P=S[4])==null?void 0:P.layer)||"default")===u}).sort((S,P)=>{var K;return S[0]-P[0]||((K=S[1])==null?void 0:K.localeCompare(P[1]||""))||0}).map(S=>[S[1]?Xr(S[1],n):S[1],S[2]]);if(!z.length)return;let w=z.reverse().map(([S,P],K)=>{if(S&&this.config.mergeSelectors)for(let Q=K+1;Q<E;Q++){let _=z[Q];if(_&&_[0]&&_[1]===P)return _[0]=`${_[0]},${S}`,null}return S?`${S}{${P}}`:P}).filter(Boolean).reverse().join(f);return m?`${m}{${f}${w}${f}}`:w}).filter(Boolean).join(f);return o&&(h=[...this.config.preflights.filter(m=>(m.layer||"default")===u).map(m=>m.getCSS()).filter(Boolean),h].join(f)),p[u]=!s&&h?`/* layer: ${u} */${f}${h}`:h},j=(u=v,h)=>u.filter(m=>!(h==null?void 0:h.includes(m))).map(m=>y(m)||"").filter(Boolean).join(f);return{get css(){return j()},layers:v,getLayers:j,getLayer:y,matched:d}}matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!1,a={rawSelector:t,theme:this.config.theme,generator:this,options:this.config.options};for(;;){s=!1;for(let f of this.config.variants){if(!f.multiPass&&n.has(f))continue;let l=f.match(i,a);if(!!l&&(typeof l=="string"&&(l={matcher:l}),l)){i=l.matcher,Array.isArray(l.parent)&&this.parentOrders.set(l.parent[0],l.parent[1]),o.push(l),n.add(f),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o]}applyVariants(t,r=t[4],n=t[1]){let o=[...r].sort((a,f)=>(a.order||0)-(f.order||0)),i=o.reduce((a,f)=>{var l;return((l=f.body)==null?void 0:l.call(f,a))||a},t[2]),s={selector:o.reduce((a,f)=>{var l;return((l=f.selector)==null?void 0:l.call(f,a,i))||a},Zr(n)),entries:i,parent:o.reduce((a,f)=>Array.isArray(f.parent)?f.parent[0]:f.parent||a,void 0)};for(let a of this.config.postprocess)a(s);return s}constructCustomCSS(t,r,n){r=L(r);let{selector:o,entries:i,parent:s}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),a=`${o}{${B(i)}}`;return s?`${s}{${a}}`:a}async parseUtil(t,r,n=!1){var d,x;let[o,i,s]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[i];if(a&&a[1]&&(n||!((d=a[2])==null?void 0:d.internal)))return[[a[0],o,L(a[1]),a[2],s]];r.variantHandlers=s;let{rulesDynamic:f,rulesSize:l}=this.config;for(let $=l;$>=0;$--){let g=f[$];if(!g||((x=g[2])==null?void 0:x.internal)&&!n)continue;let[p,v,y]=g,j=i.match(p);if(!j)continue;let u=await v(j,r);if(!u)continue;if(typeof u=="string")return[[$,u,y]];let h=Ce(u).filter(m=>m.length);if(h.length)return h.map(m=>[$,o,m,y,s])}}stringifyUtil(t){if(!t)return;if(oe(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:o}=this.applyVariants(t),i=B(n);if(!!i)return[t[0],r,i,o,t[3]]}expandShortcut(t,r,n=3){if(n===0)return;let o,i;for(let s of this.config.shortcuts)if(Te(s)){if(s[0]===t){o=o||s[2],i=s[1];break}}else{let a=t.match(s[0]);if(a&&(i=s[1](a,r)),i){o=o||s[2];break}}if(typeof i=="string"&&(i=je(i).split(/\s+/g)),!!i)return[i.flatMap(s=>{var a;return((a=this.expandShortcut(s,r,n-1))==null?void 0:a[0])||[s]}).filter(s=>s!==""),o]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new ie,s=(await Promise.all(I(n).map(async l=>{let d=await this.parseUtil(l,r,!0);return d||Me(`unmatched utility "${l}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((l,d)=>l[0]-d[0]),[a,,f]=t;for(let l of s){if(oe(l))continue;let{selector:d,entries:x,parent:$}=this.applyVariants(l,[...l[4],...f],a),g=i.getFallback(d,$,[[],l[0]]);g[0].push(...x),l[0]>g[1]&&(g[1]=l[0])}return i.map(([l,d],x,$)=>{let g=B(l);if(g)return[d,x,g,$,o]}).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function De(e,t){return new _e(e,t)}var Le=/ \$\$ /,Yr=e=>e.match(Le);function Xr(e,t){return Yr(e)?e.replace(Le,t?` ${t} `:" "):t?`${t} ${e}`:e}function Zr(e){return e.startsWith("[")?e.replace(/^\[(.+?)(~?=)"(.*)"\]$/,(t,r,n,o)=>`[${W(r)}${n}"${W(o)}"]`):`.${W(e)}`}var ce={};Fr(ce,{auto:()=>sn,bracket:()=>pn,cssvar:()=>dn,fraction:()=>un,global:()=>gn,number:()=>ln,numberWithUnit:()=>on,percent:()=>fn,properties:()=>hn,px:()=>cn,rem:()=>an,time:()=>mn});var Jr=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow"],Qr=["backround-position","left","right","top","bottom","object-position"],en=["max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing"],tn=["stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip"],rn=[...Jr,...Qr,...en,...tn],ae=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i,nn=/^(-?[0-9.]+)$/i,He=/^(px)$/i;function on(e){let t=e.match(ae);if(!t)return;let[,,r]=t;if(r)return e}function sn(e){if(e==="auto"||e==="a")return"auto"}function an(e){if(e.match(He))return`1${e}`;let t=e.match(ae);if(!t)return;let[,r,n]=t;if(n)return e;let o=parseFloat(r);if(!Number.isNaN(o))return`${o/4}rem`}function cn(e){if(e.match(He))return`1${e}`;let t=e.match(ae);if(!t)return;let[,r,n]=t;if(n)return e;let o=parseFloat(r);if(!Number.isNaN(o))return`${o}px`}function ln(e){if(!nn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return t}function fn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${t/100}`}function un(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${n*100}%`}function pn(e){if(e&&e[0]==="["&&e[e.length-1]==="]")return e.slice(1,-1).replace(/_/g," ").replace(/calc\((.*)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function dn(e){if(e.startsWith("$"))return`var(--${e.slice(1)})`}function mn(e){let t=Number(e.replace(/(s|ms)$/,""));if(!isNaN(t))return/(s|ms)$/.test(e)?e:`${e}ms`}function gn(e){if(["inherit","initial","revert","unset"].includes(e))return e}function hn(e){if(e!==void 0){for(let t of e.split(","))if(!rn.includes(t))return;return e}}var c=Oe(ce);var C=(e,t)=>{let r=new RegExp(`^${D(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}}},A=(e,t)=>{let r=new RegExp(`^${D(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}}};function Ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}var M=e=>([t,r,n])=>{let o=c.bracket.auto.rem.fraction.cssvar(n);if(o!==void 0)return T[r].map(i=>[`${e}${i}`,o])},le=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},F=(e,t)=>{let[r,n]=e.split(/(?:\/|:)/),o=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=o;if(!i)return;let s,a=c.bracket(r),f=a||r;f.startsWith("#")?s=f.slice(1):f.startsWith("hex-")?s=f.slice(4):r.startsWith("$")&&(s=c.cssvar(r)),s=s||a;let l="DEFAULT";if(!s){let g,[p]=o.slice(-1);p.match(/^\d+$/)?(l=p,g=le(t,o.slice(0,-1))):(g=le(t,o),g||([,l=l]=o,g=le(t,[i]))),typeof g=="string"?s=g:l&&g&&(s=g[l])}let d=Ve(s),x=n?n[0]==="["?c.bracket.percent(n):parseFloat(n)/100:d==null?void 0:d[3],$=x!=null&&!Number.isNaN(x);return d&&($?d[3]=typeof x=="string"&&!x.includes("%")?parseFloat(x):x:d.splice(3)),{opacity:n,name:i,no:l,color:s,rgba:d,alpha:$?x:void 0}},R=(e,t)=>([,r],{theme:n})=>{var l;let o=F(r,n);if(!o)return;let{alpha:i,opacity:s,color:a,rgba:f}=o;if(!!a)return f?i!=null?{[e]:`rgba(${f.join(",")})`}:{[`--un-${t}-opacity`]:(l=s&&c.cssvar(s))!=null?l:1,[e]:`rgba(${f.join(",")},var(--un-${t}-opacity))`}:{[e]:a.replace("%alpha",`${i||1}`)}};var Ke=[[/^outline-(?:width-|size-)?(.+)$/,([,e])=>({"outline-width":c.bracket.fraction.auto.rem(e)})],[/^outline-(?:color-)?(.+)$/,R("outline-color","outline-color")],[/^outline-offset-(.+)$/,([,e])=>({"outline-offset":c.bracket.fraction.auto.rem(e)})],["outline",{"outline-style":"solid"}],[/^outline-(auto|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e})],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],We=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Be=[[/^will-change-(.+)/,([,e])=>({"will-change":c.properties.global(e)})]];var Ie=[[/^border$/,fe],[/^(?:border|b)()-(.+)$/,fe],[/^(?:border|b)-([^-]+)(?:-(.+))?$/,fe],[/^(?:border|b)()-size-(.+)$/,ue],[/^(?:border|b)-([^-]+)-size-(.+)$/,ue],[/^(?:border|b)()-(.+)$/,Ge],[/^(?:border|b)-([^-]+)(?:-(.+))?$/,Ge],[/^(?:border|b)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-border-opacity":c.bracket.percent(e)})],[/^(?:border|b)-([^-]+)-op(?:acity)?-?(.+)$/,([,e,t])=>{let r=c.bracket.percent(t),n=T[e];if(r!==void 0&&n)return n.map(o=>[`--un-border${o}-opacity`,r])}],[/^(?:border-)?(?:rounded|rd)$/,pe],[/^(?:border-)?(?:rounded|rd)(?:-(.+))?$/,pe],[/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?(?:-(.+))?$/,pe],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-none",{"border-style":"none"}]],xn=(e,{theme:t})=>{var r;return e!==void 0&&!!((r=F(e,t))==null?void 0:r.color)},bn=e=>([,t],{theme:r})=>{var f,l;let n=F(t,r);if(!n)return;let{alpha:o,opacity:i,color:s,rgba:a}=n;if(!!s)return a?o!=null?{[`border${e}-color`]:`rgba(${a.join(",")})`}:e===""?{"--un-border-opacity":(f=i&&c.cssvar(i))!=null?f:1,[`border${e}-color`]:`rgba(${a.join(",")},var(--un-border${e}-opacity))`}:{"--un-border-opacity":(l=i&&c.cssvar(i))!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:`rgba(${a.join(",")},var(--un-border${e}-opacity))`}:{[`border${e}-color`]:s.replace("%alpha",`${o||1}`)}};function fe(e){let t=ue(e);if(t)return[...t,["border-style","solid"]]}function ue([,e,t]){let[r,n="1"]=T[e]?[e,t]:["",e],o=c.bracket.px(n);if(o!==void 0)return T[r].map(i=>[`border${i}-width`,o])}function Ge([,e,t],r){if(xn(t,r))return Object.assign({},...T[T[e]?e:""].map(n=>bn(n)(["",t],r)))}function pe([,e,t],{theme:r}){var s;let[n,o="DEFAULT"]=ee[e]?[e,t]:["",e],i=((s=r.borderRadius)==null?void 0:s[o])||c.auto.rem.fraction.bracket.cssvar(o);if(i!==void 0)return ee[n].map(a=>[`border${a}-radius`,i])}var qe=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],Ye=[[/^(?:text|color|c)-(.+)$/,R("color","text")],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent.cssvar(e)})]],Xe=[[/^bg-(.+)$/,R("background-color","bg")],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)})]];var Ze=e=>c.properties(e)||(e==="all"?e:void 0),Je=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e="all",t="150"])=>{let r=Ze(e);if(r)return{"transition-property":r,"transition-timing-function":"cubic-bezier(0.4,0,0.2,1)","transition-duration":`${t}ms`}}],[/^duration-(\d+)$/,([,e="150"])=>({"transition-duration":`${e}ms`})],["ease",{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}],["ease-linear",{"transition-timing-function":"linear"}],["ease-in",{"transition-timing-function":"cubic-bezier(0.4, 0, 1, 1)"}],["ease-out",{"transition-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}],["ease-in-out",{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}],[/^transition-delay-(\d+)$/,([,e])=>({"transition-delay":`${e}ms`})],[/^transition-duration-(\d+)$/,([,e])=>({"transition-duration":`${e}ms`})],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||Ze(e)})],["transition-property-none",{"transition-property":"none"}],["property-none",{"transition-property":"none"}],["transition-none",{transition:"none"}]];var Qe=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^flex-(\[.+\])$/,([,e])=>({flex:c.bracket(e).replace(/\d+\/\d+/,t=>c.fraction(t))})],["flex-shrink",{"flex-shrink":1}],["flex-shrink-0",{"flex-shrink":0}],["flex-grow",{"flex-grow":1}],["flex-grow-0",{"flex-grow":0}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var yn={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},et=[[/^font-(\w+)$/,([,e],{theme:t})=>{var r;return{"font-family":(r=t.fontFamily)==null?void 0:r[e]}}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=c.bracket.auto.rem(e);if(r)return{"font-size":r};let n=V((o=t.fontSize)==null?void 0:o[e]);if(n==null?void 0:n[0]){let[i,s]=n;return{"font-size":i,"line-height":s}}}],[/^text-size-(.+)$/,([,e])=>({"font-size":c.bracket.auto.rem(e)})],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":yn[e]||c.number(e)})],[/^(?:leading|lh)-([^-]+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.bracket.auto.rem(e)}}],[/^tracking-([^-]+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||c.bracket.auto.rem(e)}}],[/^word-spacing-([^-]+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||c.bracket.auto.rem(e)}}]],tt=[[/^tab-?([^-]*)$/,([,e])=>{let t=c.bracket.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],rt=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.fraction.auto.rem(e)}}]],nt=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.px(e)}}],[/^text-stroke-(.+)$/,R("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)})]],ot=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-shadow":((r=t.textShadow)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar(e)}}]];var it={"":"","x-":"column-","y-":"row-"},st=[[/^(?:flex-|grid-)?gap-(x-|y-)?([^-]+)$/,([,e="",t])=>{let r=c.bracket.auto.rem(t);if(r!=null)return{[`grid-${it[e]}gap`]:r,[`${it[e]}gap`]:r}}]];var wn=(e,t)=>{var r;return V(((r=t.fontSize)==null?void 0:r[e])||c.bracket.auto.rem(e))[0]},at=(e,t)=>e==="min"?"min-content":e==="max"?"max-content":e==="fr"?"minmax(0,1fr)":wn(e,t),ct=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?col-start-([\w.-]+)$/,([,e])=>({"grid-column-start":e})],[/^(?:grid-)?col-end-([\w.]+)$/,([,e])=>({"grid-column-end":e})],[/^(?:grid-)?row-start-([\w.-]+)$/,([,e])=>({"grid-row-start":e})],[/^(?:grid-)?row-end-([\w.-]+)$/,([,e])=>({"grid-row-end":e})],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t])=>{let r=e==="row"?"grid-row":"grid-column",n=c.bracket(t);if(n)return{[r]:n};let o=t.split("-");if(o.length===1&&o[0]==="auto")return{[r]:o[0]};if(o[0]==="span"){if(o[1]==="full")return{[r]:"1/-1"};if(n=c.number.bracket(o[1]),n)return{[r]:`span ${n}/span ${n}`}}}],[/^(?:grid-)?auto-cols-([\w.-]+)$/,([,e],{theme:t})=>({"grid-auto-columns":at(e,t)})],[/^(?:grid-)?auto-flow-([\w.-]+)$/,([,e])=>({"grid-auto-flow":e.replace("col","column").split("-").join(" ")})],[/^(?:grid-)?auto-rows-([\w.-]+)$/,([,e],{theme:t})=>({"grid-auto-rows":at(e,t)})],[/^grid-cols-(.+)$/,([,e])=>({"grid-template-columns":c.bracket(e)})],[/^grid-rows-(.+)$/,([,e])=>({"grid-template-rows":c.bracket(e)})],[/^grid-cols-minmax-([\w.-]+)$/,([,e])=>({"grid-template-columns":`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-rows-minmax-([\w.-]+)$/,([,e])=>({"grid-template-rows":`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-cols-(\d+)$/,([,e])=>({"grid-template-columns":`repeat(${e},minmax(0,1fr))`})],[/^grid-rows-(\d+)$/,([,e])=>({"grid-template-rows":`repeat(${e},minmax(0,1fr))`})]];var lt=["auto","hidden","visible","scroll"],ft=[[/^(?:overflow|of)-(.+)$/,([,e])=>lt.includes(e)?{overflow:e}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>lt.includes(t)?{[`overflow-${e}`]:t}:void 0]];var G=["auto","start","end","center","stretch"],de=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],ut=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],...G.map(e=>[`justify-items-${e}`,{"justify-items":e}]),...G.map(e=>[`justify-self-${e}`,{"justify-self":e}])],pt=[[/^order-(.+)$/,([,e])=>({order:c.bracket.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],dt=[["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-center",{"align-content":"center"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}]],mt=[["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-center",{"place-content":"center"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],...G.map(e=>[`place-items-${e}`,{"place-items":e}]),...G.map(e=>[`place-self-${e}`,{"place-self":e}])];function gt(e){var t;return(t={auto:"auto",full:"100%"}[e])!=null?t:c.bracket.fraction.cssvar.auto.rem(e)}var ht=[[/^(?:position-|pos-)?(top|left|right|bottom|inset)-(.+)$/,([,e,t])=>({[e]:gt(t)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,([,e,t])=>{let r=gt(t);if(r!=null&&e in T)return T[e].map(n=>[n.slice(1),r])}]],xt=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],bt=[["z-auto",{"z-index":"auto"}],[/^z-([^-]+)$/,([,e])=>({"z-index":c.number(e)})]],yt=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var q="var(--un-empty,/*!*/ /*!*/)",wt=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}]],$t=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],vt=[[/^cursor-(.+)$/,([,e])=>({cursor:e})]],St=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Rt=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],kt=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Ct=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e})]],Et=[["content-empty",{content:'""'}]],Tt=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-word",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Vt=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],At=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],zt=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],Pt=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var jt=[[/^ring-?(.*)$/,([,e])=>{let t=c.px(e||"1");if(t)return{"--un-ring-inset":q,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-color":"rgba(59, 130, 246, .5)","--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":`var(--un-ring-inset) 0 0 0 calc(${t} + var(--un-ring-offset-width)) var(--un-ring-color)`,"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(.+)$/,([,e])=>({"--un-ring-offset-width":c.px(e||"1")})],[/^ring-(.+)$/,R("--un-ring-color","ring")],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)})],[/^ring-offset-(.+)$/,R("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)})],["ring-inset",{"--un-ring-inset":"inset"}]];var $n=(e,t)=>{let r=F(e,t);if(!r)return;let{color:n,rgba:o}=r;if(!!n)return o?{"--un-shadow-color":`${o.slice(0,3).join(",")}`}:{"--un-shadow-color":n}},Ut=[[/^shadow-?(.*)$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return{"--un-shadow-inset":q,"--un-shadow-color":"0,0,0","--un-shadow":r,"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}}],[/^shadow-(.+)$/,([,e],{theme:t})=>$n(e,t)],["shadow-inset",{"--un-shadow-inset":"inset"}]];function Mt(e,t){return`${e?`${e}-`:""}${t==="h"?"height":"width"}`}function vn(e,t,r,n){var i;let o=`${t==="h"?"height":"width"}`;return e&&(o=`${e}${Ne(o)}`),(i=r[o])==null?void 0:i[n]}var Ot=[[/^(?:(min|max)-)?(w|h)-(.+)$/,([,e,t,r],{theme:n})=>{let o=vn(e,t,n,r)||c.bracket.cssvar.fraction.auto.rem(r);if(o!=null)return{[Mt(e,t)]:o}}],[/^(?:(min|max)-)?(w)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var i;let o=(i=n.breakpoints)==null?void 0:i[r];if(o!=null)return{[Mt(e,t)]:o}}]],Ft=[["aspect-ratio-auto",{"aspect-ratio":"auto"}],[/^aspect-ratio-(.+)$/,([,e])=>({"aspect-ratio":(/^\d+\/\d+$/.test(e)?e:null)||c.bracket.cssvar.number(e)})]];var _t=[[/^pa?()-?(-?.+)$/,M("padding")],[/^p-?([xy])-?(-?.+)$/,M("padding")],[/^p-?([rltbse])-?(-?.+)$/,M("padding")]],Dt=[[/^ma?()-?(-?.+)$/,M("margin")],[/^m-?([xy])-?(-?.+)$/,M("margin")],[/^m-?([rltbse])-?(-?.+)$/,M("margin")]];var Y="$$no-pseudo",X=Object.fromEntries(["any-link","link","visited","target",["open","[open]"],"hover","active","focus-visible","focus-within","focus","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type"].map(V)),Sn=["placeholder","before","after","first-letter","first-line","selection","marker"],Rn=["not","is","where","has"],kn=/(part-\[(.+)]:)(.+)/,Cn=new RegExp(`^(${Sn.join("|")})[:-]`),me=Object.keys(X).join("|"),Lt=Rn.join("|"),En=new RegExp(`^(${me})[:-]`),Tn=new RegExp(`^(${Lt})-(${me})[:-]`);function Z(e){return!e.find(t=>t[0]===Y)||void 0}var Ht=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${Lt})-)?(${me}))[:-]`),o=new RegExp(`^${D(t)}:`);return i=>{let s=i.match(n);if(s){let a=X[s[3]]||`:${s[3]}`;return s[2]&&(a=`:${s[2]}(${a})`),{matcher:i.slice(s[1].length+e.length+2),selector:(f,l)=>Z(l)&&o.test(f)?f.replace(o,`${t}${a}:`):`${t}${a}${r}${f}`}}}},Nt=e=>{let t=e.match(Cn);if(t)return{matcher:e.slice(t[1].length+1),selector:r=>`${r}::${t[1]}`}},Kt={match:e=>{let t=e.match(En);if(t){let r=X[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[1].length+1),selector:(n,o)=>Z(o)&&`${n}${r}`}}},multiPass:!0},Wt={match:e=>{let t=e.match(Tn);if(t){let r=t[1],n=X[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[1].length+t[2].length+2),selector:(o,i)=>Z(i)&&`${o}:${r}(${n})`}}},multiPass:!0},Bt={match:(e,{options:{attributifyPseudo:t}})=>{let r=Ht("group",t?'[group=""]':".group"," ")(e);if(r)return r;let n=Ht("peer",t?'[peer=""]':".peer","~")(e);if(n)return n},multiPass:!0},It={match:e=>{let t=e.match(kn);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:(n,o)=>Z(o)&&`${n}::${r}`}}},multiPass:!0};var Vn={transform:"rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))",[Y]:""},Gt={transform:"rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z))",[Y]:""},O=k({"--un-rotate":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},Gt),qt=[["transform",O],[/^preserve-(3d|flat)$/,([,e])=>({"transform-style":e==="3d"?`preserve-${e}`:e})],[/^translate()-(.+)$/,Yt],[/^translate-([xyz])-(.+)$/,Yt],[/^scale()-(.+)$/,Xt],[/^scale-([xyz])-(.+)$/,Xt],[/^rotate-(.+)$/,zn],[/^rotate-((?!\[)[^-]+?)(?:deg)?$/,An],[/^skew-([xy])-(.+)$/,jn],[/^skew-([xy])-((?!\[)[^-]+?)(?:deg)?$/,Pn],["transform-gpu",Vn],["transform-cpu",Gt],["transform-none",{transform:"none"}],["origin-center",{"transform-origin":"center"}],["origin-top",{"transform-origin":"top"}],["origin-top-right",{"transform-origin":"top right"}],["origin-right",{"transform-origin":"right"}],["origin-bottom-right",{"transform-origin":"bottom right"}],["origin-bottom",{"transform-origin":"bottom"}],["origin-bottom-left",{"transform-origin":"bottom left"}],["origin-left",{"transform-origin":"left"}],["origin-top-left",{"transform-origin":"top left"}]];function Yt([,e,t]){let r=c.bracket.fraction.auto.rem(t);if(r!=null)return[O,te[e].map(n=>[`--un-translate${n}`,r])]}function Xt([,e,t]){let r=c.bracket.fraction.percent(t);if(r!=null)return[O,te[e].map(n=>[`--un-scale${n}`,r])]}function An([,e]){let t=c.bracket.number(e);if(t!=null)return[O,{"--un-rotate":`${t}deg`}]}function zn([,e]){let t=c.bracket(e);if(t!=null)return[O,{"--un-rotate":t}]}function Pn([,e,t]){let r=c.bracket.number(t);if(r!=null)return[O,{[`--un-skew-${e}`]:`${r}deg`}]}function jn([,e,t]){let r=c.bracket(t);if(r!=null)return[O,{[`--un-skew-${e}`]:r}]}var Un={visible:"visibility",select:"user-select",vertical:"vertical-align",backface:"backface-visibility",whitespace:"white-space",break:"word-break",case:"text-transform",origin:"transform-origin","bg-opacity":"background-opacity",tab:"tab-size",underline:"text-decoration-thickness","underline-offset":"text-underline-offset","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows","auto-flow":"grid-auto-flow","row-start":"grid-row-start","row-end":"grid-row-end",justify:"justify-content",content:"align-content",items:"align-items",self:"align-self",object:"object-fit"},Zt=[[/^(.+)-\$(.+)$/,([,e,t])=>{let r=Un[e];if(r)return{[r]:`var(--${t})`}}]];var Jt=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
3
- ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var Qt=[["underline",{"text-decoration":"underline"}],["line-through",{"text-decoration":"line-through"}],["decoration-underline",{"text-decoration":"underline"}],["decoration-line-through",{"text-decoration":"line-through"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e])=>({"text-decoration-thickness":c.bracket.px(e)})],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e})],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=R("text-decoration-color","line")(e,t);if(r)return k({"-webkit-text-decoration-color":r["text-decoration-color"]},r)}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)})],[/^underline-offset-(.+)$/,([,e])=>({"text-underline-offset":c.auto.bracket.px(e)})],[/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)$/,([,e])=>({"text-decoration-style":e})],["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var er=[[/^fill-(.+)$/,R("fill","fill")],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)})],["fill-none",{fill:"none"}],[/^stroke-(?:size-|width-)?(.+)$/,([,e])=>({"stroke-width":c.bracket.fraction.px.number(e)})],[/^stroke-(.+)$/,R("stroke","stroke")],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)})],["stroke-none",{stroke:"none"}]];var tr=[Zt,_t,Dt,wt,qe,Xe,er,Ie,Et,et,tt,rt,Vt,Qt,nt,ot,At,ke,Ye,zt,Pt,Ut,jt,Qe,ct,st,de,Ot,Ft,vt,$t,St,Rt,Re,kt,Ct,Tt,ft,Ke,We,de,pt,ut,dt,mt,ht,xt,bt,yt,Je,qt,Be,Jt].flat(1);var ge={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values(ge).forEach(e=>{typeof e!="string"&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var rr={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"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},nr={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},or={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},ir={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},sr={DEFAULT:"0px 0px 1px rgb(0 0 0/20%), 0px 0px 1px rgb(1 0 5/10%)",sm:"1px 1px 3px rgb(36 37 47 / 25%)",md:"0px 1px 2px rgb(30 29 39 / 19%), 1px 2px 4px rgb(54 64 147 / 18%)",lg:"3px 3px 6px rgb(0 0 0 / 26%), 0 0 5px rgb(15 3 86 / 22%)",xl:"1px 1px 3px rgb(0 0 0 / 29%), 2px 4px 7px rgb(73 64 125 / 35%)",none:"none"},ar={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},he={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},cr=he;var lr={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},fr={DEFAULT:"0.25rem",none:"0px",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},ur={DEFAULT:"var(--un-shadow-inset) 0 1px 3px 0 rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 1px 2px 0 rgba(var(--un-shadow-color), 0.06)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(var(--un-shadow-color), 0.05)",md:"var(--un-shadow-inset) 0 4px 6px -1px rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 2px 4px -1px rgba(var(--un-shadow-color), 0.06)",lg:"var(--un-shadow-inset) 0 10px 15px -3px rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 4px 6px -2px rgba(var(--un-shadow-color), 0.05)",xl:"var(--un-shadow-inset) 0 20px 25px -5px rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 10px 10px -5px rgba(var(--un-shadow-color), 0.04)","2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(var(--un-shadow-color), 0.25)",inner:"inset 0 2px 4px 0 rgba(var(--un-shadow-color), 0.06)",none:"none"};var pr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},dr={DEFAULT:["0 1px 2px rgba(0, 0, 0, 0.1)","0 1px 1px rgba(0, 0, 0, 0.06)"],sm:"0 1px 1px rgba(0,0,0,0.05)",md:["0 4px 3px rgba(0, 0, 0, 0.07)","0 2px 2px rgba(0, 0, 0, 0.06)"],lg:["0 10px 8px rgba(0, 0, 0, 0.04)","0 4px 3px rgba(0, 0, 0, 0.1)"],xl:["0 20px 13px rgba(0, 0, 0, 0.03)","0 8px 5px rgba(0, 0, 0, 0.08)"],"2xl":"0 25px 25px rgba(0, 0, 0, 0.15)",none:"0 0 #0000"};var J={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",min:"min-content",max:"max-content",prose:"65ch"},mr=U(k({auto:"auto"},J),{screen:"100vw"}),xe=U(k({none:"none"},J),{screen:"100vw"}),gr=U(k({auto:"auto"},J),{screen:"100vh"}),be=U(k({none:"none"},J),{screen:"100vh"});var hr={width:mr,height:gr,maxWidth:xe,maxHeight:be,minWidth:xe,minHeight:be,colors:ge,fontFamily:rr,fontSize:nr,breakpoints:lr,borderRadius:fr,lineHeight:ar,letterSpacing:he,wordSpacing:cr,boxShadow:ur,textIndent:or,textShadow:sr,textStrokeWidth:ir,blur:pr,dropShadow:dr};var ye={},xr=(e,{theme:t})=>{let r=Object.entries(t.breakpoints||{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){ye[n]||(ye[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let s=e.match(ye[n]);if(!s)continue;let[,a]=s,f=e.slice(a.length);if(f==="container")continue;let l="min",d=1e3;return a.startsWith("lt-")?(l="max",d-=i+1):d+=i+1,a.startsWith("at-")&&i<r.length-1?{matcher:f,parent:[`@media (min-width: ${o}) and (max-width: ${r[i+1][1]})`,d]}:{matcher:f,parent:[`@media (${l}-width: ${o})`,d]}}};var br=[C("all",e=>`${e} *`),C("children",e=>`${e}>*`),C("next",e=>`${e}+*`),C("sibling",e=>`${e}+*`),C("siblings",e=>`${e}~*`),C("svg",e=>`${e} svg *`)];var yr=[(e,{options:{dark:t}})=>{if(t==="class")return C("dark",r=>`.dark $$ ${r}`)(e)},(e,{options:{dark:t}})=>{if(t==="class")return C("light",r=>`.light $$ ${r}`)(e)},(e,{options:{dark:t}})=>{if(t==="media")return A("dark","@media (prefers-color-scheme: dark)")(e)},(e,{options:{dark:t}})=>{if(t==="media")return A("light","@media (prefers-color-scheme: light)")(e)}];var wr=[C("rtl",e=>`[dir="rtl"] $$ ${e}`),C("ltr",e=>`[dir="ltr"] $$ ${e}`)];var $r={match(e){if(e.startsWith("!"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{r[1]&&(r[1]+=" !important")}),t)}}},vr={match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{var n,o;r[0].startsWith("--un-scale")||((n=r[1])==null?void 0:n.toString())==="0"||(r[1]=(o=r[1])==null?void 0:o.toString().replace(/[0-9.]+(?:[a-z]+|%)?/,i=>`-${i}`))}),t)}}},Sr=e=>{if(/^space-?([xy])-?(-?.+)$/.test(e)||/^divide-/.test(e))return{matcher:e,selector:t=>`${t}>:not([hidden])~:not([hidden])`}};var Rr=[A("motion-reduce","@media (prefers-reduced-motion: reduce)"),A("motion-safe","@media (prefers-reduced-motion: no-preference)")];var kr=[A("landscape","@media (orientation: landscape)"),A("portrait","@media (orientation: portrait)")];var Cr=A("print","@media print");var Er=[Sr,vr,$r,Cr,...kr,...Rr,xr,...br,Kt,Wt,Bt,Nt,It,...yr,...wr];var Mn=(e={})=>{var t,r;return e.dark=(t=e.dark)!=null?t:"class",e.attributifyPseudo=(r=e.attributifyPseudo)!=null?r:!1,{name:"@unocss/preset-mini",theme:hr,rules:tr,variants:Er,options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?On(e.variablePrefix):void 0}},Tr=Mn;function On(e){return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}var Fn=["v-bind:",":"],Vr=/[\s'"`;]+/g,_n=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Dn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,Ar={name:"attributify",extract({code:e,options:{ignoreAttributes:t,nonValuedAttribute:r}}){let n=Array.from(e.matchAll(_n)).flatMap(o=>Array.from((o[1]||"").matchAll(Dn))).flatMap(([,o,i,s])=>{if(t==null?void 0:t.includes(o))return[];for(let a of Fn)if(o.startsWith(a)){o=o.slice(a.length);break}return s?["class","className"].includes(o)?s.split(Vr).filter(H):s.split(Vr).filter(Boolean).map(a=>`[${o}~="${a}"]`):H(o)&&r!==!1?[`[${o}=""]`]:[]});return new Set(n)}};var Ln=/^(.+\:\!?)?(.*?)$/,zr=(e,{options:{prefix:t,prefixedOnly:r}})=>{let n=Ae(e);if(!n)return;let o=n[1];if(o.startsWith(t))o=o.slice(t.length);else if(r)return;let i=n[2],[,s="",a=i]=i.match(Ln)||[];return a==="~"||!a?`${s}${o}`:`${s}${o}-${a}`};var Hn=(e={})=>{var n,o,i,s,a;e.strict=(n=e.strict)!=null?n:!1,e.prefix=(o=e.prefix)!=null?o:"un-",e.prefixedOnly=(i=e.prefixedOnly)!=null?i:!1,e.nonValuedAttribute=(s=e.nonValuedAttribute)!=null?s:!0,e.ignoreAttributes=(a=e.ignoreAttributes)!=null?a:[];let t=[zr],r=[Ar];return e.strict||r.unshift(N),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e}},Pr=Hn;function we(e={}){var v;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}Object.assign(e,(v=window.__unocss)==null?void 0:v.runtime);let t,r=!1,n,o=De(window.__unocss||{},e.defaults),i=new Set,s;function a(){s!=null&&clearTimeout(s),s=setTimeout(f,0)}async function f(){let y=await o.generate(i);t||(t=document.createElement("style"),document.head.appendChild(t)),t.innerHTML=y.css}async function l(y){await o.applyExtractors(y,void 0,i),a()}async function d(){let y=document.body&&document.body.outerHTML;y&&await l(y)}let x=new MutationObserver(y=>{r||y.forEach(j=>{let u=j.target;if(u===t||n&&!n(u))return;let h=Array.from(u.attributes).map(b=>b.value?`${b.name}="${b.value}"`:b.name).join(" "),m=`<${u.tagName.toLowerCase()} ${h}>`;l(m)})}),$=!1;function g(){if(!$)return;let y=document.documentElement||document.body;!y||(x.observe(y,{childList:!0,subtree:!0,attributes:!0}),$=!0)}function p(){d(),g()}window.__unocss_runtime=window.__unocss_runtime={version:o.version,uno:o,extractAll:d,inspect(y){n=y},toggleObserver(y){y===void 0?r=!r:r=!!y}},p(),window.addEventListener("load",p),window.addEventListener("DOMContentLoaded",p)}we({defaults:{presets:[Tr(),Pr()]}});})();
1
+ (()=>{var Ce=Object.defineProperty,Nr=Object.defineProperties;var Lr=Object.getOwnPropertyDescriptors;var Ee=Object.getOwnPropertySymbols;var Hr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable;var Ae=(e,t,r)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Hr.call(t,r)&&Ae(e,r,t[r]);if(Ee)for(var r of Ee(t))Kr.call(t,r)&&Ae(e,r,t[r]);return e},U=(e,t)=>Nr(e,Lr(t));var Br=(e,t)=>{for(var r in t)Ce(e,r,{get:t[r],enumerable:!0})};var Wr={mid:"middle",base:"baseline",btm:"bottom"},Te=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":Wr[e]||e})]],je=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var E={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],a:[""]},oe={t:["-top-left","-top-right"],r:["-top-right","-bottom-right"],b:["-bottom-left","-bottom-right"],l:["-bottom-left","-top-left"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""]},ie={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ve=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],ze=Object.assign({},...Ve.map(e=>({[e.replace(/ /,"-")]:e})),...Ve.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function N(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ir(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var G=Ir;function L(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Pe(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>L(t)):[e]:[L(e)]}function Gr(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function q(e){return e==null?"":Gr(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function se(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ae(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=S({},r);return se(r)&&se(n)&&Object.keys(n).forEach(i=>{se(n[i])?i in r?o[i]=ae(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function H(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?H(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:H(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?H(n):n;return r}return e}function Oe(e){return typeof e[0]=="string"}function Me(e){return typeof e[0]=="string"}function A(e=[]){return Array.isArray(e)?e:[e]}function Y(e){return Array.from(new Set(e))}var qr=/^#?([\da-f]+)$/i;function Ue(e=""){let[,t]=e.match(qr)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return t.length===3||(r[3]=Math.round(r[3]/255*100)/100),r;case 6:case 8:let n=Number.parseInt(t,16);return t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255,Math.round((n&255)/255*100)/100]}}var Yr=/^\[(.+?)~?="(.*)"\]$/,Xr=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/;function Fe(e){return e.match(Yr)}function K(e=""){return Xr.test(e)}function _e(e){return typeof e=="function"?{match:e}:e}function ce(e){return e.length===3}function De(e){return e!=null}var le=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}};var Zr=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Ne(e){let t=[],r;for(;r=Zr.exec(e);){let o=r.index,i=o+r[0].length,[,s,a,f]=r,l=f.split(/\s/g).map(d=>d.replace(/^(!?)(.*)/,`$1${s}${a}$2`)).join(" ");t.unshift([o,i,l])}let n=e;return t.forEach(([o,i,s])=>{n=n.slice(0,o)+s+n.slice(i)}),n}var Le=new Set;function He(e){Le.has(e)||(console.warn("[unocss]",e),Le.add(e))}function Ke(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let s of o){let a=e[s](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var Jr=e=>e.split(/[\s'"`;>=]+/g).filter(K),B={name:"split",order:0,extract({code:e}){return new Set(Jr(e))}};function Qr(e){return A(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var en={shortcuts:-1,default:0};function fe(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(A),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],i=Object.assign(en,...n.map(p=>p.layers),e.layers);function s(p){return Y([...o.flatMap(m=>A(m[p]||[])),...A(r[p]||[])])}let a=s("extractors");a.length||a.push(B),a.sort((p,m)=>(p.order||0)-(m.order||0));let f=s("rules"),l={},d=f.length;f.forEach((p,m)=>{Oe(p)&&(l[p[0]]=[m,p[1],p[2]],delete f[m])});let x=H([...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,m)=>ae(p,m),{}));return s("extendTheme").forEach(p=>p(x)),U(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:p=>p},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:x,rulesSize:d,rulesDynamic:f,rulesStaticMap:l,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(_e),shortcuts:Qr(s("shortcuts")),extractors:a})}var Be="0.21.2";var We=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=fe(t,r)}version=Be;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=fe(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let s=await i.extract(o);s==null||s.forEach(a=>n.add(a))}return n}async generate(t,{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:s=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(u=>a.add(u));let f=s?"":`
2
+ `,l=new Set(["default"]),d=new Set,x=new Map,p=(u,h)=>{var g;this._cache.set(u,h),d.add(u);for(let b of h){let C=b[3]||"";x.has(C)||x.set(C,[]),x.get(C).push(b),((g=b[4])==null?void 0:g.layer)&&l.add(b[4].layer)}},m=u=>{this.blocked.add(u),this._cache.set(u,null)};await Promise.all(Array.from(a).map(async u=>{var z;if(d.has(u)||this.blocked.has(u))return;if(this._cache.has(u)){let $=this._cache.get(u);$&&p(u,$);return}let h=u;for(let $ of this.config.preprocess)h=$(u);if(this.isBlocked(h))return m(h);let g=this.matchVariants(u,h);if(!g||this.isBlocked(g[1]))return m(u);let b={rawSelector:u,currentSelector:g[1],theme:this.config.theme,generator:this,variantHandlers:g[2],constructCSS:(...$)=>this.constructCustomCSS(b,...$)},C=this.expandShortcut(g[1],b);if(C){let $=await this.stringifyShortcuts(g,b,C[0],C[1]);if($==null?void 0:$.length)return p(u,$)}else{let $=(z=await this.parseUtil(g,b))==null?void 0:z.map(w=>this.stringifyUtil(w)).filter(De);if($==null?void 0:$.length)return p(u,$)}this._cache.set(u,null)})),o&&this.config.preflights.forEach(u=>{u.layer&&l.add(u.layer)});let k={},O=this.config.sortLayers(Array.from(l).sort((u,h)=>{var g,b;return((g=this.config.layers[u])!=null?g:0)-((b=this.config.layers[h])!=null?b:0)||u.localeCompare(h)})),y=u=>{if(k[u])return k[u];let h=Array.from(x).sort((g,b)=>{var C,z,$;return((C=this.parentOrders.get(g[0]))!=null?C:0)-((z=this.parentOrders.get(b[0]))!=null?z:0)||(($=g[0])==null?void 0:$.localeCompare(b[0]||""))||0}).map(([g,b])=>{let C=b.length,z=b.filter(w=>{var P;return(((P=w[4])==null?void 0:P.layer)||"default")===u}).sort((w,P)=>{var I;return w[0]-P[0]||((I=w[1])==null?void 0:I.localeCompare(P[1]||""))||0}).map(w=>[w[1]?nn(w[1],n):w[1],w[2]]);if(!z.length)return;let $=z.reverse().map(([w,P],I)=>{if(w&&this.config.mergeSelectors)for(let ne=I+1;ne<C;ne++){let D=z[ne];if(D&&D[0]&&D[1]===P)return D[0]=`${D[0]},${f}${w}`,null}return w?`${w}{${P}}`:P}).filter(Boolean).reverse().join(f);return g?`${g}{${f}${$}${f}}`:$}).filter(Boolean).join(f);return o&&(h=[...this.config.preflights.filter(g=>(g.layer||"default")===u).map(g=>g.getCSS()).filter(Boolean),h].join(f)),k[u]=!s&&h?`/* layer: ${u} */${f}${h}`:h},M=(u=O,h)=>u.filter(g=>!(h==null?void 0:h.includes(g))).map(g=>y(g)||"").filter(Boolean).join(f);return{get css(){return M()},layers:O,getLayers:M,getLayer:y,matched:d}}matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){s=!1;for(let f of this.config.variants){if(!f.multiPass&&n.has(f))continue;let l=f.match(i,a);if(!!l&&(typeof l=="string"&&(l={matcher:l}),l)){i=l.matcher,Array.isArray(l.parent)&&this.parentOrders.set(l.parent[0],l.parent[1]),o.push(l),n.add(f),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o]}applyVariants(t,r=t[4],n=t[1]){let o=[...r].sort((a,f)=>(a.order||0)-(f.order||0)),i=o.reduce((a,f)=>{var l;return((l=f.body)==null?void 0:l.call(f,a))||a},t[2]),s={selector:o.reduce((a,f)=>{var l;return((l=f.selector)==null?void 0:l.call(f,a,i))||a},on(n)),entries:i,parent:o.reduce((a,f)=>Array.isArray(f.parent)?f.parent[0]:f.parent||a,void 0)};for(let a of this.config.postprocess)a(s);return s}constructCustomCSS(t,r,n){r=L(r);let{selector:o,entries:i,parent:s}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),a=`${o}{${q(i)}}`;return s?`${s}{${a}}`:a}async parseUtil(t,r,n=!1){var d,x;let[o,i,s]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[i];if(a&&a[1]&&(n||!((d=a[2])==null?void 0:d.internal)))return[[a[0],o,L(a[1]),a[2],s]];r.variantHandlers=s;let{rulesDynamic:f,rulesSize:l}=this.config;for(let p=l;p>=0;p--){let m=f[p];if(!m||((x=m[2])==null?void 0:x.internal)&&!n)continue;let[k,O,y]=m,M=i.match(k);if(!M)continue;let u=await O(M,r);if(!u)continue;if(typeof u=="string")return[[p,u,y]];let h=Pe(u).filter(g=>g.length);if(h.length)return h.map(g=>[p,o,g,y,s])}}stringifyUtil(t){if(!t)return;if(ce(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:o}=this.applyVariants(t),i=q(n);if(!!i)return[t[0],r,i,o,t[3]]}expandShortcut(t,r,n=3){if(n===0)return;let o,i;for(let s of this.config.shortcuts)if(Me(s)){if(s[0]===t){o=o||s[2],i=s[1];break}}else{let a=t.match(s[0]);if(a&&(i=s[1](a,r)),i){o=o||s[2];break}}if(typeof i=="string"&&(i=Ne(i).split(/\s+/g)),!!i)return[i.flatMap(s=>{var a;return((a=this.expandShortcut(s,r,n-1))==null?void 0:a[0])||[s]}).filter(s=>s!==""),o]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new le,s=(await Promise.all(Y(n).map(async l=>{let d=await this.parseUtil(l,r,!0);return d||He(`unmatched utility "${l}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((l,d)=>l[0]-d[0]),[a,,f]=t;for(let l of s){if(ce(l))continue;let{selector:d,entries:x,parent:p}=this.applyVariants(l,[...l[4],...f],a),m=i.getFallback(d,p,[[],l[0]]);m[0].push(...x),l[0]>m[1]&&(m[1]=l[0])}return i.map(([l,d],x,p)=>{let m=q(l);if(m)return[d,x,m,p,o]}).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Ie(e,t){return new We(e,t)}var Ge=/ \$\$ /,rn=e=>e.match(Ge);function nn(e,t){return rn(e)?e.replace(Ge,t?` ${t} `:" "):t?`${t} ${e}`:e}function on(e){return e.startsWith("[")?e.replace(/^\[(.+?)(~?=)"(.*)"\]$/,(t,r,n,o)=>`[${G(r)}${n}"${G(o)}"]`):`.${G(e)}`}var pe={};Br(pe,{auto:()=>ln,bracket:()=>gn,cssvar:()=>hn,degree:()=>bn,fraction:()=>mn,global:()=>yn,number:()=>pn,numberWithUnit:()=>cn,percent:()=>dn,properties:()=>$n,px:()=>un,rem:()=>fn,time:()=>xn});var sn=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip"],ue=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i,an=/^(-?[0-9.]+)$/i,qe=/^(px)$/i;function T(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function cn(e){let t=e.match(ue);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${T(o)}${n}`}function ln(e){if(e==="auto"||e==="a")return"auto"}function fn(e){if(e.match(qe))return`1${e}`;let t=e.match(ue);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${T(o)}${n}`:`${T(o/4)}rem`}function un(e){if(e.match(qe))return`1${e}`;let t=e.match(ue);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${T(o)}${n}`:`${T(o)}px`}function pn(e){if(!an.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return T(t)}function dn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${T(t/100)}`}function mn(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${T(n*100)}%`}function gn(e){if(e&&e[0]==="["&&e[e.length-1]==="]")return e.slice(1,-1).replace(/_/g," ").replace(/calc\((.*)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function hn(e){if(e.startsWith("$"))return`var(--${e.slice(1)})`}function xn(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${T(o)}${n}`:`${T(o)}ms`}function bn(e){let t=e.match(/^(-?[0-9.]+)(deg)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${T(o)}${n}`:`${T(o)}deg`}function yn(e){if(["inherit","initial","revert","unset"].includes(e))return e}function $n(e){for(let t of e.split(","))if(!sn.includes(t))return;return e}var c=Ke(pe);var R=(e,t)=>{let r=new RegExp(`^${N(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}}},j=(e,t)=>{let r=new RegExp(`^${N(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}}};function Ye(e){return e.charAt(0).toUpperCase()+e.slice(1)}var F=e=>([t,r,n])=>{let o=c.bracket.auto.rem.fraction.cssvar(n);if(o!==void 0)return E[r].map(i=>[`${e}${i}`,o])},de=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},_=(e,t)=>{let[r,n]=e.split(/(?:\/|:)/),o=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=o;if(!i)return;let s,a=c.bracket(r),f=a||r;f.startsWith("#")?s=f.slice(1):f.startsWith("hex-")?s=f.slice(4):r.startsWith("$")&&(s=c.cssvar(r)),s=s||a;let l="DEFAULT";if(!s){let m,[k]=o.slice(-1);k.match(/^\d+$/)?(l=k,m=de(t,o.slice(0,-1))):(m=de(t,o),m||([,l=l]=o,m=de(t,[i]))),typeof m=="string"?s=m:l&&m&&(s=m[l])}let d=Ue(s),x=n?n[0]==="["?c.bracket.percent(n):parseFloat(n)/100:d==null?void 0:d[3],p=x!=null&&!Number.isNaN(x);return d&&(p?d[3]=typeof x=="string"&&!x.includes("%")?parseFloat(x):x:d.splice(3)),{opacity:n,name:i,no:l,color:s,rgba:d,alpha:p?x:void 0}},v=(e,t)=>([,r],{theme:n})=>{var l;let o=_(r,n);if(!o)return;let{alpha:i,opacity:s,color:a,rgba:f}=o;if(!!a)return f?i!=null?{[e]:`rgba(${f.join(",")})`}:{[`--un-${t}-opacity`]:(l=s&&c.cssvar(s))!=null?l:1,[e]:`rgba(${f.join(",")},var(--un-${t}-opacity))`}:{[e]:a.replace("%alpha",`${i||1}`)}};var Xe=[[/^outline-(?:width-|size-)?(.+)$/,([,e])=>({"outline-width":c.bracket.fraction.auto.rem(e)})],[/^outline-(?:color-)?(.+)$/,v("outline-color","outline-color")],[/^outline-offset-(.+)$/,([,e])=>({"outline-offset":c.bracket.fraction.auto.rem(e)})],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e})],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Ze=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Je=[[/^will-change-(.+)/,([,e])=>({"will-change":c.properties.auto.global(e)})]];var Qe=[[/^(?:border|b)()(?:-(.+))?$/,me],[/^(?:border|b)-([xy])(?:-(.+))?$/,me],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,me],[/^(?:border|b)-()size-(.+)$/,X],[/^(?:border|b)-([xy])-size-(.+)$/,X],[/^(?:border|b)-([rltbse])-size-(.+)$/,X],[/^(?:border|b)-()(?:color-)?(.+)$/,ge],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ge],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ge],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,he],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,he],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,he],[/^(?:border-)?(?:rounded|rd)()(?:-(.+))?$/,Z],[/^(?:border-)?(?:rounded|rd)-([xy])(?:-(.+))?$/,Z],[/^(?:border-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,Z],[/^(?:border-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Z],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],wn=(e,{theme:t})=>{var r;return e!==void 0&&!!((r=_(e,t))==null?void 0:r.color)},vn=e=>([,t],{theme:r})=>{var f,l;let n=_(t,r);if(!n)return;let{alpha:o,opacity:i,color:s,rgba:a}=n;if(!!s)return a?o!=null?{[`border${e}-color`]:`rgba(${a.join(",")})`}:e===""?{"--un-border-opacity":(f=i&&c.cssvar(i))!=null?f:1,[`border${e}-color`]:`rgba(${a.join(",")},var(--un-border${e}-opacity))`}:{"--un-border-opacity":(l=i&&c.cssvar(i))!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:`rgba(${a.join(",")},var(--un-border${e}-opacity))`}:{[`border${e}-color`]:s.replace("%alpha",`${o||1}`)}};function me(e){let t=X(e);if(t)return[...t,["border-style","solid"]]}function X([,e="",t="1"]){let r=c.bracket.px(t);if(e in E&&r!=null)return E[e].map(n=>[`border${n}-width`,r])}function ge([,e="",t],r){if(e in E&&wn(t,r))return Object.assign({},...E[e].map(n=>vn(n)(["",t],r)))}function he([,e="",t]){let r=c.bracket.percent(t);if(e in E&&r!=null)return E[e].map(n=>[`--un-border${n}-opacity`,r])}function Z([,e="",t="DEFAULT"],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t])||c.auto.rem.fraction.bracket.cssvar(t);if(e in oe&&n!=null)return oe[e].map(i=>[`border${i}-radius`,n])}var et=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],tt=[[/^(?:text|color|c)-(.+)$/,v("color","text")],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent.cssvar(e)})]],rt=[[/^bg-(.+)$/,v("background-color","bg")],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)})]];var nt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform"},ot=e=>{var t;return(t=c.properties(e))!=null?t:nt[e]},it=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t="150"])=>{let r=e!=null?ot(e):[nt.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(r)return{"transition-property":r,"transition-timing-function":"cubic-bezier(0.4,0,0.2,1)","transition-duration":`${t}ms`}}],[/^(?:transition-)?delay-(.+)(?:s|ms)?$/,([,e])=>({"transition-delay":c.bracket.time(e)})],[/^(?:transition-)?duration-(.+)(?:s|ms)?$/,([,e])=>({"transition-duration":c.bracket.time(e)})],[/^ease-(.+)$/,([,e])=>({"transition-timing-function":c.bracket(e)})],["ease",{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}],["ease-linear",{"transition-timing-function":"linear"}],["ease-in",{"transition-timing-function":"cubic-bezier(0.4, 0, 1, 1)"}],["ease-out",{"transition-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}],["ease-in-out",{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||ot(e)})],["transition-property-none",{"transition-property":"none"}],["property-none",{"transition-property":"none"}],["transition-none",{transition:"none"}]];var st=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^flex-(\[.+\])$/,([,e])=>({flex:c.bracket(e).replace(/\d+\/\d+/,t=>c.fraction(t))})],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,e])=>({"flex-basis":c.bracket.fraction.auto.rem(e)})],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var Sn={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},at=[[/^font-(\w+)$/,([,e],{theme:t})=>{var r;return{"font-family":(r=t.fontFamily)==null?void 0:r[e]}}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=c.bracket.auto.rem(e);if(r)return{"font-size":r};let n=A((o=t.fontSize)==null?void 0:o[e]);if(n==null?void 0:n[0]){let[i,s]=n;return{"font-size":i,"line-height":s}}}],[/^text-size-(.+)$/,([,e])=>({"font-size":c.bracket.auto.rem(e)})],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":Sn[e]||c.number(e)})],[/^(?:leading|lh)-([^-]+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.bracket.auto.rem(e)}}],[/^tracking-([^-]+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||c.bracket.auto.rem(e)}}],[/^word-spacing-([^-]+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||c.bracket.auto.rem(e)}}]],ct=[[/^tab(?:-([^-]+))?$/,([,e])=>{let t=c.bracket.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],lt=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.fraction.auto.rem(e)}}]],ft=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.px(e)}}],[/^text-stroke-(.+)$/,v("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)})]],ut=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-shadow":((r=t.textShadow)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar(e)}}]];var pt={"":"",x:"column-",y:"row-"},dt=([,e="",t])=>{let r=c.bracket.auto.rem(t);if(r!=null)return{[`grid-${pt[e]}gap`]:r,[`${pt[e]}gap`]:r}},mt=[[/^(?:flex-|grid-)?gap-()([^-]+)$/,dt],[/^(?:flex-|grid-)?gap-([xy])-([^-]+)$/,dt]];var V=e=>e.replace("col","column"),Rn=(e,t)=>{var n;let r=(n=t.fontSize)==null?void 0:n[e];if(r!=null)return A(r)[0];switch(e){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.auto.rem(e)},gt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t])=>({[`grid-${V(e)}`]:c.bracket.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${V(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${V(e)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-([\w.-]+)$/,([,e,t])=>({[`grid-${V(e)}-start`]:t})],[/^(?:grid-)?(row|col)-end-([\w.-]+)$/,([,e,t])=>({[`grid-${V(e)}-end`]:t})],[/^(?:grid-)?auto-(rows|cols)-([\w.-]+)$/,([,e,t],{theme:r})=>({[`grid-auto-${V(e)}`]:Rn(t,r)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,e])=>({"grid-auto-flow":V(e).replace("-"," ")})],[/^grid-(rows|cols)-(\[.+\])$/,([,e,t])=>({[`grid-template-${V(e)}`]:c.bracket(t)})],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${V(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${V(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var ht=["auto","hidden","clip","visible","scroll"],xt=[[/^(?:overflow|of)-(.+)$/,([,e])=>ht.includes(e)?{overflow:e}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>ht.includes(t)?{[`overflow-${e}`]:t}:void 0]];var xe=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],bt=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}]],yt=[[/^order-(.+)$/,([,e])=>({order:c.bracket.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],$t=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}]],wt=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}]];function be(e){var t;return(t={auto:"auto",full:"100%"}[e])!=null?t:c.bracket.fraction.cssvar.auto.rem(e)}function kn([,e,t]){let r=be(t);if(r!=null&&e in E)return E[e].map(n=>[n.slice(1),r])}var vt=[[/^(?:position-|pos-)?inset-(.+)$/,([,e])=>({inset:be(e)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,kn],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t])=>({[e]:be(t)})]],St=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],Rt=[["z-auto",{"z-index":"auto"}],[/^z-([^-]+)$/,([,e])=>({"z-index":c.number(e)})]],kt=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var J="var(--un-empty,/*!*/ /*!*/)",Ct=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}]],Et=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],At=[[/^cursor-(.+)$/,([,e])=>({cursor:e})]],Tt=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],jt=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Vt=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],zt=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e})]],Pt=[["content-empty",{content:'""'}]],Ot=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Mt=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Ut=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Ft=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],_t=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var Dt=[[/^ring(?:-(.+))?$/,([,e])=>{let t=c.px(e||"1");if(t)return{"--un-ring-inset":J,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-color":"rgba(147, 197, 253, .5)","--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":`var(--un-ring-inset) 0 0 0 calc(${t} + var(--un-ring-offset-width)) var(--un-ring-color)`,"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(.+)$/,([,e])=>({"--un-ring-offset-width":c.px(e||"1")})],[/^ring-(.+)$/,v("--un-ring-color","ring")],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)})],[/^ring-offset-(.+)$/,v("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)})],["ring-inset",{"--un-ring-inset":"inset"}]];var Cn=(e,t)=>{let r=_(e,t);if(!r)return;let{color:n,rgba:o}=r;if(!!n)return o?{"--un-shadow-color":`${o.slice(0,3).join(",")}`}:{"--un-shadow-color":n}},Nt=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return{"--un-shadow-inset":J,"--un-shadow-color":"0,0,0","--un-shadow":r,"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}}],[/^shadow-(.+)$/,([,e],{theme:t})=>Cn(e,t)],["shadow-inset",{"--un-shadow-inset":"inset"}]];function Lt(e,t){return`${e?`${e}-`:""}${t==="h"?"height":"width"}`}function En(e,t,r,n){var s;let o=`${t==="h"?"height":"width"}`;e&&(o=`${e}${Ye(o)}`);let i=(s=r[o])==null?void 0:s[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.fraction.auto.rem(n)}var Ht=[[/^(?:(min|max)-)?(w|h)-(.+)$/,([,e,t,r],{theme:n})=>({[Lt(e,t)]:En(e,t,n,r)})],[/^(?:(min|max)-)?(w)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[Lt(e,t)]:(o=n.breakpoints)==null?void 0:o[r]}}]];function An(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(e)}var Kt=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":An(e)})]];var Bt=[[/^pa?()-?(-?.+)$/,F("padding")],[/^p-?([xy])-?(-?.+)$/,F("padding")],[/^p-?([rltbse])-?(-?.+)$/,F("padding")]],Wt=[[/^ma?()-?(-?.+)$/,F("margin")],[/^m-?([xy])-?(-?.+)$/,F("margin")],[/^m-?([rltbse])-?(-?.+)$/,F("margin")]];var Q="$$no-pseudo",ee=Object.fromEntries(["any-link","link","visited","target",["open","[open]"],"hover","active","focus-visible","focus-within","focus","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type"].map(A)),It=Object.fromEntries(["placeholder","before","after","first-letter","first-line","selection","marker",["file","::file-selector-button"]].map(A)),Tn=["not","is","where","has"],jn=Object.keys(It).join("|"),ye=Object.keys(ee).join("|"),Gt=Tn.join("|"),Vn=/(part-\[(.+)]:)(.+)/,zn=new RegExp(`^(${jn})[:-]`),Pn=new RegExp(`^(${ye})[:-]`),On=new RegExp(`^(${Gt})-(${ye})[:-]`);function te(e){return!e.find(t=>t[0]===Q)||void 0}var qt=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${Gt})-)?(${ye}))[:-]`),o=new RegExp(`^${N(t)}:`);return i=>{let s=i.match(n);if(s){let a=ee[s[3]]||`:${s[3]}`;return s[2]&&(a=`:${s[2]}(${a})`),{matcher:i.slice(s[1].length+e.length+2),selector:(f,l)=>te(l)&&o.test(f)?f.replace(o,`${t}${a}:`):`${t}${a}${r}${f}`}}}},Yt=e=>{let t=e.match(zn);if(t){let r=It[t[1]]||`::${t[1]}`;return{matcher:e.slice(t[1].length+1),selector:n=>`${n}${r}`}}},Xt={match:e=>{let t=e.match(Pn);if(t){let r=ee[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[1].length+1),selector:(n,o)=>te(o)&&`${n}${r}`}}},multiPass:!0},Zt={match:e=>{let t=e.match(On);if(t){let r=t[1],n=ee[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[1].length+t[2].length+2),selector:(o,i)=>te(i)&&`${o}:${r}(${n})`}}},multiPass:!0},Jt=(e={})=>{let t=!!(e==null?void 0:e.attributifyPseudo);return[{match:qt("group",t?'[group=""]':".group"," "),multiPass:!0},{match:qt("peer",t?'[peer=""]':".peer","~"),multiPass:!0}]},Qt={match:e=>{let t=e.match(Vn);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:(n,o)=>te(o)&&`${n}::${r}`}}},multiPass:!0};var Mn={transform:"rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))",[Q]:""},er={transform:"rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z))",[Q]:""},W=S({"--un-rotate":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},er),tr=[["transform",W],[/^origin-([-\w]{3,})$/,([,e])=>({"transform-origin":ze[e]})],[/^translate-()(.+)$/,rr],[/^translate-([xyz])-(.+)$/,rr],[/^rotate-(.+)$/,Un],[/^skew-()(.+)$/,or],[/^skew-([xy])-(.+)$/,or],[/^scale-()(.+)$/,nr],[/^scale-([xyz])-(.+)$/,nr],["preserve-3d",{"transform-style":"preserve-3d"}],["preserve-flat",{"transform-style":"flat"}],["transform-gpu",Mn],["transform-cpu",er],["transform-none",{transform:"none"}]];function rr([,e,t]){let r=c.bracket.fraction.auto.rem(t);if(r!=null)return[W,ie[e].map(n=>[`--un-translate${n}`,r])]}function nr([,e,t]){let r=c.bracket.fraction.percent(t);if(r!=null)return[W,ie[e].map(n=>[`--un-scale${n}`,r])]}function Un([,e]){let t=c.bracket.degree(e);if(t!=null)return[W,{"--un-rotate":t}]}function or([,e,t]){let r=c.bracket.degree(t);if(r!=null)return[W,{[`--un-skew-${e}`]:r}]}var Fn={visible:"visibility",select:"user-select",vertical:"vertical-align",backface:"backface-visibility",whitespace:"white-space",break:"word-break",case:"text-transform",origin:"transform-origin","bg-opacity":"background-opacity",tab:"tab-size",underline:"text-decoration-thickness","underline-offset":"text-underline-offset","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows","auto-flow":"grid-auto-flow","row-start":"grid-row-start","row-end":"grid-row-end",justify:"justify-content",content:"align-content",items:"align-items",self:"align-self",object:"object-fit"},ir=[[/^(.+)-\$(.+)$/,([,e,t])=>{let r=Fn[e];if(r)return{[r]:`var(--${t})`}}]];var sr=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
3
+ ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var ar=[["underline",{"text-decoration-line":"underline"}],["overline",{"text-decoration-line":"overline"}],["line-through",{"text-decoration-line":"line-through"}],["decoration-underline",{"text-decoration-line":"underline"}],["decoration-line-through",{"text-decoration-line":"line-through"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e])=>({"text-decoration-thickness":c.bracket.px(e)})],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e})],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=v("text-decoration-color","line")(e,t);if(r)return S({"-webkit-text-decoration-color":r["text-decoration-color"]},r)}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)})],[/^underline-offset-(.+)$/,([,e])=>({"text-underline-offset":c.auto.bracket.px(e)})],[/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)$/,([,e])=>({"text-decoration-style":e})],["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var cr=[[/^fill-(.+)$/,v("fill","fill")],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)})],["fill-none",{fill:"none"}],[/^stroke-(?:size-|width-)?(.+)$/,([,e])=>({"stroke-width":c.bracket.fraction.px.number(e)})],[/^stroke-(.+)$/,v("stroke","stroke")],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)})],["stroke-none",{stroke:"none"}]];var lr=[ir,Bt,Wt,Ct,et,rt,cr,Qe,Pt,at,ct,lt,Mt,ar,ft,ut,Ut,je,tt,Ft,_t,Nt,Dt,st,gt,mt,xe,Ht,Kt,At,Et,Tt,jt,Te,Vt,zt,Ot,xt,Xe,Ze,xe,yt,bt,$t,wt,vt,St,Rt,kt,it,tr,Je,sr].flat(1);var $e={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values($e).forEach(e=>{typeof e!="string"&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var fr={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"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},ur={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},pr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},dr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},mr={DEFAULT:"0px 0px 1px rgb(0 0 0/20%), 0px 0px 1px rgb(1 0 5/10%)",sm:"1px 1px 3px rgb(36 37 47 / 25%)",md:"0px 1px 2px rgb(30 29 39 / 19%), 1px 2px 4px rgb(54 64 147 / 18%)",lg:"3px 3px 6px rgb(0 0 0 / 26%), 0px 0px 5px rgb(15 3 86 / 22%)",xl:"1px 1px 3px rgb(0 0 0 / 29%), 2px 4px 7px rgb(73 64 125 / 35%)",none:"none"},gr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},we={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},hr=we;var xr={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},br={DEFAULT:"0.25rem",none:"0px",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},yr={DEFAULT:"var(--un-shadow-inset) 0 1px 3px 0 rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 1px 2px -1px rgba(var(--un-shadow-color), 0.1)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(var(--un-shadow-color), 0.05)",md:"var(--un-shadow-inset) 0 4px 6px -1px rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 2px 4px -2px rgba(var(--un-shadow-color), 0.1)",lg:"var(--un-shadow-inset) 0 10px 15px -3px rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 4px 6px -4px rgba(var(--un-shadow-color), 0.1)",xl:"var(--un-shadow-inset) 0 20px 25px -5px rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 8px 10px -6px rgba(var(--un-shadow-color), 0.1)","2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(var(--un-shadow-color), 0.25)",inner:"inset 0 2px 4px 0 rgba(var(--un-shadow-color), 0.05)",none:"0 0 #0000"};var $r={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},wr={DEFAULT:["0 1px 2px rgba(0, 0, 0, 0.1)","0 1px 1px rgba(0, 0, 0, 0.06)"],sm:"0 1px 1px rgba(0, 0, 0, 0.05)",md:["0 4px 3px rgba(0, 0, 0, 0.07)","0 2px 2px rgba(0, 0, 0, 0.06)"],lg:["0 10px 8px rgba(0, 0, 0, 0.04)","0 4px 3px rgba(0, 0, 0, 0.1)"],xl:["0 20px 13px rgba(0, 0, 0, 0.03)","0 8px 5px rgba(0, 0, 0, 0.08)"],"2xl":"0 25px 25px rgba(0, 0, 0, 0.15)",none:"0 0 #0000"};var re={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},vr=U(S({auto:"auto"},re),{screen:"100vw"}),ve=U(S({none:"none"},re),{screen:"100vw"}),Sr=U(S({auto:"auto"},re),{screen:"100vh"}),Se=U(S({none:"none"},re),{screen:"100vh"});var Rr={width:vr,height:Sr,maxWidth:ve,maxHeight:Se,minWidth:ve,minHeight:Se,colors:$e,fontFamily:fr,fontSize:ur,breakpoints:xr,borderRadius:br,lineHeight:gr,letterSpacing:we,wordSpacing:hr,boxShadow:yr,textIndent:pr,textShadow:mr,textStrokeWidth:dr,blur:$r,dropShadow:wr};var Re={},kr=(e,{theme:t})=>{let r=Object.entries(t.breakpoints||{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){Re[n]||(Re[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let s=e.match(Re[n]);if(!s)continue;let[,a]=s,f=e.slice(a.length);if(f==="container")continue;let l="min",d=1e3;return a.startsWith("lt-")?(l="max",d-=i+1):d+=i+1,a.startsWith("at-")&&i<r.length-1?{matcher:f,parent:[`@media (min-width: ${o}) and (max-width: ${r[i+1][1]})`,d]}:{matcher:f,parent:[`@media (${l}-width: ${o})`,d]}}};var Cr=[R("all",e=>`${e} *`),R("children",e=>`${e}>*`),R("next",e=>`${e}+*`),R("sibling",e=>`${e}+*`),R("siblings",e=>`${e}~*`),R("svg",e=>`${e} svg *`)];var Er=(e={})=>(e==null?void 0:e.dark)==="class"?[R("dark",t=>`.dark $$ ${t}`),R("light",t=>`.light $$ ${t}`)]:[j("dark","@media (prefers-color-scheme: dark)"),j("light","@media (prefers-color-scheme: light)")];var Ar=[R("rtl",e=>`[dir="rtl"] $$ ${e}`),R("ltr",e=>`[dir="ltr"] $$ ${e}`)];var Tr={match(e){if(e.startsWith("!"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{r[1]&&(r[1]+=" !important")}),t)}}},jr={match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{var n,o;r[0].startsWith("--un-scale")||((n=r[1])==null?void 0:n.toString())==="0"||(r[1]=(o=r[1])==null?void 0:o.toString().replace(/[0-9.]+(?:[a-z]+|%)?/,i=>`-${i}`))}),t)}}};var Vr=[j("motion-reduce","@media (prefers-reduced-motion: reduce)"),j("motion-safe","@media (prefers-reduced-motion: no-preference)")];var zr=[j("landscape","@media (orientation: landscape)"),j("portrait","@media (orientation: portrait)")];var Pr=j("print","@media print");var Or=e=>[jr,Tr,Pr,...zr,...Vr,kr,...Cr,Xt,Zt,...Jt(e),Yt,Qt,...Er(e),...Ar];var _n=(e={})=>{var t,r;return e.dark=(t=e.dark)!=null?t:"class",e.attributifyPseudo=(r=e.attributifyPseudo)!=null?r:!1,{name:"@unocss/preset-mini",theme:Rr,rules:lr,variants:Or(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?Dn(e.variablePrefix):void 0}},Mr=_n;function Dn(e){return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}var Nn=["v-bind:",":"],Ur=/[\s'"`;]+/g,Ln=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Hn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,Fr=e=>{var n,o;let t=(n=e==null?void 0:e.ignoreAttributes)!=null?n:[],r=(o=e==null?void 0:e.nonValuedAttribute)!=null?o:!0;return{name:"attributify",extract({code:i}){let s=Array.from(i.matchAll(Ln)).flatMap(a=>Array.from((a[1]||"").matchAll(Hn))).flatMap(([,a,f,l])=>{if(t.includes(a))return[];for(let d of Nn)if(a.startsWith(d)){a=a.slice(d.length);break}return l?["class","className"].includes(a)?l.split(Ur).filter(K):l.split(Ur).filter(Boolean).map(d=>`[${a}~="${d}"]`):K(a)&&r!==!1?[`[${a}=""]`]:[]});return new Set(s)}}};var Kn=/^(.+\:\!?)?(.*?)$/,_r=(e={})=>{var n,o;let t=(n=e.prefix)!=null?n:"un-",r=(o=e.prefixedOnly)!=null?o:!1;return i=>{let s=Fe(i);if(!s)return;let a=s[1];if(a.startsWith(t))a=a.slice(t.length);else if(r)return;let f=s[2],[,l="",d=f]=f.match(Kn)||[];return d==="~"||!d?`${l}${a}`:`${l}${a}-${d}`}};var Bn=(e={})=>{var n,o,i,s,a;e.strict=(n=e.strict)!=null?n:!1,e.prefix=(o=e.prefix)!=null?o:"un-",e.prefixedOnly=(i=e.prefixedOnly)!=null?i:!1,e.nonValuedAttribute=(s=e.nonValuedAttribute)!=null?s:!0,e.ignoreAttributes=(a=e.ignoreAttributes)!=null?a:[];let t=[_r(e)],r=[Fr(e)];return e.strict||r.unshift(B),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e}},Dr=Bn;function ke(e={}){var O;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}Object.assign(e,(O=window.__unocss)==null?void 0:O.runtime);let t,r=!1,n,o=Ie(window.__unocss||{},e.defaults),i=new Set,s;function a(){s!=null&&clearTimeout(s),s=setTimeout(f,0)}async function f(){let y=await o.generate(i);t||(t=document.createElement("style"),document.head.appendChild(t)),t.innerHTML=y.css}async function l(y){await o.applyExtractors(y,void 0,i),a()}async function d(){let y=document.body&&document.body.outerHTML;y&&await l(y)}let x=new MutationObserver(y=>{r||y.forEach(M=>{let u=M.target;if(u===t||n&&!n(u))return;let h=Array.from(u.attributes).map(b=>b.value?`${b.name}="${b.value}"`:b.name).join(" "),g=`<${u.tagName.toLowerCase()} ${h}>`;l(g)})}),p=!1;function m(){if(!p)return;let y=document.documentElement||document.body;!y||(x.observe(y,{childList:!0,subtree:!0,attributes:!0}),p=!0)}function k(){d(),m()}window.__unocss_runtime=window.__unocss_runtime={version:o.version,uno:o,extractAll:d,inspect(y){n=y},toggleObserver(y){y===void 0?r=!r:r=!!y}},k(),window.addEventListener("load",k),window.addEventListener("DOMContentLoaded",k)}ke({defaults:{presets:[Mr(),Dr()]}});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
- "version": "0.20.2",
3
+ "version": "0.21.2",
4
4
  "description": "CSS-in-JS Runtime for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -34,9 +34,9 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@unocss/core": "0.20.2",
38
- "@unocss/preset-attributify": "0.20.2",
39
- "@unocss/preset-uno": "0.20.2"
37
+ "@unocss/core": "0.21.2",
38
+ "@unocss/preset-attributify": "0.21.2",
39
+ "@unocss/preset-uno": "0.21.2"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "pnpm run build:node && pnpm run build:cdn",