@unocss/runtime 0.30.7 → 0.30.8

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.
@@ -1,4 +1,4 @@
1
- (()=>{var ie=Object.defineProperty,kn=Object.defineProperties;var wn=Object.getOwnPropertyDescriptors;var gt=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var ae=(t,e,r)=>e in t?ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))se.call(e,r)&&ae(t,r,e[r]);if(gt)for(var r of gt(e))ce.call(e,r)&&ae(t,r,e[r]);return t},T=(t,e)=>kn(t,wn(e));var le=(t,e)=>{var r={};for(var o in t)se.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&gt)for(var o of gt(t))e.indexOf(o)<0&&ce.call(t,o)&&(r[o]=t[o]);return r};var Sn=(t,e)=>{for(var r in e)ie(t,r,{get:e[r],enumerable:!0})};var Ct=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=Rn(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Ct.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Ct.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Rn(t){if(!t)return;let e=Cn(t);if(e!=null||(e=zn(t),e!=null)||(e=Tn(t),e!=null)||(e=jn(t),e!=null)||(e=Vn(t),e!=null))return e}function Cn(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function zn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Tn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var En=new RegExp(`^(${Ct.join("|")})\\((.+)\\)$`,"i");function jn(t){let e=t.match(En);if(!e)return;let[,r,o]=e,n=pe(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function Vn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=pe(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function pe(t){let e=Q(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let o=Q(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function An(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=An(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var M={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},zt=T(C({},M),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Tt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Et={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},ue=["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"],P=Object.assign({},...ue.map(t=>({[t.replace(/ /,"-")]:t})),...ue.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var bt=jt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function fe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function On(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function ht(t){return t==null?"":On(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Vt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function At(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=C({},r);return Vt(r)&&Vt(o)&&Object.keys(o).forEach(a=>{Vt(o[a])?a in r?n[a]=At(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function me(t){return typeof t[0]=="string"}function de(t){return typeof t[0]=="string"}function V(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var Mn=/^\[(.+?)~?="(.*)"\]$/,Un=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function ge(t){return t.match(Mn)}function nt(t=""){return Un.test(t)}function be(t){return typeof t=="function"?{match:t}:t}function Ot(t){return t.length===3}function he(t){return t!=null}var Mt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var xe=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ye(t){return xe.lastIndex=0,t.replace(xe,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ve=new Set;function $e(t){ve.has(t)||(console.warn("[unocss]",t),ve.add(t))}function ke(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let i=t[s](o);if(i!=null)return i}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var Pn=t=>t.split(/[\s'"`;>=]+/g).filter(nt),at={name:"split",order:0,extract({code:t}){return new Set(Pn(t))}};function _n(t){return V(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Fn={shortcuts:-1,default:0};function Ut(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(V),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(Fn,...o.map(f=>f.layers),t.layers);function s(f){return ot([...n.flatMap(x=>V(x[f]||[])),...V(r[f]||[])])}let i=s("extractors");i.length||i.push(at),i.sort((f,x)=>(f.order||0)-(x.order||0));let l=s("rules"),p={},d=l.length;l.forEach((f,x)=>{me(f)&&(p[f[0]]=[x,f[1],f[2]],delete l[x])});let u=et([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>At(f,x),{}));s("extendTheme").forEach(f=>f(u));let h={templates:ot(n.map(f=>{var x;return V((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(f=>{var x;return V((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return T(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:d,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(be),shortcuts:_n(s("shortcuts")),extractors:i})}var we="0.30.7";var Re=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ut(e,r)}version=we;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ut(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(i=>o.add(i))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),i=this.expandShortcut(s.currentSelector,s);if(i){let p=await this.stringifyShortcuts(s.variantMatch,s,i[0],i[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(d=>this.stringifyUtil(d)).filter(he);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>i.add(g));let l=s?"":`
1
+ (()=>{var ie=Object.defineProperty,kn=Object.defineProperties;var wn=Object.getOwnPropertyDescriptors;var gt=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var ae=(t,e,r)=>e in t?ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))se.call(e,r)&&ae(t,r,e[r]);if(gt)for(var r of gt(e))ce.call(e,r)&&ae(t,r,e[r]);return t},T=(t,e)=>kn(t,wn(e));var le=(t,e)=>{var r={};for(var o in t)se.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&gt)for(var o of gt(t))e.indexOf(o)<0&&ce.call(t,o)&&(r[o]=t[o]);return r};var Sn=(t,e)=>{for(var r in e)ie(t,r,{get:e[r],enumerable:!0})};var Ct=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=Rn(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Ct.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Ct.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Rn(t){if(!t)return;let e=Cn(t);if(e!=null||(e=zn(t),e!=null)||(e=Tn(t),e!=null)||(e=jn(t),e!=null)||(e=Vn(t),e!=null))return e}function Cn(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function zn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Tn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var En=new RegExp(`^(${Ct.join("|")})\\((.+)\\)$`,"i");function jn(t){let e=t.match(En);if(!e)return;let[,r,o]=e,n=pe(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function Vn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=pe(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function pe(t){let e=Q(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let o=Q(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function An(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=An(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var M={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},zt=T(C({},M),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Tt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Et={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},ue=["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"],P=Object.assign({},...ue.map(t=>({[t.replace(/ /,"-")]:t})),...ue.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var bt=jt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function fe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function On(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function ht(t){return t==null?"":On(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Vt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function At(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=C({},r);return Vt(r)&&Vt(o)&&Object.keys(o).forEach(a=>{Vt(o[a])?a in r?n[a]=At(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function me(t){return typeof t[0]=="string"}function de(t){return typeof t[0]=="string"}function V(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var Mn=/^\[(.+?)~?="(.*)"\]$/,Un=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function ge(t){return t.match(Mn)}function nt(t=""){return Un.test(t)}function be(t){return typeof t=="function"?{match:t}:t}function Ot(t){return t.length===3}function he(t){return t!=null}var Mt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var xe=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ye(t){return xe.lastIndex=0,t.replace(xe,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ve=new Set;function $e(t){ve.has(t)||(console.warn("[unocss]",t),ve.add(t))}function ke(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let i=t[s](o);if(i!=null)return i}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var Pn=t=>t.split(/[\s'"`;>=]+/g).filter(nt),at={name:"split",order:0,extract({code:t}){return new Set(Pn(t))}};function _n(t){return V(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Fn={shortcuts:-1,default:0};function Ut(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(V),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(Fn,...o.map(f=>f.layers),t.layers);function s(f){return ot([...n.flatMap(x=>V(x[f]||[])),...V(r[f]||[])])}let i=s("extractors");i.length||i.push(at),i.sort((f,x)=>(f.order||0)-(x.order||0));let l=s("rules"),p={},d=l.length;l.forEach((f,x)=>{me(f)&&(p[f[0]]=[x,f[1],f[2]],delete l[x])});let u=et([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>At(f,x),{}));s("extendTheme").forEach(f=>f(u));let h={templates:ot(n.map(f=>{var x;return V((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(f=>{var x;return V((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return T(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:d,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(be),shortcuts:_n(s("shortcuts")),extractors:i})}var we="0.30.8";var Re=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ut(e,r)}version=we;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ut(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(i=>o.add(i))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),i=this.expandShortcut(s.currentSelector,s);if(i){let p=await this.stringifyShortcuts(s.variantMatch,s,i[0],i[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(d=>this.stringifyUtil(d)).filter(he);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>i.add(g));let l=s?"":`
2
2
  `,p=new Set(["default"]),d=new Set,u=new Map;await Promise.all(Array.from(i).map(async g=>{var y;if(d.has(g))return;let b=await this.parseToken(g);if(b!=null){d.add(g);for(let w of b){let j=w[3]||"";u.has(j)||u.set(j,[]),u.get(j).push(w),(y=w[4])!=null&&y.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let h={},f=this.config.sortLayers(Array.from(p).sort((g,b)=>{var y,w;return((y=this.config.layers[g])!=null?y:0)-((w=this.config.layers[b])!=null?w:0)||g.localeCompare(b)})),x={};if(n){let g={generator:this,theme:this.config.theme};x=Object.fromEntries(await Promise.all(f.map(async b=>{let w=(await Promise.all(this.config.preflights.filter(j=>(j.layer||"default")===b).map(async j=>await j.getCSS(g)))).filter(Boolean).join(l);return[b,w]})))}let $=g=>{if(h[g])return h[g];let b=Array.from(u).sort((y,w)=>{var j,A,D;return((j=this.parentOrders.get(y[0]))!=null?j:0)-((A=this.parentOrders.get(w[0]))!=null?A:0)||((D=y[0])==null?void 0:D.localeCompare(w[0]||""))||0}).map(([y,w])=>{let j=w.length,A=w.filter(m=>{var k;return(((k=m[4])==null?void 0:k.layer)||"default")===g}).sort((m,k)=>{var O,B,F;return m[0]-k[0]||(((O=m[4])==null?void 0:O.sort)||0)-(((B=k[4])==null?void 0:B.sort)||0)||((F=m[1])==null?void 0:F.localeCompare(k[1]||""))||0}).map(m=>{var k;return[m[1]?Wn(m[1],o):m[1],m[2],!!((k=m[4])!=null&&k.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!A.length)return;let D=A.reverse().map(([m,k,O],B)=>{if(!O&&m&&this.config.mergeSelectors)for(let F=B+1;F<j;F++){let N=A[F];if(N&&!N[2]&&N[0]&&N[1]===k)return N[0].push(...m),null}return m?`${[...new Set(m)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${D}${l}}`:D}).filter(Boolean).join(l);return n&&(b=[x[g],b].filter(Boolean).join(l)),h[g]=!s&&b?`/* layer: ${g} */${l}${b}`:b},z=(g=f,b)=>g.filter(y=>!(b!=null&&b.includes(y))).map(y=>$(y)||"").filter(Boolean).join(l);return{get css(){return z()},layers:f,getLayers:z,getLayer:$,matched:d}}matchVariants(e,r){let o=new Set,n=[],a=r||e,s=!1,i={rawSelector:e,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&o.has(l))continue;let p=l.match(a,i);if(!!p){typeof p=="string"&&(p={matcher:p}),a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),n.push(p),o.add(l),s=!0;break}}if(!s)break;if(n.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,a,n,o]}applyVariants(e,r=e[4],o=e[1]){let n=[...r].sort((i,l)=>(i.order||0)-(l.order||0)),a=n.reduce((i,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,i))||i},e[2]),s={selector:n.reduce((i,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,i,a))||i},Nn(o)),entries:a,parent:n.reduce((i,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||i,void 0),layer:n.reduce((i,l)=>l.layer||i,void 0),sort:n.reduce((i,l)=>l.sort||i,void 0)};for(let i of this.config.postprocess)i(s);return s}constructCustomCSS(e,r,o){r=rt(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),i=`${n}{${ht(a)}}`;return s?`${s}{${i}}`:i}async parseUtil(e,r,o=!1){var d,u;let[n,a,s]=typeof e=="string"?this.matchVariants(e):e,i=this.config.rulesStaticMap[a];if(i&&i[1]&&(o||!((d=i[2])!=null&&d.internal)))return[[i[0],n,rt(i[1]),i[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let h=p-1;h>=0;h--){let f=l[h];if(!f||((u=f[2])==null?void 0:u.internal)&&!o)continue;let[x,$,z]=f,g=a.match(x);if(!g)continue;let b=await $(g,r);if(!b)continue;if(typeof b=="string")return[[h,b,z]];let y=fe(b).filter(w=>w.length);if(y.length)return y.map(w=>[h,n,w,z,s])}}stringifyUtil(e){var h;if(!e)return;if(Ot(e))return[e[0],void 0,e[1],void 0,e[2]];let{selector:r,entries:o,parent:n,layer:a,sort:s}=this.applyVariants(e),i=ht(o);if(!i)return;let f=(h=e[3])!=null?h:{},{layer:l,sort:p}=f,d=le(f,["layer","sort"]),u=T(C({},d),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,i,n,u]}expandShortcut(e,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(de(s)){if(s[0]===e){n=n||s[2],a=s[1];break}}else{let i=e.match(s[0]);if(i&&(a=s[1](i,r)),a){n=n||s[2];break}}if(typeof a=="string"&&(a=ye(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var i;return((i=this.expandShortcut(s,r,o-1))==null?void 0:i[0])||[s]}).filter(s=>s!==""),n]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var d;let a=new Mt,s=(await Promise.all(ot(o).map(async u=>{let h=await this.parseUtil(u,r,!0);return h||$e(`unmatched utility "${u}" in shortcut "${e[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((u,h)=>u[0]-h[0]),[i,,l]=e,p=[];for(let u of s){if(Ot(u)){p.push([u[0],void 0,u[1],void 0,u[2]]);continue}let{selector:h,entries:f,parent:x,sort:$}=this.applyVariants(u,[...u[4],...l],i);a.getFallback(h,x,[[],u[0]])[0].push([f,!!((d=u[3])!=null&&d.noMerge),$!=null?$:0])}return p.concat(a.map(([u,h],f,x)=>{let $=(g,b,y)=>{let w=Math.max(...y.map(A=>A[1])),j=y.map(A=>A[0]);return(g?[j.flat(1)]:j).map(A=>{let D=ht(A);if(D)return[h,f,D,x,T(C({},n),{noMerge:b,sort:w})]})};return[[u.filter(([,g])=>g).map(([g,,b])=>[g,b]),!0],[u.filter(([,g])=>!g).map(([g,,b])=>[g,b]),!1]].map(([g,b])=>[...$(!1,b,g.filter(([y])=>y.some(w=>w[0]===E))),...$(!0,b,g.filter(([y])=>y.every(w=>w[0]!==E)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Ce(t,e){return new Re(t,e)}var ze=/ \$\$ /,Dn=t=>t.match(ze);function Wn(t,e){return Dn(t)?t.replace(ze,e?` ${e} `:" "):e?`${e} ${t}`:t}var Se=/^\[(.+?)(~?=)"(.*)"\]$/;function Nn(t){return Se.test(t)?t.replace(Se,(e,r,o,n)=>`[${bt(r)}${o}"${bt(n)}"]`):`.${bt(t)}`}var Ft={};Sn(Ft,{auto:()=>Kn,bracket:()=>Jn,bracketOfColor:()=>Qn,bracketOfLength:()=>ta,cssvar:()=>ea,degree:()=>oa,fraction:()=>Zn,global:()=>na,number:()=>Yn,numberWithUnit:()=>In,percent:()=>qn,properties:()=>aa,px:()=>Xn,rem:()=>Gn,time:()=>ra});var Hn=["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","border-radius"],Pt=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Bn=/^(-?[0-9.]+)$/i,Te=/^(px)$/i;function L(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function In(t){let e=t.match(Pt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${L(n)}${o}`}function Kn(t){if(t==="auto"||t==="a")return"auto"}function Gn(t){if(t.match(Te))return`1${t}`;let e=t.match(Pt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${L(n)}${o}`:`${L(n/4)}rem`}function Xn(t){if(t.match(Te))return`1${t}`;let e=t.match(Pt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${L(n)}${o}`:`${L(n)}px`}function Yn(t){if(!Bn.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return L(e)}function qn(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${L(e/100)}`}function Zn(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${L(o*100)}%`}function _t(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(/^\[(color|length):/i);if(o?e&&o[1]===e&&(r=t.slice(o[0].length,-1)):r=t.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,n=>n.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Jn(t){return _t(t)}function Qn(t){return _t(t,"color")}function ta(t){return _t(t,"length")}function ea(t){if(t.match(/^\$\S/))return`var(--${jt(t.slice(1))})`}function ra(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${L(n)}${o}`:`${L(n)}ms`}function oa(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${L(n)}${o}`:`${L(n)}deg`}function na(t){if(["inherit","initial","revert","unset"].includes(t))return t}function aa(t){for(let e of t.split(","))if(!Hn.includes(e))return;return t}var c=ke(Ft);var W=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},_=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:e}},autocomplete:`${t}:`}};var R=t=>([e,r,o],{theme:n})=>{var s,i;let a=(i=(s=n.spacing)==null?void 0:s[o||"DEFAULT"])!=null?i:c.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return M[r].map(l=>[`${t}${l}`,a])},Lt=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},Y=(t,e)=>{let r=t.split(/(?:\/|:)/),o,n;r[0]==="[color"?(o=r.slice(0,2).join(":"),n=r[2]):[o,n]=r;let a=o.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=a;if(!s)return;let i,l=c.bracketOfColor(o),p=l||o;p.startsWith("#")?i=p:p.startsWith("hex-")?i=`#${p.slice(4)}`:o.startsWith("$")&&(i=c.cssvar(o)),i=i||l;let d="DEFAULT";if(!i){let u,[h]=a.slice(-1);h.match(/^\d+$/)?(d=h,u=Lt(e,a.slice(0,-1))):(u=Lt(e,a),!u&&a.length<=2&&([,d=d]=a,u=Lt(e,[s]))),typeof u=="string"?i=u:d&&u&&(i=u[d])}return{opacity:n,name:s,no:d,color:i,cssColor:X(i),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},S=(t,e)=>([,r],{theme:o})=>{var l;let n=Y(r,o);if(!n)return;let{alpha:a,color:s,cssColor:i}=n;if(i)return a!=null?{[t]:U(i,a)}:{[`--un-${e}-opacity`]:(l=i.alpha)!=null?l:1,[t]:U(i,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},q=(t,e)=>{let r=[];t=V(t);for(let o=0;o<t.length;o++){let n=Q(t[o]," ",6);if(!n||n.length<3)return t;let a=X(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${U(a)})`)}return r},xt=(t,e)=>{var r;return t!=null&&!!((r=Y(t,e))!=null&&r.color)};var Ee=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o)return`@keyframes ${t}${o}
3
3
  ${r({animation:`${t}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,s,i,l,p,d,u,h,f;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let x=(l=(i=(s=e.animation)==null?void 0:s.durations)==null?void 0:i[t])!=null?l:"1s",$=(u=(d=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:d[t])!=null?u:"linear",z=(f=(h=e.animation)==null?void 0:h.properties)==null?void 0:f[t];return`@keyframes ${t}${o}
4
4
  ${r(Object.assign({animation:`${t} ${x} ${$} infinite`},z))}`}return{animation:c.bracket.cssvar(t)}}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=c.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"animation-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar(t)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=c.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var Dt=t=>([,e],{theme:r})=>{var l;let o=Y(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let i=a;switch(s&&(n!=null?i=U(s,n):i=U(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":i,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${i}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":i}}},je=[[/^bg-(.*)$/,([,t])=>{if(/^\[url\((.+)\)\]$/.test(t))return{"--un-url":`${c.bracket(t)}`,"background-image":"var(--un-url)"};if(/^\[length:(.+)\]$/.test(t)&&c.bracketOfLength(t)!=null)return{"background-size":c.bracketOfLength(t).split(" ").map(e=>c.fraction.auto.px.cssvar(e)).join(" ")}}],[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":c.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":c.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Dt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Dt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Dt("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":c.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in P)return{"--un-gradient-shape":`to ${P[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in P?`to ${P[t]}`:c.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":P[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Ve=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":t}:{"list-style-type":t}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Ae=[[/^accent-(.+)$/,S("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":c.bracket.percent(t)})]],Oe=[[/^caret-(.+)$/,S("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":c.bracket.percent(t)})]],Me=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Ue=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],Pe=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var _e=[[/^columns-(.+)$/,([,t])=>({columns:c.bracket.global.number.auto.numberWithUnit(t)})],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var ia=/@media \(min-width: (.+)\)/,Fe=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=V(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(ia))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Le=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let o=r.map(n=>`${n}:__container`);return t||o.unshift("__container"),o}]];var sa={mid:"middle",base:"baseline",btm:"bottom"},De=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":sa[t]||t}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],We=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Ne=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,S("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],He=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ca=t=>{var e;return(e=c.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Be=[[/^will-change-(.+)/,([,t])=>({"will-change":ca(t)})]];var Ie=[[/^(?:border|b)()(?:-(.+))?$/,it,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,it],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,it],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,it],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,it],[/^(?:border|b)-()(?:width|size)-(.+)$/,Z,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-()(?:color-)?(.+)$/,st,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,st],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,st],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,st],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,st],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ct,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ct],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ct],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ct],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ct],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,lt,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,lt],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,lt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,lt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,lt],["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"}]],la=t=>([,e],r)=>{var i,l;let o=Y(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${t}-color`]:U(s,n)}:t===""?{"--un-border-opacity":(i=s.alpha)!=null?i:1,[`border${t}-color`]:U(s,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:U(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function it(t,e){let r=Z(t,e);if(r)return[...r,["border-style","solid"]]}function Z([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:c.bracket.cssvar.px(e||"1");if(t in M&&o!=null)return M[t].map(s=>[`border${s}-width`,o])}function st([,t="",e],{theme:r}){if(t in M&&xt(e,r))return Object.assign({},...M[t].map(o=>la(o)(["",e],r)))}function ct([,t="",e]){let r=c.bracket.percent(e);if(t in M&&r!=null)return M[t].map(o=>[`--un-border${o}-opacity`,r])}function lt([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||c.bracket.cssvar.fraction.rem(e||"1");if(t in Tt&&o!=null)return Tt[t].map(a=>[`border${a}-radius`,o])}var Ke=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],Ge=[[/^(?:text|color|c)-(.+)$/,S("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":c.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Xe=[[/^bg-(.+)$/,S("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":c.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var yt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Ye=t=>{var e;return(e=c.properties(t))!=null?e:yt[t]},qe=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?Ye(t):[yt.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let s=(a=(n=r.duration)==null?void 0:n[e||"DEFAULT"])!=null?a:c.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys(yt).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"transition-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":c.global(t)||Ye(t)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(yt)].join("|")})`]}],["transition-none",{transition:"none"}]];var Ze=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:c.bracket(t)!=null?c.bracket(t).split(" ").map(e=>{var r;return(r=c.cssvar.fraction(e))!=null?r:e}).join(" "):c.cssvar.fraction(t)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,o;return{"flex-basis":(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}}],["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 Je={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Qe=[[/^font-(.+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||c.bracket.cssvar.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=V((o=e.fontSize)==null?void 0:o[t]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":c.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=V((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:c.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":Je[t]||c.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(Je).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],tr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=c.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],er=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],rr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.px(t)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,S("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":c.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],or=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":q(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,S("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var nr={"":"",x:"column-",y:"row-"},ar=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${nr[t]}gap`]:o,[`${nr[t]}gap`]:o}},ir=[[/^(?:flex-|grid-)?gap-?()(.+)$/,ar,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,ar,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var H=t=>t.replace("col","column"),Wt=t=>t[0]==="r"?"Row":"Column",pa=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Wt(t)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},sr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-${H(t)}`]:(n=(o=r[`grid${Wt(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${H(t)}`]:"1/-1"};let r=c.bracket.number(e);if(r!=null)return{[`grid-${H(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${H(t)}-start`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${H(t)}-end`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${H(t)}`]:pa(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":c.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":H(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-template-${H(t)}`]:(n=(o=r[`gridTemplate${Wt(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${H(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${H(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var vt=["auto","hidden","clip","visible","scroll"],cr=[[/^(?:overflow|of)-(.+)$/,([,t])=>vt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-${vt.join("|")}`,`(overflow|of)-(x|y)-${vt.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>vt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var lr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],pr=[["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"}]],ur=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],fr=[["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"}]],mr=[["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 Nt(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}function $t([,t,e],r){let o=Nt(e,r);if(o!=null&&t in zt)return zt[t].map(n=>[n.slice(1),o])}var dr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Nt(t,e)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,$t],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,$t],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,$t],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,$t],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Nt(e,r)})]],gr=[["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"}]],br=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],hr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var v="var(--un-empty,/*!*/ /*!*/)",xr=[["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"}],[/^display-(.+)$/,([,t])=>({display:c.bracket.cssvar(t)||t})]],yr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],vr=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],$r=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],kr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],wr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Sr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var Rr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Cr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var zr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],Tr=[["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 Er=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:c.px(t||"1");if(r)return[{[E]:"","--un-ring-inset":v,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--un-ring-width":r,"--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(var(--un-ring-width) + 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)"}]},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-offset-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,S("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":c.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,S("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":c.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var jr=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[E]:"","--un-shadow-inset":v,"--un-shadow":"0 0 #0000"},{"--un-shadow":q(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,S("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ua={h:"height",w:"width",inline:"inline-size",block:"block-size"};function pt(t,e){return`${t||""}${ua[e]}`}function Vr(t,e,r,o){var s;let n=pt(t,e).replace(/-(\w)/g,(i,l)=>l.toUpperCase()),a=(s=r[n])==null?void 0:s[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return c.bracket.cssvar.auto.fraction.rem(o)}var Ar=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[pt(t,e)]:Vr(t,e,o,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:o})=>({[pt(t,e)]:Vr(t,e,o,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[pt(t,e)]:(n=o.verticalBreakpoints)==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[pt(t,e)]:(n=o.breakpoints)==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function fa(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(t)}var Or=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":fa(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Mr=[[/^pa?()-?(-?.+)$/,R("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,R("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,R("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,R("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,R("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,R("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Ur=[[/^ma?()-?(-?.+)$/,R("margin")],[/^m-?xy()()$/,R("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,R("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,R("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,R("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,R("margin")]];var ma={"--un-transform":["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},Lr={"--un-transform":["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},J=T(C({"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":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},Lr),{[E]:""}),Dr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=P[t])!=null?e:c.bracket.cssvar(t)}},{autocomplete:[`transform-origin-(${Object.keys(P).join("|")})`,`origin-(${Object.keys(P).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=c.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=c.bracket.cssvar(t))!=null?r:t.length>=3?P[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Pr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Pr],[/^(?:transform-)?rotate-()(.+)$/,Fr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Fr],[/^(?:transform-)?skew-([xy])-(.+)$/,da],[/^(?:transform-)?scale-()(.+)$/,_r],[/^(?:transform-)?scale-([xyz])-(.+)$/,_r],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[J,{transform:"var(--un-transform)"}]],["transform-gpu",ma],["transform-cpu",Lr],["transform-none",{transform:"none"}]];function Pr([,t,e],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.fraction.rem(e);if(o!=null)return[J,[...Et[t].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function _r([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[J,[...Et[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Fr([,t="",e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return t?[J,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[J,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function da([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return[J,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var ga={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Wr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ga[t];if(r)return{[r]:c.cssvar(e)}}]],Nr=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var Hr=[[/^(where|\?)$/,(t,{constructCSS:e,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}}
package/core.global.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{var mt=Object.defineProperty,yt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var N=(n,t,e)=>t in n?mt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,_=(n,t)=>{for(var e in t||(t={}))W.call(t,e)&&N(n,e,t[e]);if(k)for(var e of k(t))Z.call(t,e)&&N(n,e,t[e]);return n},V=(n,t)=>yt(n,St(t));var J=(n,t)=>{var e={};for(var r in n)W.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&k)for(var r of k(n))t.indexOf(r)<0&&Z.call(n,r)&&(e[r]=n[r]);return e};function xt(n){let t=n.length,e=-1,r,i="",s=n.charCodeAt(0);for(;++e<t;){if(r=n.charCodeAt(e),r===0){i+="\uFFFD";continue}if(r===44){i+="\\2c ";continue}if(r>=1&&r<=31||r===127||e===0&&r>=48&&r<=57||e===1&&r>=48&&r<=57&&s===45){i+=`\\${r.toString(16)} `;continue}if(e===0&&t===1&&r===45){i+=`\\${n.charAt(e)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=n.charAt(e);continue}i+=`\\${n.charAt(e)}`}return i}var D=xt;function P(n){return(Array.isArray(n)?n:Object.entries(n)).filter(t=>t[1]!=null)}function Q(n){return Array.isArray(n)?n.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?n.map(t=>P(t)):[n]:[P(n)]}function Ct(n){return n.filter(([t,e],r)=>{if(t.startsWith("$$"))return!1;for(let i=r-1;i>=0;i--)if(n[i][0]===t&&n[i][1]===e)return!1;return!0})}function K(n){return n==null?"":Ct(n).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function L(n){return n&&typeof n=="object"&&!Array.isArray(n)}function z(n,t){let e=n,r=t;if(Array.isArray(e)&&Array.isArray(r))return[...e,...r];if(Array.isArray(e))return[...e];let i=_({},e);return L(e)&&L(r)&&Object.keys(r).forEach(s=>{L(r[s])?s in e?i[s]=z(e[s],r[s]):Object.assign(i,{[s]:r[s]}):Object.assign(i,{[s]:r[s]})}),i}function v(n){let t,e,r;if(Array.isArray(n)){for(e=Array(t=n.length);t--;)e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}if(Object.prototype.toString.call(n)==="[object Object]"){e={};for(t in n)t==="__proto__"?Object.defineProperty(e,t,{value:v(n[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}return n}function X(n){return typeof n[0]=="string"}function Y(n){return typeof n[0]=="string"}function O(n=[]){return Array.isArray(n)?n:[n]}function j(n){return Array.from(new Set(n))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,F="$$shortcut-no-merge";function tt(n=""){return bt.test(n)}function et(n){return typeof n=="function"?{match:n}:n}function G(n){return n.length===3}function rt(n){return n!=null}var B=class{_map=new Map;get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,r),i.get(e)}set(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,r),this}has(t,e){var r;return(r=this._map.get(t))==null?void 0:r.has(e)}delete(t,e){var r;return((r=this._map.get(t))==null?void 0:r.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([i,s])=>t(s,e,i)))}};var nt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function it(n){return nt.lastIndex=0,n.replace(nt,(t,e,r,i)=>i.split(/\s/g).map(s=>s.replace(/^(!?)(.*)/,`$1${e}${r}$2`)).join(" "))}var st=new Set;function ot(n){st.has(n)||(console.warn("[unocss]",n),st.add(n))}var Rt=n=>n.split(/[\s'"`;>=]+/g).filter(tt),H={name:"split",order:0,extract({code:n}){return new Set(Rt(n))}};function wt(n){return O(n).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(n={},t={}){let e=Object.assign({},t,n),r=(e.presets||[]).flatMap(O),i=[...r.filter(u=>u.enforce==="pre"),...r.filter(u=>!u.enforce),...r.filter(u=>u.enforce==="post")],s=Object.assign(Ut,...r.map(u=>u.layers),n.layers);function o(u){return j([...i.flatMap(h=>O(h[u]||[])),...O(e[u]||[])])}let a=o("extractors");a.length||a.push(H),a.sort((u,h)=>(u.order||0)-(h.order||0));let l=o("rules"),f={},C=l.length;l.forEach((u,h)=>{X(u)&&(f[u[0]]=[h,u[1],u[2]],delete l[h])});let g=v([...i.map(u=>u.theme||{}),e.theme||{}].reduce((u,h)=>z(u,h),{}));o("extendTheme").forEach(u=>u(g));let x={templates:j(i.map(u=>{var h;return O((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:i.map(u=>{var h;return O((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return V(_({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},e),{presets:i,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:s,theme:g,rulesSize:C,rulesDynamic:l,rulesStaticMap:f,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:x,variants:o("variants").map(et),shortcuts:wt(o("shortcuts")),extractors:a})}var at="0.30.7";var lt=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=I(t,e)}version=at;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.config=I(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,e,r=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(a=>r.add(a))}return r}makeContext(t,e){let r={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...i)=>this.constructCustomCSS(r,...i),variantMatch:e};return r}async parseToken(t,e){var l;if(this.blocked.has(t))return;let r=`${t}${e?` ${e}`:""}`;if(this._cache.has(r))return this._cache.get(r);let i=t;for(let f of this.config.preprocess)i=f(t);if(this.isBlocked(i)){this.blocked.add(t),this._cache.set(r,null);return}let s=this.matchVariants(t,i);if(!s||this.isBlocked(s[1])){this.blocked.add(t),this._cache.set(r,null);return}let o=this.makeContext(t,[e||s[0],s[1],s[2],s[3]]),a=this.expandShortcut(o.currentSelector,o);if(a){let f=await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]);if(f!=null&&f.length)return this._cache.set(r,f),f}else{let f=(l=await this.parseUtil(o.variantMatch,o))==null?void 0:l.map(C=>this.stringifyUtil(C)).filter(rt);if(f!=null&&f.length)return this._cache.set(r,f),f}this._cache.set(r,null)}async generate(t="",{id:e,scope:r,preflights:i=!0,safelist:s=!0,minify:o=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,e):t;s&&this.config.safelist.forEach(p=>a.add(p));let l=o?"":`
1
+ (()=>{var mt=Object.defineProperty,yt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var N=(n,t,e)=>t in n?mt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,_=(n,t)=>{for(var e in t||(t={}))W.call(t,e)&&N(n,e,t[e]);if(k)for(var e of k(t))Z.call(t,e)&&N(n,e,t[e]);return n},V=(n,t)=>yt(n,St(t));var J=(n,t)=>{var e={};for(var r in n)W.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&k)for(var r of k(n))t.indexOf(r)<0&&Z.call(n,r)&&(e[r]=n[r]);return e};function xt(n){let t=n.length,e=-1,r,i="",s=n.charCodeAt(0);for(;++e<t;){if(r=n.charCodeAt(e),r===0){i+="\uFFFD";continue}if(r===44){i+="\\2c ";continue}if(r>=1&&r<=31||r===127||e===0&&r>=48&&r<=57||e===1&&r>=48&&r<=57&&s===45){i+=`\\${r.toString(16)} `;continue}if(e===0&&t===1&&r===45){i+=`\\${n.charAt(e)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=n.charAt(e);continue}i+=`\\${n.charAt(e)}`}return i}var D=xt;function P(n){return(Array.isArray(n)?n:Object.entries(n)).filter(t=>t[1]!=null)}function Q(n){return Array.isArray(n)?n.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?n.map(t=>P(t)):[n]:[P(n)]}function Ct(n){return n.filter(([t,e],r)=>{if(t.startsWith("$$"))return!1;for(let i=r-1;i>=0;i--)if(n[i][0]===t&&n[i][1]===e)return!1;return!0})}function K(n){return n==null?"":Ct(n).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function L(n){return n&&typeof n=="object"&&!Array.isArray(n)}function z(n,t){let e=n,r=t;if(Array.isArray(e)&&Array.isArray(r))return[...e,...r];if(Array.isArray(e))return[...e];let i=_({},e);return L(e)&&L(r)&&Object.keys(r).forEach(s=>{L(r[s])?s in e?i[s]=z(e[s],r[s]):Object.assign(i,{[s]:r[s]}):Object.assign(i,{[s]:r[s]})}),i}function v(n){let t,e,r;if(Array.isArray(n)){for(e=Array(t=n.length);t--;)e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}if(Object.prototype.toString.call(n)==="[object Object]"){e={};for(t in n)t==="__proto__"?Object.defineProperty(e,t,{value:v(n[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}return n}function X(n){return typeof n[0]=="string"}function Y(n){return typeof n[0]=="string"}function O(n=[]){return Array.isArray(n)?n:[n]}function j(n){return Array.from(new Set(n))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,F="$$shortcut-no-merge";function tt(n=""){return bt.test(n)}function et(n){return typeof n=="function"?{match:n}:n}function G(n){return n.length===3}function rt(n){return n!=null}var B=class{_map=new Map;get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,r),i.get(e)}set(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,r),this}has(t,e){var r;return(r=this._map.get(t))==null?void 0:r.has(e)}delete(t,e){var r;return((r=this._map.get(t))==null?void 0:r.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([i,s])=>t(s,e,i)))}};var nt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function it(n){return nt.lastIndex=0,n.replace(nt,(t,e,r,i)=>i.split(/\s/g).map(s=>s.replace(/^(!?)(.*)/,`$1${e}${r}$2`)).join(" "))}var st=new Set;function ot(n){st.has(n)||(console.warn("[unocss]",n),st.add(n))}var Rt=n=>n.split(/[\s'"`;>=]+/g).filter(tt),H={name:"split",order:0,extract({code:n}){return new Set(Rt(n))}};function wt(n){return O(n).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(n={},t={}){let e=Object.assign({},t,n),r=(e.presets||[]).flatMap(O),i=[...r.filter(u=>u.enforce==="pre"),...r.filter(u=>!u.enforce),...r.filter(u=>u.enforce==="post")],s=Object.assign(Ut,...r.map(u=>u.layers),n.layers);function o(u){return j([...i.flatMap(h=>O(h[u]||[])),...O(e[u]||[])])}let a=o("extractors");a.length||a.push(H),a.sort((u,h)=>(u.order||0)-(h.order||0));let l=o("rules"),f={},C=l.length;l.forEach((u,h)=>{X(u)&&(f[u[0]]=[h,u[1],u[2]],delete l[h])});let g=v([...i.map(u=>u.theme||{}),e.theme||{}].reduce((u,h)=>z(u,h),{}));o("extendTheme").forEach(u=>u(g));let x={templates:j(i.map(u=>{var h;return O((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:i.map(u=>{var h;return O((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return V(_({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},e),{presets:i,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:s,theme:g,rulesSize:C,rulesDynamic:l,rulesStaticMap:f,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:x,variants:o("variants").map(et),shortcuts:wt(o("shortcuts")),extractors:a})}var at="0.30.8";var lt=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=I(t,e)}version=at;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.config=I(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,e,r=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(a=>r.add(a))}return r}makeContext(t,e){let r={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...i)=>this.constructCustomCSS(r,...i),variantMatch:e};return r}async parseToken(t,e){var l;if(this.blocked.has(t))return;let r=`${t}${e?` ${e}`:""}`;if(this._cache.has(r))return this._cache.get(r);let i=t;for(let f of this.config.preprocess)i=f(t);if(this.isBlocked(i)){this.blocked.add(t),this._cache.set(r,null);return}let s=this.matchVariants(t,i);if(!s||this.isBlocked(s[1])){this.blocked.add(t),this._cache.set(r,null);return}let o=this.makeContext(t,[e||s[0],s[1],s[2],s[3]]),a=this.expandShortcut(o.currentSelector,o);if(a){let f=await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]);if(f!=null&&f.length)return this._cache.set(r,f),f}else{let f=(l=await this.parseUtil(o.variantMatch,o))==null?void 0:l.map(C=>this.stringifyUtil(C)).filter(rt);if(f!=null&&f.length)return this._cache.set(r,f),f}this._cache.set(r,null)}async generate(t="",{id:e,scope:r,preflights:i=!0,safelist:s=!0,minify:o=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,e):t;s&&this.config.safelist.forEach(p=>a.add(p));let l=o?"":`
2
2
  `,f=new Set(["default"]),C=new Set,g=new Map;await Promise.all(Array.from(a).map(async p=>{var m;if(C.has(p))return;let d=await this.parseToken(p);if(d!=null){C.add(p);for(let S of d){let b=S[3]||"";g.has(b)||g.set(b,[]),g.get(b).push(S),(m=S[4])!=null&&m.layer&&f.add(S[4].layer)}}})),i&&this.config.preflights.forEach(p=>{p.layer&&f.add(p.layer)});let x={},u=this.config.sortLayers(Array.from(f).sort((p,d)=>{var m,S;return((m=this.config.layers[p])!=null?m:0)-((S=this.config.layers[d])!=null?S:0)||p.localeCompare(d)})),h={};if(i){let p={generator:this,theme:this.config.theme};h=Object.fromEntries(await Promise.all(u.map(async d=>{let S=(await Promise.all(this.config.preflights.filter(b=>(b.layer||"default")===d).map(async b=>await b.getCSS(p)))).filter(Boolean).join(l);return[d,S]})))}let U=p=>{if(x[p])return x[p];let d=Array.from(g).sort((m,S)=>{var b,R,A;return((b=this.parentOrders.get(m[0]))!=null?b:0)-((R=this.parentOrders.get(S[0]))!=null?R:0)||((A=m[0])==null?void 0:A.localeCompare(S[0]||""))||0}).map(([m,S])=>{let b=S.length,R=S.filter(c=>{var y;return(((y=c[4])==null?void 0:y.layer)||"default")===p}).sort((c,y)=>{var w,M,E;return c[0]-y[0]||(((w=c[4])==null?void 0:w.sort)||0)-(((M=y[4])==null?void 0:M.sort)||0)||((E=c[1])==null?void 0:E.localeCompare(y[1]||""))||0}).map(c=>{var y;return[c[1]?$t(c[1],r):c[1],c[2],!!((y=c[4])!=null&&y.noMerge)]}).map(c=>[c[0]==null?c[0]:[c[0]],c[1],c[2]]);if(!R.length)return;let A=R.reverse().map(([c,y,w],M)=>{if(!w&&c&&this.config.mergeSelectors)for(let E=M+1;E<b;E++){let $=R[E];if($&&!$[2]&&$[0]&&$[1]===y)return $[0].push(...c),null}return c?`${[...new Set(c)].join(`,${l}`)}{${y}}`:y}).filter(Boolean).reverse().join(l);return m?`${m}{${l}${A}${l}}`:A}).filter(Boolean).join(l);return i&&(d=[h[p],d].filter(Boolean).join(l)),x[p]=!o&&d?`/* layer: ${p} */${l}${d}`:d},T=(p=u,d)=>p.filter(m=>!(d!=null&&d.includes(m))).map(m=>U(m)||"").filter(Boolean).join(l);return{get css(){return T()},layers:u,getLayers:T,getLayer:U,matched:C}}matchVariants(t,e){let r=new Set,i=[],s=e||t,o=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){o=!1;for(let l of this.config.variants){if(!l.multiPass&&r.has(l))continue;let f=l.match(s,a);if(!!f){typeof f=="string"&&(f={matcher:f}),s=f.matcher,Array.isArray(f.parent)&&this.parentOrders.set(f.parent[0],f.parent[1]),i.push(f),r.add(l),o=!0;break}}if(!o)break;if(i.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,s,i,r]}applyVariants(t,e=t[4],r=t[1]){let i=[...e].sort((a,l)=>(a.order||0)-(l.order||0)),s=i.reduce((a,l)=>{var f;return((f=l.body)==null?void 0:f.call(l,a))||a},t[2]),o={selector:i.reduce((a,l)=>{var f;return((f=l.selector)==null?void 0:f.call(l,a,s))||a},Tt(r)),entries:s,parent:i.reduce((a,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||a,void 0),layer:i.reduce((a,l)=>l.layer||a,void 0),sort:i.reduce((a,l)=>l.sort||a,void 0)};for(let a of this.config.postprocess)a(o);return o}constructCustomCSS(t,e,r){e=P(e);let{selector:i,entries:s,parent:o}=this.applyVariants([0,r||t.rawSelector,e,void 0,t.variantHandlers]),a=`${i}{${K(s)}}`;return o?`${o}{${a}}`:a}async parseUtil(t,e,r=!1){var C,g;let[i,s,o]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[s];if(a&&a[1]&&(r||!((C=a[2])!=null&&C.internal)))return[[a[0],i,P(a[1]),a[2],o]];e.variantHandlers=o;let{rulesDynamic:l,rulesSize:f}=this.config;for(let x=f-1;x>=0;x--){let u=l[x];if(!u||((g=u[2])==null?void 0:g.internal)&&!r)continue;let[h,U,T]=u,p=s.match(h);if(!p)continue;let d=await U(p,e);if(!d)continue;if(typeof d=="string")return[[x,d,T]];let m=Q(d).filter(S=>S.length);if(m.length)return m.map(S=>[x,i,S,T,o])}}stringifyUtil(t){var x;if(!t)return;if(G(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:e,entries:r,parent:i,layer:s,sort:o}=this.applyVariants(t),a=K(r);if(!a)return;let u=(x=t[3])!=null?x:{},{layer:l,sort:f}=u,C=J(u,["layer","sort"]),g=V(_({},C),{layer:s!=null?s:l,sort:o!=null?o:f});return[t[0],e,a,i,g]}expandShortcut(t,e,r=3){if(r===0)return;let i,s;for(let o of this.config.shortcuts)if(Y(o)){if(o[0]===t){i=i||o[2],s=o[1];break}}else{let a=t.match(o[0]);if(a&&(s=o[1](a,e)),s){i=i||o[2];break}}if(typeof s=="string"&&(s=it(s).split(/\s+/g)),!!s)return[s.flatMap(o=>{var a;return((a=this.expandShortcut(o,e,r-1))==null?void 0:a[0])||[o]}).filter(o=>o!==""),i]}async stringifyShortcuts(t,e,r,i={layer:this.config.shortcutsLayer}){var C;let s=new B,o=(await Promise.all(j(r).map(async g=>{let x=await this.parseUtil(g,e,!0);return x||ot(`unmatched utility "${g}" in shortcut "${t[1]}"`),x||[]}))).flat(1).filter(Boolean).sort((g,x)=>g[0]-x[0]),[a,,l]=t,f=[];for(let g of o){if(G(g)){f.push([g[0],void 0,g[1],void 0,g[2]]);continue}let{selector:x,entries:u,parent:h,sort:U}=this.applyVariants(g,[...g[4],...l],a);s.getFallback(x,h,[[],g[0]])[0].push([u,!!((C=g[3])!=null&&C.noMerge),U!=null?U:0])}return f.concat(s.map(([g,x],u,h)=>{let U=(p,d,m)=>{let S=Math.max(...m.map(R=>R[1])),b=m.map(R=>R[0]);return(p?[b.flat(1)]:b).map(R=>{let A=K(R);if(A)return[x,u,A,h,V(_({},i),{noMerge:d,sort:S})]})};return[[g.filter(([,p])=>p).map(([p,,d])=>[p,d]),!0],[g.filter(([,p])=>!p).map(([p,,d])=>[p,d]),!1]].map(([p,d])=>[...U(!1,d,p.filter(([m])=>m.some(S=>S[0]===F))),...U(!0,d,p.filter(([m])=>m.every(S=>S[0]!==F)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function ut(n,t){return new lt(n,t)}var ft=/ \$\$ /,At=n=>n.match(ft);function $t(n,t){return At(n)?n.replace(ft,t?` ${t} `:" "):t?`${t} ${n}`:n}var ct=/^\[(.+?)(~?=)"(.*)"\]$/;function Tt(n){return ct.test(n)?n.replace(ct,(t,e,r,i)=>`[${D(e)}${r}"${D(i)}"]`):`.${D(n)}`}var Mt=n=>n.replace(/-(\w)/g,(t,e)=>e?e.toUpperCase():""),pt=n=>n.charAt(0).toUpperCase()+n.slice(1),dt=n=>n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),gt=["Webkit","Moz","ms"];function ht(n){let t={};function e(r){let i=t[r];if(i)return i;let s=Mt(r);if(s!=="filter"&&s in n)return t[r]=dt(s);s=pt(s);for(let o=0;o<gt.length;o++){let a=`${gt[o]}${s}`;if(a in n)return t[r]=dt(pt(a))}return r}return({entries:r})=>r.forEach(i=>{i[0].startsWith("--")||(i[0]=e(i[0]))})}function q(n={}){var R,A;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},e=t==null?void 0:t.runtime,r=Object.assign(n.defaults||{},e);if(e!=null&&e.autoPrefix){let c=r.postprocess;c||(c=[]),Array.isArray(c)||(c=[c]),c.unshift(ht(document.createElement("div").style)),r.postprocess=c}(R=e==null?void 0:e.configResolved)==null||R.call(e,t,r);let i,s=!0,o,a=ut(t,r),l=new Set,f,C=[],g=()=>new Promise(c=>{C.push(c),f!=null&&clearTimeout(f),f=setTimeout(()=>u().then(()=>{let y=C;C=[],y.forEach(w=>w())}),0)});function x(c=document.body){if(c.nodeType!==1)return;let y=c;y.hasAttribute("un-cloak")&&y.removeAttribute("un-cloak"),y.querySelectorAll("[un-cloak]").forEach(w=>{w.removeAttribute("un-cloak")})}async function u(){let c=await a.generate(l);i||(i=document.createElement("style"),document.documentElement.prepend(i)),i.innerHTML=c.css,l=c.matched}async function h(c){let y=l.size;await a.applyExtractors(c,void 0,l),y!==l.size&&await g()}async function U(){let c=document.body&&document.body.outerHTML;c&&(await h(c),x())}let T=new MutationObserver(c=>{s||c.forEach(async y=>{if(y.target.nodeType!==1)return;let w=y.target;if(w!==i)if(y.type==="childList")y.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let E=M;o&&!o(E)||(await h(E.outerHTML),x(E))});else{if(o&&!o(w))return;if(y.attributeName!=="un-cloak"){let M=Array.from(w.attributes).map($=>$.value?`${$.name}="${$.value}"`:$.name).join(" "),E=`<${w.tagName.toLowerCase()} ${M}>`;await h(E)}w.hasAttribute("un-cloak")&&w.removeAttribute("un-cloak")}})}),p=!1;function d(){if(p)return;let c=document.documentElement||document.body;!c||(T.observe(c,{childList:!0,subtree:!0,attributes:!0}),p=!0)}function m(){U(),d()}function S(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",m):m()}let b=window.__unocss_runtime=window.__unocss_runtime={version:a.version,uno:a,async extract(c){typeof c!="string"&&(c.forEach(y=>l.add(y)),c=""),await h(c)},extractAll:U,inspect(c){o=c},toggleObserver(c){c===void 0?s=!s:s=!!c,!p&&!s&&S()}};((A=e==null?void 0:e.ready)==null?void 0:A.call(e,b))!==!1&&(s=!1,S())}q();})();
package/full.global.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{var se=Object.defineProperty,Cn=Object.defineProperties;var zn=Object.getOwnPropertyDescriptors;var bt=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var ie=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))ce.call(e,r)&&ie(t,r,e[r]);if(bt)for(var r of bt(e))le.call(e,r)&&ie(t,r,e[r]);return t},A=(t,e)=>Cn(t,zn(e));var pe=(t,e)=>{var r={};for(var o in t)ce.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&bt)for(var o of bt(t))e.indexOf(o)<0&&le.call(t,o)&&(r[o]=t[o]);return r};var Tn=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})};function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var ht=zt;function et(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ue(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>et(e)):[t]:[et(t)]}function En(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function xt(t){return t==null?"":En(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Tt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=C({},r);return Tt(r)&&Tt(o)&&Object.keys(o).forEach(a=>{Tt(o[a])?a in r?n[a]=rt(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function tt(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?tt(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:tt(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?tt(o):o;return r}return t}function fe(t){return typeof t[0]=="string"}function me(t){return typeof t[0]=="string"}function O(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var jn=/^\[(.+?)~?="(.*)"\]$/,An=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,V="$$shortcut-no-merge";function de(t){return t.match(jn)}function nt(t=""){return An.test(t)}function ge(t){return typeof t=="function"?{match:t}:t}function Et(t){return t.length===3}function be(t){return t!=null}var jt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var he=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xe(t){return he.lastIndex=0,t.replace(he,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ye=new Set;function ve(t){ye.has(t)||(console.warn("[unocss]",t),ye.add(t))}function $e(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let i=t[s](o);if(i!=null)return i}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var Vn=t=>t.split(/[\s'"`;>=]+/g).filter(nt),at={name:"split",order:0,extract({code:t}){return new Set(Vn(t))}};function On(t){return O(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Mn={shortcuts:-1,default:0};function At(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(O),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Mn,...o.map(m=>m.layers),t.layers);function s(m){return ot([...n.flatMap(x=>O(x[m]||[])),...O(r[m]||[])])}let i=s("extractors");i.length||i.push(at),i.sort((m,x)=>(m.order||0)-(x.order||0));let l=s("rules"),p={},f=l.length;l.forEach((m,x)=>{fe(m)&&(p[m[0]]=[x,m[1],m[2]],delete l[x])});let u=tt([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,x)=>rt(m,x),{}));s("extendTheme").forEach(m=>m(u));let h={templates:ot(n.map(m=>{var x;return O((x=m.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(m=>{var x;return O((x=m.autocomplete)==null?void 0:x.extractors)}).flat().sort((m,x)=>(m.order||0)-(x.order||0))};return A(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(ge),shortcuts:On(s("shortcuts")),extractors:i})}var ke="0.30.7";var Se=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=At(e,r)}version=ke;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=At(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(i=>o.add(i))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),i=this.expandShortcut(s.currentSelector,s);if(i){let p=await this.stringifyShortcuts(s.variantMatch,s,i[0],i[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(f=>this.stringifyUtil(f)).filter(be);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>i.add(g));let l=s?"":`
1
+ (()=>{var se=Object.defineProperty,Cn=Object.defineProperties;var zn=Object.getOwnPropertyDescriptors;var bt=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var ie=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))ce.call(e,r)&&ie(t,r,e[r]);if(bt)for(var r of bt(e))le.call(e,r)&&ie(t,r,e[r]);return t},A=(t,e)=>Cn(t,zn(e));var pe=(t,e)=>{var r={};for(var o in t)ce.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&bt)for(var o of bt(t))e.indexOf(o)<0&&le.call(t,o)&&(r[o]=t[o]);return r};var Tn=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})};function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var ht=zt;function et(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ue(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>et(e)):[t]:[et(t)]}function En(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function xt(t){return t==null?"":En(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Tt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=C({},r);return Tt(r)&&Tt(o)&&Object.keys(o).forEach(a=>{Tt(o[a])?a in r?n[a]=rt(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function tt(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?tt(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:tt(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?tt(o):o;return r}return t}function fe(t){return typeof t[0]=="string"}function me(t){return typeof t[0]=="string"}function O(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var jn=/^\[(.+?)~?="(.*)"\]$/,An=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,V="$$shortcut-no-merge";function de(t){return t.match(jn)}function nt(t=""){return An.test(t)}function ge(t){return typeof t=="function"?{match:t}:t}function Et(t){return t.length===3}function be(t){return t!=null}var jt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var he=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xe(t){return he.lastIndex=0,t.replace(he,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ye=new Set;function ve(t){ye.has(t)||(console.warn("[unocss]",t),ye.add(t))}function $e(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let i=t[s](o);if(i!=null)return i}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var Vn=t=>t.split(/[\s'"`;>=]+/g).filter(nt),at={name:"split",order:0,extract({code:t}){return new Set(Vn(t))}};function On(t){return O(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Mn={shortcuts:-1,default:0};function At(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(O),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Mn,...o.map(m=>m.layers),t.layers);function s(m){return ot([...n.flatMap(x=>O(x[m]||[])),...O(r[m]||[])])}let i=s("extractors");i.length||i.push(at),i.sort((m,x)=>(m.order||0)-(x.order||0));let l=s("rules"),p={},f=l.length;l.forEach((m,x)=>{fe(m)&&(p[m[0]]=[x,m[1],m[2]],delete l[x])});let u=tt([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,x)=>rt(m,x),{}));s("extendTheme").forEach(m=>m(u));let h={templates:ot(n.map(m=>{var x;return O((x=m.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(m=>{var x;return O((x=m.autocomplete)==null?void 0:x.extractors)}).flat().sort((m,x)=>(m.order||0)-(x.order||0))};return A(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(ge),shortcuts:On(s("shortcuts")),extractors:i})}var ke="0.30.8";var Se=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=At(e,r)}version=ke;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=At(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(i=>o.add(i))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),i=this.expandShortcut(s.currentSelector,s);if(i){let p=await this.stringifyShortcuts(s.variantMatch,s,i[0],i[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(f=>this.stringifyUtil(f)).filter(be);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>i.add(g));let l=s?"":`
2
2
  `,p=new Set(["default"]),f=new Set,u=new Map;await Promise.all(Array.from(i).map(async g=>{var y;if(f.has(g))return;let b=await this.parseToken(g);if(b!=null){f.add(g);for(let w of b){let T=w[3]||"";u.has(T)||u.set(T,[]),u.get(T).push(w),(y=w[4])!=null&&y.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let h={},m=this.config.sortLayers(Array.from(p).sort((g,b)=>{var y,w;return((y=this.config.layers[g])!=null?y:0)-((w=this.config.layers[b])!=null?w:0)||g.localeCompare(b)})),x={};if(n){let g={generator:this,theme:this.config.theme};x=Object.fromEntries(await Promise.all(m.map(async b=>{let w=(await Promise.all(this.config.preflights.filter(T=>(T.layer||"default")===b).map(async T=>await T.getCSS(g)))).filter(Boolean).join(l);return[b,w]})))}let v=g=>{if(h[g])return h[g];let b=Array.from(u).sort((y,w)=>{var T,E,U;return((T=this.parentOrders.get(y[0]))!=null?T:0)-((E=this.parentOrders.get(w[0]))!=null?E:0)||((U=y[0])==null?void 0:U.localeCompare(w[0]||""))||0}).map(([y,w])=>{let T=w.length,E=w.filter(d=>{var k;return(((k=d[4])==null?void 0:k.layer)||"default")===g}).sort((d,k)=>{var j,W,M;return d[0]-k[0]||(((j=d[4])==null?void 0:j.sort)||0)-(((W=k[4])==null?void 0:W.sort)||0)||((M=d[1])==null?void 0:M.localeCompare(k[1]||""))||0}).map(d=>{var k;return[d[1]?_n(d[1],o):d[1],d[2],!!((k=d[4])!=null&&k.noMerge)]}).map(d=>[d[0]==null?d[0]:[d[0]],d[1],d[2]]);if(!E.length)return;let U=E.reverse().map(([d,k,j],W)=>{if(!j&&d&&this.config.mergeSelectors)for(let M=W+1;M<T;M++){let _=E[M];if(_&&!_[2]&&_[0]&&_[1]===k)return _[0].push(...d),null}return d?`${[...new Set(d)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${U}${l}}`:U}).filter(Boolean).join(l);return n&&(b=[x[g],b].filter(Boolean).join(l)),h[g]=!s&&b?`/* layer: ${g} */${l}${b}`:b},z=(g=m,b)=>g.filter(y=>!(b!=null&&b.includes(y))).map(y=>v(y)||"").filter(Boolean).join(l);return{get css(){return z()},layers:m,getLayers:z,getLayer:v,matched:f}}matchVariants(e,r){let o=new Set,n=[],a=r||e,s=!1,i={rawSelector:e,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&o.has(l))continue;let p=l.match(a,i);if(!!p){typeof p=="string"&&(p={matcher:p}),a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),n.push(p),o.add(l),s=!0;break}}if(!s)break;if(n.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,a,n,o]}applyVariants(e,r=e[4],o=e[1]){let n=[...r].sort((i,l)=>(i.order||0)-(l.order||0)),a=n.reduce((i,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,i))||i},e[2]),s={selector:n.reduce((i,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,i,a))||i},Fn(o)),entries:a,parent:n.reduce((i,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||i,void 0),layer:n.reduce((i,l)=>l.layer||i,void 0),sort:n.reduce((i,l)=>l.sort||i,void 0)};for(let i of this.config.postprocess)i(s);return s}constructCustomCSS(e,r,o){r=et(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),i=`${n}{${xt(a)}}`;return s?`${s}{${i}}`:i}async parseUtil(e,r,o=!1){var f,u;let[n,a,s]=typeof e=="string"?this.matchVariants(e):e,i=this.config.rulesStaticMap[a];if(i&&i[1]&&(o||!((f=i[2])!=null&&f.internal)))return[[i[0],n,et(i[1]),i[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let h=p-1;h>=0;h--){let m=l[h];if(!m||((u=m[2])==null?void 0:u.internal)&&!o)continue;let[x,v,z]=m,g=a.match(x);if(!g)continue;let b=await v(g,r);if(!b)continue;if(typeof b=="string")return[[h,b,z]];let y=ue(b).filter(w=>w.length);if(y.length)return y.map(w=>[h,n,w,z,s])}}stringifyUtil(e){var h;if(!e)return;if(Et(e))return[e[0],void 0,e[1],void 0,e[2]];let{selector:r,entries:o,parent:n,layer:a,sort:s}=this.applyVariants(e),i=xt(o);if(!i)return;let m=(h=e[3])!=null?h:{},{layer:l,sort:p}=m,f=pe(m,["layer","sort"]),u=A(C({},f),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,i,n,u]}expandShortcut(e,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(me(s)){if(s[0]===e){n=n||s[2],a=s[1];break}}else{let i=e.match(s[0]);if(i&&(a=s[1](i,r)),a){n=n||s[2];break}}if(typeof a=="string"&&(a=xe(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var i;return((i=this.expandShortcut(s,r,o-1))==null?void 0:i[0])||[s]}).filter(s=>s!==""),n]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var f;let a=new jt,s=(await Promise.all(ot(o).map(async u=>{let h=await this.parseUtil(u,r,!0);return h||ve(`unmatched utility "${u}" in shortcut "${e[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((u,h)=>u[0]-h[0]),[i,,l]=e,p=[];for(let u of s){if(Et(u)){p.push([u[0],void 0,u[1],void 0,u[2]]);continue}let{selector:h,entries:m,parent:x,sort:v}=this.applyVariants(u,[...u[4],...l],i);a.getFallback(h,x,[[],u[0]])[0].push([m,!!((f=u[3])!=null&&f.noMerge),v!=null?v:0])}return p.concat(a.map(([u,h],m,x)=>{let v=(g,b,y)=>{let w=Math.max(...y.map(E=>E[1])),T=y.map(E=>E[0]);return(g?[T.flat(1)]:T).map(E=>{let U=xt(E);if(U)return[h,m,U,x,A(C({},n),{noMerge:b,sort:w})]})};return[[u.filter(([,g])=>g).map(([g,,b])=>[g,b]),!0],[u.filter(([,g])=>!g).map(([g,,b])=>[g,b]),!1]].map(([g,b])=>[...v(!1,b,g.filter(([y])=>y.some(w=>w[0]===V))),...v(!0,b,g.filter(([y])=>y.every(w=>w[0]!==V)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Re(t,e){return new Se(t,e)}var Ce=/ \$\$ /,Pn=t=>t.match(Ce);function _n(t,e){return Pn(t)?t.replace(Ce,e?` ${e} `:" "):e?`${e} ${t}`:t}var we=/^\[(.+?)(~?=)"(.*)"\]$/;function Fn(t){return we.test(t)?t.replace(we,(e,r,o,n)=>`[${ht(r)}${o}"${ht(n)}"]`):`.${ht(t)}`}var Vt=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,ze=(t={})=>{var o,n;let e=(o=t.prefix)!=null?o:"un-",r=(n=t.prefixedOnly)!=null?n:!1;return a=>{let s=de(a);if(!s)return;let i=s[1];if(i.startsWith(e))i=i.slice(e.length);else if(r)return;let l=s[2],[,p="",f=l]=l.match(Vt)||[];return f==="~"||!f?`${p}${i}`:`${p}${i}-${f}`}};var Ln=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Dn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,Te=/[\s'"`;>]+/,Ee={name:"attributify",extract:({content:t,cursor:e})=>{let r=t.matchAll(Ln),o,n=0;for(let v of r){let[,z,g]=v,b=v.index+z.length;if(e>b&&e<=b+g.length){n=b,o=g;break}}if(!o)return null;let a=o.matchAll(Dn),s=0,i,l;for(let v of a){let[z,g,b]=v,y=n+v.index;if(e>y&&e<=y+z.length){s=y,i=g,l=b==null?void 0:b.slice(1);break}}if(!i||i==="class"||i==="className")return null;if(l===void 0)return{extracted:i,resolveReplacement(v){return{start:s,end:s+i.length,replacement:v}}};let p=s+i.length+2,f=Te.exec(l),u=0,h;for(;f;){let[v]=f;if(e>p+u&&e<=p+u+f.index){h=l.slice(u,u+f.index);break}u+=f.index+v.length,f=Te.exec(l.slice(u))}h===void 0&&(h=l.slice(u));let[,m="",x]=h.match(Vt)||[];return{extracted:`${m}${i}-${x}`,transformSuggestions(v){return v.filter(z=>z.startsWith(`${m}${i}-`)).map(z=>m+z.slice(m.length+i.length+1))},resolveReplacement(v){return{start:u+p,end:u+p+h.length,replacement:m+v.slice(m.length+i.length+1)}}}}};var Wn=["v-bind:",":"],je=/[\s'"`;]+/g,Nn=/<\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,Ae=t=>{var o,n;let e=(o=t==null?void 0:t.ignoreAttributes)!=null?o:[],r=(n=t==null?void 0:t.nonValuedAttribute)!=null?n:!0;return{name:"attributify",extract({code:a}){let s=Array.from(a.matchAll(Nn)).flatMap(i=>Array.from((i[1]||"").matchAll(Hn))).flatMap(([,i,l,p])=>{if(e.includes(i))return[];for(let f of Wn)if(i.startsWith(f)){i=i.slice(f.length);break}return p?["class","className"].includes(i)?p.split(je).filter(nt):p.split(je).filter(Boolean).map(f=>`[${i}~="${f}"]`):nt(i)&&r!==!1?[`[${i}=""]`]:[]});return new Set(s)}}};var Bn=(t={})=>{var n,a,s,i,l;t.strict=(n=t.strict)!=null?n:!1,t.prefix=(a=t.prefix)!=null?a:"un-",t.prefixedOnly=(s=t.prefixedOnly)!=null?s:!1,t.nonValuedAttribute=(i=t.nonValuedAttribute)!=null?i:!0,t.ignoreAttributes=(l=t.ignoreAttributes)!=null?l:[];let e=[ze(t)],r=[Ae(t)],o=[Ee];return t.strict||r.unshift(at),{name:"@unocss/preset-attributify",variants:e,extractors:r,options:t,autocomplete:{extractors:o}}},Ve=Bn;var Ot=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=In(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Ot.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function F(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Ot.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function In(t){if(!t)return;let e=Kn(t);if(e!=null||(e=Gn(t),e!=null)||(e=Xn(t),e!=null)||(e=qn(t),e!=null)||(e=Zn(t),e!=null))return e}function Kn(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function Gn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Xn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=it(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var Yn=new RegExp(`^(${Ot.join("|")})\\((.+)\\)$`,"i");function qn(t){let e=t.match(Yn);if(!e)return;let[,r,o]=e,n=Oe(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function Zn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=Oe(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function Oe(t){let e=it(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let o=it(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function Jn(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function it(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=Jn(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var P={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Mt=A(C({},P),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Ut={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Pt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Me=["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"],L=Object.assign({},...Me.map(t=>({[t.replace(/ /,"-")]:t})),...Me.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));var Lt={};Tn(Lt,{auto:()=>ra,bracket:()=>ca,bracketOfColor:()=>la,bracketOfLength:()=>pa,cssvar:()=>ua,degree:()=>ma,fraction:()=>sa,global:()=>da,number:()=>aa,numberWithUnit:()=>ea,percent:()=>ia,properties:()=>ga,px:()=>na,rem:()=>oa,time:()=>fa});var Qn=["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","border-radius"],_t=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,ta=/^(-?[0-9.]+)$/i,Ue=/^(px)$/i;function N(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function ea(t){let e=t.match(_t);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${N(n)}${o}`}function ra(t){if(t==="auto"||t==="a")return"auto"}function oa(t){if(t.match(Ue))return`1${t}`;let e=t.match(_t);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n/4)}rem`}function na(t){if(t.match(Ue))return`1${t}`;let e=t.match(_t);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}px`}function aa(t){if(!ta.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return N(e)}function ia(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${N(e/100)}`}function sa(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${N(o*100)}%`}function Ft(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(/^\[(color|length):/i);if(o?e&&o[1]===e&&(r=t.slice(o[0].length,-1)):r=t.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,n=>n.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function ca(t){return Ft(t)}function la(t){return Ft(t,"color")}function pa(t){return Ft(t,"length")}function ua(t){if(t.match(/^\$\S/))return`var(--${zt(t.slice(1))})`}function fa(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}ms`}function ma(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}deg`}function da(t){if(["inherit","initial","revert","unset"].includes(t))return t}function ga(t){for(let e of t.split(","))if(!Qn.includes(e))return;return t}var c=$e(Lt);var H=(t,e)=>{let r=new RegExp(`^${Q(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},D=(t,e)=>{let r=new RegExp(`^${Q(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:e}},autocomplete:`${t}:`}};var R=t=>([e,r,o],{theme:n})=>{var s,i;let a=(i=(s=n.spacing)==null?void 0:s[o||"DEFAULT"])!=null?i:c.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return P[r].map(l=>[`${t}${l}`,a])},Dt=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},Y=(t,e)=>{let r=t.split(/(?:\/|:)/),o,n;r[0]==="[color"?(o=r.slice(0,2).join(":"),n=r[2]):[o,n]=r;let a=o.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=a;if(!s)return;let i,l=c.bracketOfColor(o),p=l||o;p.startsWith("#")?i=p:p.startsWith("hex-")?i=`#${p.slice(4)}`:o.startsWith("$")&&(i=c.cssvar(o)),i=i||l;let f="DEFAULT";if(!i){let u,[h]=a.slice(-1);h.match(/^\d+$/)?(f=h,u=Dt(e,a.slice(0,-1))):(u=Dt(e,a),!u&&a.length<=2&&([,f=f]=a,u=Dt(e,[s]))),typeof u=="string"?i=u:f&&u&&(i=u[f])}return{opacity:n,name:s,no:f,color:i,cssColor:X(i),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},S=(t,e)=>([,r],{theme:o})=>{var l;let n=Y(r,o);if(!n)return;let{alpha:a,color:s,cssColor:i}=n;if(i)return a!=null?{[t]:F(i,a)}:{[`--un-${e}-opacity`]:(l=i.alpha)!=null?l:1,[t]:F(i,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},q=(t,e)=>{let r=[];t=O(t);for(let o=0;o<t.length;o++){let n=it(t[o]," ",6);if(!n||n.length<3)return t;let a=X(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${F(a)})`)}return r},yt=(t,e)=>{var r;return t!=null&&!!((r=Y(t,e))!=null&&r.color)};var Pe=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o)return`@keyframes ${t}${o}
3
3
  ${r({animation:`${t}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,s,i,l,p,f,u,h,m;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let x=(l=(i=(s=e.animation)==null?void 0:s.durations)==null?void 0:i[t])!=null?l:"1s",v=(u=(f=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:f[t])!=null?u:"linear",z=(m=(h=e.animation)==null?void 0:h.properties)==null?void 0:m[t];return`@keyframes ${t}${o}
4
4
  ${r(Object.assign({animation:`${t} ${x} ${v} infinite`},z))}`}return{animation:c.bracket.cssvar(t)}}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=c.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"animation-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar(t)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=c.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var Wt=t=>([,e],{theme:r})=>{var l;let o=Y(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let i=a;switch(s&&(n!=null?i=F(s,n):i=F(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":i,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${i}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":i}}},_e=[[/^bg-(.*)$/,([,t])=>{if(/^\[url\((.+)\)\]$/.test(t))return{"--un-url":`${c.bracket(t)}`,"background-image":"var(--un-url)"};if(/^\[length:(.+)\]$/.test(t)&&c.bracketOfLength(t)!=null)return{"background-size":c.bracketOfLength(t).split(" ").map(e=>c.fraction.auto.px.cssvar(e)).join(" ")}}],[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":c.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":c.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Wt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Wt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Wt("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":c.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in L)return{"--un-gradient-shape":`to ${L[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in L?`to ${L[t]}`:c.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":L[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Fe=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":t}:{"list-style-type":t}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Le=[[/^accent-(.+)$/,S("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":c.bracket.percent(t)})]],De=[[/^caret-(.+)$/,S("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":c.bracket.percent(t)})]],We=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Ne=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],He=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Be=[[/^columns-(.+)$/,([,t])=>({columns:c.bracket.global.number.auto.numberWithUnit(t)})],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var ba=/@media \(min-width: (.+)\)/,Ie=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=O(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(ba))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Ke=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let o=r.map(n=>`${n}:__container`);return t||o.unshift("__container"),o}]];var ha={mid:"middle",base:"baseline",btm:"bottom"},Ge=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":ha[t]||t}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Xe=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Ye=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,S("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],qe=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],xa=t=>{var e;return(e=c.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Ze=[[/^will-change-(.+)/,([,t])=>({"will-change":xa(t)})]];var Je=[[/^(?:border|b)()(?:-(.+))?$/,st,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,st],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,st],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,st],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,st],[/^(?:border|b)-()(?:width|size)-(.+)$/,Z,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-()(?:color-)?(.+)$/,ct,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ct],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ct],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ct],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ct],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,lt,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,lt],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,lt],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,lt],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,lt],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,pt,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,pt],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,pt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,pt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,pt],["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"}]],ya=t=>([,e],r)=>{var i,l;let o=Y(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${t}-color`]:F(s,n)}:t===""?{"--un-border-opacity":(i=s.alpha)!=null?i:1,[`border${t}-color`]:F(s,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:F(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function st(t,e){let r=Z(t,e);if(r)return[...r,["border-style","solid"]]}function Z([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:c.bracket.cssvar.px(e||"1");if(t in P&&o!=null)return P[t].map(s=>[`border${s}-width`,o])}function ct([,t="",e],{theme:r}){if(t in P&&yt(e,r))return Object.assign({},...P[t].map(o=>ya(o)(["",e],r)))}function lt([,t="",e]){let r=c.bracket.percent(e);if(t in P&&r!=null)return P[t].map(o=>[`--un-border${o}-opacity`,r])}function pt([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||c.bracket.cssvar.fraction.rem(e||"1");if(t in Ut&&o!=null)return Ut[t].map(a=>[`border${a}-radius`,o])}var Qe=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],tr=[[/^(?:text|color|c)-(.+)$/,S("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":c.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],er=[[/^bg-(.+)$/,S("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":c.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var vt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},rr=t=>{var e;return(e=c.properties(t))!=null?e:vt[t]},or=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?rr(t):[vt.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let s=(a=(n=r.duration)==null?void 0:n[e||"DEFAULT"])!=null?a:c.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys(vt).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"transition-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":c.global(t)||rr(t)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(vt)].join("|")})`]}],["transition-none",{transition:"none"}]];var nr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:c.bracket(t)!=null?c.bracket(t).split(" ").map(e=>{var r;return(r=c.cssvar.fraction(e))!=null?r:e}).join(" "):c.cssvar.fraction(t)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,o;return{"flex-basis":(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}}],["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 ar={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},ir=[[/^font-(.+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||c.bracket.cssvar.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=O((o=e.fontSize)==null?void 0:o[t]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":c.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=O((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:c.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":ar[t]||c.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(ar).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],sr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=c.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],cr=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],lr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.px(t)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,S("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":c.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],pr=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":q(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,S("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var ur={"":"",x:"column-",y:"row-"},fr=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${ur[t]}gap`]:o,[`${ur[t]}gap`]:o}},mr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,fr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,fr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var B=t=>t.replace("col","column"),Nt=t=>t[0]==="r"?"Row":"Column",va=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Nt(t)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},dr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-${B(t)}`]:(n=(o=r[`grid${Nt(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${B(t)}`]:"1/-1"};let r=c.bracket.number(e);if(r!=null)return{[`grid-${B(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${B(t)}-start`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${B(t)}-end`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${B(t)}`]:va(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":c.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":B(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-template-${B(t)}`]:(n=(o=r[`gridTemplate${Nt(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${B(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${B(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var $t=["auto","hidden","clip","visible","scroll"],gr=[[/^(?:overflow|of)-(.+)$/,([,t])=>$t.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-${$t.join("|")}`,`(overflow|of)-(x|y)-${$t.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>$t.includes(e)?{[`overflow-${t}`]:e}:void 0]];var br=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],hr=[["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"}]],xr=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],yr=[["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"}]],vr=[["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 Ht(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}function kt([,t,e],r){let o=Ht(e,r);if(o!=null&&t in Mt)return Mt[t].map(n=>[n.slice(1),o])}var $r=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Ht(t,e)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,kt],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,kt],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,kt],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,kt],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Ht(e,r)})]],kr=[["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"}]],wr=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],Sr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var $="var(--un-empty,/*!*/ /*!*/)",Rr=[["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"}],[/^display-(.+)$/,([,t])=>({display:c.bracket.cssvar(t)||t})]],Cr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],zr=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],Tr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Er=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],jr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Ar=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var Vr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Or=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Mr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],Ur=[["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 Pr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:c.px(t||"1");if(r)return[{[V]:"","--un-ring-inset":$,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--un-ring-width":r,"--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(var(--un-ring-width) + 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)"}]},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-offset-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,S("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":c.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,S("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":c.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var _r=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[V]:"","--un-shadow-inset":$,"--un-shadow":"0 0 #0000"},{"--un-shadow":q(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,S("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var $a={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ut(t,e){return`${t||""}${$a[e]}`}function Fr(t,e,r,o){var s;let n=ut(t,e).replace(/-(\w)/g,(i,l)=>l.toUpperCase()),a=(s=r[n])==null?void 0:s[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return c.bracket.cssvar.auto.fraction.rem(o)}var Lr=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[ut(t,e)]:Fr(t,e,o,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:o})=>({[ut(t,e)]:Fr(t,e,o,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[ut(t,e)]:(n=o.verticalBreakpoints)==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[ut(t,e)]:(n=o.breakpoints)==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function ka(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(t)}var Dr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":ka(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Wr=[[/^pa?()-?(-?.+)$/,R("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,R("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,R("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,R("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,R("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,R("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Nr=[[/^ma?()-?(-?.+)$/,R("margin")],[/^m-?xy()()$/,R("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,R("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,R("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,R("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,R("margin")]];var wa={"--un-transform":["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},Kr={"--un-transform":["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},J=A(C({"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":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},Kr),{[V]:""}),Gr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=L[t])!=null?e:c.bracket.cssvar(t)}},{autocomplete:[`transform-origin-(${Object.keys(L).join("|")})`,`origin-(${Object.keys(L).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=c.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=c.bracket.cssvar(t))!=null?r:t.length>=3?L[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Hr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Hr],[/^(?:transform-)?rotate-()(.+)$/,Ir],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Ir],[/^(?:transform-)?skew-([xy])-(.+)$/,Sa],[/^(?:transform-)?scale-()(.+)$/,Br],[/^(?:transform-)?scale-([xyz])-(.+)$/,Br],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[J,{transform:"var(--un-transform)"}]],["transform-gpu",wa],["transform-cpu",Kr],["transform-none",{transform:"none"}]];function Hr([,t,e],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.fraction.rem(e);if(o!=null)return[J,[...Pt[t].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Br([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[J,[...Pt[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Ir([,t="",e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return t?[J,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[J,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function Sa([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return[J,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var Ra={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Xr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=Ra[t];if(r)return{[r]:c.cssvar(e)}}]],Yr=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var qr=[[/^(where|\?)$/,(t,{constructCSS:e,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}}
package/mini.global.js CHANGED
@@ -1,3 +1,3 @@
1
- (()=>{var qe=Object.defineProperty,Sn=Object.defineProperties;var kn=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Ze=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable;var Ge=(e,t,r)=>t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Ze.call(t,r)&&Ge(e,r,t[r]);if(ce)for(var r of ce(t))Xe.call(t,r)&&Ge(e,r,t[r]);return e},A=(e,t)=>Sn(e,kn(t));var Ye=(e,t)=>{var r={};for(var n in e)Ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ce)for(var n of ce(e))t.indexOf(n)<0&&Xe.call(e,n)&&(r[n]=e[n]);return r};var Cn=(e,t)=>{for(var r in t)qe(e,r,{get:t[r],enumerable:!0})};var Rn={mid:"middle",base:"baseline",btm:"bottom"},Je=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":Rn[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Qe=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var $e=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function we(e=""){let t=Tn(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!($e.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function D(e,t){let{components:r}=e,{alpha:n,type:o}=e;return n=t!=null?t:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,$e.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Tn(e){if(!e)return;let t=En(e);if(t!=null||(t=zn(e),t!=null)||(t=An(e),t!=null)||(t=Vn(e),t!=null)||(t=Pn(e),t!=null))return t}function En(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];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{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function zn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function An(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=I(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var jn=new RegExp(`^(${$e.join("|")})\\((.+)\\)$`,"i");function Vn(e){let t=e.match(jn);if(!t)return;let[,r,n]=t,o=et(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Pn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=et(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function et(e){let t=I(e);if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=I(t[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function On(e,t){if(e=e.trim(),e==="")return;let r=e.length,n=0;for(let o=0;o<r;o++)switch(e[o]){case"(":n++;break;case")":if(--n<0)return;break;case t:if(n===0){let i=e.slice(0,o).trim();return i===""?void 0:[i,e.slice(o+1).trim()]}}return[e,""]}function I(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=On(e,t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var M={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},ve=A(S({},M),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Se={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},ke={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},tt=["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"],K=Object.assign({},...tt.map(e=>({[e.replace(/ /,"-")]:e})),...tt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function G(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ce(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 le=Ce;function Z(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function rt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Z(t)):[e]:[Z(e)]}function Un(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 ue(e){return e==null?"":Un(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 Te(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 Re(r)&&Re(n)&&Object.keys(n).forEach(i=>{Re(n[i])?i in r?o[i]=Te(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function q(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:q(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}return e}function nt(e){return typeof e[0]=="string"}function ot(e){return typeof e[0]=="string"}function z(e=[]){return Array.isArray(e)?e:[e]}function X(e){return Array.from(new Set(e))}var Mn=/^\[(.+?)~?="(.*)"\]$/,Fn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,W="$$shortcut-no-merge";function it(e){return e.match(Mn)}function Y(e=""){return Fn.test(e)}function st(e){return typeof e=="function"?{match:e}:e}function Ee(e){return e.length===3}function at(e){return e!=null}var ze=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 ct=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function lt(e){return ct.lastIndex=0,e.replace(ct,(t,r,n,o)=>o.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var ut=new Set;function ft(e){ut.has(e)||(console.warn("[unocss]",e),ut.add(e))}function pt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let a of o){let s=e[a](n);if(s!=null)return s}};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 _n=e=>e.split(/[\s'"`;>=]+/g).filter(Y),J={name:"split",order:0,extract({code:e}){return new Set(_n(e))}};function Wn(e){return z(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ln={shortcuts:-1,default:0};function Ae(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(z),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=Object.assign(Ln,...n.map(m=>m.layers),e.layers);function a(m){return X([...o.flatMap(y=>z(y[m]||[])),...z(r[m]||[])])}let s=a("extractors");s.length||s.push(J),s.sort((m,y)=>(m.order||0)-(y.order||0));let l=a("rules"),u={},h=l.length;l.forEach((m,y)=>{nt(m)&&(u[m[0]]=[y,m[1],m[2]],delete l[y])});let p=q([...o.map(m=>m.theme||{}),r.theme||{}].reduce((m,y)=>Te(m,y),{}));a("extendTheme").forEach(m=>m(p));let x={templates:X(o.map(m=>{var y;return z((y=m.autocomplete)==null?void 0:y.templates)}).flat()),extractors:o.map(m=>{var y;return z((y=m.autocomplete)==null?void 0:y.extractors)}).flat().sort((m,y)=>(m.order||0)-(y.order||0))};return A(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:m=>m},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:p,rulesSize:h,rulesDynamic:l,rulesStaticMap:u,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:x,variants:a("variants").map(st),shortcuts:Wn(a("shortcuts")),extractors:s})}var mt="0.30.7";var ht=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ae(t,r)}version=mt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Ae(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 a=await i.extract(o);a==null||a.forEach(s=>n.add(s))}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var l;if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let u of this.config.preprocess)o=u(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]),s=this.expandShortcut(a.currentSelector,a);if(s){let u=await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]);if(u!=null&&u.length)return this._cache.set(n,u),u}else{let u=(l=await this.parseUtil(a.variantMatch,a))==null?void 0:l.map(h=>this.stringifyUtil(h)).filter(at);if(u!=null&&u.length)return this._cache.set(n,u),u}this._cache.set(n,null)}async generate(t="",{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:a=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(d=>s.add(d));let l=a?"":`
1
+ (()=>{var qe=Object.defineProperty,Sn=Object.defineProperties;var kn=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Ze=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable;var Ge=(e,t,r)=>t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Ze.call(t,r)&&Ge(e,r,t[r]);if(ce)for(var r of ce(t))Xe.call(t,r)&&Ge(e,r,t[r]);return e},A=(e,t)=>Sn(e,kn(t));var Ye=(e,t)=>{var r={};for(var n in e)Ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ce)for(var n of ce(e))t.indexOf(n)<0&&Xe.call(e,n)&&(r[n]=e[n]);return r};var Cn=(e,t)=>{for(var r in t)qe(e,r,{get:t[r],enumerable:!0})};var Rn={mid:"middle",base:"baseline",btm:"bottom"},Je=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":Rn[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Qe=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var $e=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function we(e=""){let t=Tn(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!($e.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function D(e,t){let{components:r}=e,{alpha:n,type:o}=e;return n=t!=null?t:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,$e.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Tn(e){if(!e)return;let t=En(e);if(t!=null||(t=zn(e),t!=null)||(t=An(e),t!=null)||(t=Vn(e),t!=null)||(t=Pn(e),t!=null))return t}function En(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];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{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function zn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function An(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=I(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var jn=new RegExp(`^(${$e.join("|")})\\((.+)\\)$`,"i");function Vn(e){let t=e.match(jn);if(!t)return;let[,r,n]=t,o=et(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Pn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=et(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function et(e){let t=I(e);if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=I(t[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function On(e,t){if(e=e.trim(),e==="")return;let r=e.length,n=0;for(let o=0;o<r;o++)switch(e[o]){case"(":n++;break;case")":if(--n<0)return;break;case t:if(n===0){let i=e.slice(0,o).trim();return i===""?void 0:[i,e.slice(o+1).trim()]}}return[e,""]}function I(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=On(e,t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var M={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},ve=A(S({},M),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Se={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},ke={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},tt=["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"],K=Object.assign({},...tt.map(e=>({[e.replace(/ /,"-")]:e})),...tt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function G(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ce(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 le=Ce;function Z(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function rt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Z(t)):[e]:[Z(e)]}function Un(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 ue(e){return e==null?"":Un(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 Te(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 Re(r)&&Re(n)&&Object.keys(n).forEach(i=>{Re(n[i])?i in r?o[i]=Te(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function q(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:q(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}return e}function nt(e){return typeof e[0]=="string"}function ot(e){return typeof e[0]=="string"}function z(e=[]){return Array.isArray(e)?e:[e]}function X(e){return Array.from(new Set(e))}var Mn=/^\[(.+?)~?="(.*)"\]$/,Fn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,W="$$shortcut-no-merge";function it(e){return e.match(Mn)}function Y(e=""){return Fn.test(e)}function st(e){return typeof e=="function"?{match:e}:e}function Ee(e){return e.length===3}function at(e){return e!=null}var ze=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 ct=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function lt(e){return ct.lastIndex=0,e.replace(ct,(t,r,n,o)=>o.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var ut=new Set;function ft(e){ut.has(e)||(console.warn("[unocss]",e),ut.add(e))}function pt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let a of o){let s=e[a](n);if(s!=null)return s}};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 _n=e=>e.split(/[\s'"`;>=]+/g).filter(Y),J={name:"split",order:0,extract({code:e}){return new Set(_n(e))}};function Wn(e){return z(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ln={shortcuts:-1,default:0};function Ae(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(z),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=Object.assign(Ln,...n.map(m=>m.layers),e.layers);function a(m){return X([...o.flatMap(y=>z(y[m]||[])),...z(r[m]||[])])}let s=a("extractors");s.length||s.push(J),s.sort((m,y)=>(m.order||0)-(y.order||0));let l=a("rules"),u={},h=l.length;l.forEach((m,y)=>{nt(m)&&(u[m[0]]=[y,m[1],m[2]],delete l[y])});let p=q([...o.map(m=>m.theme||{}),r.theme||{}].reduce((m,y)=>Te(m,y),{}));a("extendTheme").forEach(m=>m(p));let x={templates:X(o.map(m=>{var y;return z((y=m.autocomplete)==null?void 0:y.templates)}).flat()),extractors:o.map(m=>{var y;return z((y=m.autocomplete)==null?void 0:y.extractors)}).flat().sort((m,y)=>(m.order||0)-(y.order||0))};return A(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:m=>m},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:p,rulesSize:h,rulesDynamic:l,rulesStaticMap:u,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:x,variants:a("variants").map(st),shortcuts:Wn(a("shortcuts")),extractors:s})}var mt="0.30.8";var ht=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ae(t,r)}version=mt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Ae(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 a=await i.extract(o);a==null||a.forEach(s=>n.add(s))}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var l;if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let u of this.config.preprocess)o=u(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]),s=this.expandShortcut(a.currentSelector,a);if(s){let u=await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]);if(u!=null&&u.length)return this._cache.set(n,u),u}else{let u=(l=await this.parseUtil(a.variantMatch,a))==null?void 0:l.map(h=>this.stringifyUtil(h)).filter(at);if(u!=null&&u.length)return this._cache.set(n,u),u}this._cache.set(n,null)}async generate(t="",{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:a=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(d=>s.add(d));let l=a?"":`
2
2
  `,u=new Set(["default"]),h=new Set,p=new Map;await Promise.all(Array.from(s).map(async d=>{var b;if(h.has(d))return;let g=await this.parseToken(d);if(g!=null){h.add(d);for(let v of g){let R=v[3]||"";p.has(R)||p.set(R,[]),p.get(R).push(v),(b=v[4])!=null&&b.layer&&u.add(v[4].layer)}}})),o&&this.config.preflights.forEach(d=>{d.layer&&u.add(d.layer)});let x={},m=this.config.sortLayers(Array.from(u).sort((d,g)=>{var b,v;return((b=this.config.layers[d])!=null?b:0)-((v=this.config.layers[g])!=null?v:0)||d.localeCompare(g)})),y={};if(o){let d={generator:this,theme:this.config.theme};y=Object.fromEntries(await Promise.all(m.map(async g=>{let v=(await Promise.all(this.config.preflights.filter(R=>(R.layer||"default")===g).map(async R=>await R.getCSS(d)))).filter(Boolean).join(l);return[g,v]})))}let w=d=>{if(x[d])return x[d];let g=Array.from(p).sort((b,v)=>{var R,T,O;return((R=this.parentOrders.get(b[0]))!=null?R:0)-((T=this.parentOrders.get(v[0]))!=null?T:0)||((O=b[0])==null?void 0:O.localeCompare(v[0]||""))||0}).map(([b,v])=>{let R=v.length,T=v.filter(f=>{var $;return((($=f[4])==null?void 0:$.layer)||"default")===d}).sort((f,$)=>{var E,_,V;return f[0]-$[0]||(((E=f[4])==null?void 0:E.sort)||0)-(((_=$[4])==null?void 0:_.sort)||0)||((V=f[1])==null?void 0:V.localeCompare($[1]||""))||0}).map(f=>{var $;return[f[1]?Nn(f[1],n):f[1],f[2],!!(($=f[4])!=null&&$.noMerge)]}).map(f=>[f[0]==null?f[0]:[f[0]],f[1],f[2]]);if(!T.length)return;let O=T.reverse().map(([f,$,E],_)=>{if(!E&&f&&this.config.mergeSelectors)for(let V=_+1;V<R;V++){let U=T[V];if(U&&!U[2]&&U[0]&&U[1]===$)return U[0].push(...f),null}return f?`${[...new Set(f)].join(`,${l}`)}{${$}}`:$}).filter(Boolean).reverse().join(l);return b?`${b}{${l}${O}${l}}`:O}).filter(Boolean).join(l);return o&&(g=[y[d],g].filter(Boolean).join(l)),x[d]=!a&&g?`/* layer: ${d} */${l}${g}`:g},C=(d=m,g)=>d.filter(b=>!(g!=null&&g.includes(b))).map(b=>w(b)||"").filter(Boolean).join(l);return{get css(){return C()},layers:m,getLayers:C,getLayer:w,matched:h}}matchVariants(t,r){let n=new Set,o=[],i=r||t,a=!1,s={rawSelector:t,theme:this.config.theme,generator:this};for(;;){a=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let u=l.match(i,s);if(!!u){typeof u=="string"&&(u={matcher:u}),i=u.matcher,Array.isArray(u.parent)&&this.parentOrders.set(u.parent[0],u.parent[1]),o.push(u),n.add(l),a=!0;break}}if(!a)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let o=[...r].sort((s,l)=>(s.order||0)-(l.order||0)),i=o.reduce((s,l)=>{var u;return((u=l.body)==null?void 0:u.call(l,s))||s},t[2]),a={selector:o.reduce((s,l)=>{var u;return((u=l.selector)==null?void 0:u.call(l,s,i))||s},Bn(n)),entries:i,parent:o.reduce((s,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||s,void 0),layer:o.reduce((s,l)=>l.layer||s,void 0),sort:o.reduce((s,l)=>l.sort||s,void 0)};for(let s of this.config.postprocess)s(a);return a}constructCustomCSS(t,r,n){r=Z(r);let{selector:o,entries:i,parent:a}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),s=`${o}{${ue(i)}}`;return a?`${a}{${s}}`:s}async parseUtil(t,r,n=!1){var h,p;let[o,i,a]=typeof t=="string"?this.matchVariants(t):t,s=this.config.rulesStaticMap[i];if(s&&s[1]&&(n||!((h=s[2])!=null&&h.internal)))return[[s[0],o,Z(s[1]),s[2],a]];r.variantHandlers=a;let{rulesDynamic:l,rulesSize:u}=this.config;for(let x=u-1;x>=0;x--){let m=l[x];if(!m||((p=m[2])==null?void 0:p.internal)&&!n)continue;let[y,w,C]=m,d=i.match(y);if(!d)continue;let g=await w(d,r);if(!g)continue;if(typeof g=="string")return[[x,g,C]];let b=rt(g).filter(v=>v.length);if(b.length)return b.map(v=>[x,o,v,C,a])}}stringifyUtil(t){var x;if(!t)return;if(Ee(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:o,layer:i,sort:a}=this.applyVariants(t),s=ue(n);if(!s)return;let m=(x=t[3])!=null?x:{},{layer:l,sort:u}=m,h=Ye(m,["layer","sort"]),p=A(S({},h),{layer:i!=null?i:l,sort:a!=null?a:u});return[t[0],r,s,o,p]}expandShortcut(t,r,n=3){if(n===0)return;let o,i;for(let a of this.config.shortcuts)if(ot(a)){if(a[0]===t){o=o||a[2],i=a[1];break}}else{let s=t.match(a[0]);if(s&&(i=a[1](s,r)),i){o=o||a[2];break}}if(typeof i=="string"&&(i=lt(i).split(/\s+/g)),!!i)return[i.flatMap(a=>{var s;return((s=this.expandShortcut(a,r,n-1))==null?void 0:s[0])||[a]}).filter(a=>a!==""),o]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var h;let i=new ze,a=(await Promise.all(X(n).map(async p=>{let x=await this.parseUtil(p,r,!0);return x||ft(`unmatched utility "${p}" in shortcut "${t[1]}"`),x||[]}))).flat(1).filter(Boolean).sort((p,x)=>p[0]-x[0]),[s,,l]=t,u=[];for(let p of a){if(Ee(p)){u.push([p[0],void 0,p[1],void 0,p[2]]);continue}let{selector:x,entries:m,parent:y,sort:w}=this.applyVariants(p,[...p[4],...l],s);i.getFallback(x,y,[[],p[0]])[0].push([m,!!((h=p[3])!=null&&h.noMerge),w!=null?w:0])}return u.concat(i.map(([p,x],m,y)=>{let w=(d,g,b)=>{let v=Math.max(...b.map(T=>T[1])),R=b.map(T=>T[0]);return(d?[R.flat(1)]:R).map(T=>{let O=ue(T);if(O)return[x,m,O,y,A(S({},o),{noMerge:g,sort:v})]})};return[[p.filter(([,d])=>d).map(([d,,g])=>[d,g]),!0],[p.filter(([,d])=>!d).map(([d,,g])=>[d,g]),!1]].map(([d,g])=>[...w(!1,g,d.filter(([b])=>b.some(v=>v[0]===W))),...w(!0,g,d.filter(([b])=>b.every(v=>v[0]!==W)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function gt(e,t){return new ht(e,t)}var xt=/ \$\$ /,Hn=e=>e.match(xt);function Nn(e,t){return Hn(e)?e.replace(xt,t?` ${t} `:" "):t?`${t} ${e}`:e}var dt=/^\[(.+?)(~?=)"(.*)"\]$/;function Bn(e){return dt.test(e)?e.replace(dt,(t,r,n,o)=>`[${le(r)}${n}"${le(o)}"]`):`.${le(e)}`}var Pe={};Cn(Pe,{auto:()=>qn,bracket:()=>eo,bracketOfColor:()=>to,bracketOfLength:()=>ro,cssvar:()=>no,degree:()=>io,fraction:()=>Qn,global:()=>so,number:()=>Yn,numberWithUnit:()=>Gn,percent:()=>Jn,properties:()=>ao,px:()=>Xn,rem:()=>Zn,time:()=>oo});var In=["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","border-radius"],je=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Kn=/^(-?[0-9.]+)$/i,bt=/^(px)$/i;function P(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Gn(e){let t=e.match(je);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${P(o)}${n}`}function qn(e){if(e==="auto"||e==="a")return"auto"}function Zn(e){if(e.match(bt))return`1${e}`;let t=e.match(je);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o/4)}rem`}function Xn(e){if(e.match(bt))return`1${e}`;let t=e.match(je);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o)}px`}function Yn(e){if(!Kn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return P(t)}function Jn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${P(t/100)}`}function Qn(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${P(n*100)}%`}function Ve(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n=e.match(/^\[(color|length):/i);if(n?t&&n[1]===t&&(r=e.slice(n[0].length,-1)):r=e.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,o=>o.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function eo(e){return Ve(e)}function to(e){return Ve(e,"color")}function ro(e){return Ve(e,"length")}function no(e){if(e.match(/^\$\S/))return`var(--${Ce(e.slice(1))})`}function oo(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?`${P(o)}${n}`:`${P(o)}ms`}function io(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o)}deg`}function so(e){if(["inherit","initial","revert","unset"].includes(e))return e}function ao(e){for(let t of e.split(","))if(!In.includes(t))return;return e}var c=pt(Pe);var H=(e,t)=>{let r=new RegExp(`^${G(e)}[:-]`);return{match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}},autocomplete:`${e}:`}},Q=(e,t)=>{let r=new RegExp(`^${G(e)}[:-]`);return{match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}},autocomplete:`${e}:`}};var j=e=>([t,r,n],{theme:o})=>{var a,s;let i=(s=(a=o.spacing)==null?void 0:a[n||"DEFAULT"])!=null?s:c.bracket.cssvar.auto.fraction.rem(n);if(i!=null)return M[r].map(l=>[`${e}${l}`,i])},Oe=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},fe=(e,t)=>{let r=e.split(/(?:\/|:)/),n,o;r[0]==="[color"?(n=r.slice(0,2).join(":"),o=r[2]):[n,o]=r;let i=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[a]=i;if(!a)return;let s,l=c.bracketOfColor(n),u=l||n;u.startsWith("#")?s=u:u.startsWith("hex-")?s=`#${u.slice(4)}`:n.startsWith("$")&&(s=c.cssvar(n)),s=s||l;let h="DEFAULT";if(!s){let p,[x]=i.slice(-1);x.match(/^\d+$/)?(h=x,p=Oe(t,i.slice(0,-1))):(p=Oe(t,i),!p&&i.length<=2&&([,h=h]=i,p=Oe(t,[a]))),typeof p=="string"?s=p:h&&p&&(s=p[h])}return{opacity:o,name:a,no:h,color:s,cssColor:we(s),alpha:c.bracket.cssvar.percent(o!=null?o:"")}},k=(e,t)=>([,r],{theme:n})=>{var l;let o=fe(r,n);if(!o)return;let{alpha:i,color:a,cssColor:s}=o;if(s)return i!=null?{[e]:D(s,i)}:{[`--un-${t}-opacity`]:(l=s.alpha)!=null?l:1,[e]:D(s,`var(--un-${t}-opacity)`)};if(a)return{[e]:a.replace("%alpha",`${i!=null?i:1}`)}},pe=(e,t)=>{let r=[];e=z(e);for(let n=0;n<e.length;n++){let o=I(e[n]," ",6);if(!o||o.length<3)return e;let i=we(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${D(i)})`)}return r},yt=(e,t)=>{var r;return e!=null&&!!((r=fe(e,t))!=null&&r.color)};var $t=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,k("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],wt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],co=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},vt=[[/^will-change-(.+)/,([,e])=>({"will-change":co(e)})]];var St=[[/^(?:border|b)()(?:-(.+))?$/,ee,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ee],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ee],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ee],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ee],[/^(?:border|b)-()(?:width|size)-(.+)$/,N,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,N],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-()(?:color-)?(.+)$/,te,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,te],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,te],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,te],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,te],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,re,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,re],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ne,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ne],["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"}]],lo=e=>([,t],r)=>{var s,l;let n=fe(t,r);if(!n)return;let{alpha:o,color:i,cssColor:a}=n;if(a)return o!=null?{[`border${e}-color`]:D(a,o)}:e===""?{"--un-border-opacity":(s=a.alpha)!=null?s:1,[`border${e}-color`]:D(a,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(l=a.alpha)!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:D(a,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:i.replace("%alpha",`${o!=null?o:1}`)}};function ee(e,t){let r=N(e,t);if(r)return[...r,["border-style","solid"]]}function N([,e="",t],{theme:r}){var o,i;let n=(i=(o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])!=null?i:c.bracket.cssvar.px(t||"1");if(e in M&&n!=null)return M[e].map(a=>[`border${a}-width`,n])}function te([,e="",t],{theme:r}){if(e in M&&yt(t,r))return Object.assign({},...M[e].map(n=>lo(n)(["",t],r)))}function re([,e="",t]){let r=c.bracket.percent(t);if(e in M&&r!=null)return M[e].map(n=>[`--un-border${n}-opacity`,r])}function ne([,e="",t],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t||"DEFAULT"])||c.bracket.cssvar.fraction.rem(t||"1");if(e in Se&&n!=null)return Se[e].map(i=>[`border${i}-radius`,n])}var kt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],Ct=[[/^(?:text|color|c)-(.+)$/,k("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Rt=[[/^bg-(.+)$/,k("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var me={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Tt=e=>{var t;return(t=c.properties(e))!=null?t:me[e]},Et=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o,i;let n=e!=null?Tt(e):[me.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let a=(i=(o=r.duration)==null?void 0:o[t||"DEFAULT"])!=null?i:c.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":a}}},{autocomplete:`transition-(${Object.keys(me).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-duration":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:c.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-delay":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:c.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,n;return{"transition-timing-function":(n=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?n:c.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||Tt(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(me)].join("|")})`]}],["transition-none",{transition:"none"}]];var zt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:c.bracket(e)!=null?c.bracket(e).split(" ").map(t=>{var r;return(r=c.cssvar.fraction(t))!=null?r:t}).join(" "):c.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?: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],{theme:t})=>{var r,n;return{"flex-basis":(n=(r=t.spacing)==null?void 0:r[e])!=null?n:c.bracket.cssvar.auto.fraction.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 At={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},jt=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||c.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=z((n=t.fontSize)==null?void 0:n[e]);if(r!=null&&r[0]){let[o,i="1"]=r;return{"font-size":o,"line-height":i}}return{"font-size":c.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var o,i;let r=z((o=t.fontSize)==null?void 0:o[e]),n=(i=r==null?void 0:r[0])!=null?i:c.bracket.cssvar.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":At[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(At).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],Vt=[[/^tab(?:-(.+))?$/,([,e])=>{let t=c.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Pt=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],Ot=[[/^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)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,k("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Ut=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":pe(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,k("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var Mt={"":"",x:"column-",y:"row-"},Ft=([,e="",t],{theme:r})=>{var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:c.bracket.cssvar.rem(t);if(n!=null)return{[`grid-${Mt[e]}gap`]:n,[`${Mt[e]}gap`]:n}},_t=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ft,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ft,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var F=e=>e.replace("col","column"),Ue=e=>e[0]==="r"?"Row":"Column",uo=(e,t,r)=>{var o;let n=(o=t[`gridAuto${Ue(e)}`])==null?void 0:o[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},Wt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-${F(e)}`]:(o=(n=r[`grid${Ue(e)}`])==null?void 0:n[t])!=null?o:c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${F(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${F(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>{var r;return{[`grid-${F(e)}-start`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${F(e)}-end`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${F(e)}`]:uo(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":c.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,e])=>({"grid-auto-flow":F(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-template-${F(e)}`]:(o=(n=r[`gridTemplate${Ue(e)}`])==null?void 0:n[t])!=null?o:c.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${F(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${F(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var de=["auto","hidden","clip","visible","scroll"],Lt=[[/^(?:overflow|of)-(.+)$/,([,e])=>de.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-${de.join("|")}`,`(overflow|of)-(x|y)-${de.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>de.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Fe=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Dt=[["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"}]],Ht=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Nt=[["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"}]],Bt=[["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 Me(e,{theme:t}){var r,n;return(n=(r=t.spacing)==null?void 0:r[e])!=null?n:c.bracket.cssvar.auto.fraction.rem(e)}function he([,e,t],r){let n=Me(t,r);if(n!=null&&e in ve)return ve[e].map(o=>[o.slice(1),n])}var It=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Me(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,he],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,he],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,he],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,he],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Me(t,r)})]],Kt=[["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"}]],Gt=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],qt=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var ge="var(--un-empty,/*!*/ /*!*/)",Zt=[["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"}],[/^display-(.+)$/,([,e])=>({display:c.bracket.cssvar(e)||e})]],Xt=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Yt=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],Jt=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Qt=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],er=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],tr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]],rr=[[/^content-\[(.+)\]$/,([,e])=>({content:`"${e}"`})],["content-empty",{content:'""'}],["content-none",{content:'""'}]],nr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],or=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],ir=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],sr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],ar=[["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 cr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var n,o;let r=(o=(n=t.ringWidth)==null?void 0:n[e||"DEFAULT"])!=null?o:c.px(e||"1");if(r)return[{[W]:"","--un-ring-inset":ge,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--un-ring-width":r,"--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(var(--un-ring-width) + 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)"}]},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>{var r,n;return{"--un-ring-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"--un-ring-offset-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,k("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,k("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var lr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return[{[W]:"","--un-shadow-inset":ge,"--un-shadow":"0 0 #0000"},{"--un-shadow":pe(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,k("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var fo={h:"height",w:"width",inline:"inline-size",block:"block-size"};function oe(e,t){return`${e||""}${fo[t]}`}function ur(e,t,r,n){var a;let o=oe(e,t).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),i=(a=r[o])==null?void 0:a[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.auto.fraction.rem(n)}var fr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[oe(e,t)]:ur(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[oe(e,t)]:ur(e,t,n,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[oe(e,t)]:(o=n.verticalBreakpoints)==null?void 0:o[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[oe(e,t)]:(o=n.breakpoints)==null?void 0:o[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function po(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 pr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":po(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var mr=[[/^pa?()-?(-?.+)$/,j("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,j("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,j("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,j("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,j("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,j("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],dr=[[/^ma?()-?(-?.+)$/,j("margin")],[/^m-?xy()()$/,j("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,j("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,j("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,j("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,j("margin")]];var mo={"--un-transform":["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},br={"--un-transform":["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},B=A(S({"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":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},br),{[W]:""}),yr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=K[e])!=null?t:c.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(K).join("|")})`,`origin-(${Object.keys(K).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=c.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=c.bracket.cssvar(e))!=null?r:e.length>=3?K[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,hr],[/^(?:transform-)?translate-([xyz])-(.+)$/,hr],[/^(?:transform-)?rotate-()(.+)$/,xr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,xr],[/^(?:transform-)?skew-([xy])-(.+)$/,ho],[/^(?:transform-)?scale-()(.+)$/,gr],[/^(?:transform-)?scale-([xyz])-(.+)$/,gr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[B,{transform:"var(--un-transform)"}]],["transform-gpu",mo],["transform-cpu",br],["transform-none",{transform:"none"}]];function hr([,e,t],{theme:r}){var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:c.bracket.cssvar.fraction.rem(t);if(n!=null)return[B,[...ke[e].map(a=>[`--un-translate${a}`,n]),["transform","var(--un-transform)"]]]}function gr([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[B,[...ke[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function xr([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?[B,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[B,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function ho([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[B,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var go={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},$r=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=go[e];if(r)return{[r]:c.cssvar(t)}}]],wr=[[/^\[([^:]+):(.+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var vr=[[/^(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
3
  ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var Sr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"text-decoration-thickness":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=k("text-decoration-color","line")(e,t);if(r)return S({"-webkit-text-decoration-color":r["text-decoration-color"]},r)},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"text-underline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.auto.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],[/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)$/,([,e])=>({"text-decoration-style":e}),{autocomplete:"(underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)"}],["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var kr=[[/^fill-(.+)$/,k("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"stroke-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"stroke-dashoffset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,k("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var Cr=[$r,wr,mr,dr,Zt,kt,Rt,kr,St,rr,jt,Vt,Pt,or,Sr,Ot,Ut,ir,Qe,Ct,sr,ar,lr,cr,zt,Wt,_t,Fe,fr,pr,Yt,Xt,Jt,Qt,Je,er,tr,nr,Lt,$t,wt,Fe,Ht,Dt,Nt,Bt,It,Kt,Gt,qt,Et,yr,vt,vr].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 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(",")},Tr={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"]},Er={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},zr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Ar={DEFAULT:["0 0 1px rgba(0,0,0,0.2)","0 0 1px rgba(1,0,5,0.1)"],none:"0 0 #0000",sm:"1px 1px 3px rgba(36,37,47,0.25)",md:["0 1px 2px rgba(30,29,39,0.19)","1px 2px 4px rgba(54,64,147,0.18)"],lg:["3px 3px 6px rgba(0,0,0,0.26)","0 0 5px rgba(15,3,86,0.22)"],xl:["1px 1px 3px rgba(0,0,0,0.29)","2px 4px 7px rgba(73,64,125,0.35)"]},jr={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"},Vr=We;var Le={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Pr=S({},Le),Or={DEFAULT:"1px",none:"0px"},Ur={DEFAULT:"1rem",none:"0rem",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},Mr={DEFAULT:"150ms",none:"0ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Fr={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},_r={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],none:"0 0 #0000",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)"},Wr={DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Lr={DEFAULT:"1px",none:"0px"};var Dr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Hr={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 xe={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},De=A(S({auto:"auto"},xe),{screen:"100vw"}),ie=A(S({none:"none"},xe),{screen:"100vw"}),He=A(S({auto:"auto"},xe),{screen:"100vh"}),se=A(S({none:"none"},xe),{screen:"100vh"});var Nr={width:De,height:He,maxWidth:ie,maxHeight:se,minWidth:ie,minHeight:se,inlineSize:De,blockSize:He,maxInlineSize:ie,maxBlockSize:se,minInlineSize:ie,minBlockSize:se,colors:_e,fontFamily:Rr,fontSize:Tr,breakpoints:Le,verticalBreakpoints:Pr,borderRadius:Fr,lineHeight:jr,letterSpacing:We,wordSpacing:Vr,boxShadow:_r,textIndent:Er,textShadow:Ar,textStrokeWidth:zr,blur:Dr,dropShadow:Hr,easing:Wr,lineWidth:Or,spacing:Ur,duration:Mr,ringWidth:Lr};var Ne={},Br=e=>{var o;let t=((o=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:o[0])||"",r=e.slice(t.length),n=parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`},Ir={match(e,{theme:t}){let r=Object.entries(t.breakpoints||{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){Ne[n]||(Ne[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let a=e.match(Ne[n]);if(!a)continue;let[,s]=a,l=e.slice(s.length);if(l==="container")continue;let u=s.startsWith("lt-"),h=s.startsWith("at-"),p=1e3;return u?(p-=i+1,{matcher:l,parent:[`@media (max-width: ${Br(o)})`,p]}):(p+=i+1,h&&i<r.length-1?{matcher:l,parent:[`@media (min-width: ${o}) and (max-width: ${Br(r[i+1][1])})`,p]}:{matcher:l,parent:[`@media (min-width: ${o})`,p]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var L=(e,t,r)=>{let n=e?new RegExp(`^${t}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${t}(?:-\\[(.+?)\\])?[:-]`);return o=>{let i=o.match(n);if(i)return{matcher:o.slice(i[0].length),selector:a=>{var s;return r.replace("&&-s",a).replace("&&-c",(s=i[1])!=null?s:"*")}}}},Kr=[L(!1,"all","&&-s &&-c"),L(!1,"children","&&-s>&&-c"),L(!1,"next","&&-s+&&-c"),L(!1,"sibling","&&-s+&&-c"),L(!1,"siblings","&&-s~&&-c"),L(!0,"group","&&-c &&-s"),L(!0,"parent","&&-c>&&-s"),L(!0,"previous","&&-c+&&-s"),L(!0,"peer","&&-c~&&-s")];var Gr=Q("print","@media print"),qr=(e,{theme:t})=>{var n,o;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let i=(o=(n=t.media)==null?void 0:n[r[1]])!=null?o:`(--${r[1]})`;return{matcher:e.slice(r[0].length),parent:`@media ${i}`}}};var Zr=(e={})=>(e==null?void 0:e.dark)==="class"?[H("dark",t=>`.dark $$ ${t}`),H("light",t=>`.light $$ ${t}`)]:[Q("dark","@media (prefers-color-scheme: dark)"),Q("light","@media (prefers-color-scheme: light)")];var Xr=[H("rtl",e=>`[dir="rtl"] $$ ${e}`),H("ltr",e=>`[dir="ltr"] $$ ${e}`)];var Yr={match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},Jr={match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},Qr={match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},en={match(e){if(e.startsWith("!"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{r[1]&&(r[1]+=" !important")}),t)}}},tn={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 ye=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(z)),rn=Object.fromEntries(["placeholder","before","after","first-letter","first-line","selection","marker",["file","::file-selector-button"]].map(z)),xo=["not","is","where","has"],nn=Object.keys(rn).join("|"),ae=Object.keys(ye).join("|"),Be=xo.join("|"),bo=/(part-\[(.+)]:)(.+)/,yo=new RegExp(`^(${nn})[:-]`),$o=new RegExp(`^(${ae})[:-]`),wo=new RegExp(`^(${Be})-(${ae})[:-]`),on=e=>{if(e==="active")return 1},be=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${Be})-)?(${ae}))[:-]`),o=new RegExp(`^${G(t)}:`);return i=>{let a=i.match(n);if(a){let s=ye[a[3]]||`:${a[3]}`;return a[2]&&(s=`:${a[2]}(${s})`),{matcher:i.slice(a[0].length),selector:l=>o.test(l)?l.replace(o,`${t}${s}:`):`${t}${s}${r}${l}`,sort:on(a[3])}}}},sn={match:e=>{let t=e.match(yo);if(t){let r=rn[t[1]]||`::${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`}}},autocomplete:`(${nn}):`},an={match:e=>{let t=e.match($o);if(t){let r=ye[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`,sort:on(t[1])}}},multiPass:!0,autocomplete:`(${ae}):`},cn={match:e=>{let t=e.match(wo);if(t){let r=t[1],n=ye[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${Be})-(${ae}):`},ln=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[{match:be("group",t?'[group=""]':".group"," "),multiPass:!0},{match:be("peer",t?'[peer=""]':".peer","~"),multiPass:!0},{match:be("parent",t?'[parent=""]':".parent",">"),multiPass:!0},{match:be("previous",t?'[previous=""]':".previous","+"),multiPass:!0}]},un={match:e=>{let t=e.match(bo);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var fn=e=>[Yr,Jr,tn,en,Gr,qr,Ir,...Kr,an,cn,...ln(e),sn,un,...Zr(e),...Xr,Qr];var vo=(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:Nr,rules:Cr,variants:fn(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?So(e.variablePrefix):void 0}},pn=vo;function So(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 Ie=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,mn=(e={})=>{var n,o;let t=(n=e.prefix)!=null?n:"un-",r=(o=e.prefixedOnly)!=null?o:!1;return i=>{let a=it(i);if(!a)return;let s=a[1];if(s.startsWith(t))s=s.slice(t.length);else if(r)return;let l=a[2],[,u="",h=l]=l.match(Ie)||[];return h==="~"||!h?`${u}${s}`:`${u}${s}-${h}`}};var ko=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Co=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,dn=/[\s'"`;>]+/,hn={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(ko),n,o=0;for(let w of r){let[,C,d]=w,g=w.index+C.length;if(t>g&&t<=g+d.length){o=g,n=d;break}}if(!n)return null;let i=n.matchAll(Co),a=0,s,l;for(let w of i){let[C,d,g]=w,b=o+w.index;if(t>b&&t<=b+C.length){a=b,s=d,l=g==null?void 0:g.slice(1);break}}if(!s||s==="class"||s==="className")return null;if(l===void 0)return{extracted:s,resolveReplacement(w){return{start:a,end:a+s.length,replacement:w}}};let u=a+s.length+2,h=dn.exec(l),p=0,x;for(;h;){let[w]=h;if(t>u+p&&t<=u+p+h.index){x=l.slice(p,p+h.index);break}p+=h.index+w.length,h=dn.exec(l.slice(p))}x===void 0&&(x=l.slice(p));let[,m="",y]=x.match(Ie)||[];return{extracted:`${m}${s}-${y}`,transformSuggestions(w){return w.filter(C=>C.startsWith(`${m}${s}-`)).map(C=>m+C.slice(m.length+s.length+1))},resolveReplacement(w){return{start:p+u,end:p+u+x.length,replacement:m+w.slice(m.length+s.length+1)}}}}};var Ro=["v-bind:",":"],gn=/[\s'"`;]+/g,To=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Eo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,xn=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 a=Array.from(i.matchAll(To)).flatMap(s=>Array.from((s[1]||"").matchAll(Eo))).flatMap(([,s,l,u])=>{if(t.includes(s))return[];for(let h of Ro)if(s.startsWith(h)){s=s.slice(h.length);break}return u?["class","className"].includes(s)?u.split(gn).filter(Y):u.split(gn).filter(Boolean).map(h=>`[${s}~="${h}"]`):Y(s)&&r!==!1?[`[${s}=""]`]:[]});return new Set(a)}}};var zo=(e={})=>{var o,i,a,s,l;e.strict=(o=e.strict)!=null?o:!1,e.prefix=(i=e.prefix)!=null?i:"un-",e.prefixedOnly=(a=e.prefixedOnly)!=null?a:!1,e.nonValuedAttribute=(s=e.nonValuedAttribute)!=null?s:!0,e.ignoreAttributes=(l=e.ignoreAttributes)!=null?l:[];let t=[mn(e)],r=[xn(e)],n=[hn];return e.strict||r.unshift(J),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:n}}},bn=zo;var Ao=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),yn=e=>e.charAt(0).toUpperCase()+e.slice(1),$n=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),wn=["Webkit","Moz","ms"];function vn(e){let t={};function r(n){let o=t[n];if(o)return o;let i=Ao(n);if(i!=="filter"&&i in e)return t[n]=$n(i);i=yn(i);for(let a=0;a<wn.length;a++){let s=`${wn[a]}${i}`;if(s in e)return t[n]=$n(yn(s))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Ke(e={}){var T,O;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},r=t==null?void 0:t.runtime,n=Object.assign(e.defaults||{},r);if(r!=null&&r.autoPrefix){let f=n.postprocess;f||(f=[]),Array.isArray(f)||(f=[f]),f.unshift(vn(document.createElement("div").style)),n.postprocess=f}(T=r==null?void 0:r.configResolved)==null||T.call(r,t,n);let o,i=!0,a,s=gt(t,n),l=new Set,u,h=[],p=()=>new Promise(f=>{h.push(f),u!=null&&clearTimeout(u),u=setTimeout(()=>m().then(()=>{let $=h;h=[],$.forEach(E=>E())}),0)});function x(f=document.body){if(f.nodeType!==1)return;let $=f;$.hasAttribute("un-cloak")&&$.removeAttribute("un-cloak"),$.querySelectorAll("[un-cloak]").forEach(E=>{E.removeAttribute("un-cloak")})}async function m(){let f=await s.generate(l);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=f.css,l=f.matched}async function y(f){let $=l.size;await s.applyExtractors(f,void 0,l),$!==l.size&&await p()}async function w(){let f=document.body&&document.body.outerHTML;f&&(await y(f),x())}let C=new MutationObserver(f=>{i||f.forEach(async $=>{if($.target.nodeType!==1)return;let E=$.target;if(E!==o)if($.type==="childList")$.addedNodes.forEach(async _=>{if(_.nodeType!==1)return;let V=_;a&&!a(V)||(await y(V.outerHTML),x(V))});else{if(a&&!a(E))return;if($.attributeName!=="un-cloak"){let _=Array.from(E.attributes).map(U=>U.value?`${U.name}="${U.value}"`:U.name).join(" "),V=`<${E.tagName.toLowerCase()} ${_}>`;await y(V)}E.hasAttribute("un-cloak")&&E.removeAttribute("un-cloak")}})}),d=!1;function g(){if(d)return;let f=document.documentElement||document.body;!f||(C.observe(f,{childList:!0,subtree:!0,attributes:!0}),d=!0)}function b(){w(),g()}function v(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",b):b()}let R=window.__unocss_runtime=window.__unocss_runtime={version:s.version,uno:s,async extract(f){typeof f!="string"&&(f.forEach($=>l.add($)),f=""),await y(f)},extractAll:w,inspect(f){a=f},toggleObserver(f){f===void 0?i=!i:i=!!f,!d&&!i&&v()}};((O=r==null?void 0:r.ready)==null?void 0:O.call(r,R))!==!1&&(i=!1,v())}Ke({defaults:{presets:[pn(),bn()]}});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
- "version": "0.30.7",
3
+ "version": "0.30.8",
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.30.7",
38
- "@unocss/preset-attributify": "0.30.7",
39
- "@unocss/preset-uno": "0.30.7"
37
+ "@unocss/core": "0.30.8",
38
+ "@unocss/preset-attributify": "0.30.8",
39
+ "@unocss/preset-uno": "0.30.8"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "pnpm run build:node && pnpm run build:cdn",
package/uno.global.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{var ne=Object.defineProperty,dn=Object.defineProperties;var gn=Object.getOwnPropertyDescriptors;var mt=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var oe=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))ae.call(e,r)&&oe(t,r,e[r]);if(mt)for(var r of mt(e))ie.call(e,r)&&oe(t,r,e[r]);return t},R=(t,e)=>dn(t,gn(e));var se=(t,e)=>{var r={};for(var o in t)ae.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&mt)for(var o of mt(t))e.indexOf(o)<0&&ie.call(t,o)&&(r[o]=t[o]);return r};var bn=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})};var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=hn(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(St.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,St.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function hn(t){if(!t)return;let e=xn(t);if(e!=null||(e=yn(t),e!=null)||(e=vn(t),e!=null)||(e=kn(t),e!=null)||(e=wn(t),e!=null))return e}function xn(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function yn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function vn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var $n=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function kn(t){let e=t.match($n);if(!e)return;let[,r,o]=e,n=ce(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function wn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ce(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function ce(t){let e=Q(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let o=Q(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function Sn(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=Sn(t,e);if(!a)return;let[s,c]=a;o.push(s),t=c}if(o.length>0)return o}var M={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Ct=R(C({},M),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Rt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},zt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},le=["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"],A=Object.assign({},...le.map(t=>({[t.replace(/ /,"-")]:t})),...le.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var dt=Tt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function pe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function Cn(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function gt(t){return t==null?"":Cn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function jt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Et(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=C({},r);return jt(r)&&jt(o)&&Object.keys(o).forEach(a=>{jt(o[a])?a in r?n[a]=Et(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function ue(t){return typeof t[0]=="string"}function fe(t){return typeof t[0]=="string"}function j(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var Rn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,z="$$shortcut-no-merge";function me(t=""){return Rn.test(t)}function de(t){return typeof t=="function"?{match:t}:t}function Vt(t){return t.length===3}function ge(t){return t!=null}var Ot=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var be=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function he(t){return be.lastIndex=0,t.replace(be,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var xe=new Set;function ye(t){xe.has(t)||(console.warn("[unocss]",t),xe.add(t))}function ve(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let c=t[s](o);if(c!=null)return c}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var zn=t=>t.split(/[\s'"`;>=]+/g).filter(me),Mt={name:"split",order:0,extract({code:t}){return new Set(zn(t))}};function Tn(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var jn={shortcuts:-1,default:0};function Ut(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(j),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(jn,...o.map(f=>f.layers),t.layers);function s(f){return ot([...n.flatMap(x=>j(x[f]||[])),...j(r[f]||[])])}let c=s("extractors");c.length||c.push(Mt),c.sort((f,x)=>(f.order||0)-(x.order||0));let l=s("rules"),p={},y=l.length;l.forEach((f,x)=>{ue(f)&&(p[f[0]]=[x,f[1],f[2]],delete l[x])});let m=et([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>Et(f,x),{}));s("extendTheme").forEach(f=>f(m));let h={templates:ot(n.map(f=>{var x;return j((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(f=>{var x;return j((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return R(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:y,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(de),shortcuts:Tn(s("shortcuts")),extractors:c})}var $e="0.30.7";var we=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ut(e,r)}version=$e;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ut(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(c=>o.add(c))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),c=this.expandShortcut(s.currentSelector,s);if(c){let p=await this.stringifyShortcuts(s.variantMatch,s,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(y=>this.stringifyUtil(y)).filter(ge);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(d=>c.add(d));let l=s?"":`
1
+ (()=>{var ne=Object.defineProperty,dn=Object.defineProperties;var gn=Object.getOwnPropertyDescriptors;var mt=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var oe=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))ae.call(e,r)&&oe(t,r,e[r]);if(mt)for(var r of mt(e))ie.call(e,r)&&oe(t,r,e[r]);return t},R=(t,e)=>dn(t,gn(e));var se=(t,e)=>{var r={};for(var o in t)ae.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&mt)for(var o of mt(t))e.indexOf(o)<0&&ie.call(t,o)&&(r[o]=t[o]);return r};var bn=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})};var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=hn(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(St.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,St.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function hn(t){if(!t)return;let e=xn(t);if(e!=null||(e=yn(t),e!=null)||(e=vn(t),e!=null)||(e=kn(t),e!=null)||(e=wn(t),e!=null))return e}function xn(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function yn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function vn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var $n=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function kn(t){let e=t.match($n);if(!e)return;let[,r,o]=e,n=ce(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function wn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ce(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function ce(t){let e=Q(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let o=Q(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function Sn(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=Sn(t,e);if(!a)return;let[s,c]=a;o.push(s),t=c}if(o.length>0)return o}var M={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Ct=R(C({},M),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Rt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},zt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},le=["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"],A=Object.assign({},...le.map(t=>({[t.replace(/ /,"-")]:t})),...le.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var dt=Tt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function pe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function Cn(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function gt(t){return t==null?"":Cn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function jt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Et(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=C({},r);return jt(r)&&jt(o)&&Object.keys(o).forEach(a=>{jt(o[a])?a in r?n[a]=Et(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function ue(t){return typeof t[0]=="string"}function fe(t){return typeof t[0]=="string"}function j(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var Rn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,z="$$shortcut-no-merge";function me(t=""){return Rn.test(t)}function de(t){return typeof t=="function"?{match:t}:t}function Vt(t){return t.length===3}function ge(t){return t!=null}var Ot=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var be=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function he(t){return be.lastIndex=0,t.replace(be,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var xe=new Set;function ye(t){xe.has(t)||(console.warn("[unocss]",t),xe.add(t))}function ve(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let c=t[s](o);if(c!=null)return c}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var zn=t=>t.split(/[\s'"`;>=]+/g).filter(me),Mt={name:"split",order:0,extract({code:t}){return new Set(zn(t))}};function Tn(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var jn={shortcuts:-1,default:0};function Ut(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(j),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(jn,...o.map(f=>f.layers),t.layers);function s(f){return ot([...n.flatMap(x=>j(x[f]||[])),...j(r[f]||[])])}let c=s("extractors");c.length||c.push(Mt),c.sort((f,x)=>(f.order||0)-(x.order||0));let l=s("rules"),p={},y=l.length;l.forEach((f,x)=>{ue(f)&&(p[f[0]]=[x,f[1],f[2]],delete l[x])});let m=et([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>Et(f,x),{}));s("extendTheme").forEach(f=>f(m));let h={templates:ot(n.map(f=>{var x;return j((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(f=>{var x;return j((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return R(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:y,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(de),shortcuts:Tn(s("shortcuts")),extractors:c})}var $e="0.30.8";var we=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ut(e,r)}version=$e;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ut(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(c=>o.add(c))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),c=this.expandShortcut(s.currentSelector,s);if(c){let p=await this.stringifyShortcuts(s.variantMatch,s,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(y=>this.stringifyUtil(y)).filter(ge);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(d=>c.add(d));let l=s?"":`
2
2
  `,p=new Set(["default"]),y=new Set,m=new Map;await Promise.all(Array.from(c).map(async d=>{var v;if(y.has(d))return;let g=await this.parseToken(d);if(g!=null){y.add(d);for(let k of g){let T=k[3]||"";m.has(T)||m.set(T,[]),m.get(T).push(k),(v=k[4])!=null&&v.layer&&p.add(k[4].layer)}}})),n&&this.config.preflights.forEach(d=>{d.layer&&p.add(d.layer)});let h={},f=this.config.sortLayers(Array.from(p).sort((d,g)=>{var v,k;return((v=this.config.layers[d])!=null?v:0)-((k=this.config.layers[g])!=null?k:0)||d.localeCompare(g)})),x={};if(n){let d={generator:this,theme:this.config.theme};x=Object.fromEntries(await Promise.all(f.map(async g=>{let k=(await Promise.all(this.config.preflights.filter(T=>(T.layer||"default")===g).map(async T=>await T.getCSS(d)))).filter(Boolean).join(l);return[g,k]})))}let E=d=>{if(h[d])return h[d];let g=Array.from(m).sort((v,k)=>{var T,V,D;return((T=this.parentOrders.get(v[0]))!=null?T:0)-((V=this.parentOrders.get(k[0]))!=null?V:0)||((D=v[0])==null?void 0:D.localeCompare(k[0]||""))||0}).map(([v,k])=>{let T=k.length,V=k.filter(u=>{var $;return((($=u[4])==null?void 0:$.layer)||"default")===d}).sort((u,$)=>{var O,B,P;return u[0]-$[0]||(((O=u[4])==null?void 0:O.sort)||0)-(((B=$[4])==null?void 0:B.sort)||0)||((P=u[1])==null?void 0:P.localeCompare($[1]||""))||0}).map(u=>{var $;return[u[1]?On(u[1],o):u[1],u[2],!!(($=u[4])!=null&&$.noMerge)]}).map(u=>[u[0]==null?u[0]:[u[0]],u[1],u[2]]);if(!V.length)return;let D=V.reverse().map(([u,$,O],B)=>{if(!O&&u&&this.config.mergeSelectors)for(let P=B+1;P<T;P++){let N=V[P];if(N&&!N[2]&&N[0]&&N[1]===$)return N[0].push(...u),null}return u?`${[...new Set(u)].join(`,${l}`)}{${$}}`:$}).filter(Boolean).reverse().join(l);return v?`${v}{${l}${D}${l}}`:D}).filter(Boolean).join(l);return n&&(g=[x[d],g].filter(Boolean).join(l)),h[d]=!s&&g?`/* layer: ${d} */${l}${g}`:g},L=(d=f,g)=>d.filter(v=>!(g!=null&&g.includes(v))).map(v=>E(v)||"").filter(Boolean).join(l);return{get css(){return L()},layers:f,getLayers:L,getLayer:E,matched:y}}matchVariants(e,r){let o=new Set,n=[],a=r||e,s=!1,c={rawSelector:e,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&o.has(l))continue;let p=l.match(a,c);if(!!p){typeof p=="string"&&(p={matcher:p}),a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),n.push(p),o.add(l),s=!0;break}}if(!s)break;if(n.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,a,n,o]}applyVariants(e,r=e[4],o=e[1]){let n=[...r].sort((c,l)=>(c.order||0)-(l.order||0)),a=n.reduce((c,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,c))||c},e[2]),s={selector:n.reduce((c,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,c,a))||c},Mn(o)),entries:a,parent:n.reduce((c,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||c,void 0),layer:n.reduce((c,l)=>l.layer||c,void 0),sort:n.reduce((c,l)=>l.sort||c,void 0)};for(let c of this.config.postprocess)c(s);return s}constructCustomCSS(e,r,o){r=rt(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),c=`${n}{${gt(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(e,r,o=!1){var y,m;let[n,a,s]=typeof e=="string"?this.matchVariants(e):e,c=this.config.rulesStaticMap[a];if(c&&c[1]&&(o||!((y=c[2])!=null&&y.internal)))return[[c[0],n,rt(c[1]),c[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let h=p-1;h>=0;h--){let f=l[h];if(!f||((m=f[2])==null?void 0:m.internal)&&!o)continue;let[x,E,L]=f,d=a.match(x);if(!d)continue;let g=await E(d,r);if(!g)continue;if(typeof g=="string")return[[h,g,L]];let v=pe(g).filter(k=>k.length);if(v.length)return v.map(k=>[h,n,k,L,s])}}stringifyUtil(e){var h;if(!e)return;if(Vt(e))return[e[0],void 0,e[1],void 0,e[2]];let{selector:r,entries:o,parent:n,layer:a,sort:s}=this.applyVariants(e),c=gt(o);if(!c)return;let f=(h=e[3])!=null?h:{},{layer:l,sort:p}=f,y=se(f,["layer","sort"]),m=R(C({},y),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,c,n,m]}expandShortcut(e,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(fe(s)){if(s[0]===e){n=n||s[2],a=s[1];break}}else{let c=e.match(s[0]);if(c&&(a=s[1](c,r)),a){n=n||s[2];break}}if(typeof a=="string"&&(a=he(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var c;return((c=this.expandShortcut(s,r,o-1))==null?void 0:c[0])||[s]}).filter(s=>s!==""),n]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var y;let a=new Ot,s=(await Promise.all(ot(o).map(async m=>{let h=await this.parseUtil(m,r,!0);return h||ye(`unmatched utility "${m}" in shortcut "${e[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((m,h)=>m[0]-h[0]),[c,,l]=e,p=[];for(let m of s){if(Vt(m)){p.push([m[0],void 0,m[1],void 0,m[2]]);continue}let{selector:h,entries:f,parent:x,sort:E}=this.applyVariants(m,[...m[4],...l],c);a.getFallback(h,x,[[],m[0]])[0].push([f,!!((y=m[3])!=null&&y.noMerge),E!=null?E:0])}return p.concat(a.map(([m,h],f,x)=>{let E=(d,g,v)=>{let k=Math.max(...v.map(V=>V[1])),T=v.map(V=>V[0]);return(d?[T.flat(1)]:T).map(V=>{let D=gt(V);if(D)return[h,f,D,x,R(C({},n),{noMerge:g,sort:k})]})};return[[m.filter(([,d])=>d).map(([d,,g])=>[d,g]),!0],[m.filter(([,d])=>!d).map(([d,,g])=>[d,g]),!1]].map(([d,g])=>[...E(!1,g,d.filter(([v])=>v.some(k=>k[0]===z))),...E(!0,g,d.filter(([v])=>v.every(k=>k[0]!==z)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Se(t,e){return new we(t,e)}var Ce=/ \$\$ /,Vn=t=>t.match(Ce);function On(t,e){return Vn(t)?t.replace(Ce,e?` ${e} `:" "):e?`${e} ${t}`:t}var ke=/^\[(.+?)(~?=)"(.*)"\]$/;function Mn(t){return ke.test(t)?t.replace(ke,(e,r,o,n)=>`[${dt(r)}${o}"${dt(n)}"]`):`.${dt(t)}`}var Pt={};bn(Pt,{auto:()=>Pn,bracket:()=>Hn,bracketOfColor:()=>Bn,bracketOfLength:()=>In,cssvar:()=>Kn,degree:()=>Xn,fraction:()=>Nn,global:()=>Yn,number:()=>Dn,numberWithUnit:()=>_n,percent:()=>Wn,properties:()=>qn,px:()=>Ln,rem:()=>Fn,time:()=>Gn});var Un=["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","border-radius"],At=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,An=/^(-?[0-9.]+)$/i,Re=/^(px)$/i;function F(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function _n(t){let e=t.match(At);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${F(n)}${o}`}function Pn(t){if(t==="auto"||t==="a")return"auto"}function Fn(t){if(t.match(Re))return`1${t}`;let e=t.match(At);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n/4)}rem`}function Ln(t){if(t.match(Re))return`1${t}`;let e=t.match(At);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}px`}function Dn(t){if(!An.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return F(e)}function Wn(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${F(e/100)}`}function Nn(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${F(o*100)}%`}function _t(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(/^\[(color|length):/i);if(o?e&&o[1]===e&&(r=t.slice(o[0].length,-1)):r=t.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,n=>n.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Hn(t){return _t(t)}function Bn(t){return _t(t,"color")}function In(t){return _t(t,"length")}function Kn(t){if(t.match(/^\$\S/))return`var(--${Tt(t.slice(1))})`}function Gn(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}ms`}function Xn(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}deg`}function Yn(t){if(["inherit","initial","revert","unset"].includes(t))return t}function qn(t){for(let e of t.split(","))if(!Un.includes(e))return;return t}var i=ve(Pt);var W=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},_=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:e}},autocomplete:`${t}:`}};var S=t=>([e,r,o],{theme:n})=>{var s,c;let a=(c=(s=n.spacing)==null?void 0:s[o||"DEFAULT"])!=null?c:i.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return M[r].map(l=>[`${t}${l}`,a])},Ft=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},Y=(t,e)=>{let r=t.split(/(?:\/|:)/),o,n;r[0]==="[color"?(o=r.slice(0,2).join(":"),n=r[2]):[o,n]=r;let a=o.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=a;if(!s)return;let c,l=i.bracketOfColor(o),p=l||o;p.startsWith("#")?c=p:p.startsWith("hex-")?c=`#${p.slice(4)}`:o.startsWith("$")&&(c=i.cssvar(o)),c=c||l;let y="DEFAULT";if(!c){let m,[h]=a.slice(-1);h.match(/^\d+$/)?(y=h,m=Ft(e,a.slice(0,-1))):(m=Ft(e,a),!m&&a.length<=2&&([,y=y]=a,m=Ft(e,[s]))),typeof m=="string"?c=m:y&&m&&(c=m[y])}return{opacity:n,name:s,no:y,color:c,cssColor:X(c),alpha:i.bracket.cssvar.percent(n!=null?n:"")}},w=(t,e)=>([,r],{theme:o})=>{var l;let n=Y(r,o);if(!n)return;let{alpha:a,color:s,cssColor:c}=n;if(c)return a!=null?{[t]:U(c,a)}:{[`--un-${e}-opacity`]:(l=c.alpha)!=null?l:1,[t]:U(c,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},q=(t,e)=>{let r=[];t=j(t);for(let o=0;o<t.length;o++){let n=Q(t[o]," ",6);if(!n||n.length<3)return t;let a=X(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${U(a)})`)}return r},bt=(t,e)=>{var r;return t!=null&&!!((r=Y(t,e))!=null&&r.color)};var ze=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o)return`@keyframes ${t}${o}
3
3
  ${r({animation:`${t}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,s,c,l,p,y,m,h,f;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let x=(l=(c=(s=e.animation)==null?void 0:s.durations)==null?void 0:c[t])!=null?l:"1s",E=(m=(y=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:y[t])!=null?m:"linear",L=(f=(h=e.animation)==null?void 0:h.properties)==null?void 0:f[t];return`@keyframes ${t}${o}
4
4
  ${r(Object.assign({animation:`${t} ${x} ${E} infinite`},L))}`}return{animation:i.bracket.cssvar(t)}}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=i.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"animation-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar(t)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=i.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var Lt=t=>([,e],{theme:r})=>{var l;let o=Y(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let c=a;switch(s&&(n!=null?c=U(s,n):c=U(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":c,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${c}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":c}}},Te=[[/^bg-(.*)$/,([,t])=>{if(/^\[url\((.+)\)\]$/.test(t))return{"--un-url":`${i.bracket(t)}`,"background-image":"var(--un-url)"};if(/^\[length:(.+)\]$/.test(t)&&i.bracketOfLength(t)!=null)return{"background-size":i.bracketOfLength(t).split(" ").map(e=>i.fraction.auto.px.cssvar(e)).join(" ")}}],[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":i.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":i.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Lt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Lt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Lt("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":i.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":i.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":i.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in A)return{"--un-gradient-shape":`to ${A[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in A?`to ${A[t]}`:i.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":A[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var je=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":t}:{"list-style-type":t}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Ee=[[/^accent-(.+)$/,w("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":i.bracket.percent(t)})]],Ve=[[/^caret-(.+)$/,w("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":i.bracket.percent(t)})]],Oe=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Me=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],Ue=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Ae=[[/^columns-(.+)$/,([,t])=>({columns:i.bracket.global.number.auto.numberWithUnit(t)})],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var Zn=/@media \(min-width: (.+)\)/,_e=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=j(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(Zn))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Pe=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let o=r.map(n=>`${n}:__container`);return t||o.unshift("__container"),o}]];var Jn={mid:"middle",base:"baseline",btm:"bottom"},Fe=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":Jn[t]||t}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Le=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var De=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:i.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,w("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:i.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],We=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Qn=t=>{var e;return(e=i.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Ne=[[/^will-change-(.+)/,([,t])=>({"will-change":Qn(t)})]];var He=[[/^(?:border|b)()(?:-(.+))?$/,nt,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,nt],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,nt],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,nt],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,nt],[/^(?:border|b)-()(?:width|size)-(.+)$/,Z,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-()(?:color-)?(.+)$/,at,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,at],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,at],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,at],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,at],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,it,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,it],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,it],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,it],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,it],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,st,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,st],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,st],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,st],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,st],["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"}]],ta=t=>([,e],r)=>{var c,l;let o=Y(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${t}-color`]:U(s,n)}:t===""?{"--un-border-opacity":(c=s.alpha)!=null?c:1,[`border${t}-color`]:U(s,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:U(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function nt(t,e){let r=Z(t,e);if(r)return[...r,["border-style","solid"]]}function Z([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:i.bracket.cssvar.px(e||"1");if(t in M&&o!=null)return M[t].map(s=>[`border${s}-width`,o])}function at([,t="",e],{theme:r}){if(t in M&&bt(e,r))return Object.assign({},...M[t].map(o=>ta(o)(["",e],r)))}function it([,t="",e]){let r=i.bracket.percent(e);if(t in M&&r!=null)return M[t].map(o=>[`--un-border${o}-opacity`,r])}function st([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||i.bracket.cssvar.fraction.rem(e||"1");if(t in Rt&&o!=null)return Rt[t].map(a=>[`border${a}-radius`,o])}var Be=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:i.bracket.percent.cssvar(t)})]],Ie=[[/^(?:text|color|c)-(.+)$/,w("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":i.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Ke=[[/^bg-(.+)$/,w("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":i.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var ht={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Ge=t=>{var e;return(e=i.properties(t))!=null?e:ht[t]},Xe=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?Ge(t):[ht.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let s=(a=(n=r.duration)==null?void 0:n[e||"DEFAULT"])!=null?a:i.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys(ht).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"transition-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":i.global(t)||Ge(t)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(ht)].join("|")})`]}],["transition-none",{transition:"none"}]];var Ye=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:i.bracket(t)!=null?i.bracket(t).split(" ").map(e=>{var r;return(r=i.cssvar.fraction(e))!=null?r:e}).join(" "):i.cssvar.fraction(t)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,o;return{"flex-basis":(o=(r=e.spacing)==null?void 0:r[t])!=null?o:i.bracket.cssvar.auto.fraction.rem(t)}}],["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 qe={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Ze=[[/^font-(.+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||i.bracket.cssvar.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=j((o=e.fontSize)==null?void 0:o[t]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":i.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=j((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:i.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":qe[t]||i.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(qe).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||i.bracket.cssvar.global.rem(t)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||i.bracket.cssvar.global.rem(t)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||i.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],Je=[[/^tab(?:-(.+))?$/,([,t])=>{let e=i.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],Qe=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||i.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],tr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||i.bracket.cssvar.px(t)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,w("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":i.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],er=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":q(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":i.bracket.cssvar(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,w("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":i.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var rr={"":"",x:"column-",y:"row-"},or=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:i.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${rr[t]}gap`]:o,[`${rr[t]}gap`]:o}},nr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,or,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,or,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var H=t=>t.replace("col","column"),Dt=t=>t[0]==="r"?"Row":"Column",ea=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Dt(t)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return i.bracket.cssvar.auto.rem(r)},ar=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-${H(t)}`]:(n=(o=r[`grid${Dt(t)}`])==null?void 0:o[e])!=null?n:i.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${H(t)}`]:"1/-1"};let r=i.bracket.number(e);if(r!=null)return{[`grid-${H(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${H(t)}-start`]:(r=i.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${H(t)}-end`]:(r=i.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${H(t)}`]:ea(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":i.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":H(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-template-${H(t)}`]:(n=(o=r[`gridTemplate${Dt(t)}`])==null?void 0:o[e])!=null?n:i.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${H(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${H(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var xt=["auto","hidden","clip","visible","scroll"],ir=[[/^(?:overflow|of)-(.+)$/,([,t])=>xt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-${xt.join("|")}`,`(overflow|of)-(x|y)-${xt.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>xt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var sr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],cr=[["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"}]],lr=[[/^order-(.+)$/,([,t])=>({order:i.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],pr=[["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"}]],ur=[["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 Wt(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:i.bracket.cssvar.auto.fraction.rem(t)}function yt([,t,e],r){let o=Wt(e,r);if(o!=null&&t in Ct)return Ct[t].map(n=>[n.slice(1),o])}var fr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Wt(t,e)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,yt],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,yt],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,yt],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,yt],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Wt(e,r)})]],mr=[["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"}]],dr=[[/^z([\d.]+)$/,([,t])=>({"z-index":i.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":i.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],gr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var b="var(--un-empty,/*!*/ /*!*/)",br=[["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"}],[/^display-(.+)$/,([,t])=>({display:i.bracket.cssvar(t)||t})]],hr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],xr=[[/^cursor-(.+)$/,([,t])=>({cursor:i.bracket.cssvar(t)||t})]],yr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],vr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],$r=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],kr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var wr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Sr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Cr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],Rr=[["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 zr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:i.px(t||"1");if(r)return[{[z]:"","--un-ring-inset":b,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--un-ring-width":r,"--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(var(--un-ring-width) + 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)"}]},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:i.bracket.cssvar.px(t)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-offset-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:i.bracket.cssvar.px(t)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,w("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":i.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,w("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":i.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Tr=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[z]:"","--un-shadow-inset":b,"--un-shadow":"0 0 #0000"},{"--un-shadow":q(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,w("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":i.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ra={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ct(t,e){return`${t||""}${ra[e]}`}function jr(t,e,r,o){var s;let n=ct(t,e).replace(/-(\w)/g,(c,l)=>l.toUpperCase()),a=(s=r[n])==null?void 0:s[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return i.bracket.cssvar.auto.fraction.rem(o)}var Er=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[ct(t,e)]:jr(t,e,o,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:o})=>({[ct(t,e)]:jr(t,e,o,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[ct(t,e)]:(n=o.verticalBreakpoints)==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[ct(t,e)]:(n=o.breakpoints)==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function oa(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return i.bracket.cssvar.auto.number(t)}var Vr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":oa(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Or=[[/^pa?()-?(-?.+)$/,S("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,S("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,S("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,S("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,S("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,S("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Mr=[[/^ma?()-?(-?.+)$/,S("margin")],[/^m-?xy()()$/,S("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,S("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,S("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,S("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,S("margin")]];var na={"--un-transform":["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},Pr={"--un-transform":["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},J=R(C({"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":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},Pr),{[z]:""}),Fr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=A[t])!=null?e:i.bracket.cssvar(t)}},{autocomplete:[`transform-origin-(${Object.keys(A).join("|")})`,`origin-(${Object.keys(A).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=i.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=i.bracket.cssvar(t))!=null?r:t.length>=3?A[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Ur],[/^(?:transform-)?translate-([xyz])-(.+)$/,Ur],[/^(?:transform-)?rotate-()(.+)$/,_r],[/^(?:transform-)?rotate-([xyz])-(.+)$/,_r],[/^(?:transform-)?skew-([xy])-(.+)$/,aa],[/^(?:transform-)?scale-()(.+)$/,Ar],[/^(?:transform-)?scale-([xyz])-(.+)$/,Ar],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[J,{transform:"var(--un-transform)"}]],["transform-gpu",na],["transform-cpu",Pr],["transform-none",{transform:"none"}]];function Ur([,t,e],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:i.bracket.cssvar.fraction.rem(e);if(o!=null)return[J,[...zt[t].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Ar([,t,e]){let r=i.bracket.cssvar.fraction.percent(e);if(r!=null)return[J,[...zt[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function _r([,t="",e]){let r=i.bracket.cssvar.degree(e);if(r!=null)return t?[J,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[J,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function aa([,t,e]){let r=i.bracket.cssvar.degree(e);if(r!=null)return[J,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var ia={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Lr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ia[t];if(r)return{[r]:i.cssvar(e)}}]],Dr=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:i.bracket(`[${e}]`)})]];var Wr=[[/^(where|\?)$/,(t,{constructCSS:e,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}}