@unocss/runtime 0.35.3 → 0.35.4

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 bt=Object.defineProperty,_n=Object.defineProperties;var Un=Object.getOwnPropertyDescriptors;var $e=Object.getOwnPropertySymbols;var ht=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable;var gt=(e,t,r)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t||(t={}))ht.call(t,r)&&gt(e,r,t[r]);if($e)for(var r of $e(t))xt.call(t,r)&&gt(e,r,t[r]);return e},E=(e,t)=>_n(e,Un(t));var yt=(e,t)=>{var r={};for(var o in e)ht.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&$e)for(var o of $e(e))t.indexOf(o)<0&&xt.call(e,o)&&(r[o]=e[o]);return r};var Fn=(e,t)=>{for(var r in t)bt(e,r,{get:t[r],enumerable:!0})};var _e=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(e=""){let t=Ln(e);if(t==null||t===!1)return;let{type:r,components:o,alpha:n}=t,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(_e.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(e,t){let{components:r}=e,{alpha:o,type:n}=e;return o=t!=null?t:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,_e.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Ln(e){if(!e)return;let t=Nn(e);if(t!=null||(t=Wn(e),t!=null)||(t=Dn(e),t!=null)||(t=Hn(e),t!=null)||(t=Kn(e),t!=null))return t}function Nn(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:t.length===6?void 0:Math.round((o&255)/255*100)/100}}}function Wn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Dn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=re(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 Bn=new RegExp(`^(${_e.join("|")})\\((.+)\\)$`,"i");function Hn(e){let t=e.match(Bn);if(!t)return;let[,r,o]=t,n=vt(`${r} ${o}`);if(n){let{alpha:a,components:[i,...c]}=n;return{type:i,components:c,alpha:a}}}function Kn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=vt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function vt(e){let t=re(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 a=t.splice(r-2);t.push(a.join(" ")),--r}let o=re(t[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:t};let n=o.pop();return t[r-1]=o.join("/"),{components:t,alpha:n}}function In(e,t){if(e=e.trim(),e==="")return;let r=e.length,o=0;for(let n=0;n<r;n++)switch(e[n]){case"(":o++;break;case")":if(--o<0)return;break;case t:if(o===0){let a=e.slice(0,n).trim();return a===""?void 0:[a,e.slice(n+1).trim()]}}return[e,""]}function re(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=In(e,t);if(!a)return;let[i,c]=a;o.push(i),e=c}if(o.length>0)return o}var O={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"]},Ue=E(w({},O),{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"]}),Fe={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"]},Le={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},$t=["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({},...$t.map(e=>({[e.replace(/ /,"-")]:e})),...$t.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),L=["inherit","initial","revert","revert-layer","unset"];function oe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ne(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\,";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&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var ke=Ne;function ae(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function kt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ae(t)):[e]:[ae(e)]}function Gn(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function Se(e){return e==null?"":Gn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function we(e){return e&&typeof e=="object"&&!Array.isArray(e)}function We(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=w({},r);return we(r)&&we(o)&&Object.keys(o).forEach(a=>{we(r[a])&&we(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=We(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ne(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?ne(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:ne(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?ne(o):o;return r}return e}function wt(e){return typeof e[0]=="string"}function St(e){return typeof e[0]=="string"}function _(e=[]){return Array.isArray(e)?e:[e]}function ie(e){return Array.from(new Set(e))}var qn=/^\[(.+?)~?="(.*)"\]$/;var Xn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,j="$$shortcut-no-merge";function Ct(e){return e.match(qn)}function se(e=""){return Xn.test(e)}function Rt(e){return typeof e=="function"?{match:e}:e}function De(e){return e.length===3}function Et(e){return e!=null}function Be(){}var Ce=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var Tt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function zt(e){Tt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(Tt,(o,n,a,i)=>i.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var jt=new Set;function At(e){jt.has(e)||(console.warn("[unocss]",e),jt.add(e))}function Ot(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let c=e[i](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(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var Yn=e=>e.split(/[\s'"`;>=]+/g).filter(se),ce={name:"split",order:0,extract({code:e}){return new Set(Yn(e))}};function Vt(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function Zn(e){return _(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Jn={shortcuts:-1,default:0};function He(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(_),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Jn,...o.map(u=>u.layers),e.layers);function i(u){return ie([...n.flatMap(h=>_(h[u]||[])),..._(r[u]||[])])}let c=i("extractors");c.length||c.push(ce),c.sort((u,h)=>(u.order||0)-(h.order||0));let l=i("rules"),p={},g=l.length;l.forEach((u,h)=>{wt(u)&&(p[u[0]]=[h,u[1],u[2],u],delete l[h])});let f=ne([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,h)=>We(u,h),{}));i("extendTheme").forEach(u=>u(f));let d={templates:ie(n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return E(w({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:g,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:d,variants:i("variants").map(Rt),shortcuts:Zn(i("shortcuts")),extractors:c,safelist:i("safelist")})}var Mt="0.35.3";var Ke=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=He(t,r),this.events.emit("config",this.config)}version=Mt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Vt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=He(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,id:r};for(let a of this.config.extractors){let i=await a.extract(n);i==null||i.forEach(c=>o.add(c))}return o}makeContext(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let i=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let c=this.expandShortcut(i.currentSelector,i);if(c){let p=await this.stringifyShortcuts(i.variantMatch,i,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(i.variantMatch,i))==null?void 0:l.map(g=>this.stringifyUtil(g,i)).filter(Et);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(b=>c.add(b));let l=i?"":`
1
+ (()=>{var bt=Object.defineProperty,_n=Object.defineProperties;var Un=Object.getOwnPropertyDescriptors;var $e=Object.getOwnPropertySymbols;var ht=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable;var gt=(e,t,r)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t||(t={}))ht.call(t,r)&&gt(e,r,t[r]);if($e)for(var r of $e(t))xt.call(t,r)&&gt(e,r,t[r]);return e},E=(e,t)=>_n(e,Un(t));var yt=(e,t)=>{var r={};for(var o in e)ht.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&$e)for(var o of $e(e))t.indexOf(o)<0&&xt.call(e,o)&&(r[o]=e[o]);return r};var Fn=(e,t)=>{for(var r in t)bt(e,r,{get:t[r],enumerable:!0})};var _e=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(e=""){let t=Ln(e);if(t==null||t===!1)return;let{type:r,components:o,alpha:n}=t,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(_e.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(e,t){let{components:r}=e,{alpha:o,type:n}=e;return o=t!=null?t:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,_e.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Ln(e){if(!e)return;let t=Nn(e);if(t!=null||(t=Wn(e),t!=null)||(t=Dn(e),t!=null)||(t=Hn(e),t!=null)||(t=Kn(e),t!=null))return t}function Nn(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:t.length===6?void 0:Math.round((o&255)/255*100)/100}}}function Wn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Dn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=re(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 Bn=new RegExp(`^(${_e.join("|")})\\((.+)\\)$`,"i");function Hn(e){let t=e.match(Bn);if(!t)return;let[,r,o]=t,n=vt(`${r} ${o}`);if(n){let{alpha:a,components:[i,...c]}=n;return{type:i,components:c,alpha:a}}}function Kn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=vt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function vt(e){let t=re(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 a=t.splice(r-2);t.push(a.join(" ")),--r}let o=re(t[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:t};let n=o.pop();return t[r-1]=o.join("/"),{components:t,alpha:n}}function In(e,t){if(e=e.trim(),e==="")return;let r=e.length,o=0;for(let n=0;n<r;n++)switch(e[n]){case"(":o++;break;case")":if(--o<0)return;break;case t:if(o===0){let a=e.slice(0,n).trim();return a===""?void 0:[a,e.slice(n+1).trim()]}}return[e,""]}function re(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=In(e,t);if(!a)return;let[i,c]=a;o.push(i),e=c}if(o.length>0)return o}var O={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"]},Ue=E(w({},O),{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"]}),Fe={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"]},Le={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},$t=["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({},...$t.map(e=>({[e.replace(/ /,"-")]:e})),...$t.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),L=["inherit","initial","revert","revert-layer","unset"];function oe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ne(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\,";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&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var ke=Ne;function ae(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function kt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ae(t)):[e]:[ae(e)]}function Gn(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function Se(e){return e==null?"":Gn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function we(e){return e&&typeof e=="object"&&!Array.isArray(e)}function We(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=w({},r);return we(r)&&we(o)&&Object.keys(o).forEach(a=>{we(r[a])&&we(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=We(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ne(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?ne(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:ne(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?ne(o):o;return r}return e}function wt(e){return typeof e[0]=="string"}function St(e){return typeof e[0]=="string"}function _(e=[]){return Array.isArray(e)?e:[e]}function ie(e){return Array.from(new Set(e))}var qn=/^\[(.+?)~?="(.*)"\]$/;var Xn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,j="$$shortcut-no-merge";function Ct(e){return e.match(qn)}function se(e=""){return Xn.test(e)}function Rt(e){return typeof e=="function"?{match:e}:e}function De(e){return e.length===3}function Et(e){return e!=null}function Be(){}var Ce=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var Tt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function zt(e){Tt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(Tt,(o,n,a,i)=>i.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var jt=new Set;function At(e){jt.has(e)||(console.warn("[unocss]",e),jt.add(e))}function Ot(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let c=e[i](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(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var Yn=e=>e.split(/[\s'"`;>=]+/g).filter(se),ce={name:"split",order:0,extract({code:e}){return new Set(Yn(e))}};function Vt(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function Zn(e){return _(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Jn={shortcuts:-1,default:0};function He(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(_),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Jn,...o.map(u=>u.layers),e.layers);function i(u){return ie([...n.flatMap(h=>_(h[u]||[])),..._(r[u]||[])])}let c=i("extractors");c.length||c.push(ce),c.sort((u,h)=>(u.order||0)-(h.order||0));let l=i("rules"),p={},g=l.length;l.forEach((u,h)=>{wt(u)&&(p[u[0]]=[h,u[1],u[2],u],delete l[h])});let f=ne([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,h)=>We(u,h),{}));i("extendTheme").forEach(u=>u(f));let d={templates:ie(n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return E(w({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:g,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:d,variants:i("variants").map(Rt),shortcuts:Zn(i("shortcuts")),extractors:c,safelist:i("safelist")})}var Mt="0.35.4";var Ke=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=He(t,r),this.events.emit("config",this.config)}version=Mt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Vt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=He(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,id:r};for(let a of this.config.extractors){let i=await a.extract(n);i==null||i.forEach(c=>o.add(c))}return o}makeContext(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let i=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let c=this.expandShortcut(i.currentSelector,i);if(c){let p=await this.stringifyShortcuts(i.variantMatch,i,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(i.variantMatch,i))==null?void 0:l.map(g=>this.stringifyUtil(g,i)).filter(Et);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(b=>c.add(b));let l=i?"":`
2
2
  `,p=new Set(["default"]),g=new Set,f=new Map;await Promise.all(Array.from(c).map(async b=>{var y;if(g.has(b))return;let x=await this.parseToken(b);if(x!=null){g.add(b);for(let S of x){let T=S[3]||"";f.has(T)||f.set(T,[]),f.get(T).push(S),(y=S[4])!=null&&y.layer&&p.add(S[4].layer)}}})),n&&this.config.preflights.forEach(b=>{b.layer&&p.add(b.layer)});let d={},u=this.config.sortLayers(Array.from(p).sort((b,x)=>{var y,S;return((y=this.config.layers[b])!=null?y:0)-((S=this.config.layers[x])!=null?S:0)||b.localeCompare(x)})),h={};if(n){let b={generator:this,theme:this.config.theme};h=Object.fromEntries(await Promise.all(u.map(async x=>{let S=(await Promise.all(this.config.preflights.filter(T=>(T.layer||"default")===x).map(async T=>await T.getCSS(b)))).filter(Boolean).join(l);return[x,S]})))}let $=b=>{if(d[b])return d[b];let x=Array.from(f).sort((y,S)=>{var T,V,W;return((T=this.parentOrders.get(y[0]))!=null?T:0)-((V=this.parentOrders.get(S[0]))!=null?V:0)||((W=y[0])==null?void 0:W.localeCompare(S[0]||""))||0}).map(([y,S])=>{let T=S.length,V=S.filter(m=>{var k;return(((k=m[4])==null?void 0:k.layer)||"default")===b}).sort((m,k)=>{var M,K,F;return m[0]-k[0]||(((M=m[4])==null?void 0:M.sort)||0)-(((K=k[4])==null?void 0:K.sort)||0)||((F=m[1])==null?void 0:F.localeCompare(k[1]||""))||0}).map(m=>{var k;return[m[1]?ta(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(!V.length)return;let W=V.reverse().map(([m,k,M],K)=>{if(!M&&m&&this.config.mergeSelectors)for(let F=K+1;F<T;F++){let B=V[F];if(B&&!B[2]&&B[0]&&B[1]===k)return B[0].push(...m),null}return m?`${[...new Set(m)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${W}${l}}`:W}).filter(Boolean).join(l);return n&&(x=[h[b],x].filter(Boolean).join(l)),d[b]=!i&&x?`/* layer: ${b} */${l}${x}`:x},z=(b=u,x)=>b.filter(y=>!(x!=null&&x.includes(y))).map(y=>$(y)||"").filter(Boolean).join(l);return{get css(){return z()},layers:u,getLayers:z,getLayer:$,matched:g}}matchVariants(t,r){let o=new Set,n=[],a=r||t,i=!1,c={rawSelector:t,theme:this.config.theme,generator:this};for(;;){i=!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.unshift(p),o.add(l),i=!0;break}}if(!i)break;if(n.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,a,n,o]}applyVariants(t,r=t[4],o=t[1]){let n=[...r].sort((l,p)=>(l.order||0)-(p.order||0)),a=n.reduce((l,p)=>{var g;return((g=p.body)==null?void 0:g.call(p,l))||l},t[2]),i=n.reduce((l,p)=>{var g;return((g=p.selector)==null?void 0:g.call(p,l,a))||l},oa(o)),c={selector:ra(i),entries:a,parent:n.reduce((l,p)=>Array.isArray(p.parent)?p.parent[0]:p.parent||l,void 0),layer:n.reduce((l,p)=>p.layer||l,void 0),sort:n.reduce((l,p)=>p.sort||l,void 0)};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,o){r=ae(r);let{selector:n,entries:a,parent:i}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),c=`${n}{${Se(a)}}`;return i?`${i}{${c}}`:c}async parseUtil(t,r,o=!1){var f,d;let[n,a,i]=typeof t=="string"?this.matchVariants(t):t,c=this.config.details?u=>{var h;r.rules=(h=r.rules)!=null?h:[],r.rules.push(u)}:Be,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((f=l[2])!=null&&f.internal)))return c(l[3]),[[l[0],n,ae(l[1]),l[2],i]];r.variantHandlers=i;let{rulesDynamic:p,rulesSize:g}=this.config;for(let u=g-1;u>=0;u--){let h=p[u];if(!h||((d=h[2])==null?void 0:d.internal)&&!o)continue;let[$,z,b]=h,x=a.match($);if(!x)continue;let y=await z(x,r);if(!y)continue;if(c(h),typeof y=="string")return[[u,y,b]];let S=kt(y).filter(T=>T.length);if(S.length)return S.map(T=>[u,n,T,b,i])}}stringifyUtil(t,r){var u;if(!t)return;if(De(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:o,entries:n,parent:a,layer:i,sort:c}=this.applyVariants(t),l=Se(n);if(!l)return;let h=(u=t[3])!=null?u:{},{layer:p,sort:g}=h,f=yt(h,["layer","sort"]),d=E(w({},f),{layer:i!=null?i:p,sort:c!=null?c:g});return[t[0],o,l,a,d,this.config.details?r:void 0]}expandShortcut(t,r,o=3){if(o===0)return;let n=this.config.details?c=>{var l;r.shortcuts=(l=r.shortcuts)!=null?l:[],r.shortcuts.push(c)}:Be,a,i;for(let c of this.config.shortcuts)if(St(c)){if(c[0]===t){a=a||c[2],i=c[1],n(c);break}}else{let l=t.match(c[0]);if(l&&(i=c[1](l,r)),i){a=a||c[2],n(c);break}}if(typeof i=="string"&&(i=zt(i).split(/\s+/g)),!!i)return[i.flatMap(c=>{var l;return((l=this.expandShortcut(c,r,o-1))==null?void 0:l[0])||[c]}).filter(c=>c!==""),a]}async stringifyShortcuts(t,r,o,n={layer:this.config.shortcutsLayer}){var g;let a=new Ce,i=(await Promise.all(ie(o).map(async f=>{let d=await this.parseUtil(f,r,!0);return d||At(`unmatched utility "${f}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((f,d)=>f[0]-d[0]),[c,,l]=t,p=[];for(let f of i){if(De(f)){p.push([f[0],void 0,f[1],void 0,f[2],r]);continue}let{selector:d,entries:u,parent:h,sort:$}=this.applyVariants(f,[...f[4],...l],c);a.getFallback(d,h,[[],f[0]])[0].push([u,!!((g=f[3])!=null&&g.noMerge),$!=null?$:0])}return p.concat(a.map(([f,d],u,h)=>{let $=(b,x,y)=>{let S=Math.max(...y.map(V=>V[1])),T=y.map(V=>V[0]);return(b?[T.flat(1)]:T).map(V=>{let W=Se(V);if(W)return[d,u,W,h,E(w({},n),{noMerge:x,sort:S}),r]})};return[[f.filter(([,b])=>b).map(([b,,x])=>[b,x]),!0],[f.filter(([,b])=>!b).map(([b,,x])=>[b,x]),!1]].map(([b,x])=>[...$(!1,x,b.filter(([y])=>y.some(S=>S[0]===j))),...$(!0,x,b.filter(([y])=>y.every(S=>S[0]!==j)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function _t(e,t){return new Ke(e,t)}var Ut=/ \$\$ /,ea=e=>e.match(Ut);function ta(e,t){return ea(e)?e.replace(Ut,t?` ${t} `:" "):t?`${t} ${e}`:e}function ra(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var Pt=/^\[(.+?)(~?=)"(.*)"\]$/;function oa(e){return Pt.test(e)?e.replace(Pt,(t,r,o,n)=>`[${ke(r)}${o}"${ke(n)}"]`):`.${ke(e)}`}var Ge={};Fn(Ge,{auto:()=>sa,bracket:()=>da,bracketOfColor:()=>ga,bracketOfLength:()=>ba,bracketOfPosition:()=>ha,cssvar:()=>xa,degree:()=>va,fraction:()=>fa,global:()=>$a,number:()=>pa,numberWithUnit:()=>ia,percent:()=>ua,position:()=>wa,properties:()=>ka,px:()=>la,rem:()=>ca,time:()=>ya});var na=["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"],Ie=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,aa=/^(-?[0-9.]+)$/i,Ft=/^(px)$/i;function N(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function ia(e){let t=e.match(Ie);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${N(n)}${o}`}function sa(e){if(e==="auto"||e==="a")return"auto"}function ca(e){if(e.match(Ft))return`1${e}`;let t=e.match(Ie);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n/4)}rem`}function la(e){if(e.match(Ft))return`1${e}`;let t=e.match(Ie);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}px`}function pa(e){if(!aa.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return N(t)}function ua(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${N(t/100)}`}function fa(e){if(e==="full")return"100%";let[t,r]=e.split("/"),o=parseFloat(t)/parseFloat(r);if(!Number.isNaN(o))return`${N(o*100)}%`}var ma=/^\[(color|length|position):/i;function Re(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,o=e.match(ma);if(o?t&&o[1]===t&&(r=e.slice(o[0].length,-1)):r=e.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 da(e){return Re(e)}function ga(e){return Re(e,"color")}function ba(e){return Re(e,"length")}function ha(e){return Re(e,"position")}function xa(e){if(e.match(/^\$\S/))return`var(--${Ne(e.slice(1))})`}function ya(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}ms`}function va(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}deg`}function $a(e){if(L.includes(e))return e}function ka(e){if(e.split(",").every(t=>na.includes(t)))return e}function wa(e){if(["top","left","right","bottom","center"].includes(e))return e}var s=Ot(Ge);var D=(e,t)=>{let r=new RegExp(`^${oe(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},P=(e,t)=>{let r=new RegExp(`^${oe(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:t}},autocomplete:`${e}:`}};var Ee="$$mini-no-negative",R=e=>([t,r,o],{theme:n})=>{var i,c;let a=(c=(i=n.spacing)==null?void 0:i[o||"DEFAULT"])!=null?c:s.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return O[r].map(l=>[`${e}${l}`,a])},qe=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},Y=(e,t)=>{let r=e.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),[i]=a;if(!i)return;let c,l=s.bracketOfColor(o),p=l||o;p.startsWith("#")?c=p:p.startsWith("hex-")?c=`#${p.slice(4)}`:o.startsWith("$")&&(c=s.cssvar(o)),c=c||l;let g="DEFAULT";if(!c){let f,[d]=a.slice(-1);d.match(/^\d+$/)?(g=d,f=qe(t,a.slice(0,-1))):(f=qe(t,a),!f&&a.length<=2&&([,g=g]=a,f=qe(t,[i]))),typeof f=="string"?c=f:g&&f&&(c=f[g])}return{opacity:n,name:i,no:g,color:c,cssColor:X(c),alpha:s.bracket.cssvar.percent(n!=null?n:"")}},C=(e,t)=>([,r],{theme:o})=>{var l;let n=Y(r,o);if(!n)return;let{alpha:a,color:i,cssColor:c}=n;if(c)return a!=null?{[e]:U(c,a)}:{[`--un-${t}-opacity`]:(l=c.alpha)!=null?l:1,[e]:U(c,`var(--un-${t}-opacity)`)};if(i)return{[e]:i.replace("%alpha",`${a!=null?a:1}`)}},Z=(e,t)=>{let r=[];e=_(e);for(let o=0;o<e.length;o++){let n=re(e[o]," ",6);if(!n||n.length<3)return e;let a=X(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${U(a)})`)}return r},Te=(e,t)=>{var r;return e!=null&&!!((r=Y(e,t))!=null&&r.color)},J=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},Lt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Nt=[[/^(?:animate-)?keyframes-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o)return`@keyframes ${e}${o}
3
3
  ${r({animation:`${e}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a,i,c,l,p,g,f,d,u;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let h=(l=(c=(i=t.animation)==null?void 0:i.durations)==null?void 0:c[e])!=null?l:"1s",$=(f=(g=(p=t.animation)==null?void 0:p.timingFns)==null?void 0:g[e])!=null?f:"linear",z=(u=(d=t.animation)==null?void 0:d.properties)==null?void 0:u[e];return`@keyframes ${e}${o}
4
4
  ${r(Object.assign({animation:`${e} ${h} ${$} infinite`},z))}`}return{animation:s.bracket.cssvar(e)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,e])=>{var t;return{"animation-name":(t=s.bracket.cssvar(e))!=null?t:e}}],[/^animate-duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"animation-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:s.bracket.cssvar.time(e)}},{autocomplete:["animate-duration","animate-duration-$duration"]}],[/^animate-delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"animation-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:s.bracket.cssvar.time(e)}},{autocomplete:["animate-delay","animate-delay-$duration"]}],[/^animate-ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"animation-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o:s.bracket.cssvar(e)}},{autocomplete:"animate-delay-$easing"}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)$/,([,e])=>({"animation-fill-mode":e}),{autocomplete:["animate-(fill|mode|fill-mode)","animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)","animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)$/,([,e])=>({"animation-direction":e}),{autocomplete:["animate-direction","animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)","animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,e])=>{var t;return{"animation-iteration-count":(t=s.bracket.cssvar(e))!=null?t:e.replace(/\-/g,",")}},{autocomplete:["animate-(iteration|count|iteration-count)","animate-(iteration|count|iteration-count)-<num>"]}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|revert-layer|unset)$/,([,e])=>({"animation-play-state":e}),{autocomplete:["animate-(play|state|play-state)","animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)","animate-(paused|running|inherit|initial|revert|revert-layer|unset)"]}],["animate-none",{animation:"none"}]];var Xe=e=>([,t],{theme:r})=>{var l;let o=Y(t,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(!a)return;let c=a;switch(i&&(n!=null?c=U(i,n):c=U(i,`var(--un-${e}-opacity, ${(l=i.alpha)!=null?l:1})`)),e){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}}},Sa=/^\[url\(.+\)\]$/,Ca=/^\[length:.+\]$/,Ra=/^\[position:.+\]$/,Wt=[[/^bg-(.+)$/,([,e])=>{if(Sa.test(e))return{"--un-url":s.bracket(e),"background-image":"var(--un-url)"};if(Ca.test(e)&&s.bracketOfLength(e)!=null)return{"background-size":s.bracketOfLength(e).split(" ").map(t=>s.fraction.auto.px.cssvar(t)).join(" ")};if(Ra.test(e)&&s.bracketOfPosition(e)!=null)return{"background-position":s.bracketOfPosition(e).split(" ").map(t=>s.position.fraction.auto.px.cssvar(t)).join(" ")}}],[/^bg-gradient-(.+)$/,([,e])=>({"--un-gradient":s.bracket(e)}),{autocomplete:["bg-gradient","bg-gradient-(from|to|via)","bg-gradient-(from|to|via)-$colors","bg-gradient-(from|to|via)-(op|opacity)","bg-gradient-(from|to|via)-(op|opacity)-<percent>"]}],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,e])=>({"--un-gradient-stops":s.bracket(e)})],[/^(?:bg-gradient-)?from-(.+)$/,Xe("from")],[/^(?:bg-gradient-)?to-(.+)$/,Xe("to")],[/^(?:bg-gradient-)?via-(.+)$/,Xe("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,e])=>({"--un-from-opacity":s.bracket.percent(e)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,e])=>({"--un-to-opacity":s.bracket.percent(e)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,e])=>({"--un-via-opacity":s.bracket.percent(e)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,e])=>({"background-image":`${e}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`}),{autocomplete:["bg-gradient-repeating","bg-gradient-(linear|radial|conic)","bg-gradient-repeating-(linear|radial|conic)"]}],[/^bg-gradient-to-([rltb]{1,2})$/,([,e])=>{if(e in A)return{"--un-gradient-shape":`to ${A[e]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}},{autocomplete:`bg-gradient-to-(${Object.keys(A).filter(e=>e.length<=2&&Array.from(e).every(t=>"rltb".includes(t))).join("|")})`}],[/^(?:bg-gradient-)?shape-(.+)$/,([,e])=>{let t=e in A?`to ${A[e]}`:s.bracket(e);if(t!=null)return{"--un-gradient-shape":t,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}},{autocomplete:["bg-gradient-shape",`bg-gradient-shape-(${Object.keys(A).join("|")})`,`shape-(${Object.keys(A).join("|")})`]}],["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,})$/,([,e])=>({"background-position":A[e]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-repeat":"repeat-x"}],["bg-repeat-y",{"background-repeat":"repeat-y"}],["bg-repeat-round",{"background-repeat":"round"}],["bg-repeat-space",{"background-repeat":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var ze={disc:"disc",circle:"circle",square:"square",decimal:"decimal","zero-decimal":"decimal-leading-zero",greek:"lower-greek",roman:"lower-roman","upper-roman":"upper-roman",alpha:"lower-alpha","upper-alpha":"upper-alpha",latin:"lower-latin","upper-latin":"upper-latin"},Dt=[[/^list-(.+)(?:-(outside|inside))?$/,([,e,t])=>t!=null?{"list-style-position":t,"list-style-type":ze[e]}:{"list-style-type":ze[e]},{autocomplete:[`list-(${Object.keys(ze).join("|")})`,`list-(${Object.keys(ze).join("|")})-(outside|inside)`]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Bt=[[/^accent-(.+)$/,C("accent-color","accent"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,e])=>({"--un-accent-opacity":s.bracket.percent(e)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],Ht=[[/^caret-(.+)$/,C("caret-color","caret"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,e])=>({"--un-caret-opacity":s.bracket.percent(e)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],Kt=[["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"]]]],It=[["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"}]],Gt=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var qt=[[/^columns-(.+)$/,([,e])=>({columns:s.bracket.global.number.auto.numberWithUnit(e)}),{autocomplete:"columns-<num>"}],["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 Ea=/@media \(min-width: (.+)\)/,Xt=[[/^__container$/,(e,{variantHandlers:t})=>{var o;let r="100%";for(let n of t){let a=_(n.parent||[])[0];if(typeof a=="string"){let i=(o=a.match(Ea))==null?void 0:o[1];i&&(r=i)}}return{"max-width":r}},{internal:!0}]],Yt=[[/^(?:(\w+)[:-])?container$/,([,e],t)=>{var n;let r=Object.keys((n=J(t))!=null?n:{});if(e){if(!r.includes(e))return;r=r.slice(r.indexOf(e))}let o=r.map(a=>`${a}:__container`);return e||o.unshift("__container"),o}]];var Zt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},Jt=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Zt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(Zt).join("|")})`}]],Qt=["center","left","right","justify","start","end",...L].map(e=>[`text-${e}`,{"text-align":e}]);var er=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,C("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-offset":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...L].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],tr=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Ta=e=>{var t;return(t=s.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},rr=[[/^will-change-(.+)/,([,e])=>({"will-change":Ta(e)})]];var me=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...L],or=[[/^(?:border|b)()(?:-(.+))?$/,le,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,le],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,le],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,le],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,le],[/^(?:border|b)-()(?:width|size)-(.+)$/,Q,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-()(?:color-)?(.+)$/,pe,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,pe],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,pe],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,pe],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,pe],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ue,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ue],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,fe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,fe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,fe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,fe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,fe],[/^(?:border|b)-(?:style-)?()(.+)$/,ee,{autocomplete:["(border|b)-style",`(border|b)-(${me.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${me.join("|")})`,`(border|b)-<directions>-style-(${me.join("|")})`,`(border|b)-style-(${me.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,ee],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ee],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ee],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ee]],za=e=>([,t],r)=>{var c,l;let o=Y(t,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(i)return n!=null?{[`border${e}-color`]:U(i,n)}:e===""?{"--un-border-opacity":(c=i.alpha)!=null?c:1,[`border${e}-color`]:U(i,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(l=i.alpha)!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:U(i,`var(--un-border${e}-opacity)`)};if(a)return{[`border${e}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function le(e,t){let r=Q(e,t),o=ee(["",e[1],"solid"]);if(r&&o)return[...r,...o]}function Q([,e="",t],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])!=null?a:s.bracket.cssvar.px(t||"1");if(e in O&&o!=null)return O[e].map(i=>[`border${i}-width`,o])}function pe([,e="",t],{theme:r}){if(e in O&&Te(t,r))return Object.assign({},...O[e].map(o=>za(o)(["",t],r)))}function ue([,e="",t]){let r=s.bracket.percent(t);if(e in O&&r!=null)return O[e].map(o=>[`--un-border${o}-opacity`,r])}function fe([,e="",t],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[t||"DEFAULT"])||s.bracket.cssvar.fraction.rem(t||"1");if(e in Fe&&o!=null)return Fe[e].map(a=>[`border${a}-radius`,o])}function ee([,e="",t]){if(me.includes(t)&&e in O)return O[e].map(r=>[`border${r}-style`,t])}var nr=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:s.bracket.percent.cssvar(e)})]],ar=[[/^(?:text|color|c)-(.+)$/,C("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":s.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],ir=[[/^bg-(.+)$/,C("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":s.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var je={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},sr=e=>{var t;return(t=s.properties(e))!=null?t:je[e]},cr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?sr(e):[je.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let i=(a=(n=r.duration)==null?void 0:n[t||"DEFAULT"])!=null?a:s.time(t||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(je).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:s.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:s.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"transition-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o:s.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":s.global(e)||sr(e)}),{autocomplete:[`transition-property-(${[...L,...Object.keys(je)].join("|")})`]}],["transition-none",{transition:"none"}]];var lr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:s.bracket(e)!=null?s.bracket(e).split(" ").map(t=>{var r;return(r=s.cssvar.fraction(t))!=null?r:t}).join(" "):s.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,o;return{"flex-basis":(o=(r=t.spacing)==null?void 0:r[e])!=null?o:s.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 pr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},ur=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||s.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=_((o=t.fontSize)==null?void 0:o[e]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":s.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var n,a;let r=_((n=t.fontSize)==null?void 0:n[e]),o=(a=r==null?void 0:r[0])!=null?a:s.bracket.cssvar.rem(e);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":pr[e]||s.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(pr).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||s.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":e}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||s.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])||s.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],fr=[[/^tab(?:-(.+))?$/,([,e])=>{let t=s.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],mr=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||s.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],dr=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||s.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,C("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":s.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],gr=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.textShadow)==null?void 0:o[e||"DEFAULT"];return r!=null?{"--un-text-shadow":Z(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":s.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,C("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":s.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var br={"":"",x:"column-",y:"row-"},hr=([,e="",t],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:s.bracket.cssvar.rem(t);if(o!=null)return{[`grid-${br[e]}gap`]:o,[`${br[e]}gap`]:o}},xr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,hr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,hr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var H=e=>e.replace("col","column"),Ye=e=>e[0]==="r"?"Row":"Column",ja=(e,t,r)=>{var n;let o=(n=t[`gridAuto${Ye(e)}`])==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 s.bracket.cssvar.auto.rem(r)},yr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-${H(e)}`]:(n=(o=r[`grid${Ye(e)}`])==null?void 0:o[t])!=null?n:s.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${H(e)}`]:"1/-1"};let r=s.bracket.number(t);if(r!=null)return{[`grid-${H(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-${H(e)}-start`]:(r=s.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${H(e)}-end`]:(r=s.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${H(e)}`]:ja(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":s.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":H(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-template-${H(e)}`]:(n=(o=r[`gridTemplate${Ye(e)}`])==null?void 0:o[t])!=null?n:s.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${H(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${H(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Ae=["auto","hidden","clip","visible","scroll"],vr=[[/^(?:overflow|of)-(.+)$/,([,e])=>Ae.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Ae.join("|")})`,`(overflow|of)-(x|y)-(${Ae.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Ae.includes(t)?{[`overflow-${e}`]:t}:void 0]];var $r=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],kr=[["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"}]],wr=[[/^order-(.+)$/,([,e])=>({order:s.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Sr=[["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"}]],Cr=[["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 Ze(e,{theme:t}){var r,o;return(o=(r=t.spacing)==null?void 0:r[e])!=null?o:s.bracket.cssvar.auto.fraction.rem(e)}function Oe([,e,t],r){let o=Ze(t,r);if(o!=null&&e in Ue)return Ue[e].map(n=>[n.slice(1),o])}var Rr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Ze(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])-(.+)$/,Oe],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Oe],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Oe],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Oe],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Ze(t,r)})]],Er=[["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"}]],Tr=[[/^z([\d.]+)$/,([,e])=>({"z-index":s.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":s.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],zr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var v="var(--un-empty,/*!*/ /*!*/)",jr=[["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:s.bracket.cssvar(e)||e})]],Ar=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Or=[[/^cursor-(.+)$/,([,e])=>({cursor:s.bracket.cssvar(e)||e})]],Vr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Mr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Pr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],_r=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],Ur=[[/^content-(.+)$/,([,e])=>{let t=s.bracket.cssvar(e);return{content:t==null?`"${e}"`:t}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],Fr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Lr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Nr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Wr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Dr=[["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 Br=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var o,n;let r=(n=(o=t.ringWidth)==null?void 0:o[e||"DEFAULT"])!=null?n:s.px(e||"1");if(r)return[{[j]:"","--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-)(.+)$/,([,e],{theme:t})=>{var r,o;return{"--un-ring-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.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,o;return{"--un-ring-offset-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,C("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":s.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,C("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":s.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Hr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return[{[j]:"","--un-shadow-inset":v,"--un-shadow":"0 0 #0000"},{"--un-shadow":Z(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-(.+)$/,C("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":s.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Aa={h:"height",w:"width",inline:"inline-size",block:"block-size"};function de(e,t){return`${e||""}${Aa[t]}`}function Kr(e,t,r,o){var i;let n=de(e,t).replace(/-(\w)/g,(c,l)=>l.toUpperCase()),a=(i=r[n])==null?void 0:i[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return s.bracket.cssvar.auto.fraction.rem(o)}var Ir=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[de(e,t)]:Kr(e,t,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)-(.+)$/,([,e,t,r],{theme:o})=>({[de(e,t)]:Kr(e,t,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-(.+)$/,([,e,t,r],o)=>{var n;return{[de(e,t)]:(n=Lt(o))==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],o)=>{var n;return{[de(e,t)]:(n=J(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Oa(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return s.bracket.cssvar.auto.number(e)}var Gr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Oa(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var qr=[[/^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>"}]],Xr=[[/^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 Va={"--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(" ")},Qr={"--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(" ")},te=E(w({"--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},Qr),{[j]:"",[Ee]:""}),eo=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=A[e])!=null?t:s.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(A).join("|")})`,`origin-(${Object.keys(A).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=s.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=s.bracket.cssvar(e))!=null?r:e.length>=3?A[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Yr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Yr],[/^(?:transform-)?rotate-()(.+)$/,Jr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Jr],[/^(?:transform-)?skew-([xy])-(.+)$/,Ma],[/^(?:transform-)?scale-()(.+)$/,Zr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Zr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[te,{transform:"var(--un-transform)"}]],["transform-gpu",Va],["transform-cpu",Qr],["transform-none",{transform:"none"}]];function Yr([,e,t],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:s.bracket.cssvar.fraction.rem(t);if(o!=null)return[te,[...Le[e].map(i=>[`--un-translate${i}`,o]),["transform","var(--un-transform)"]]]}function Zr([,e,t]){let r=s.bracket.cssvar.fraction.percent(t);if(r!=null)return[te,[...Le[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Jr([,e="",t]){let r=s.bracket.cssvar.degree(t);if(r!=null)return e?[te,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[te,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function Ma([,e,t]){let r=s.bracket.cssvar.degree(t);if(r!=null)return[te,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var Pa={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"},to=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Pa[e];if(r)return{[r]:s.cssvar(t)}}]],ro=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:s.bracket(`[${t}]`)})]];var oo=[[/^(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}}
package/core.global.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{var St=Object.defineProperty,xt=Object.defineProperties;var Ct=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var Z=(r,t,e)=>t in r?St(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,T=(r,t)=>{for(var e in t||(t={}))J.call(t,e)&&Z(r,e,t[e]);if(k)for(var e of k(t))Q.call(t,e)&&Z(r,e,t[e]);return r},O=(r,t)=>xt(r,Ct(t));var X=(r,t)=>{var e={};for(var n in r)J.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&k)for(var n of k(r))t.indexOf(n)<0&&Q.call(r,n)&&(e[n]=r[n]);return e};function bt(r){let t=r.length,e=-1,n,s="",o=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){s+="\uFFFD";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&o===45){s+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){s+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(e);continue}s+=`\\${r.charAt(e)}`}return s}var K=bt;function P(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function Y(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>P(t)):[r]:[P(r)]}function Et(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(r[s][0]===t&&r[s][1]===e)return!1;return!0})}function L(r){return r==null?"":Et(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function D(r){return r&&typeof r=="object"&&!Array.isArray(r)}function F(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let s=T({},e);return D(e)&&D(n)&&Object.keys(n).forEach(o=>{D(e[o])&&D(n[o])||Array.isArray(e[o])&&Array.isArray(n[o])?s[o]=F(e[o],n[o]):Object.assign(s,{[o]:n[o]})}),s}function V(r){let t,e,n;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}if(Object.prototype.toString.call(r)==="[object Object]"){e={};for(t in r)t==="__proto__"?Object.defineProperty(e,t,{value:V(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}return r}function tt(r){return typeof r[0]=="string"}function et(r){return typeof r[0]=="string"}function _(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var vt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,G="$$shortcut-no-merge";function rt(r=""){return vt.test(r)}function nt(r){return typeof r=="function"?{match:r}:r}function B(r){return r.length===3}function st(r){return r!=null}function H(){}var z=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(e)||s.set(e,n),s.get(e)}set(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([s,o])=>t(o,e,s)))}};var it=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ot(r){it.lastIndex=0;let t=!1;do{let e=r.toString();r=r.replace(it,(n,s,o,a)=>a.split(/\s/g).map(l=>l==="~"?s:l.replace(/^(!?)(.*)/,`$1${s}${o}$2`)).join(" ")),t=r.toString()!==e}while(t);return r}var at=new Set;function ct(r){at.has(r)||(console.warn("[unocss]",r),at.add(r))}var Rt=r=>r.split(/[\s'"`;>=]+/g).filter(rt),I={name:"split",order:0,extract({code:r}){return new Set(Rt(r))}};function lt(){return{events:{},emit(r,...t){(this.events[r]||[]).forEach(e=>e(...t))},on(r,t){return(this.events[r]=this.events[r]||[]).push(t),()=>this.events[r]=(this.events[r]||[]).filter(e=>e!==t)}}}function wt(r){return _(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function N(r={},t={}){let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(_),s=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],o=Object.assign(Ut,...n.map(f=>f.layers),r.layers);function a(f){return j([...s.flatMap(d=>_(d[f]||[])),..._(e[f]||[])])}let l=a("extractors");l.length||l.push(I),l.sort((f,d)=>(f.order||0)-(d.order||0));let i=a("rules"),c={},x=i.length;i.forEach((f,d)=>{tt(f)&&(c[f[0]]=[d,f[1],f[2],f],delete i[d])});let g=V([...s.map(f=>f.theme||{}),e.theme||{}].reduce((f,d)=>F(f,d),{}));a("extendTheme").forEach(f=>f(g));let C={templates:j(s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.templates)}).flat()),extractors:s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.extractors)}).flat().sort((f,d)=>(f.order||0)-(d.order||0))};return O(T({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},e),{presets:s,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:o,theme:g,rulesSize:x,rulesDynamic:i,rulesStaticMap:c,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:C,variants:a("variants").map(nt),shortcuts:wt(a("shortcuts")),extractors:l,safelist:a("safelist")})}var ut="0.35.3";var q=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=N(t,e),this.events.emit("config",this.config)}version=ut;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=lt();setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=N(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,e,n=new Set){let s={get original(){return t},code:t,id:e};for(let o of this.config.extractors){let a=await o.extract(s);a==null||a.forEach(l=>n.add(l))}return n}makeContext(t,e){let n={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...s)=>this.constructCustomCSS(n,...s),variantMatch:e};return n}async parseToken(t,e){var i;if(this.blocked.has(t))return;let n=`${t}${e?` ${e}`:""}`;if(this._cache.has(n))return this._cache.get(n);let s=t;for(let c of this.config.preprocess)s=c(t);if(this.isBlocked(s)){this.blocked.add(t),this._cache.set(n,null);return}let o=this.matchVariants(t,s);if(!o||this.isBlocked(o[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[e||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);let l=this.expandShortcut(a.currentSelector,a);if(l){let c=await this.stringifyShortcuts(a.variantMatch,a,l[0],l[1]);if(c!=null&&c.length)return this._cache.set(n,c),c}else{let c=(i=await this.parseUtil(a.variantMatch,a))==null?void 0:i.map(x=>this.stringifyUtil(x,a)).filter(st);if(c!=null&&c.length)return this._cache.set(n,c),c}this._cache.set(n,null)}async generate(t="",{id:e,scope:n,preflights:s=!0,safelist:o=!0,minify:a=!1}={}){let l=typeof t=="string"?await this.applyExtractors(t,e):t;o&&this.config.safelist.forEach(p=>l.add(p));let i=a?"":`
1
+ (()=>{var St=Object.defineProperty,xt=Object.defineProperties;var Ct=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var Z=(r,t,e)=>t in r?St(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,T=(r,t)=>{for(var e in t||(t={}))J.call(t,e)&&Z(r,e,t[e]);if(k)for(var e of k(t))Q.call(t,e)&&Z(r,e,t[e]);return r},O=(r,t)=>xt(r,Ct(t));var X=(r,t)=>{var e={};for(var n in r)J.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&k)for(var n of k(r))t.indexOf(n)<0&&Q.call(r,n)&&(e[n]=r[n]);return e};function bt(r){let t=r.length,e=-1,n,s="",o=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){s+="\uFFFD";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&o===45){s+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){s+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(e);continue}s+=`\\${r.charAt(e)}`}return s}var K=bt;function P(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function Y(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>P(t)):[r]:[P(r)]}function Et(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(r[s][0]===t&&r[s][1]===e)return!1;return!0})}function L(r){return r==null?"":Et(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function D(r){return r&&typeof r=="object"&&!Array.isArray(r)}function F(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let s=T({},e);return D(e)&&D(n)&&Object.keys(n).forEach(o=>{D(e[o])&&D(n[o])||Array.isArray(e[o])&&Array.isArray(n[o])?s[o]=F(e[o],n[o]):Object.assign(s,{[o]:n[o]})}),s}function V(r){let t,e,n;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}if(Object.prototype.toString.call(r)==="[object Object]"){e={};for(t in r)t==="__proto__"?Object.defineProperty(e,t,{value:V(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}return r}function tt(r){return typeof r[0]=="string"}function et(r){return typeof r[0]=="string"}function _(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var vt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,G="$$shortcut-no-merge";function rt(r=""){return vt.test(r)}function nt(r){return typeof r=="function"?{match:r}:r}function B(r){return r.length===3}function st(r){return r!=null}function H(){}var z=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(e)||s.set(e,n),s.get(e)}set(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([s,o])=>t(o,e,s)))}};var it=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ot(r){it.lastIndex=0;let t=!1;do{let e=r.toString();r=r.replace(it,(n,s,o,a)=>a.split(/\s/g).map(l=>l==="~"?s:l.replace(/^(!?)(.*)/,`$1${s}${o}$2`)).join(" ")),t=r.toString()!==e}while(t);return r}var at=new Set;function ct(r){at.has(r)||(console.warn("[unocss]",r),at.add(r))}var Rt=r=>r.split(/[\s'"`;>=]+/g).filter(rt),I={name:"split",order:0,extract({code:r}){return new Set(Rt(r))}};function lt(){return{events:{},emit(r,...t){(this.events[r]||[]).forEach(e=>e(...t))},on(r,t){return(this.events[r]=this.events[r]||[]).push(t),()=>this.events[r]=(this.events[r]||[]).filter(e=>e!==t)}}}function wt(r){return _(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function N(r={},t={}){let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(_),s=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],o=Object.assign(Ut,...n.map(f=>f.layers),r.layers);function a(f){return j([...s.flatMap(d=>_(d[f]||[])),..._(e[f]||[])])}let l=a("extractors");l.length||l.push(I),l.sort((f,d)=>(f.order||0)-(d.order||0));let i=a("rules"),c={},x=i.length;i.forEach((f,d)=>{tt(f)&&(c[f[0]]=[d,f[1],f[2],f],delete i[d])});let g=V([...s.map(f=>f.theme||{}),e.theme||{}].reduce((f,d)=>F(f,d),{}));a("extendTheme").forEach(f=>f(g));let C={templates:j(s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.templates)}).flat()),extractors:s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.extractors)}).flat().sort((f,d)=>(f.order||0)-(d.order||0))};return O(T({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},e),{presets:s,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:o,theme:g,rulesSize:x,rulesDynamic:i,rulesStaticMap:c,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:C,variants:a("variants").map(nt),shortcuts:wt(a("shortcuts")),extractors:l,safelist:a("safelist")})}var ut="0.35.4";var q=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=N(t,e),this.events.emit("config",this.config)}version=ut;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=lt();setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=N(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,e,n=new Set){let s={get original(){return t},code:t,id:e};for(let o of this.config.extractors){let a=await o.extract(s);a==null||a.forEach(l=>n.add(l))}return n}makeContext(t,e){let n={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...s)=>this.constructCustomCSS(n,...s),variantMatch:e};return n}async parseToken(t,e){var i;if(this.blocked.has(t))return;let n=`${t}${e?` ${e}`:""}`;if(this._cache.has(n))return this._cache.get(n);let s=t;for(let c of this.config.preprocess)s=c(t);if(this.isBlocked(s)){this.blocked.add(t),this._cache.set(n,null);return}let o=this.matchVariants(t,s);if(!o||this.isBlocked(o[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[e||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);let l=this.expandShortcut(a.currentSelector,a);if(l){let c=await this.stringifyShortcuts(a.variantMatch,a,l[0],l[1]);if(c!=null&&c.length)return this._cache.set(n,c),c}else{let c=(i=await this.parseUtil(a.variantMatch,a))==null?void 0:i.map(x=>this.stringifyUtil(x,a)).filter(st);if(c!=null&&c.length)return this._cache.set(n,c),c}this._cache.set(n,null)}async generate(t="",{id:e,scope:n,preflights:s=!0,safelist:o=!0,minify:a=!1}={}){let l=typeof t=="string"?await this.applyExtractors(t,e):t;o&&this.config.safelist.forEach(p=>l.add(p));let i=a?"":`
2
2
  `,c=new Set(["default"]),x=new Set,g=new Map;await Promise.all(Array.from(l).map(async p=>{var m;if(x.has(p))return;let h=await this.parseToken(p);if(h!=null){x.add(p);for(let S of h){let b=S[3]||"";g.has(b)||g.set(b,[]),g.get(b).push(S),(m=S[4])!=null&&m.layer&&c.add(S[4].layer)}}})),s&&this.config.preflights.forEach(p=>{p.layer&&c.add(p.layer)});let C={},f=this.config.sortLayers(Array.from(c).sort((p,h)=>{var m,S;return((m=this.config.layers[p])!=null?m:0)-((S=this.config.layers[h])!=null?S:0)||p.localeCompare(h)})),d={};if(s){let p={generator:this,theme:this.config.theme};d=Object.fromEntries(await Promise.all(f.map(async h=>{let S=(await Promise.all(this.config.preflights.filter(b=>(b.layer||"default")===h).map(async b=>await b.getCSS(p)))).filter(Boolean).join(i);return[h,S]})))}let R=p=>{if(C[p])return C[p];let h=Array.from(g).sort((m,S)=>{var b,E,U;return((b=this.parentOrders.get(m[0]))!=null?b:0)-((E=this.parentOrders.get(S[0]))!=null?E:0)||((U=m[0])==null?void 0:U.localeCompare(S[0]||""))||0}).map(([m,S])=>{let b=S.length,E=S.filter(u=>{var y;return(((y=u[4])==null?void 0:y.layer)||"default")===p}).sort((u,y)=>{var v,$,w;return u[0]-y[0]||(((v=u[4])==null?void 0:v.sort)||0)-((($=y[4])==null?void 0:$.sort)||0)||((w=u[1])==null?void 0:w.localeCompare(y[1]||""))||0}).map(u=>{var y;return[u[1]?Mt(u[1],n):u[1],u[2],!!((y=u[4])!=null&&y.noMerge)]}).map(u=>[u[0]==null?u[0]:[u[0]],u[1],u[2]]);if(!E.length)return;let U=E.reverse().map(([u,y,v],$)=>{if(!v&&u&&this.config.mergeSelectors)for(let w=$+1;w<b;w++){let A=E[w];if(A&&!A[2]&&A[0]&&A[1]===y)return A[0].push(...u),null}return u?`${[...new Set(u)].join(`,${i}`)}{${y}}`:y}).filter(Boolean).reverse().join(i);return m?`${m}{${i}${U}${i}}`:U}).filter(Boolean).join(i);return s&&(h=[d[p],h].filter(Boolean).join(i)),C[p]=!a&&h?`/* layer: ${p} */${i}${h}`:h},M=(p=f,h)=>p.filter(m=>!(h!=null&&h.includes(m))).map(m=>R(m)||"").filter(Boolean).join(i);return{get css(){return M()},layers:f,getLayers:M,getLayer:R,matched:x}}matchVariants(t,e){let n=new Set,s=[],o=e||t,a=!1,l={rawSelector:t,theme:this.config.theme,generator:this};for(;;){a=!1;for(let i of this.config.variants){if(!i.multiPass&&n.has(i))continue;let c=i.match(o,l);if(!!c){typeof c=="string"&&(c={matcher:c}),o=c.matcher,Array.isArray(c.parent)&&this.parentOrders.set(c.parent[0],c.parent[1]),s.unshift(c),n.add(i),a=!0;break}}if(!a)break;if(s.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,o,s,n]}applyVariants(t,e=t[4],n=t[1]){let s=[...e].sort((i,c)=>(i.order||0)-(c.order||0)),o=s.reduce((i,c)=>{var x;return((x=c.body)==null?void 0:x.call(c,i))||i},t[2]),a=s.reduce((i,c)=>{var x;return((x=c.selector)==null?void 0:x.call(c,i,o))||i},_t(n)),l={selector:Tt(a),entries:o,parent:s.reduce((i,c)=>Array.isArray(c.parent)?c.parent[0]:c.parent||i,void 0),layer:s.reduce((i,c)=>c.layer||i,void 0),sort:s.reduce((i,c)=>c.sort||i,void 0)};for(let i of this.config.postprocess)i(l);return l}constructCustomCSS(t,e,n){e=P(e);let{selector:s,entries:o,parent:a}=this.applyVariants([0,n||t.rawSelector,e,void 0,t.variantHandlers]),l=`${s}{${L(o)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,e,n=!1){var g,C;let[s,o,a]=typeof t=="string"?this.matchVariants(t):t,l=this.config.details?f=>{var d;e.rules=(d=e.rules)!=null?d:[],e.rules.push(f)}:H,i=this.config.rulesStaticMap[o];if(i&&i[1]&&(n||!((g=i[2])!=null&&g.internal)))return l(i[3]),[[i[0],s,P(i[1]),i[2],a]];e.variantHandlers=a;let{rulesDynamic:c,rulesSize:x}=this.config;for(let f=x-1;f>=0;f--){let d=c[f];if(!d||((C=d[2])==null?void 0:C.internal)&&!n)continue;let[R,M,p]=d,h=o.match(R);if(!h)continue;let m=await M(h,e);if(!m)continue;if(l(d),typeof m=="string")return[[f,m,p]];let S=Y(m).filter(b=>b.length);if(S.length)return S.map(b=>[f,s,b,p,a])}}stringifyUtil(t,e){var f;if(!t)return;if(B(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?e:void 0];let{selector:n,entries:s,parent:o,layer:a,sort:l}=this.applyVariants(t),i=L(s);if(!i)return;let d=(f=t[3])!=null?f:{},{layer:c,sort:x}=d,g=X(d,["layer","sort"]),C=O(T({},g),{layer:a!=null?a:c,sort:l!=null?l:x});return[t[0],n,i,o,C,this.config.details?e:void 0]}expandShortcut(t,e,n=3){if(n===0)return;let s=this.config.details?l=>{var i;e.shortcuts=(i=e.shortcuts)!=null?i:[],e.shortcuts.push(l)}:H,o,a;for(let l of this.config.shortcuts)if(et(l)){if(l[0]===t){o=o||l[2],a=l[1],s(l);break}}else{let i=t.match(l[0]);if(i&&(a=l[1](i,e)),a){o=o||l[2],s(l);break}}if(typeof a=="string"&&(a=ot(a).split(/\s+/g)),!!a)return[a.flatMap(l=>{var i;return((i=this.expandShortcut(l,e,n-1))==null?void 0:i[0])||[l]}).filter(l=>l!==""),o]}async stringifyShortcuts(t,e,n,s={layer:this.config.shortcutsLayer}){var x;let o=new z,a=(await Promise.all(j(n).map(async g=>{let C=await this.parseUtil(g,e,!0);return C||ct(`unmatched utility "${g}" in shortcut "${t[1]}"`),C||[]}))).flat(1).filter(Boolean).sort((g,C)=>g[0]-C[0]),[l,,i]=t,c=[];for(let g of a){if(B(g)){c.push([g[0],void 0,g[1],void 0,g[2],e]);continue}let{selector:C,entries:f,parent:d,sort:R}=this.applyVariants(g,[...g[4],...i],l);o.getFallback(C,d,[[],g[0]])[0].push([f,!!((x=g[3])!=null&&x.noMerge),R!=null?R:0])}return c.concat(o.map(([g,C],f,d)=>{let R=(p,h,m)=>{let S=Math.max(...m.map(E=>E[1])),b=m.map(E=>E[0]);return(p?[b.flat(1)]:b).map(E=>{let U=L(E);if(U)return[C,f,U,d,O(T({},s),{noMerge:h,sort:S}),e]})};return[[g.filter(([,p])=>p).map(([p,,h])=>[p,h]),!0],[g.filter(([,p])=>!p).map(([p,,h])=>[p,h]),!1]].map(([p,h])=>[...R(!1,h,p.filter(([m])=>m.some(S=>S[0]===G))),...R(!0,h,p.filter(([m])=>m.every(S=>S[0]!==G)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function pt(r,t){return new q(r,t)}var dt=/ \$\$ /,$t=r=>r.match(dt);function Mt(r,t){return $t(r)?r.replace(dt,t?` ${t} `:" "):t?`${t} ${r}`:r}function Tt(r){let t=r.match(/::[\w-]+/g);return t&&(t.forEach(e=>r=r.replace(e,"")),r+=t.join("")),r}var ft=/^\[(.+?)(~?=)"(.*)"\]$/;function _t(r){return ft.test(r)?r.replace(ft,(t,e,n,s)=>`[${K(e)}${n}"${K(s)}"]`):`.${K(r)}`}var Ot=r=>r.replace(/-(\w)/g,(t,e)=>e?e.toUpperCase():""),ht=r=>r.charAt(0).toUpperCase()+r.slice(1),gt=r=>r.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),mt=["Webkit","Moz","ms"];function yt(r){let t={};function e(n){let s=t[n];if(s)return s;let o=Ot(n);if(o!=="filter"&&o in r)return t[n]=gt(o);o=ht(o);for(let a=0;a<mt.length;a++){let l=`${mt[a]}${o}`;if(l in r)return t[n]=gt(ht(l))}return n}return({entries:n})=>n.forEach(s=>{s[0].startsWith("--")||(s[0]=e(s[0]))})}function W(r={}){var E,U;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,n=Object.assign(r.defaults||{},e);if(e!=null&&e.autoPrefix){let u=n.postprocess;u||(u=[]),Array.isArray(u)||(u=[u]),u.unshift(yt(document.createElement("div").style)),n.postprocess=u}(E=e==null?void 0:e.configResolved)==null||E.call(e,t,n);let s,o=!0,a,l=pt(t,n),i=new Set,c,x=[],g=()=>new Promise(u=>{x.push(u),c!=null&&clearTimeout(c),c=setTimeout(()=>f().then(()=>{let y=x;x=[],y.forEach(v=>v())}),0)});function C(u=document.body){if(u.nodeType!==1)return;let y=u;y.hasAttribute("un-cloak")&&y.removeAttribute("un-cloak"),y.querySelectorAll("[un-cloak]").forEach(v=>{v.removeAttribute("un-cloak")})}async function f(){let u=await l.generate(i);s||(s=document.createElement("style"),document.documentElement.prepend(s)),s.innerHTML=u.css,i=u.matched}async function d(u){let y=i.size;await l.applyExtractors(u,void 0,i),y!==i.size&&await g()}async function R(){let u=document.body&&document.body.outerHTML;u&&(await d(u),C())}let M=new MutationObserver(u=>{o||u.forEach(async y=>{if(y.target.nodeType!==1)return;let v=y.target;if(v!==s)if(y.type==="childList")y.addedNodes.forEach(async $=>{if($.nodeType!==1)return;let w=$;a&&!a(w)||(await d(w.outerHTML),C(w))});else{if(a&&!a(v))return;if(y.attributeName!=="un-cloak"){let $=Array.from(v.attributes).map(A=>A.value?`${A.name}="${A.value}"`:A.name).join(" "),w=`<${v.tagName.toLowerCase()} ${$}>`;await d(w)}v.hasAttribute("un-cloak")&&v.removeAttribute("un-cloak")}})}),p=!1;function h(){if(p)return;let u=document.documentElement||document.body;!u||(M.observe(u,{childList:!0,subtree:!0,attributes:!0}),p=!0)}function m(){R(),h()}function S(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",m):m()}let b=window.__unocss_runtime=window.__unocss_runtime={version:l.version,uno:l,async extract(u){typeof u!="string"&&(u.forEach(y=>i.add(y)),u=""),await d(u)},extractAll:R,inspect(u){a=u},toggleObserver(u){u===void 0?o=!o:o=!!u,!p&&!o&&S()}};((U=e==null?void 0:e.ready)==null?void 0:U.call(e,b))!==!1&&(o=!1,S())}W();})();
package/full.global.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{var vt=Object.defineProperty,Bn=Object.defineProperties;var Hn=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var $t=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable;var yt=(e,t,r)=>t in e?vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))$t.call(t,r)&&yt(e,r,t[r]);if(ke)for(var r of ke(t))kt.call(t,r)&&yt(e,r,t[r]);return e},z=(e,t)=>Bn(e,Hn(t));var wt=(e,t)=>{var r={};for(var o in e)$t.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ke)for(var o of ke(e))t.indexOf(o)<0&&kt.call(e,o)&&(r[o]=e[o]);return r};var In=(e,t)=>{for(var r in t)vt(e,r,{get:t[r],enumerable:!0})};function re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ue(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\,";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&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var we=Ue;function ne(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function St(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ne(t)):[e]:[ne(e)]}function Kn(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function Ce(e){return e==null?"":Kn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Se(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ae(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=S({},r);return Se(r)&&Se(o)&&Object.keys(o).forEach(a=>{Se(r[a])&&Se(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=ae(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function oe(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?oe(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:oe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?oe(o):o;return r}return e}function Ct(e){return typeof e[0]=="string"}function Rt(e){return typeof e[0]=="string"}function F(e=[]){return Array.isArray(e)?e:[e]}function ie(e){return Array.from(new Set(e))}var Gn=/^\[(.+?)~?="(.*)"\]$/;var qn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,O="$$shortcut-no-merge";function Et(e){return e.match(Gn)}function se(e=""){return qn.test(e)}function zt(e){return typeof e=="function"?{match:e}:e}function Fe(e){return e.length===3}function Tt(e){return e!=null}function Ne(){}var Re=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var jt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function At(e){jt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(jt,(o,n,a,i)=>i.split(/\s/g).map(s=>s==="~"?n:s.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Ot=new Set;function Vt(e){Ot.has(e)||(console.warn("[unocss]",e),Ot.add(e))}function Pt(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let s=e[i](o);if(s!=null)return s}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var Xn=e=>e.split(/[\s'"`;>=]+/g).filter(se),ce={name:"split",order:0,extract({code:e}){return new Set(Xn(e))}};function Mt(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function Yn(e){return F(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Zn={shortcuts:-1,default:0};function Le(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(F),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(Zn,...o.map(f=>f.layers),e.layers);function i(f){return ie([...n.flatMap(h=>F(h[f]||[])),...F(r[f]||[])])}let s=i("extractors");s.length||s.push(ce),s.sort((f,h)=>(f.order||0)-(h.order||0));let l=i("rules"),p={},m=l.length;l.forEach((f,h)=>{Ct(f)&&(p[f[0]]=[h,f[1],f[2],f],delete l[h])});let u=oe([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,h)=>ae(f,h),{}));i("extendTheme").forEach(f=>f(u));let g={templates:ie(n.map(f=>{var h;return F((h=f.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(f=>{var h;return F((h=f.autocomplete)==null?void 0:h.extractors)}).flat().sort((f,h)=>(f.order||0)-(h.order||0))};return z(S({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:m,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:g,variants:i("variants").map(zt),shortcuts:Yn(i("shortcuts")),extractors:s,safelist:i("safelist")})}var _t="0.35.3";var De=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Le(t,r),this.events.emit("config",this.config)}version=_t;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Mt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Le(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,id:r};for(let a of this.config.extractors){let i=await a.extract(n);i==null||i.forEach(s=>o.add(s))}return o}makeContext(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let i=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let s=this.expandShortcut(i.currentSelector,i);if(s){let p=await this.stringifyShortcuts(i.variantMatch,i,s[0],s[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(i.variantMatch,i))==null?void 0:l.map(m=>this.stringifyUtil(m,i)).filter(Tt);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(b=>s.add(b));let l=i?"":`
1
+ (()=>{var vt=Object.defineProperty,Bn=Object.defineProperties;var Hn=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var $t=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable;var yt=(e,t,r)=>t in e?vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))$t.call(t,r)&&yt(e,r,t[r]);if(ke)for(var r of ke(t))kt.call(t,r)&&yt(e,r,t[r]);return e},z=(e,t)=>Bn(e,Hn(t));var wt=(e,t)=>{var r={};for(var o in e)$t.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ke)for(var o of ke(e))t.indexOf(o)<0&&kt.call(e,o)&&(r[o]=e[o]);return r};var In=(e,t)=>{for(var r in t)vt(e,r,{get:t[r],enumerable:!0})};function re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ue(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\,";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&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var we=Ue;function ne(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function St(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ne(t)):[e]:[ne(e)]}function Kn(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function Ce(e){return e==null?"":Kn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Se(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ae(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=S({},r);return Se(r)&&Se(o)&&Object.keys(o).forEach(a=>{Se(r[a])&&Se(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=ae(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function oe(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?oe(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:oe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?oe(o):o;return r}return e}function Ct(e){return typeof e[0]=="string"}function Rt(e){return typeof e[0]=="string"}function F(e=[]){return Array.isArray(e)?e:[e]}function ie(e){return Array.from(new Set(e))}var Gn=/^\[(.+?)~?="(.*)"\]$/;var qn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,O="$$shortcut-no-merge";function Et(e){return e.match(Gn)}function se(e=""){return qn.test(e)}function zt(e){return typeof e=="function"?{match:e}:e}function Fe(e){return e.length===3}function Tt(e){return e!=null}function Ne(){}var Re=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var jt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function At(e){jt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(jt,(o,n,a,i)=>i.split(/\s/g).map(s=>s==="~"?n:s.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Ot=new Set;function Vt(e){Ot.has(e)||(console.warn("[unocss]",e),Ot.add(e))}function Pt(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let s=e[i](o);if(s!=null)return s}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var Xn=e=>e.split(/[\s'"`;>=]+/g).filter(se),ce={name:"split",order:0,extract({code:e}){return new Set(Xn(e))}};function Mt(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function Yn(e){return F(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Zn={shortcuts:-1,default:0};function Le(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(F),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(Zn,...o.map(f=>f.layers),e.layers);function i(f){return ie([...n.flatMap(h=>F(h[f]||[])),...F(r[f]||[])])}let s=i("extractors");s.length||s.push(ce),s.sort((f,h)=>(f.order||0)-(h.order||0));let l=i("rules"),p={},m=l.length;l.forEach((f,h)=>{Ct(f)&&(p[f[0]]=[h,f[1],f[2],f],delete l[h])});let u=oe([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,h)=>ae(f,h),{}));i("extendTheme").forEach(f=>f(u));let g={templates:ie(n.map(f=>{var h;return F((h=f.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(f=>{var h;return F((h=f.autocomplete)==null?void 0:h.extractors)}).flat().sort((f,h)=>(f.order||0)-(h.order||0))};return z(S({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:m,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:g,variants:i("variants").map(zt),shortcuts:Yn(i("shortcuts")),extractors:s,safelist:i("safelist")})}var _t="0.35.4";var De=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Le(t,r),this.events.emit("config",this.config)}version=_t;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Mt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Le(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,id:r};for(let a of this.config.extractors){let i=await a.extract(n);i==null||i.forEach(s=>o.add(s))}return o}makeContext(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let i=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let s=this.expandShortcut(i.currentSelector,i);if(s){let p=await this.stringifyShortcuts(i.variantMatch,i,s[0],s[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(i.variantMatch,i))==null?void 0:l.map(m=>this.stringifyUtil(m,i)).filter(Tt);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(b=>s.add(b));let l=i?"":`
2
2
  `,p=new Set(["default"]),m=new Set,u=new Map;await Promise.all(Array.from(s).map(async b=>{var y;if(m.has(b))return;let x=await this.parseToken(b);if(x!=null){m.add(b);for(let w of x){let R=w[3]||"";u.has(R)||u.set(R,[]),u.get(R).push(w),(y=w[4])!=null&&y.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(b=>{b.layer&&p.add(b.layer)});let g={},f=this.config.sortLayers(Array.from(p).sort((b,x)=>{var y,w;return((y=this.config.layers[b])!=null?y:0)-((w=this.config.layers[x])!=null?w:0)||b.localeCompare(x)})),h={};if(n){let b={generator:this,theme:this.config.theme};h=Object.fromEntries(await Promise.all(f.map(async x=>{let w=(await Promise.all(this.config.preflights.filter(R=>(R.layer||"default")===x).map(async R=>await R.getCSS(b)))).filter(Boolean).join(l);return[x,w]})))}let v=b=>{if(g[b])return g[b];let x=Array.from(u).sort((y,w)=>{var R,j,U;return((R=this.parentOrders.get(y[0]))!=null?R:0)-((j=this.parentOrders.get(w[0]))!=null?j:0)||((U=y[0])==null?void 0:U.localeCompare(w[0]||""))||0}).map(([y,w])=>{let R=w.length,j=w.filter(d=>{var k;return(((k=d[4])==null?void 0:k.layer)||"default")===b}).sort((d,k)=>{var A,D,M;return d[0]-k[0]||(((A=d[4])==null?void 0:A.sort)||0)-(((D=k[4])==null?void 0:D.sort)||0)||((M=d[1])==null?void 0:M.localeCompare(k[1]||""))||0}).map(d=>{var k;return[d[1]?ea(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(!j.length)return;let U=j.reverse().map(([d,k,A],D)=>{if(!A&&d&&this.config.mergeSelectors)for(let M=D+1;M<R;M++){let N=j[M];if(N&&!N[2]&&N[0]&&N[1]===k)return N[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&&(x=[h[b],x].filter(Boolean).join(l)),g[b]=!i&&x?`/* layer: ${b} */${l}${x}`:x},T=(b=f,x)=>b.filter(y=>!(x!=null&&x.includes(y))).map(y=>v(y)||"").filter(Boolean).join(l);return{get css(){return T()},layers:f,getLayers:T,getLayer:v,matched:m}}matchVariants(t,r){let o=new Set,n=[],a=r||t,i=!1,s={rawSelector:t,theme:this.config.theme,generator:this};for(;;){i=!1;for(let l of this.config.variants){if(!l.multiPass&&o.has(l))continue;let p=l.match(a,s);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.unshift(p),o.add(l),i=!0;break}}if(!i)break;if(n.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,a,n,o]}applyVariants(t,r=t[4],o=t[1]){let n=[...r].sort((l,p)=>(l.order||0)-(p.order||0)),a=n.reduce((l,p)=>{var m;return((m=p.body)==null?void 0:m.call(p,l))||l},t[2]),i=n.reduce((l,p)=>{var m;return((m=p.selector)==null?void 0:m.call(p,l,a))||l},We(o)),s={selector:ta(i),entries:a,parent:n.reduce((l,p)=>Array.isArray(p.parent)?p.parent[0]:p.parent||l,void 0),layer:n.reduce((l,p)=>p.layer||l,void 0),sort:n.reduce((l,p)=>p.sort||l,void 0)};for(let l of this.config.postprocess)l(s);return s}constructCustomCSS(t,r,o){r=ne(r);let{selector:n,entries:a,parent:i}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),s=`${n}{${Ce(a)}}`;return i?`${i}{${s}}`:s}async parseUtil(t,r,o=!1){var u,g;let[n,a,i]=typeof t=="string"?this.matchVariants(t):t,s=this.config.details?f=>{var h;r.rules=(h=r.rules)!=null?h:[],r.rules.push(f)}:Ne,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((u=l[2])!=null&&u.internal)))return s(l[3]),[[l[0],n,ne(l[1]),l[2],i]];r.variantHandlers=i;let{rulesDynamic:p,rulesSize:m}=this.config;for(let f=m-1;f>=0;f--){let h=p[f];if(!h||((g=h[2])==null?void 0:g.internal)&&!o)continue;let[v,T,b]=h,x=a.match(v);if(!x)continue;let y=await T(x,r);if(!y)continue;if(s(h),typeof y=="string")return[[f,y,b]];let w=St(y).filter(R=>R.length);if(w.length)return w.map(R=>[f,n,R,b,i])}}stringifyUtil(t,r){var f;if(!t)return;if(Fe(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:o,entries:n,parent:a,layer:i,sort:s}=this.applyVariants(t),l=Ce(n);if(!l)return;let h=(f=t[3])!=null?f:{},{layer:p,sort:m}=h,u=wt(h,["layer","sort"]),g=z(S({},u),{layer:i!=null?i:p,sort:s!=null?s:m});return[t[0],o,l,a,g,this.config.details?r:void 0]}expandShortcut(t,r,o=3){if(o===0)return;let n=this.config.details?s=>{var l;r.shortcuts=(l=r.shortcuts)!=null?l:[],r.shortcuts.push(s)}:Ne,a,i;for(let s of this.config.shortcuts)if(Rt(s)){if(s[0]===t){a=a||s[2],i=s[1],n(s);break}}else{let l=t.match(s[0]);if(l&&(i=s[1](l,r)),i){a=a||s[2],n(s);break}}if(typeof i=="string"&&(i=At(i).split(/\s+/g)),!!i)return[i.flatMap(s=>{var l;return((l=this.expandShortcut(s,r,o-1))==null?void 0:l[0])||[s]}).filter(s=>s!==""),a]}async stringifyShortcuts(t,r,o,n={layer:this.config.shortcutsLayer}){var m;let a=new Re,i=(await Promise.all(ie(o).map(async u=>{let g=await this.parseUtil(u,r,!0);return g||Vt(`unmatched utility "${u}" in shortcut "${t[1]}"`),g||[]}))).flat(1).filter(Boolean).sort((u,g)=>u[0]-g[0]),[s,,l]=t,p=[];for(let u of i){if(Fe(u)){p.push([u[0],void 0,u[1],void 0,u[2],r]);continue}let{selector:g,entries:f,parent:h,sort:v}=this.applyVariants(u,[...u[4],...l],s);a.getFallback(g,h,[[],u[0]])[0].push([f,!!((m=u[3])!=null&&m.noMerge),v!=null?v:0])}return p.concat(a.map(([u,g],f,h)=>{let v=(b,x,y)=>{let w=Math.max(...y.map(j=>j[1])),R=y.map(j=>j[0]);return(b?[R.flat(1)]:R).map(j=>{let U=Ce(j);if(U)return[g,f,U,h,z(S({},n),{noMerge:x,sort:w}),r]})};return[[u.filter(([,b])=>b).map(([b,,x])=>[b,x]),!0],[u.filter(([,b])=>!b).map(([b,,x])=>[b,x]),!1]].map(([b,x])=>[...v(!1,x,b.filter(([y])=>y.some(w=>w[0]===O))),...v(!0,x,b.filter(([y])=>y.every(w=>w[0]!==O)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Ft(e,t){return new De(e,t)}var Nt=/ \$\$ /,Qn=e=>e.match(Nt);function ea(e,t){return Qn(e)?e.replace(Nt,t?` ${t} `:" "):t?`${t} ${e}`:e}function ta(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var Ut=/^\[(.+?)(~?=)"(.*)"\]$/;function We(e){return Ut.test(e)?e.replace(Ut,(t,r,o,n)=>`[${we(r)}${o}"${we(n)}"]`):`.${we(e)}`}var Be=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,Lt=(e={})=>{var n,a,i;let t=(n=e.prefix)!=null?n:"un-",r=(a=e.prefixedOnly)!=null?a:!1,o=(i=e.trueToNonValued)!=null?i:!1;return{name:"attributify",match(s){let l=Et(s);if(!l)return;let p=l[1];if(p.startsWith(t))p=p.slice(t.length);else if(r)return;let m=l[2],[,u="",g=m]=m.match(Be)||[];return g==="~"||o&&g==="true"||!g?`${u}${p}`:`${u}${p}-${g}`}}};var ra=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,oa=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,Dt=/[\s'"`;>]+/,Wt={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(ra),o,n=0;for(let v of r){let[,T,b]=v,x=v.index+T.length;if(t>x&&t<=x+b.length){n=x,o=b;break}}if(!o)return null;let a=o.matchAll(oa),i=0,s,l;for(let v of a){let[T,b,x]=v,y=n+v.index;if(t>y&&t<=y+T.length){i=y,s=b,l=x==null?void 0:x.slice(1);break}}if(!s||s==="class"||s==="className")return null;if(l===void 0)return{extracted:s,resolveReplacement(v){return{start:i,end:i+s.length,replacement:v}}};let p=i+s.length+2,m=Dt.exec(l),u=0,g;for(;m;){let[v]=m;if(t>p+u&&t<=p+u+m.index){g=l.slice(u,u+m.index);break}u+=m.index+v.length,m=Dt.exec(l.slice(u))}g===void 0&&(g=l.slice(u));let[,f="",h]=g.match(Be)||[];return{extracted:`${f}${s}-${h}`,transformSuggestions(v){return v.filter(T=>T.startsWith(`${f}${s}-`)).map(T=>f+T.slice(f.length+s.length+1))},resolveReplacement(v){return{start:u+p,end:u+p+g.length,replacement:f+v.slice(f.length+s.length+1)}}}}};var na=["v-bind:",":"],Bt=/[\s'"`;]+/g,aa=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,ia=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,Ht=e=>{var n,a,i;let t=(n=e==null?void 0:e.ignoreAttributes)!=null?n:[],r=(a=e==null?void 0:e.nonValuedAttribute)!=null?a:!0,o=(i=e==null?void 0:e.trueToNonValued)!=null?i:!1;return{name:"attributify",extract({code:s}){let l=Array.from(s.matchAll(aa)).flatMap(p=>Array.from((p[1]||"").matchAll(ia))).flatMap(([,p,m,u])=>{if(t.includes(p))return[];for(let g of na)if(p.startsWith(g)){p=p.slice(g.length);break}if(!u){if(se(p)&&r!==!1){let g=[`[${p}=""]`];return o&&g.push(`[${p}="true"]`),g}return[]}return["class","className"].includes(p)?u.split(Bt).filter(se):u.split(Bt).filter(Boolean).map(g=>`[${p}~="${g}"]`)});return new Set(l)}}};var sa=(e={})=>{var n,a,i,s,l;e.strict=(n=e.strict)!=null?n:!1,e.prefix=(a=e.prefix)!=null?a:"un-",e.prefixedOnly=(i=e.prefixedOnly)!=null?i:!1,e.nonValuedAttribute=(s=e.nonValuedAttribute)!=null?s:!0,e.ignoreAttributes=(l=e.ignoreAttributes)!=null?l:[];let t=[Lt(e)],r=[Ht(e)],o=[Wt];return e.strict||r.unshift(ce),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:o}}},It=sa;var He=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(e=""){let t=ca(e);if(t==null||t===!1)return;let{type:r,components:o,alpha:n}=t,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(He.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function L(e,t){let{components:r}=e,{alpha:o,type:n}=e;return o=t!=null?t:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,He.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function ca(e){if(!e)return;let t=la(e);if(t!=null||(t=pa(e),t!=null)||(t=ua(e),t!=null)||(t=fa(e),t!=null)||(t=da(e),t!=null))return t}function la(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:t.length===6?void 0:Math.round((o&255)/255*100)/100}}}function pa(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function ua(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=le(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 ma=new RegExp(`^(${He.join("|")})\\((.+)\\)$`,"i");function fa(e){let t=e.match(ma);if(!t)return;let[,r,o]=t,n=Kt(`${r} ${o}`);if(n){let{alpha:a,components:[i,...s]}=n;return{type:i,components:s,alpha:a}}}function da(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Kt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function Kt(e){let t=le(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 a=t.splice(r-2);t.push(a.join(" ")),--r}let o=le(t[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:t};let n=o.pop();return t[r-1]=o.join("/"),{components:t,alpha:n}}function ga(e,t){if(e=e.trim(),e==="")return;let r=e.length,o=0;for(let n=0;n<r;n++)switch(e[n]){case"(":o++;break;case")":if(--o<0)return;break;case t:if(o===0){let a=e.slice(0,n).trim();return a===""?void 0:[a,e.slice(n+1).trim()]}}return[e,""]}function le(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=ga(e,t);if(!a)return;let[i,s]=a;o.push(i),e=s}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"]},Ie=z(S({},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"]}),Ke={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"]},Ge={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Gt=["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"],V=Object.assign({},...Gt.map(e=>({[e.replace(/ /,"-")]:e})),...Gt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),W=["inherit","initial","revert","revert-layer","unset"];var Xe={};In(Xe,{auto:()=>ya,bracket:()=>Ra,bracketOfColor:()=>Ea,bracketOfLength:()=>za,bracketOfPosition:()=>Ta,cssvar:()=>ja,degree:()=>Oa,fraction:()=>Sa,global:()=>Va,number:()=>ka,numberWithUnit:()=>xa,percent:()=>wa,position:()=>Ma,properties:()=>Pa,px:()=>$a,rem:()=>va,time:()=>Aa});var ba=["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"],qe=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,ha=/^(-?[0-9.]+)$/i,qt=/^(px)$/i;function B(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function xa(e){let t=e.match(qe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${B(n)}${o}`}function ya(e){if(e==="auto"||e==="a")return"auto"}function va(e){if(e.match(qt))return`1${e}`;let t=e.match(qe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n/4)}rem`}function $a(e){if(e.match(qt))return`1${e}`;let t=e.match(qe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n)}px`}function ka(e){if(!ha.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return B(t)}function wa(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${B(t/100)}`}function Sa(e){if(e==="full")return"100%";let[t,r]=e.split("/"),o=parseFloat(t)/parseFloat(r);if(!Number.isNaN(o))return`${B(o*100)}%`}var Ca=/^\[(color|length|position):/i;function Ee(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,o=e.match(Ca);if(o?t&&o[1]===t&&(r=e.slice(o[0].length,-1)):r=e.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 Ra(e){return Ee(e)}function Ea(e){return Ee(e,"color")}function za(e){return Ee(e,"length")}function Ta(e){return Ee(e,"position")}function ja(e){if(e.match(/^\$\S/))return`var(--${Ue(e.slice(1))})`}function Aa(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n)}ms`}function Oa(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n)}deg`}function Va(e){if(W.includes(e))return e}function Pa(e){if(e.split(",").every(t=>ba.includes(t)))return e}function Ma(e){if(["top","left","right","bottom","center"].includes(e))return e}var c=Pt(Xe);var H=(e,t)=>{let r=new RegExp(`^${re(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},_=(e,t)=>{let r=new RegExp(`^${re(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:t}},autocomplete:`${e}:`}};var ze="$$mini-no-negative",E=e=>([t,r,o],{theme:n})=>{var i,s;let a=(s=(i=n.spacing)==null?void 0:i[o||"DEFAULT"])!=null?s:c.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return P[r].map(l=>[`${e}${l}`,a])},Ye=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},Y=(e,t)=>{let r=e.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),[i]=a;if(!i)return;let s,l=c.bracketOfColor(o),p=l||o;p.startsWith("#")?s=p:p.startsWith("hex-")?s=`#${p.slice(4)}`:o.startsWith("$")&&(s=c.cssvar(o)),s=s||l;let m="DEFAULT";if(!s){let u,[g]=a.slice(-1);g.match(/^\d+$/)?(m=g,u=Ye(t,a.slice(0,-1))):(u=Ye(t,a),!u&&a.length<=2&&([,m=m]=a,u=Ye(t,[i]))),typeof u=="string"?s=u:m&&u&&(s=u[m])}return{opacity:n,name:i,no:m,color:s,cssColor:X(s),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},C=(e,t)=>([,r],{theme:o})=>{var l;let n=Y(r,o);if(!n)return;let{alpha:a,color:i,cssColor:s}=n;if(s)return a!=null?{[e]:L(s,a)}:{[`--un-${t}-opacity`]:(l=s.alpha)!=null?l:1,[e]:L(s,`var(--un-${t}-opacity)`)};if(i)return{[e]:i.replace("%alpha",`${a!=null?a:1}`)}},Z=(e,t)=>{let r=[];e=F(e);for(let o=0;o<e.length;o++){let n=le(e[o]," ",6);if(!n||n.length<3)return e;let a=X(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${L(a)})`)}return r},Te=(e,t)=>{var r;return e!=null&&!!((r=Y(e,t))!=null&&r.color)},J=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},Xt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Yt=[[/^(?:animate-)?keyframes-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o)return`@keyframes ${e}${o}
3
3
  ${r({animation:`${e}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a,i,s,l,p,m,u,g,f;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let h=(l=(s=(i=t.animation)==null?void 0:i.durations)==null?void 0:s[e])!=null?l:"1s",v=(u=(m=(p=t.animation)==null?void 0:p.timingFns)==null?void 0:m[e])!=null?u:"linear",T=(f=(g=t.animation)==null?void 0:g.properties)==null?void 0:f[e];return`@keyframes ${e}${o}
4
4
  ${r(Object.assign({animation:`${e} ${h} ${v} infinite`},T))}`}return{animation:c.bracket.cssvar(e)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,e])=>{var t;return{"animation-name":(t=c.bracket.cssvar(e))!=null?t:e}}],[/^animate-duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"animation-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar.time(e)}},{autocomplete:["animate-duration","animate-duration-$duration"]}],[/^animate-delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"animation-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar.time(e)}},{autocomplete:["animate-delay","animate-delay-$duration"]}],[/^animate-ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"animation-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar(e)}},{autocomplete:"animate-delay-$easing"}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)$/,([,e])=>({"animation-fill-mode":e}),{autocomplete:["animate-(fill|mode|fill-mode)","animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)","animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)$/,([,e])=>({"animation-direction":e}),{autocomplete:["animate-direction","animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)","animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,e])=>{var t;return{"animation-iteration-count":(t=c.bracket.cssvar(e))!=null?t:e.replace(/\-/g,",")}},{autocomplete:["animate-(iteration|count|iteration-count)","animate-(iteration|count|iteration-count)-<num>"]}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|revert-layer|unset)$/,([,e])=>({"animation-play-state":e}),{autocomplete:["animate-(play|state|play-state)","animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)","animate-(paused|running|inherit|initial|revert|revert-layer|unset)"]}],["animate-none",{animation:"none"}]];var Ze=e=>([,t],{theme:r})=>{var l;let o=Y(t,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(!a)return;let s=a;switch(i&&(n!=null?s=L(i,n):s=L(i,`var(--un-${e}-opacity, ${(l=i.alpha)!=null?l:1})`)),e){case"from":return{"--un-gradient-from":s,"--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), ${s}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":s}}},_a=/^\[url\(.+\)\]$/,Ua=/^\[length:.+\]$/,Fa=/^\[position:.+\]$/,Zt=[[/^bg-(.+)$/,([,e])=>{if(_a.test(e))return{"--un-url":c.bracket(e),"background-image":"var(--un-url)"};if(Ua.test(e)&&c.bracketOfLength(e)!=null)return{"background-size":c.bracketOfLength(e).split(" ").map(t=>c.fraction.auto.px.cssvar(t)).join(" ")};if(Fa.test(e)&&c.bracketOfPosition(e)!=null)return{"background-position":c.bracketOfPosition(e).split(" ").map(t=>c.position.fraction.auto.px.cssvar(t)).join(" ")}}],[/^bg-gradient-(.+)$/,([,e])=>({"--un-gradient":c.bracket(e)}),{autocomplete:["bg-gradient","bg-gradient-(from|to|via)","bg-gradient-(from|to|via)-$colors","bg-gradient-(from|to|via)-(op|opacity)","bg-gradient-(from|to|via)-(op|opacity)-<percent>"]}],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,e])=>({"--un-gradient-stops":c.bracket(e)})],[/^(?:bg-gradient-)?from-(.+)$/,Ze("from")],[/^(?:bg-gradient-)?to-(.+)$/,Ze("to")],[/^(?:bg-gradient-)?via-(.+)$/,Ze("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,e])=>({"--un-from-opacity":c.bracket.percent(e)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,e])=>({"--un-to-opacity":c.bracket.percent(e)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,e])=>({"--un-via-opacity":c.bracket.percent(e)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,e])=>({"background-image":`${e}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`}),{autocomplete:["bg-gradient-repeating","bg-gradient-(linear|radial|conic)","bg-gradient-repeating-(linear|radial|conic)"]}],[/^bg-gradient-to-([rltb]{1,2})$/,([,e])=>{if(e in V)return{"--un-gradient-shape":`to ${V[e]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}},{autocomplete:`bg-gradient-to-(${Object.keys(V).filter(e=>e.length<=2&&Array.from(e).every(t=>"rltb".includes(t))).join("|")})`}],[/^(?:bg-gradient-)?shape-(.+)$/,([,e])=>{let t=e in V?`to ${V[e]}`:c.bracket(e);if(t!=null)return{"--un-gradient-shape":t,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}},{autocomplete:["bg-gradient-shape",`bg-gradient-shape-(${Object.keys(V).join("|")})`,`shape-(${Object.keys(V).join("|")})`]}],["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,})$/,([,e])=>({"background-position":V[e]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-repeat":"repeat-x"}],["bg-repeat-y",{"background-repeat":"repeat-y"}],["bg-repeat-round",{"background-repeat":"round"}],["bg-repeat-space",{"background-repeat":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var je={disc:"disc",circle:"circle",square:"square",decimal:"decimal","zero-decimal":"decimal-leading-zero",greek:"lower-greek",roman:"lower-roman","upper-roman":"upper-roman",alpha:"lower-alpha","upper-alpha":"upper-alpha",latin:"lower-latin","upper-latin":"upper-latin"},Jt=[[/^list-(.+)(?:-(outside|inside))?$/,([,e,t])=>t!=null?{"list-style-position":t,"list-style-type":je[e]}:{"list-style-type":je[e]},{autocomplete:[`list-(${Object.keys(je).join("|")})`,`list-(${Object.keys(je).join("|")})-(outside|inside)`]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Qt=[[/^accent-(.+)$/,C("accent-color","accent"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,e])=>({"--un-accent-opacity":c.bracket.percent(e)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],er=[[/^caret-(.+)$/,C("caret-color","caret"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,e])=>({"--un-caret-opacity":c.bracket.percent(e)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],tr=[["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"]]]],rr=[["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"}]],or=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var nr=[[/^columns-(.+)$/,([,e])=>({columns:c.bracket.global.number.auto.numberWithUnit(e)}),{autocomplete:"columns-<num>"}],["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 Na=/@media \(min-width: (.+)\)/,ar=[[/^__container$/,(e,{variantHandlers:t})=>{var o;let r="100%";for(let n of t){let a=F(n.parent||[])[0];if(typeof a=="string"){let i=(o=a.match(Na))==null?void 0:o[1];i&&(r=i)}}return{"max-width":r}},{internal:!0}]],ir=[[/^(?:(\w+)[:-])?container$/,([,e],t)=>{var n;let r=Object.keys((n=J(t))!=null?n:{});if(e){if(!r.includes(e))return;r=r.slice(r.indexOf(e))}let o=r.map(a=>`${a}:__container`);return e||o.unshift("__container"),o}]];var sr={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},cr=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":sr[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(sr).join("|")})`}]],lr=["center","left","right","justify","start","end",...W].map(e=>[`text-${e}`,{"text-align":e}]);var pr=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,C("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-offset":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...W].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],ur=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],La=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},mr=[[/^will-change-(.+)/,([,e])=>({"will-change":La(e)})]];var de=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...W],fr=[[/^(?:border|b)()(?:-(.+))?$/,pe,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,pe],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,pe],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,pe],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,pe],[/^(?:border|b)-()(?:width|size)-(.+)$/,Q,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-()(?:color-)?(.+)$/,ue,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ue],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ue],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ue],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ue],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,me,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,me],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,me],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,me],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,me],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,fe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,fe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,fe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,fe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,fe],[/^(?:border|b)-(?:style-)?()(.+)$/,ee,{autocomplete:["(border|b)-style",`(border|b)-(${de.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${de.join("|")})`,`(border|b)-<directions>-style-(${de.join("|")})`,`(border|b)-style-(${de.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,ee],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ee],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ee],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ee]],Da=e=>([,t],r)=>{var s,l;let o=Y(t,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(i)return n!=null?{[`border${e}-color`]:L(i,n)}:e===""?{"--un-border-opacity":(s=i.alpha)!=null?s:1,[`border${e}-color`]:L(i,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(l=i.alpha)!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:L(i,`var(--un-border${e}-opacity)`)};if(a)return{[`border${e}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function pe(e,t){let r=Q(e,t),o=ee(["",e[1],"solid"]);if(r&&o)return[...r,...o]}function Q([,e="",t],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])!=null?a:c.bracket.cssvar.px(t||"1");if(e in P&&o!=null)return P[e].map(i=>[`border${i}-width`,o])}function ue([,e="",t],{theme:r}){if(e in P&&Te(t,r))return Object.assign({},...P[e].map(o=>Da(o)(["",t],r)))}function me([,e="",t]){let r=c.bracket.percent(t);if(e in P&&r!=null)return P[e].map(o=>[`--un-border${o}-opacity`,r])}function fe([,e="",t],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[t||"DEFAULT"])||c.bracket.cssvar.fraction.rem(t||"1");if(e in Ke&&o!=null)return Ke[e].map(a=>[`border${a}-radius`,o])}function ee([,e="",t]){if(de.includes(t)&&e in P)return P[e].map(r=>[`border${r}-style`,t])}var dr=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],gr=[[/^(?:text|color|c)-(.+)$/,C("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>"}]],br=[[/^bg-(.+)$/,C("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Ae={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},hr=e=>{var t;return(t=c.properties(e))!=null?t:Ae[e]},xr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?hr(e):[Ae.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let i=(a=(n=r.duration)==null?void 0:n[t||"DEFAULT"])!=null?a:c.time(t||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(Ae).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"transition-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o: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)||hr(e)}),{autocomplete:[`transition-property-(${[...W,...Object.keys(Ae)].join("|")})`]}],["transition-none",{transition:"none"}]];var yr=[["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,o;return{"flex-basis":(o=(r=t.spacing)==null?void 0:r[e])!=null?o: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 vr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},$r=[[/^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 o;let r=F((o=t.fontSize)==null?void 0:o[e]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":c.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var n,a;let r=F((n=t.fontSize)==null?void 0:n[e]),o=(a=r==null?void 0:r[0])!=null?a:c.bracket.cssvar.rem(e);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":vr[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(vr).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-synthesis-(.+)$/,([,e])=>({"font-synthesis":e}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?: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"}]],kr=[[/^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}}]],wr=[[/^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"}]],Sr=[[/^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-(.+)$/,C("-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>"}]],Cr=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.textShadow)==null?void 0:o[e||"DEFAULT"];return r!=null?{"--un-text-shadow":Z(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-(.+)$/,C("--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 Rr={"":"",x:"column-",y:"row-"},Er=([,e="",t],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:c.bracket.cssvar.rem(t);if(o!=null)return{[`grid-${Rr[e]}gap`]:o,[`${Rr[e]}gap`]:o}},zr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Er,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Er,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var I=e=>e.replace("col","column"),Je=e=>e[0]==="r"?"Row":"Column",Wa=(e,t,r)=>{var n;let o=(n=t[`gridAuto${Je(e)}`])==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)},Tr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-${I(e)}`]:(n=(o=r[`grid${Je(e)}`])==null?void 0:o[t])!=null?n:c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${I(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${I(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-${I(e)}-start`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${I(e)}-end`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${I(e)}`]:Wa(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|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":I(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-template-${I(e)}`]:(n=(o=r[`gridTemplate${Je(e)}`])==null?void 0:o[t])!=null?n:c.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${I(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${I(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Oe=["auto","hidden","clip","visible","scroll"],jr=[[/^(?:overflow|of)-(.+)$/,([,e])=>Oe.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Oe.join("|")})`,`(overflow|of)-(x|y)-(${Oe.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Oe.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Ar=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Or=[["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"}]],Vr=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["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"}]],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 Qe(e,{theme:t}){var r,o;return(o=(r=t.spacing)==null?void 0:r[e])!=null?o:c.bracket.cssvar.auto.fraction.rem(e)}function Ve([,e,t],r){let o=Qe(t,r);if(o!=null&&e in Ie)return Ie[e].map(n=>[n.slice(1),o])}var _r=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Qe(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])-(.+)$/,Ve],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Ve],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Ve],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Ve],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Qe(t,r)})]],Ur=[["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"}]],Fr=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],Nr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var $="var(--un-empty,/*!*/ /*!*/)",Lr=[["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})]],Dr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Wr=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],Br=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Hr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Ir=[["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|break-spaces)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],Gr=[[/^content-(.+)$/,([,e])=>{let t=c.bracket.cssvar(e);return{content:t==null?`"${e}"`:t}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],qr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Xr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Yr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Zr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Jr=[["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 Qr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var o,n;let r=(n=(o=t.ringWidth)==null?void 0:o[e||"DEFAULT"])!=null?n:c.px(e||"1");if(r)return[{[O]:"","--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-)(.+)$/,([,e],{theme:t})=>{var r,o;return{"--un-ring-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o: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,o;return{"--un-ring-offset-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:c.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,C("--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-(.+)$/,C("--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 eo=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return[{[O]:"","--un-shadow-inset":$,"--un-shadow":"0 0 #0000"},{"--un-shadow":Z(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-(.+)$/,C("--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 Ba={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ge(e,t){return`${e||""}${Ba[t]}`}function to(e,t,r,o){var i;let n=ge(e,t).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),a=(i=r[n])==null?void 0:i[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 ro=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[ge(e,t)]:to(e,t,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)-(.+)$/,([,e,t,r],{theme:o})=>({[ge(e,t)]:to(e,t,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-(.+)$/,([,e,t,r],o)=>{var n;return{[ge(e,t)]:(n=Xt(o))==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],o)=>{var n;return{[ge(e,t)]:(n=J(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Ha(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 oo=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Ha(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var no=[[/^pa?()-?(-?.+)$/,E("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,E("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,E("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,E("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,E("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,E("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],ao=[[/^ma?()-?(-?.+)$/,E("margin")],[/^m-?xy()()$/,E("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,E("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,E("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,E("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,E("margin")]];var Ia={"--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(" ")},lo={"--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(" ")},te=z(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},lo),{[O]:"",[ze]:""}),po=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=V[e])!=null?t:c.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(V).join("|")})`,`origin-(${Object.keys(V).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?V[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,io],[/^(?:transform-)?translate-([xyz])-(.+)$/,io],[/^(?:transform-)?rotate-()(.+)$/,co],[/^(?:transform-)?rotate-([xyz])-(.+)$/,co],[/^(?:transform-)?skew-([xy])-(.+)$/,Ka],[/^(?:transform-)?scale-()(.+)$/,so],[/^(?:transform-)?scale-([xyz])-(.+)$/,so],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[te,{transform:"var(--un-transform)"}]],["transform-gpu",Ia],["transform-cpu",lo],["transform-none",{transform:"none"}]];function io([,e,t],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:c.bracket.cssvar.fraction.rem(t);if(o!=null)return[te,[...Ge[e].map(i=>[`--un-translate${i}`,o]),["transform","var(--un-transform)"]]]}function so([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[te,[...Ge[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function co([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?[te,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[te,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function Ka([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[te,{[`--un-skew-${e}`]: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"},uo=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Ga[e];if(r)return{[r]:c.cssvar(t)}}]],mo=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var fo=[[/^(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}}
package/mini.global.js CHANGED
@@ -1,3 +1,3 @@
1
- (()=>{var rt=Object.defineProperty,Pn=Object.defineProperties;var Mn=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var tt=(e,t,r)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))nt.call(t,r)&&tt(e,r,t[r]);if(me)for(var r of me(t))ot.call(t,r)&&tt(e,r,t[r]);return e},C=(e,t)=>Pn(e,Mn(t));var it=(e,t)=>{var r={};for(var n in e)nt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&me)for(var n of me(e))t.indexOf(n)<0&&ot.call(e,n)&&(r[n]=e[n]);return r};var Un=(e,t)=>{for(var r in t)rt(e,r,{get:t[r],enumerable:!0})};var V={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"]},Ae=C(S({},V),{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"]}),je={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"]},ze={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},st=["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"],G=Object.assign({},...st.map(e=>({[e.replace(/ /,"-")]:e})),...st.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),O=["inherit","initial","revert","revert-layer","unset"];var at={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},ct=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":at[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(at).join("|")})`}]],lt=["center","left","right","justify","start","end",...O].map(e=>[`text-${e}`,{"text-align":e}]);var Ve=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function Oe(e=""){let t=_n(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)&&!(Ve.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}`,Ve.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function _n(e){if(!e)return;let t=Fn(e);if(t!=null||(t=Nn(e),t!=null)||(t=Ln(e),t!=null)||(t=Dn(e),t!=null)||(t=Bn(e),t!=null))return t}function Fn(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 Nn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Ln(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=q(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 Wn=new RegExp(`^(${Ve.join("|")})\\((.+)\\)$`,"i");function Dn(e){let t=e.match(Wn);if(!t)return;let[,r,n]=t,o=ut(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Bn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=ut(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function ut(e){let t=q(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=q(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 Hn(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 q(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=Hn(e,t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}function Z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Pe(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+="\\,";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 de=Pe;function Y(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ft(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Y(t)):[e]:[Y(e)]}function In(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 ge(e){return e==null?"":In(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function he(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Me(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 he(r)&&he(n)&&Object.keys(n).forEach(i=>{he(r[i])&&he(n[i])||Array.isArray(r[i])&&Array.isArray(n[i])?o[i]=Me(r[i],n[i]):Object.assign(o,{[i]:n[i]})}),o}function X(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?X(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:X(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?X(n):n;return r}return e}function pt(e){return typeof e[0]=="string"}function mt(e){return typeof e[0]=="string"}function P(e=[]){return Array.isArray(e)?e:[e]}function J(e){return Array.from(new Set(e))}var Kn=/^\[(.+?)~?="(.*)"\]$/;var Gn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,L="$$shortcut-no-merge";function dt(e){return e.match(Kn)}function Q(e=""){return Gn.test(e)}function ht(e){return typeof e=="function"?{match:e}:e}function Ue(e){return e.length===3}function gt(e){return e!=null}function _e(){}var be=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 bt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xt(e){bt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(bt,(n,o,i,s)=>s.split(/\s/g).map(a=>a==="~"?o:a.replace(/^(!?)(.*)/,`$1${o}${i}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var yt=new Set;function $t(e){yt.has(e)||(console.warn("[unocss]",e),yt.add(e))}function vt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let s of o){let a=e[s](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var qn=e=>e.split(/[\s'"`;>=]+/g).filter(Q),ee={name:"split",order:0,extract({code:e}){return new Set(qn(e))}};function wt(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function Zn(e){return P(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Xn={shortcuts:-1,default:0};function Fe(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(P),o=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],i=Object.assign(Xn,...n.map(f=>f.layers),e.layers);function s(f){return J([...o.flatMap(b=>P(b[f]||[])),...P(r[f]||[])])}let a=s("extractors");a.length||a.push(ee),a.sort((f,b)=>(f.order||0)-(b.order||0));let c=s("rules"),l={},g=c.length;c.forEach((f,b)=>{pt(f)&&(l[f[0]]=[b,f[1],f[2],f],delete c[b])});let p=X([...o.map(f=>f.theme||{}),r.theme||{}].reduce((f,b)=>Me(f,b),{}));s("extendTheme").forEach(f=>f(p));let d={templates:J(o.map(f=>{var b;return P((b=f.autocomplete)==null?void 0:b.templates)}).flat()),extractors:o.map(f=>{var b;return P((b=f.autocomplete)==null?void 0:b.extractors)}).flat().sort((f,b)=>(f.order||0)-(b.order||0))};return C(S({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:p,rulesSize:g,rulesDynamic:c,rulesStaticMap:l,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:d,variants:s("variants").map(ht),shortcuts:Zn(s("shortcuts")),extractors:a,safelist:s("safelist")})}var St="0.35.3";var Ne=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Fe(t,r),this.events.emit("config",this.config)}version=St;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=wt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Fe(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let s=await i.extract(o);s==null||s.forEach(a=>n.add(a))}return n}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 c;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 l of this.config.preprocess)o=l(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 s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=this.expandShortcut(s.currentSelector,s);if(a){let l=await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]);if(l!=null&&l.length)return this._cache.set(n,l),l}else{let l=(c=await this.parseUtil(s.variantMatch,s))==null?void 0:c.map(g=>this.stringifyUtil(g,s)).filter(gt);if(l!=null&&l.length)return this._cache.set(n,l),l}this._cache.set(n,null)}async generate(t="",{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:s=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(h=>a.add(h));let c=s?"":`
1
+ (()=>{var rt=Object.defineProperty,Pn=Object.defineProperties;var Mn=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var tt=(e,t,r)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))nt.call(t,r)&&tt(e,r,t[r]);if(me)for(var r of me(t))ot.call(t,r)&&tt(e,r,t[r]);return e},C=(e,t)=>Pn(e,Mn(t));var it=(e,t)=>{var r={};for(var n in e)nt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&me)for(var n of me(e))t.indexOf(n)<0&&ot.call(e,n)&&(r[n]=e[n]);return r};var Un=(e,t)=>{for(var r in t)rt(e,r,{get:t[r],enumerable:!0})};var V={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"]},Ae=C(S({},V),{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"]}),je={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"]},ze={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},st=["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"],G=Object.assign({},...st.map(e=>({[e.replace(/ /,"-")]:e})),...st.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),O=["inherit","initial","revert","revert-layer","unset"];var at={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},ct=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":at[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(at).join("|")})`}]],lt=["center","left","right","justify","start","end",...O].map(e=>[`text-${e}`,{"text-align":e}]);var Ve=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function Oe(e=""){let t=_n(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)&&!(Ve.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}`,Ve.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function _n(e){if(!e)return;let t=Fn(e);if(t!=null||(t=Nn(e),t!=null)||(t=Ln(e),t!=null)||(t=Dn(e),t!=null)||(t=Bn(e),t!=null))return t}function Fn(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 Nn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Ln(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=q(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 Wn=new RegExp(`^(${Ve.join("|")})\\((.+)\\)$`,"i");function Dn(e){let t=e.match(Wn);if(!t)return;let[,r,n]=t,o=ut(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Bn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=ut(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function ut(e){let t=q(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=q(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 Hn(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 q(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=Hn(e,t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}function Z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Pe(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+="\\,";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 de=Pe;function Y(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ft(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Y(t)):[e]:[Y(e)]}function In(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 ge(e){return e==null?"":In(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function he(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Me(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 he(r)&&he(n)&&Object.keys(n).forEach(i=>{he(r[i])&&he(n[i])||Array.isArray(r[i])&&Array.isArray(n[i])?o[i]=Me(r[i],n[i]):Object.assign(o,{[i]:n[i]})}),o}function X(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?X(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:X(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?X(n):n;return r}return e}function pt(e){return typeof e[0]=="string"}function mt(e){return typeof e[0]=="string"}function P(e=[]){return Array.isArray(e)?e:[e]}function J(e){return Array.from(new Set(e))}var Kn=/^\[(.+?)~?="(.*)"\]$/;var Gn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,L="$$shortcut-no-merge";function dt(e){return e.match(Kn)}function Q(e=""){return Gn.test(e)}function ht(e){return typeof e=="function"?{match:e}:e}function Ue(e){return e.length===3}function gt(e){return e!=null}function _e(){}var be=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 bt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xt(e){bt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(bt,(n,o,i,s)=>s.split(/\s/g).map(a=>a==="~"?o:a.replace(/^(!?)(.*)/,`$1${o}${i}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var yt=new Set;function $t(e){yt.has(e)||(console.warn("[unocss]",e),yt.add(e))}function vt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let s of o){let a=e[s](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var qn=e=>e.split(/[\s'"`;>=]+/g).filter(Q),ee={name:"split",order:0,extract({code:e}){return new Set(qn(e))}};function wt(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function Zn(e){return P(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Xn={shortcuts:-1,default:0};function Fe(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(P),o=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],i=Object.assign(Xn,...n.map(f=>f.layers),e.layers);function s(f){return J([...o.flatMap(b=>P(b[f]||[])),...P(r[f]||[])])}let a=s("extractors");a.length||a.push(ee),a.sort((f,b)=>(f.order||0)-(b.order||0));let c=s("rules"),l={},g=c.length;c.forEach((f,b)=>{pt(f)&&(l[f[0]]=[b,f[1],f[2],f],delete c[b])});let p=X([...o.map(f=>f.theme||{}),r.theme||{}].reduce((f,b)=>Me(f,b),{}));s("extendTheme").forEach(f=>f(p));let d={templates:J(o.map(f=>{var b;return P((b=f.autocomplete)==null?void 0:b.templates)}).flat()),extractors:o.map(f=>{var b;return P((b=f.autocomplete)==null?void 0:b.extractors)}).flat().sort((f,b)=>(f.order||0)-(b.order||0))};return C(S({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:p,rulesSize:g,rulesDynamic:c,rulesStaticMap:l,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:d,variants:s("variants").map(ht),shortcuts:Zn(s("shortcuts")),extractors:a,safelist:s("safelist")})}var St="0.35.4";var Ne=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Fe(t,r),this.events.emit("config",this.config)}version=St;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=wt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Fe(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let s=await i.extract(o);s==null||s.forEach(a=>n.add(a))}return n}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 c;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 l of this.config.preprocess)o=l(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 s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=this.expandShortcut(s.currentSelector,s);if(a){let l=await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]);if(l!=null&&l.length)return this._cache.set(n,l),l}else{let l=(c=await this.parseUtil(s.variantMatch,s))==null?void 0:c.map(g=>this.stringifyUtil(g,s)).filter(gt);if(l!=null&&l.length)return this._cache.set(n,l),l}this._cache.set(n,null)}async generate(t="",{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:s=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(h=>a.add(h));let c=s?"":`
2
2
  `,l=new Set(["default"]),g=new Set,p=new Map;await Promise.all(Array.from(a).map(async h=>{var y;if(g.has(h))return;let x=await this.parseToken(h);if(x!=null){g.add(h);for(let w of x){let k=w[3]||"";p.has(k)||p.set(k,[]),p.get(k).push(w),(y=w[4])!=null&&y.layer&&l.add(w[4].layer)}}})),o&&this.config.preflights.forEach(h=>{h.layer&&l.add(h.layer)});let d={},f=this.config.sortLayers(Array.from(l).sort((h,x)=>{var y,w;return((y=this.config.layers[h])!=null?y:0)-((w=this.config.layers[x])!=null?w:0)||h.localeCompare(x)})),b={};if(o){let h={generator:this,theme:this.config.theme};b=Object.fromEntries(await Promise.all(f.map(async x=>{let w=(await Promise.all(this.config.preflights.filter(k=>(k.layer||"default")===x).map(async k=>await k.getCSS(h)))).filter(Boolean).join(c);return[x,w]})))}let v=h=>{if(d[h])return d[h];let x=Array.from(p).sort((y,w)=>{var k,T,U;return((k=this.parentOrders.get(y[0]))!=null?k:0)-((T=this.parentOrders.get(w[0]))!=null?T:0)||((U=y[0])==null?void 0:U.localeCompare(w[0]||""))||0}).map(([y,w])=>{let k=w.length,T=w.filter(m=>{var $;return((($=m[4])==null?void 0:$.layer)||"default")===h}).sort((m,$)=>{var A,N,z;return m[0]-$[0]||(((A=m[4])==null?void 0:A.sort)||0)-(((N=$[4])==null?void 0:N.sort)||0)||((z=m[1])==null?void 0:z.localeCompare($[1]||""))||0}).map(m=>{var $;return[m[1]?Qn(m[1],n):m[1],m[2],!!(($=m[4])!=null&&$.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!T.length)return;let U=T.reverse().map(([m,$,A],N)=>{if(!A&&m&&this.config.mergeSelectors)for(let z=N+1;z<k;z++){let _=T[z];if(_&&!_[2]&&_[0]&&_[1]===$)return _[0].push(...m),null}return m?`${[...new Set(m)].join(`,${c}`)}{${$}}`:$}).filter(Boolean).reverse().join(c);return y?`${y}{${c}${U}${c}}`:U}).filter(Boolean).join(c);return o&&(x=[b[h],x].filter(Boolean).join(c)),d[h]=!s&&x?`/* layer: ${h} */${c}${x}`:x},E=(h=f,x)=>h.filter(y=>!(x!=null&&x.includes(y))).map(y=>v(y)||"").filter(Boolean).join(c);return{get css(){return E()},layers:f,getLayers:E,getLayer:v,matched:g}}matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){s=!1;for(let c of this.config.variants){if(!c.multiPass&&n.has(c))continue;let l=c.match(i,a);if(!!l){typeof l=="string"&&(l={matcher:l}),i=l.matcher,Array.isArray(l.parent)&&this.parentOrders.set(l.parent[0],l.parent[1]),o.unshift(l),n.add(c),s=!0;break}}if(!s)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((c,l)=>(c.order||0)-(l.order||0)),i=o.reduce((c,l)=>{var g;return((g=l.body)==null?void 0:g.call(l,c))||c},t[2]),s=o.reduce((c,l)=>{var g;return((g=l.selector)==null?void 0:g.call(l,c,i))||c},to(n)),a={selector:eo(s),entries:i,parent:o.reduce((c,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||c,void 0),layer:o.reduce((c,l)=>l.layer||c,void 0),sort:o.reduce((c,l)=>l.sort||c,void 0)};for(let c of this.config.postprocess)c(a);return a}constructCustomCSS(t,r,n){r=Y(r);let{selector:o,entries:i,parent:s}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),a=`${o}{${ge(i)}}`;return s?`${s}{${a}}`:a}async parseUtil(t,r,n=!1){var p,d;let[o,i,s]=typeof t=="string"?this.matchVariants(t):t,a=this.config.details?f=>{var b;r.rules=(b=r.rules)!=null?b:[],r.rules.push(f)}:_e,c=this.config.rulesStaticMap[i];if(c&&c[1]&&(n||!((p=c[2])!=null&&p.internal)))return a(c[3]),[[c[0],o,Y(c[1]),c[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:g}=this.config;for(let f=g-1;f>=0;f--){let b=l[f];if(!b||((d=b[2])==null?void 0:d.internal)&&!n)continue;let[v,E,h]=b,x=i.match(v);if(!x)continue;let y=await E(x,r);if(!y)continue;if(a(b),typeof y=="string")return[[f,y,h]];let w=ft(y).filter(k=>k.length);if(w.length)return w.map(k=>[f,o,k,h,s])}}stringifyUtil(t,r){var f;if(!t)return;if(Ue(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a}=this.applyVariants(t),c=ge(o);if(!c)return;let b=(f=t[3])!=null?f:{},{layer:l,sort:g}=b,p=it(b,["layer","sort"]),d=C(S({},p),{layer:s!=null?s:l,sort:a!=null?a:g});return[t[0],n,c,i,d,this.config.details?r:void 0]}expandShortcut(t,r,n=3){if(n===0)return;let o=this.config.details?a=>{var c;r.shortcuts=(c=r.shortcuts)!=null?c:[],r.shortcuts.push(a)}:_e,i,s;for(let a of this.config.shortcuts)if(mt(a)){if(a[0]===t){i=i||a[2],s=a[1],o(a);break}}else{let c=t.match(a[0]);if(c&&(s=a[1](c,r)),s){i=i||a[2],o(a);break}}if(typeof s=="string"&&(s=xt(s).split(/\s+/g)),!!s)return[s.flatMap(a=>{var c;return((c=this.expandShortcut(a,r,n-1))==null?void 0:c[0])||[a]}).filter(a=>a!==""),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var g;let i=new be,s=(await Promise.all(J(n).map(async p=>{let d=await this.parseUtil(p,r,!0);return d||$t(`unmatched utility "${p}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((p,d)=>p[0]-d[0]),[a,,c]=t,l=[];for(let p of s){if(Ue(p)){l.push([p[0],void 0,p[1],void 0,p[2],r]);continue}let{selector:d,entries:f,parent:b,sort:v}=this.applyVariants(p,[...p[4],...c],a);i.getFallback(d,b,[[],p[0]])[0].push([f,!!((g=p[3])!=null&&g.noMerge),v!=null?v:0])}return l.concat(i.map(([p,d],f,b)=>{let v=(h,x,y)=>{let w=Math.max(...y.map(T=>T[1])),k=y.map(T=>T[0]);return(h?[k.flat(1)]:k).map(T=>{let U=ge(T);if(U)return[d,f,U,b,C(S({},o),{noMerge:x,sort:w}),r]})};return[[p.filter(([,h])=>h).map(([h,,x])=>[h,x]),!0],[p.filter(([,h])=>!h).map(([h,,x])=>[h,x]),!1]].map(([h,x])=>[...v(!1,x,h.filter(([y])=>y.some(w=>w[0]===L))),...v(!0,x,h.filter(([y])=>y.every(w=>w[0]!==L)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Ct(e,t){return new Ne(e,t)}var Rt=/ \$\$ /,Jn=e=>e.match(Rt);function Qn(e,t){return Jn(e)?e.replace(Rt,t?` ${t} `:" "):t?`${t} ${e}`:e}function eo(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var kt=/^\[(.+?)(~?=)"(.*)"\]$/;function to(e){return kt.test(e)?e.replace(kt,(t,r,n,o)=>`[${de(r)}${n}"${de(o)}"]`):`.${de(e)}`}var We={};Un(We,{auto:()=>io,bracket:()=>po,bracketOfColor:()=>mo,bracketOfLength:()=>ho,bracketOfPosition:()=>go,cssvar:()=>bo,degree:()=>yo,fraction:()=>uo,global:()=>$o,number:()=>co,numberWithUnit:()=>oo,percent:()=>lo,position:()=>wo,properties:()=>vo,px:()=>ao,rem:()=>so,time:()=>xo});var ro=["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"],Le=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,no=/^(-?[0-9.]+)$/i,Et=/^(px)$/i;function M(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function oo(e){let t=e.match(Le);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${M(o)}${n}`}function io(e){if(e==="auto"||e==="a")return"auto"}function so(e){if(e.match(Et))return`1${e}`;let t=e.match(Le);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${M(o)}${n}`:`${M(o/4)}rem`}function ao(e){if(e.match(Et))return`1${e}`;let t=e.match(Le);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${M(o)}${n}`:`${M(o)}px`}function co(e){if(!no.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return M(t)}function lo(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${M(t/100)}`}function uo(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${M(n*100)}%`}var fo=/^\[(color|length|position):/i;function xe(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n=e.match(fo);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 po(e){return xe(e)}function mo(e){return xe(e,"color")}function ho(e){return xe(e,"length")}function go(e){return xe(e,"position")}function bo(e){if(e.match(/^\$\S/))return`var(--${Pe(e.slice(1))})`}function xo(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?`${M(o)}${n}`:`${M(o)}ms`}function yo(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?`${M(o)}${n}`:`${M(o)}deg`}function $o(e){if(O.includes(e))return e}function vo(e){if(e.split(",").every(t=>ro.includes(t)))return e}function wo(e){if(["top","left","right","bottom","center"].includes(e))return e}var u=vt(We);var B=(e,t)=>{let r=new RegExp(`^${Z(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}},autocomplete:`${e}:`}},te=(e,t)=>{let r=new RegExp(`^${Z(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}},autocomplete:`${e}:`}};var ye="$$mini-no-negative",j=e=>([t,r,n],{theme:o})=>{var s,a;let i=(a=(s=o.spacing)==null?void 0:s[n||"DEFAULT"])!=null?a:u.bracket.cssvar.auto.fraction.rem(n);if(i!=null)return V[r].map(c=>[`${e}${c}`,i])},De=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},$e=(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),[s]=i;if(!s)return;let a,c=u.bracketOfColor(n),l=c||n;l.startsWith("#")?a=l:l.startsWith("hex-")?a=`#${l.slice(4)}`:n.startsWith("$")&&(a=u.cssvar(n)),a=a||c;let g="DEFAULT";if(!a){let p,[d]=i.slice(-1);d.match(/^\d+$/)?(g=d,p=De(t,i.slice(0,-1))):(p=De(t,i),!p&&i.length<=2&&([,g=g]=i,p=De(t,[s]))),typeof p=="string"?a=p:g&&p&&(a=p[g])}return{opacity:o,name:s,no:g,color:a,cssColor:Oe(a),alpha:u.bracket.cssvar.percent(o!=null?o:"")}},R=(e,t)=>([,r],{theme:n})=>{var c;let o=$e(r,n);if(!o)return;let{alpha:i,color:s,cssColor:a}=o;if(a)return i!=null?{[e]:D(a,i)}:{[`--un-${t}-opacity`]:(c=a.alpha)!=null?c:1,[e]:D(a,`var(--un-${t}-opacity)`)};if(s)return{[e]:s.replace("%alpha",`${i!=null?i:1}`)}},ve=(e,t)=>{let r=[];e=P(e);for(let n=0;n<e.length;n++){let o=q(e[n]," ",6);if(!o||o.length<3)return e;let i=Oe(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${D(i)})`)}return r},Tt=(e,t)=>{var r;return e!=null&&!!((r=$e(e,t))!=null&&r.color)},we=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},At=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var jt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:u.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,R("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:u.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...O].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],zt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],So=e=>{var t;return(t=u.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},Vt=[[/^will-change-(.+)/,([,e])=>({"will-change":So(e)})]];var se=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...O],Ot=[[/^(?:border|b)()(?:-(.+))?$/,re,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,re],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,re],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,re],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,re],[/^(?:border|b)-()(?:width|size)-(.+)$/,H,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,H],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,H],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,H],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,H],[/^(?:border|b)-()(?:color-)?(.+)$/,ne,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ne],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ne],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ne],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ne],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,oe,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,oe],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,oe],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,oe],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,oe],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ie,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ie],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ie],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ie],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ie],[/^(?:border|b)-(?:style-)?()(.+)$/,I,{autocomplete:["(border|b)-style",`(border|b)-(${se.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${se.join("|")})`,`(border|b)-<directions>-style-(${se.join("|")})`,`(border|b)-style-(${se.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,I],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,I],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,I],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,I]],ko=e=>([,t],r)=>{var a,c;let n=$e(t,r);if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return o!=null?{[`border${e}-color`]:D(s,o)}:e===""?{"--un-border-opacity":(a=s.alpha)!=null?a:1,[`border${e}-color`]:D(s,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(c=s.alpha)!=null?c:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:D(s,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:i.replace("%alpha",`${o!=null?o:1}`)}};function re(e,t){let r=H(e,t),n=I(["",e[1],"solid"]);if(r&&n)return[...r,...n]}function H([,e="",t],{theme:r}){var o,i;let n=(i=(o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])!=null?i:u.bracket.cssvar.px(t||"1");if(e in V&&n!=null)return V[e].map(s=>[`border${s}-width`,n])}function ne([,e="",t],{theme:r}){if(e in V&&Tt(t,r))return Object.assign({},...V[e].map(n=>ko(n)(["",t],r)))}function oe([,e="",t]){let r=u.bracket.percent(t);if(e in V&&r!=null)return V[e].map(n=>[`--un-border${n}-opacity`,r])}function ie([,e="",t],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t||"DEFAULT"])||u.bracket.cssvar.fraction.rem(t||"1");if(e in je&&n!=null)return je[e].map(i=>[`border${i}-radius`,n])}function I([,e="",t]){if(se.includes(t)&&e in V)return V[e].map(r=>[`border${r}-style`,t])}var Pt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:u.bracket.percent.cssvar(e)})]],Mt=[[/^(?:text|color|c)-(.+)$/,R("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":u.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Ut=[[/^bg-(.+)$/,R("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":u.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Se={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},_t=e=>{var t;return(t=u.properties(e))!=null?t:Se[e]},Ft=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o,i;let n=e!=null?_t(e):[Se.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let s=(i=(o=r.duration)==null?void 0:o[t||"DEFAULT"])!=null?i:u.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys(Se).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-duration":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:u.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:u.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:u.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":u.global(e)||_t(e)}),{autocomplete:[`transition-property-(${[...O,...Object.keys(Se)].join("|")})`]}],["transition-none",{transition:"none"}]];var Nt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:u.bracket(e)!=null?u.bracket(e).split(" ").map(t=>{var r;return(r=u.cssvar.fraction(t))!=null?r:t}).join(" "):u.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:u.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 Lt={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Wt=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||u.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=P((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":u.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var o,i;let r=P((o=t.fontSize)==null?void 0:o[e]),n=(i=r==null?void 0:r[0])!=null?i:u.bracket.cssvar.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":Lt[e]||u.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(Lt).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||u.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":e}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||u.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])||u.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],Dt=[[/^tab(?:-(.+))?$/,([,e])=>{let t=u.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Bt=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||u.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],Ht=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||u.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,R("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":u.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],It=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":ve(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":u.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,R("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":u.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var Kt={"":"",x:"column-",y:"row-"},Gt=([,e="",t],{theme:r})=>{var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:u.bracket.cssvar.rem(t);if(n!=null)return{[`grid-${Kt[e]}gap`]:n,[`${Kt[e]}gap`]:n}},qt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Gt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Gt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var F=e=>e.replace("col","column"),Be=e=>e[0]==="r"?"Row":"Column",Co=(e,t,r)=>{var o;let n=(o=t[`gridAuto${Be(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 u.bracket.cssvar.auto.rem(r)},Zt=[["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${Be(e)}`])==null?void 0:n[t])!=null?o:u.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${F(e)}`]:"1/-1"};let r=u.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=u.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${F(e)}-end`]:(r=u.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${F(e)}`]:Co(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":u.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|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${Be(e)}`])==null?void 0:n[t])!=null?o:u.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 ke=["auto","hidden","clip","visible","scroll"],Xt=[[/^(?:overflow|of)-(.+)$/,([,e])=>ke.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${ke.join("|")})`,`(overflow|of)-(x|y)-(${ke.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>ke.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Yt=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Jt=[["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"}]],Qt=[[/^order-(.+)$/,([,e])=>({order:u.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],er=[["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"}]],tr=[["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 He(e,{theme:t}){var r,n;return(n=(r=t.spacing)==null?void 0:r[e])!=null?n:u.bracket.cssvar.auto.fraction.rem(e)}function Ce([,e,t],r){let n=He(t,r);if(n!=null&&e in Ae)return Ae[e].map(o=>[o.slice(1),n])}var rr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:He(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])-(.+)$/,Ce],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Ce],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Ce],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Ce],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:He(t,r)})]],nr=[["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"}]],or=[[/^z([\d.]+)$/,([,e])=>({"z-index":u.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":u.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],ir=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var Re="var(--un-empty,/*!*/ /*!*/)",sr=[["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:u.bracket.cssvar(e)||e})]],ar=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],cr=[[/^cursor-(.+)$/,([,e])=>({cursor:u.bracket.cssvar(e)||e})]],lr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],ur=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],fr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],pr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],mr=[[/^content-(.+)$/,([,e])=>{let t=u.bracket.cssvar(e);return{content:t==null?`"${e}"`:t}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],dr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],hr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],gr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],br=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],xr=[["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 yr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var n,o;let r=(o=(n=t.ringWidth)==null?void 0:n[e||"DEFAULT"])!=null?o:u.px(e||"1");if(r)return[{[L]:"","--un-ring-inset":Re,"--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:u.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:u.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,R("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":u.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,R("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":u.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var $r=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return[{[L]:"","--un-shadow-inset":Re,"--un-shadow":"0 0 #0000"},{"--un-shadow":ve(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-(.+)$/,R("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":u.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Ro={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ae(e,t){return`${e||""}${Ro[t]}`}function vr(e,t,r,n){var s;let o=ae(e,t).replace(/-(\w)/g,(a,c)=>c.toUpperCase()),i=(s=r[o])==null?void 0:s[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return u.bracket.cssvar.auto.fraction.rem(n)}var wr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[ae(e,t)]:vr(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})=>({[ae(e,t)]:vr(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],n)=>{var o;return{[ae(e,t)]:(o=At(n))==null?void 0:o[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>{var o;return{[ae(e,t)]:(o=we(n))==null?void 0:o[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Eo(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return u.bracket.cssvar.auto.number(e)}var Sr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Eo(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var kr=[[/^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>"}]],Cr=[[/^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 To={"--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(" ")},Ar={"--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(" ")},K=C(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},Ar),{[L]:"",[ye]:""}),jr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=G[e])!=null?t:u.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(G).join("|")})`,`origin-(${Object.keys(G).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=u.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=u.bracket.cssvar(e))!=null?r:e.length>=3?G[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Rr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Rr],[/^(?:transform-)?rotate-()(.+)$/,Tr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Tr],[/^(?:transform-)?skew-([xy])-(.+)$/,Ao],[/^(?:transform-)?scale-()(.+)$/,Er],[/^(?:transform-)?scale-([xyz])-(.+)$/,Er],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[K,{transform:"var(--un-transform)"}]],["transform-gpu",To],["transform-cpu",Ar],["transform-none",{transform:"none"}]];function Rr([,e,t],{theme:r}){var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:u.bracket.cssvar.fraction.rem(t);if(n!=null)return[K,[...ze[e].map(s=>[`--un-translate${s}`,n]),["transform","var(--un-transform)"]]]}function Er([,e,t]){let r=u.bracket.cssvar.fraction.percent(t);if(r!=null)return[K,[...ze[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function Tr([,e="",t]){let r=u.bracket.cssvar.degree(t);if(r!=null)return e?[K,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[K,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function Ao([,e,t]){let r=u.bracket.cssvar.degree(t);if(r!=null)return[K,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var jo={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"},zr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=jo[e];if(r)return{[r]:u.cssvar(t)}}]],Vr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:u.bracket(`[${t}]`)})]];var Or=[[/^(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 Pr=["solid","double","dotted","dashed","wavy",...O],Mr=[[/^(?: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:u.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=R("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":u.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:u.auto.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Pr.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...Pr.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var Ur=[[/^fill-(.+)$/,R("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":u.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:u.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":u.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:u.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,R("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":u.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 _r=[zr,Vr,kr,Cr,sr,Pt,Ut,Ur,Ot,mr,Wt,Dt,Bt,hr,Mr,Ht,It,gr,lt,Mt,br,xr,$r,yr,Nt,Zt,qt,Yt,wr,Sr,cr,ar,lr,ur,ct,fr,pr,dr,Xt,jt,zt,Qt,Jt,er,tr,rr,nr,or,ir,Ft,jr,Vt,Or].flat(1);var Ie={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(Ie).forEach(e=>{typeof e!="string"&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var Fr={sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},Nr={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},Lr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Wr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Dr={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)"]},Br={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ke={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Hr=Ke;var Ge={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Ir=S({},Ge),Kr={DEFAULT:"1px",none:"0px"},Gr={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"},qr={DEFAULT:"150ms",none:"0ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Zr={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Xr={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)"},Yr={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)"},Jr={DEFAULT:"1px",none:"0px"};var Qr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},en={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 Ee={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},qe=C(S({auto:"auto"},Ee),{screen:"100vw"}),ce=C(S({none:"none"},Ee),{screen:"100vw"}),Ze=C(S({auto:"auto"},Ee),{screen:"100vh"}),le=C(S({none:"none"},Ee),{screen:"100vh"});var tn={width:qe,height:Ze,maxWidth:ce,maxHeight:le,minWidth:ce,minHeight:le,inlineSize:qe,blockSize:Ze,maxInlineSize:ce,maxBlockSize:le,minInlineSize:ce,minBlockSize:le,colors:Ie,fontFamily:Fr,fontSize:Nr,breakpoints:Ge,verticalBreakpoints:Ir,borderRadius:Zr,lineHeight:Br,letterSpacing:Ke,wordSpacing:Hr,boxShadow:Xr,textIndent:Lr,textShadow:Dr,textStrokeWidth:Wr,blur:Qr,dropShadow:en,easing:Yr,lineWidth:Kr,spacing:Gr,duration:qr,ringWidth:Jr};var Xe={},rn=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}`},nn={name:"breakpoints",match(e,t){var n;let r=Object.entries((n=we(t))!=null?n:{}).map(([o,i],s)=>[o,i,s]);for(let[o,i,s]of r){Xe[o]||(Xe[o]=new RegExp(`^((?:[al]t-)?${o}[:-])`));let a=e.match(Xe[o]);if(!a)continue;let[,c]=a,l=e.slice(c.length);if(l==="container")continue;let g=c.startsWith("lt-"),p=c.startsWith("at-"),d=1e3;return g?(d-=s+1,{matcher:l,parent:[`@media (max-width: ${rn(i)})`,d]}):(d+=s+1,p&&s<r.length-1?{matcher:l,parent:[`@media (min-width: ${i}) and (max-width: ${rn(r[s+1][1])})`,d]}:{matcher:l,parent:[`@media (min-width: ${i})`,d]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var W=(e,t,r)=>{let n=e?new RegExp(`^${t}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${t}(?:-\\[(.+?)\\])?[:-]`);return{name:`combinator:${t}`,match:o=>{let i=o.match(n);if(i)return{matcher:o.slice(i[0].length),selector:s=>{var a;return r.replace("&&-s",s).replace("&&-c",(a=i[1])!=null?a:"*")}}}}},on=[W(!1,"all","&&-s &&-c"),W(!1,"children","&&-s>&&-c"),W(!1,"next","&&-s+&&-c"),W(!1,"sibling","&&-s+&&-c"),W(!1,"siblings","&&-s~&&-c"),W(!0,"group","&&-c &&-s"),W(!0,"parent","&&-c>&&-s"),W(!0,"previous","&&-c+&&-s"),W(!0,"peer","&&-c~&&-s")];var sn=te("print","@media print"),an={name:"media",match(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 cn=(e={})=>(e==null?void 0:e.dark)==="class"?[B("dark",t=>`.dark $$ ${t}`),B("light",t=>`.light $$ ${t}`)]:[te("dark","@media (prefers-color-scheme: dark)"),te("light","@media (prefers-color-scheme: light)")];var ln=[B("rtl",e=>`[dir="rtl"] $$ ${e}`),B("ltr",e=>`[dir="ltr"] $$ ${e}`)];var fn={name:"selector",match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},pn={name:"layer",match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},mn={name:"scope",match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},dn={name:"important",match(e){let t=e.match(/^(important[:-]|!)/);if(t)return{matcher:e.slice(t[0].length),body:r=>(r.forEach(n=>{n[1]&&(n[1]+=" !important")}),r)}},autocomplete:"(important)"},un=/[0-9.]+(?:[a-z]+|%)?/,hn={name:"negative",match(e){if(!(!e.startsWith("-")||!e.match(/\d|-px|-full/)))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===ye))return;let r=!1;if(t.forEach(n=>{var i;let o=(i=n[1])==null?void 0:i.toString();!o||o==="0"||un.test(o)&&(n[1]=o.replace(un,s=>`-${s}`),r=!0)}),r)return t}}}};var fe=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"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",["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),pe=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),zo=["not","is","where","has"],Ye=Object.entries(fe).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),Je=Object.entries(pe).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),ue=zo.join("|"),gn=e=>{if(e==="active")return 1},Te=(e,t,r)=>{let n=new RegExp(`^${Z(t)}:`),o=new RegExp(`^${e}-((?:(${ue})-)?(${Ye}))[:-]`),i=new RegExp(`^${e}-((?:(${ue})-)?(${Je}))[:]`);return{name:`pseudo:${e}`,match(s){let a=s.match(o)||s.match(i);if(a){let c=fe[a[3]]||pe[a[3]]||`:${a[3]}`;return a[2]&&(c=`:${a[2]}(${c})`),{matcher:s.slice(a[0].length),selector:l=>n.test(l)?l.replace(n,`${t}${c}:`):`${t}${c}${r}${l}`,sort:gn(a[3])}}}}},bn=Object.entries(fe).map(([e])=>e).join("|"),Vo=Object.entries(pe).map(([e])=>e).join("|"),Oo=new RegExp(`^(${bn})[:-]`),Po=new RegExp(`^(${Vo})[:]`),xn={name:"pseudo",match:e=>{let t=e.match(Oo)||e.match(Po);if(t){let r=fe[t[1]]||pe[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`,sort:gn(t[1])}}},multiPass:!0,autocomplete:`(${bn}):`},Mo=new RegExp(`^(${ue})-(${Ye})[:-]`),Uo=new RegExp(`^(${ue})-(${Je})[:]`),yn={match:e=>{let t=e.match(Mo)||e.match(Uo);if(t){let r=t[1],n=fe[t[2]]||pe[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${ue})-(${Ye}|${Je}):`},$n=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[C(S({},Te("group",t?'[group=""]':".group"," ")),{multiPass:!0}),C(S({},Te("peer",t?'[peer=""]':".peer","~")),{multiPass:!0}),C(S({},Te("parent",t?'[parent=""]':".parent",">")),{multiPass:!0}),C(S({},Te("previous",t?'[previous=""]':".previous","+")),{multiPass:!0})]},_o=/(part-\[(.+)]:)(.+)/,vn={match:e=>{let t=e.match(_o);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var wn=e=>[fn,pn,hn,dn,sn,an,nn,...on,xn,yn,...$n(e),vn,...cn(e),...ln,mn];var Fo=(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:tn,rules:_r,variants:wn(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?No(e.variablePrefix):void 0}},Sn=Fo;function No(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 Qe=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,kn=(e={})=>{var o,i,s;let t=(o=e.prefix)!=null?o:"un-",r=(i=e.prefixedOnly)!=null?i:!1,n=(s=e.trueToNonValued)!=null?s:!1;return{name:"attributify",match(a){let c=dt(a);if(!c)return;let l=c[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let g=c[2],[,p="",d=g]=g.match(Qe)||[];return d==="~"||n&&d==="true"||!d?`${p}${l}`:`${p}${l}-${d}`}}};var Lo=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Wo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,Cn=/[\s'"`;>]+/,Rn={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(Lo),n,o=0;for(let v of r){let[,E,h]=v,x=v.index+E.length;if(t>x&&t<=x+h.length){o=x,n=h;break}}if(!n)return null;let i=n.matchAll(Wo),s=0,a,c;for(let v of i){let[E,h,x]=v,y=o+v.index;if(t>y&&t<=y+E.length){s=y,a=h,c=x==null?void 0:x.slice(1);break}}if(!a||a==="class"||a==="className")return null;if(c===void 0)return{extracted:a,resolveReplacement(v){return{start:s,end:s+a.length,replacement:v}}};let l=s+a.length+2,g=Cn.exec(c),p=0,d;for(;g;){let[v]=g;if(t>l+p&&t<=l+p+g.index){d=c.slice(p,p+g.index);break}p+=g.index+v.length,g=Cn.exec(c.slice(p))}d===void 0&&(d=c.slice(p));let[,f="",b]=d.match(Qe)||[];return{extracted:`${f}${a}-${b}`,transformSuggestions(v){return v.filter(E=>E.startsWith(`${f}${a}-`)).map(E=>f+E.slice(f.length+a.length+1))},resolveReplacement(v){return{start:p+l,end:p+l+d.length,replacement:f+v.slice(f.length+a.length+1)}}}}};var Do=["v-bind:",":"],En=/[\s'"`;]+/g,Bo=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,Ho=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,Tn=e=>{var o,i,s;let t=(o=e==null?void 0:e.ignoreAttributes)!=null?o:[],r=(i=e==null?void 0:e.nonValuedAttribute)!=null?i:!0,n=(s=e==null?void 0:e.trueToNonValued)!=null?s:!1;return{name:"attributify",extract({code:a}){let c=Array.from(a.matchAll(Bo)).flatMap(l=>Array.from((l[1]||"").matchAll(Ho))).flatMap(([,l,g,p])=>{if(t.includes(l))return[];for(let d of Do)if(l.startsWith(d)){l=l.slice(d.length);break}if(!p){if(Q(l)&&r!==!1){let d=[`[${l}=""]`];return n&&d.push(`[${l}="true"]`),d}return[]}return["class","className"].includes(l)?p.split(En).filter(Q):p.split(En).filter(Boolean).map(d=>`[${l}~="${d}"]`)});return new Set(c)}}};var Io=(e={})=>{var o,i,s,a,c;e.strict=(o=e.strict)!=null?o:!1,e.prefix=(i=e.prefix)!=null?i:"un-",e.prefixedOnly=(s=e.prefixedOnly)!=null?s:!1,e.nonValuedAttribute=(a=e.nonValuedAttribute)!=null?a:!0,e.ignoreAttributes=(c=e.ignoreAttributes)!=null?c:[];let t=[kn(e)],r=[Tn(e)],n=[Rn];return e.strict||r.unshift(ee),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:n}}},An=Io;var Ko=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),jn=e=>e.charAt(0).toUpperCase()+e.slice(1),zn=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),Vn=["Webkit","Moz","ms"];function On(e){let t={};function r(n){let o=t[n];if(o)return o;let i=Ko(n);if(i!=="filter"&&i in e)return t[n]=zn(i);i=jn(i);for(let s=0;s<Vn.length;s++){let a=`${Vn[s]}${i}`;if(a in e)return t[n]=zn(jn(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function et(e={}){var T,U;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 m=n.postprocess;m||(m=[]),Array.isArray(m)||(m=[m]),m.unshift(On(document.createElement("div").style)),n.postprocess=m}(T=r==null?void 0:r.configResolved)==null||T.call(r,t,n);let o,i=!0,s,a=Ct(t,n),c=new Set,l,g=[],p=()=>new Promise(m=>{g.push(m),l!=null&&clearTimeout(l),l=setTimeout(()=>f().then(()=>{let $=g;g=[],$.forEach(A=>A())}),0)});function d(m=document.body){if(m.nodeType!==1)return;let $=m;$.hasAttribute("un-cloak")&&$.removeAttribute("un-cloak"),$.querySelectorAll("[un-cloak]").forEach(A=>{A.removeAttribute("un-cloak")})}async function f(){let m=await a.generate(c);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=m.css,c=m.matched}async function b(m){let $=c.size;await a.applyExtractors(m,void 0,c),$!==c.size&&await p()}async function v(){let m=document.body&&document.body.outerHTML;m&&(await b(m),d())}let E=new MutationObserver(m=>{i||m.forEach(async $=>{if($.target.nodeType!==1)return;let A=$.target;if(A!==o)if($.type==="childList")$.addedNodes.forEach(async N=>{if(N.nodeType!==1)return;let z=N;s&&!s(z)||(await b(z.outerHTML),d(z))});else{if(s&&!s(A))return;if($.attributeName!=="un-cloak"){let N=Array.from(A.attributes).map(_=>_.value?`${_.name}="${_.value}"`:_.name).join(" "),z=`<${A.tagName.toLowerCase()} ${N}>`;await b(z)}A.hasAttribute("un-cloak")&&A.removeAttribute("un-cloak")}})}),h=!1;function x(){if(h)return;let m=document.documentElement||document.body;!m||(E.observe(m,{childList:!0,subtree:!0,attributes:!0}),h=!0)}function y(){v(),x()}function w(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",y):y()}let k=window.__unocss_runtime=window.__unocss_runtime={version:a.version,uno:a,async extract(m){typeof m!="string"&&(m.forEach($=>c.add($)),m=""),await b(m)},extractAll:v,inspect(m){s=m},toggleObserver(m){m===void 0?i=!i:i=!!m,!h&&!i&&w()}};((U=r==null?void 0:r.ready)==null?void 0:U.call(r,k))!==!1&&(i=!1,w())}et({defaults:{presets:[Sn(),An()]}});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
- "version": "0.35.3",
3
+ "version": "0.35.4",
4
4
  "description": "CSS-in-JS Runtime for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -34,9 +34,9 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@unocss/core": "0.35.3",
38
- "@unocss/preset-attributify": "0.35.3",
39
- "@unocss/preset-uno": "0.35.3"
37
+ "@unocss/core": "0.35.4",
38
+ "@unocss/preset-attributify": "0.35.4",
39
+ "@unocss/preset-uno": "0.35.4"
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 dt=Object.defineProperty,Tn=Object.defineProperties;var En=Object.getOwnPropertyDescriptors;var ye=Object.getOwnPropertySymbols;var gt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable;var ft=(e,t,r)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))gt.call(t,r)&&ft(e,r,t[r]);if(ye)for(var r of ye(t))bt.call(t,r)&&ft(e,r,t[r]);return e},R=(e,t)=>Tn(e,En(t));var ht=(e,t)=>{var r={};for(var o in e)gt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ye)for(var o of ye(e))t.indexOf(o)<0&&bt.call(e,o)&&(r[o]=e[o]);return r};var jn=(e,t)=>{for(var r in t)dt(e,r,{get:t[r],enumerable:!0})};var Me=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(e=""){let t=On(e);if(t==null||t===!1)return;let{type:r,components:o,alpha:n}=t,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Me.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function _(e,t){let{components:r}=e,{alpha:o,type:n}=e;return o=t!=null?t:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Me.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function On(e){if(!e)return;let t=Vn(e);if(t!=null||(t=An(e),t!=null)||(t=Mn(e),t!=null)||(t=_n(e),t!=null)||(t=Pn(e),t!=null))return t}function Vn(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:t.length===6?void 0:Math.round((o&255)/255*100)/100}}}function An(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Mn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=re(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 Un=new RegExp(`^(${Me.join("|")})\\((.+)\\)$`,"i");function _n(e){let t=e.match(Un);if(!t)return;let[,r,o]=t,n=xt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function Pn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=xt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function xt(e){let t=re(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 a=t.splice(r-2);t.push(a.join(" ")),--r}let o=re(t[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:t};let n=o.pop();return t[r-1]=o.join("/"),{components:t,alpha:n}}function Fn(e,t){if(e=e.trim(),e==="")return;let r=e.length,o=0;for(let n=0;n<r;n++)switch(e[n]){case"(":o++;break;case")":if(--o<0)return;break;case t:if(o===0){let a=e.slice(0,n).trim();return a===""?void 0:[a,e.slice(n+1).trim()]}}return[e,""]}function re(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=Fn(e,t);if(!a)return;let[s,c]=a;o.push(s),e=c}if(o.length>0)return o}var O={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"]},Ue=R($({},O),{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"]}),_e={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"]},Pe={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},yt=["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"],E=Object.assign({},...yt.map(e=>({[e.replace(/ /,"-")]:e})),...yt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),F=["inherit","initial","revert","revert-layer","unset"];function oe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Fe(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\,";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&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var ve=Fe;function ae(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function vt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ae(t)):[e]:[ae(e)]}function Ln(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function $e(e){return e==null?"":Ln(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ke(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Le(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=$({},r);return ke(r)&&ke(o)&&Object.keys(o).forEach(a=>{ke(r[a])&&ke(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Le(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ne(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?ne(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:ne(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?ne(o):o;return r}return e}function kt(e){return typeof e[0]=="string"}function $t(e){return typeof e[0]=="string"}function U(e=[]){return Array.isArray(e)?e:[e]}function ie(e){return Array.from(new Set(e))}var Dn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,T="$$shortcut-no-merge";function wt(e=""){return Dn.test(e)}function St(e){return typeof e=="function"?{match:e}:e}function De(e){return e.length===3}function Ct(e){return e!=null}function We(){}var we=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var Rt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function zt(e){Rt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(Rt,(o,n,a,s)=>s.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Tt=new Set;function Et(e){Tt.has(e)||(console.warn("[unocss]",e),Tt.add(e))}function jt(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let c=e[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(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var Wn=e=>e.split(/[\s'"`;>=]+/g).filter(wt),Ne={name:"split",order:0,extract({code:e}){return new Set(Wn(e))}};function Ot(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function Nn(e){return U(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Bn={shortcuts:-1,default:0};function Be(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(U),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Bn,...o.map(m=>m.layers),e.layers);function s(m){return ie([...n.flatMap(g=>U(g[m]||[])),...U(r[m]||[])])}let c=s("extractors");c.length||c.push(Ne),c.sort((m,g)=>(m.order||0)-(g.order||0));let l=s("rules"),p={},b=l.length;l.forEach((m,g)=>{kt(m)&&(p[m[0]]=[g,m[1],m[2],m],delete l[g])});let f=ne([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,g)=>Le(m,g),{}));s("extendTheme").forEach(m=>m(f));let h={templates:ie(n.map(m=>{var g;return U((g=m.autocomplete)==null?void 0:g.templates)}).flat()),extractors:n.map(m=>{var g;return U((g=m.autocomplete)==null?void 0:g.extractors)}).flat().sort((m,g)=>(m.order||0)-(g.order||0))};return R($({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:b,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(St),shortcuts:Nn(s("shortcuts")),extractors:c,safelist:s("safelist")})}var Vt="0.35.3";var He=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Be(t,r),this.events.emit("config",this.config)}version=Vt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Ot();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Be(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,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(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let s=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(s.variants=[...a[3]]);let 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(b=>this.stringifyUtil(b,s)).filter(Ct);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(d=>c.add(d));let l=s?"":`
1
+ (()=>{var dt=Object.defineProperty,Tn=Object.defineProperties;var En=Object.getOwnPropertyDescriptors;var ye=Object.getOwnPropertySymbols;var gt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable;var ft=(e,t,r)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))gt.call(t,r)&&ft(e,r,t[r]);if(ye)for(var r of ye(t))bt.call(t,r)&&ft(e,r,t[r]);return e},R=(e,t)=>Tn(e,En(t));var ht=(e,t)=>{var r={};for(var o in e)gt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ye)for(var o of ye(e))t.indexOf(o)<0&&bt.call(e,o)&&(r[o]=e[o]);return r};var jn=(e,t)=>{for(var r in t)dt(e,r,{get:t[r],enumerable:!0})};var Me=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(e=""){let t=On(e);if(t==null||t===!1)return;let{type:r,components:o,alpha:n}=t,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Me.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function _(e,t){let{components:r}=e,{alpha:o,type:n}=e;return o=t!=null?t:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Me.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function On(e){if(!e)return;let t=Vn(e);if(t!=null||(t=An(e),t!=null)||(t=Mn(e),t!=null)||(t=_n(e),t!=null)||(t=Pn(e),t!=null))return t}function Vn(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:t.length===6?void 0:Math.round((o&255)/255*100)/100}}}function An(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Mn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=re(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 Un=new RegExp(`^(${Me.join("|")})\\((.+)\\)$`,"i");function _n(e){let t=e.match(Un);if(!t)return;let[,r,o]=t,n=xt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function Pn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=xt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function xt(e){let t=re(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 a=t.splice(r-2);t.push(a.join(" ")),--r}let o=re(t[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:t};let n=o.pop();return t[r-1]=o.join("/"),{components:t,alpha:n}}function Fn(e,t){if(e=e.trim(),e==="")return;let r=e.length,o=0;for(let n=0;n<r;n++)switch(e[n]){case"(":o++;break;case")":if(--o<0)return;break;case t:if(o===0){let a=e.slice(0,n).trim();return a===""?void 0:[a,e.slice(n+1).trim()]}}return[e,""]}function re(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=Fn(e,t);if(!a)return;let[s,c]=a;o.push(s),e=c}if(o.length>0)return o}var O={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"]},Ue=R($({},O),{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"]}),_e={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"]},Pe={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},yt=["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"],E=Object.assign({},...yt.map(e=>({[e.replace(/ /,"-")]:e})),...yt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),F=["inherit","initial","revert","revert-layer","unset"];function oe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Fe(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\,";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&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var ve=Fe;function ae(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function vt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ae(t)):[e]:[ae(e)]}function Ln(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function $e(e){return e==null?"":Ln(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ke(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Le(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=$({},r);return ke(r)&&ke(o)&&Object.keys(o).forEach(a=>{ke(r[a])&&ke(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Le(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ne(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?ne(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:ne(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?ne(o):o;return r}return e}function kt(e){return typeof e[0]=="string"}function $t(e){return typeof e[0]=="string"}function U(e=[]){return Array.isArray(e)?e:[e]}function ie(e){return Array.from(new Set(e))}var Dn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,T="$$shortcut-no-merge";function wt(e=""){return Dn.test(e)}function St(e){return typeof e=="function"?{match:e}:e}function De(e){return e.length===3}function Ct(e){return e!=null}function We(){}var we=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var Rt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function zt(e){Rt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(Rt,(o,n,a,s)=>s.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Tt=new Set;function Et(e){Tt.has(e)||(console.warn("[unocss]",e),Tt.add(e))}function jt(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let c=e[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(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var Wn=e=>e.split(/[\s'"`;>=]+/g).filter(wt),Ne={name:"split",order:0,extract({code:e}){return new Set(Wn(e))}};function Ot(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function Nn(e){return U(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Bn={shortcuts:-1,default:0};function Be(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(U),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Bn,...o.map(m=>m.layers),e.layers);function s(m){return ie([...n.flatMap(g=>U(g[m]||[])),...U(r[m]||[])])}let c=s("extractors");c.length||c.push(Ne),c.sort((m,g)=>(m.order||0)-(g.order||0));let l=s("rules"),p={},b=l.length;l.forEach((m,g)=>{kt(m)&&(p[m[0]]=[g,m[1],m[2],m],delete l[g])});let f=ne([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,g)=>Le(m,g),{}));s("extendTheme").forEach(m=>m(f));let h={templates:ie(n.map(m=>{var g;return U((g=m.autocomplete)==null?void 0:g.templates)}).flat()),extractors:n.map(m=>{var g;return U((g=m.autocomplete)==null?void 0:g.extractors)}).flat().sort((m,g)=>(m.order||0)-(g.order||0))};return R($({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:b,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(St),shortcuts:Nn(s("shortcuts")),extractors:c,safelist:s("safelist")})}var Vt="0.35.4";var He=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Be(t,r),this.events.emit("config",this.config)}version=Vt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Ot();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Be(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,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(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let s=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(s.variants=[...a[3]]);let 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(b=>this.stringifyUtil(b,s)).filter(Ct);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(d=>c.add(d));let l=s?"":`
2
2
  `,p=new Set(["default"]),b=new Set,f=new Map;await Promise.all(Array.from(c).map(async d=>{var v;if(b.has(d))return;let y=await this.parseToken(d);if(y!=null){b.add(d);for(let w of y){let z=w[3]||"";f.has(z)||f.set(z,[]),f.get(z).push(w),(v=w[4])!=null&&v.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(d=>{d.layer&&p.add(d.layer)});let h={},m=this.config.sortLayers(Array.from(p).sort((d,y)=>{var v,w;return((v=this.config.layers[d])!=null?v:0)-((w=this.config.layers[y])!=null?w:0)||d.localeCompare(y)})),g={};if(n){let d={generator:this,theme:this.config.theme};g=Object.fromEntries(await Promise.all(m.map(async y=>{let w=(await Promise.all(this.config.preflights.filter(z=>(z.layer||"default")===y).map(async z=>await z.getCSS(d)))).filter(Boolean).join(l);return[y,w]})))}let j=d=>{if(h[d])return h[d];let y=Array.from(f).sort((v,w)=>{var z,V,D;return((z=this.parentOrders.get(v[0]))!=null?z:0)-((V=this.parentOrders.get(w[0]))!=null?V:0)||((D=v[0])==null?void 0:D.localeCompare(w[0]||""))||0}).map(([v,w])=>{let z=w.length,V=w.filter(u=>{var k;return(((k=u[4])==null?void 0:k.layer)||"default")===d}).sort((u,k)=>{var A,K,P;return u[0]-k[0]||(((A=u[4])==null?void 0:A.sort)||0)-(((K=k[4])==null?void 0:K.sort)||0)||((P=u[1])==null?void 0:P.localeCompare(k[1]||""))||0}).map(u=>{var k;return[u[1]?In(u[1],o):u[1],u[2],!!((k=u[4])!=null&&k.noMerge)]}).map(u=>[u[0]==null?u[0]:[u[0]],u[1],u[2]]);if(!V.length)return;let D=V.reverse().map(([u,k,A],K)=>{if(!A&&u&&this.config.mergeSelectors)for(let P=K+1;P<z;P++){let B=V[P];if(B&&!B[2]&&B[0]&&B[1]===k)return B[0].push(...u),null}return u?`${[...new Set(u)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return v?`${v}{${l}${D}${l}}`:D}).filter(Boolean).join(l);return n&&(y=[g[d],y].filter(Boolean).join(l)),h[d]=!s&&y?`/* layer: ${d} */${l}${y}`:y},N=(d=m,y)=>d.filter(v=>!(y!=null&&y.includes(v))).map(v=>j(v)||"").filter(Boolean).join(l);return{get css(){return N()},layers:m,getLayers:N,getLayer:j,matched:b}}matchVariants(t,r){let o=new Set,n=[],a=r||t,s=!1,c={rawSelector:t,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.unshift(p),o.add(l),s=!0;break}}if(!s)break;if(n.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,a,n,o]}applyVariants(t,r=t[4],o=t[1]){let n=[...r].sort((l,p)=>(l.order||0)-(p.order||0)),a=n.reduce((l,p)=>{var b;return((b=p.body)==null?void 0:b.call(p,l))||l},t[2]),s=n.reduce((l,p)=>{var b;return((b=p.selector)==null?void 0:b.call(p,l,a))||l},qn(o)),c={selector:Gn(s),entries:a,parent:n.reduce((l,p)=>Array.isArray(p.parent)?p.parent[0]:p.parent||l,void 0),layer:n.reduce((l,p)=>p.layer||l,void 0),sort:n.reduce((l,p)=>p.sort||l,void 0)};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,o){r=ae(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),c=`${n}{${$e(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(t,r,o=!1){var f,h;let[n,a,s]=typeof t=="string"?this.matchVariants(t):t,c=this.config.details?m=>{var g;r.rules=(g=r.rules)!=null?g:[],r.rules.push(m)}:We,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((f=l[2])!=null&&f.internal)))return c(l[3]),[[l[0],n,ae(l[1]),l[2],s]];r.variantHandlers=s;let{rulesDynamic:p,rulesSize:b}=this.config;for(let m=b-1;m>=0;m--){let g=p[m];if(!g||((h=g[2])==null?void 0:h.internal)&&!o)continue;let[j,N,d]=g,y=a.match(j);if(!y)continue;let v=await N(y,r);if(!v)continue;if(c(g),typeof v=="string")return[[m,v,d]];let w=vt(v).filter(z=>z.length);if(w.length)return w.map(z=>[m,n,z,d,s])}}stringifyUtil(t,r){var m;if(!t)return;if(De(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:o,entries:n,parent:a,layer:s,sort:c}=this.applyVariants(t),l=$e(n);if(!l)return;let g=(m=t[3])!=null?m:{},{layer:p,sort:b}=g,f=ht(g,["layer","sort"]),h=R($({},f),{layer:s!=null?s:p,sort:c!=null?c:b});return[t[0],o,l,a,h,this.config.details?r:void 0]}expandShortcut(t,r,o=3){if(o===0)return;let n=this.config.details?c=>{var l;r.shortcuts=(l=r.shortcuts)!=null?l:[],r.shortcuts.push(c)}:We,a,s;for(let c of this.config.shortcuts)if($t(c)){if(c[0]===t){a=a||c[2],s=c[1],n(c);break}}else{let l=t.match(c[0]);if(l&&(s=c[1](l,r)),s){a=a||c[2],n(c);break}}if(typeof s=="string"&&(s=zt(s).split(/\s+/g)),!!s)return[s.flatMap(c=>{var l;return((l=this.expandShortcut(c,r,o-1))==null?void 0:l[0])||[c]}).filter(c=>c!==""),a]}async stringifyShortcuts(t,r,o,n={layer:this.config.shortcutsLayer}){var b;let a=new we,s=(await Promise.all(ie(o).map(async f=>{let h=await this.parseUtil(f,r,!0);return h||Et(`unmatched utility "${f}" in shortcut "${t[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((f,h)=>f[0]-h[0]),[c,,l]=t,p=[];for(let f of s){if(De(f)){p.push([f[0],void 0,f[1],void 0,f[2],r]);continue}let{selector:h,entries:m,parent:g,sort:j}=this.applyVariants(f,[...f[4],...l],c);a.getFallback(h,g,[[],f[0]])[0].push([m,!!((b=f[3])!=null&&b.noMerge),j!=null?j:0])}return p.concat(a.map(([f,h],m,g)=>{let j=(d,y,v)=>{let w=Math.max(...v.map(V=>V[1])),z=v.map(V=>V[0]);return(d?[z.flat(1)]:z).map(V=>{let D=$e(V);if(D)return[h,m,D,g,R($({},n),{noMerge:y,sort:w}),r]})};return[[f.filter(([,d])=>d).map(([d,,y])=>[d,y]),!0],[f.filter(([,d])=>!d).map(([d,,y])=>[d,y]),!1]].map(([d,y])=>[...j(!1,y,d.filter(([v])=>v.some(w=>w[0]===T))),...j(!0,y,d.filter(([v])=>v.every(w=>w[0]!==T)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Mt(e,t){return new He(e,t)}var Ut=/ \$\$ /,Kn=e=>e.match(Ut);function In(e,t){return Kn(e)?e.replace(Ut,t?` ${t} `:" "):t?`${t} ${e}`:e}function Gn(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var At=/^\[(.+?)(~?=)"(.*)"\]$/;function qn(e){return At.test(e)?e.replace(At,(t,r,o,n)=>`[${ve(r)}${o}"${ve(n)}"]`):`.${ve(e)}`}var Ie={};jn(Ie,{auto:()=>Jn,bracket:()=>aa,bracketOfColor:()=>ia,bracketOfLength:()=>sa,bracketOfPosition:()=>ca,cssvar:()=>la,degree:()=>ua,fraction:()=>oa,global:()=>ma,number:()=>ta,numberWithUnit:()=>Zn,percent:()=>ra,position:()=>da,properties:()=>fa,px:()=>ea,rem:()=>Qn,time:()=>pa});var Xn=["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"],Ke=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Yn=/^(-?[0-9.]+)$/i,_t=/^(px)$/i;function L(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Zn(e){let t=e.match(Ke);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${L(n)}${o}`}function Jn(e){if(e==="auto"||e==="a")return"auto"}function Qn(e){if(e.match(_t))return`1${e}`;let t=e.match(Ke);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${L(n)}${o}`:`${L(n/4)}rem`}function ea(e){if(e.match(_t))return`1${e}`;let t=e.match(Ke);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${L(n)}${o}`:`${L(n)}px`}function ta(e){if(!Yn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return L(t)}function ra(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${L(t/100)}`}function oa(e){if(e==="full")return"100%";let[t,r]=e.split("/"),o=parseFloat(t)/parseFloat(r);if(!Number.isNaN(o))return`${L(o*100)}%`}var na=/^\[(color|length|position):/i;function Se(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,o=e.match(na);if(o?t&&o[1]===t&&(r=e.slice(o[0].length,-1)):r=e.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 aa(e){return Se(e)}function ia(e){return Se(e,"color")}function sa(e){return Se(e,"length")}function ca(e){return Se(e,"position")}function la(e){if(e.match(/^\$\S/))return`var(--${Fe(e.slice(1))})`}function pa(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${L(n)}${o}`:`${L(n)}ms`}function ua(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${L(n)}${o}`:`${L(n)}deg`}function ma(e){if(F.includes(e))return e}function fa(e){if(e.split(",").every(t=>Xn.includes(t)))return e}function da(e){if(["top","left","right","bottom","center"].includes(e))return e}var i=jt(Ie);var W=(e,t)=>{let r=new RegExp(`^${oe(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},M=(e,t)=>{let r=new RegExp(`^${oe(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:t}},autocomplete:`${e}:`}};var Ce="$$mini-no-negative",C=e=>([t,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 O[r].map(l=>[`${e}${l}`,a])},Ge=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},Y=(e,t)=>{let r=e.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 b="DEFAULT";if(!c){let f,[h]=a.slice(-1);h.match(/^\d+$/)?(b=h,f=Ge(t,a.slice(0,-1))):(f=Ge(t,a),!f&&a.length<=2&&([,b=b]=a,f=Ge(t,[s]))),typeof f=="string"?c=f:b&&f&&(c=f[b])}return{opacity:n,name:s,no:b,color:c,cssColor:X(c),alpha:i.bracket.cssvar.percent(n!=null?n:"")}},S=(e,t)=>([,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?{[e]:_(c,a)}:{[`--un-${t}-opacity`]:(l=c.alpha)!=null?l:1,[e]:_(c,`var(--un-${t}-opacity)`)};if(s)return{[e]:s.replace("%alpha",`${a!=null?a:1}`)}},Z=(e,t)=>{let r=[];e=U(e);for(let o=0;o<e.length;o++){let n=re(e[o]," ",6);if(!n||n.length<3)return e;let a=X(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${_(a)})`)}return r},Re=(e,t)=>{var r;return e!=null&&!!((r=Y(e,t))!=null&&r.color)},J=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},Pt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Ft=[[/^(?:animate-)?keyframes-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o)return`@keyframes ${e}${o}
3
3
  ${r({animation:`${e}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a,s,c,l,p,b,f,h,m;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let g=(l=(c=(s=t.animation)==null?void 0:s.durations)==null?void 0:c[e])!=null?l:"1s",j=(f=(b=(p=t.animation)==null?void 0:p.timingFns)==null?void 0:b[e])!=null?f:"linear",N=(m=(h=t.animation)==null?void 0:h.properties)==null?void 0:m[e];return`@keyframes ${e}${o}
4
4
  ${r(Object.assign({animation:`${e} ${g} ${j} infinite`},N))}`}return{animation:i.bracket.cssvar(e)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,e])=>{var t;return{"animation-name":(t=i.bracket.cssvar(e))!=null?t:e}}],[/^animate-duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"animation-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar.time(e)}},{autocomplete:["animate-duration","animate-duration-$duration"]}],[/^animate-delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"animation-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar.time(e)}},{autocomplete:["animate-delay","animate-delay-$duration"]}],[/^animate-ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"animation-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar(e)}},{autocomplete:"animate-delay-$easing"}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)$/,([,e])=>({"animation-fill-mode":e}),{autocomplete:["animate-(fill|mode|fill-mode)","animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)","animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)$/,([,e])=>({"animation-direction":e}),{autocomplete:["animate-direction","animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)","animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,e])=>{var t;return{"animation-iteration-count":(t=i.bracket.cssvar(e))!=null?t:e.replace(/\-/g,",")}},{autocomplete:["animate-(iteration|count|iteration-count)","animate-(iteration|count|iteration-count)-<num>"]}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|revert-layer|unset)$/,([,e])=>({"animation-play-state":e}),{autocomplete:["animate-(play|state|play-state)","animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)","animate-(paused|running|inherit|initial|revert|revert-layer|unset)"]}],["animate-none",{animation:"none"}]];var qe=e=>([,t],{theme:r})=>{var l;let o=Y(t,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let c=a;switch(s&&(n!=null?c=_(s,n):c=_(s,`var(--un-${e}-opacity, ${(l=s.alpha)!=null?l:1})`)),e){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}}},ga=/^\[url\(.+\)\]$/,ba=/^\[length:.+\]$/,ha=/^\[position:.+\]$/,Lt=[[/^bg-(.+)$/,([,e])=>{if(ga.test(e))return{"--un-url":i.bracket(e),"background-image":"var(--un-url)"};if(ba.test(e)&&i.bracketOfLength(e)!=null)return{"background-size":i.bracketOfLength(e).split(" ").map(t=>i.fraction.auto.px.cssvar(t)).join(" ")};if(ha.test(e)&&i.bracketOfPosition(e)!=null)return{"background-position":i.bracketOfPosition(e).split(" ").map(t=>i.position.fraction.auto.px.cssvar(t)).join(" ")}}],[/^bg-gradient-(.+)$/,([,e])=>({"--un-gradient":i.bracket(e)}),{autocomplete:["bg-gradient","bg-gradient-(from|to|via)","bg-gradient-(from|to|via)-$colors","bg-gradient-(from|to|via)-(op|opacity)","bg-gradient-(from|to|via)-(op|opacity)-<percent>"]}],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,e])=>({"--un-gradient-stops":i.bracket(e)})],[/^(?:bg-gradient-)?from-(.+)$/,qe("from")],[/^(?:bg-gradient-)?to-(.+)$/,qe("to")],[/^(?:bg-gradient-)?via-(.+)$/,qe("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,e])=>({"--un-from-opacity":i.bracket.percent(e)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,e])=>({"--un-to-opacity":i.bracket.percent(e)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,e])=>({"--un-via-opacity":i.bracket.percent(e)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,e])=>({"background-image":`${e}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`}),{autocomplete:["bg-gradient-repeating","bg-gradient-(linear|radial|conic)","bg-gradient-repeating-(linear|radial|conic)"]}],[/^bg-gradient-to-([rltb]{1,2})$/,([,e])=>{if(e in E)return{"--un-gradient-shape":`to ${E[e]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}},{autocomplete:`bg-gradient-to-(${Object.keys(E).filter(e=>e.length<=2&&Array.from(e).every(t=>"rltb".includes(t))).join("|")})`}],[/^(?:bg-gradient-)?shape-(.+)$/,([,e])=>{let t=e in E?`to ${E[e]}`:i.bracket(e);if(t!=null)return{"--un-gradient-shape":t,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}},{autocomplete:["bg-gradient-shape",`bg-gradient-shape-(${Object.keys(E).join("|")})`,`shape-(${Object.keys(E).join("|")})`]}],["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,})$/,([,e])=>({"background-position":E[e]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-repeat":"repeat-x"}],["bg-repeat-y",{"background-repeat":"repeat-y"}],["bg-repeat-round",{"background-repeat":"round"}],["bg-repeat-space",{"background-repeat":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var ze={disc:"disc",circle:"circle",square:"square",decimal:"decimal","zero-decimal":"decimal-leading-zero",greek:"lower-greek",roman:"lower-roman","upper-roman":"upper-roman",alpha:"lower-alpha","upper-alpha":"upper-alpha",latin:"lower-latin","upper-latin":"upper-latin"},Dt=[[/^list-(.+)(?:-(outside|inside))?$/,([,e,t])=>t!=null?{"list-style-position":t,"list-style-type":ze[e]}:{"list-style-type":ze[e]},{autocomplete:[`list-(${Object.keys(ze).join("|")})`,`list-(${Object.keys(ze).join("|")})-(outside|inside)`]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Wt=[[/^accent-(.+)$/,S("accent-color","accent"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,e])=>({"--un-accent-opacity":i.bracket.percent(e)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],Nt=[[/^caret-(.+)$/,S("caret-color","caret"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,e])=>({"--un-caret-opacity":i.bracket.percent(e)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],Bt=[["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"]]]],Ht=[["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"}]],Kt=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var It=[[/^columns-(.+)$/,([,e])=>({columns:i.bracket.global.number.auto.numberWithUnit(e)}),{autocomplete:"columns-<num>"}],["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 xa=/@media \(min-width: (.+)\)/,Gt=[[/^__container$/,(e,{variantHandlers:t})=>{var o;let r="100%";for(let n of t){let a=U(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(xa))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],qt=[[/^(?:(\w+)[:-])?container$/,([,e],t)=>{var n;let r=Object.keys((n=J(t))!=null?n:{});if(e){if(!r.includes(e))return;r=r.slice(r.indexOf(e))}let o=r.map(a=>`${a}:__container`);return e||o.unshift("__container"),o}]];var Xt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},Yt=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Xt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(Xt).join("|")})`}]],Zt=["center","left","right","justify","start","end",...F].map(e=>[`text-${e}`,{"text-align":e}]);var Jt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:i.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,S("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-offset":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:i.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...F].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Qt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ya=e=>{var t;return(t=i.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},er=[[/^will-change-(.+)/,([,e])=>({"will-change":ya(e)})]];var ue=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...F],tr=[[/^(?:border|b)()(?:-(.+))?$/,se,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,se],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,se],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,se],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,se],[/^(?:border|b)-()(?:width|size)-(.+)$/,Q,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Q],[/^(?:border|b)-()(?:color-)?(.+)$/,ce,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ce],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ce],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ce],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ce],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,le,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,le],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,le],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,le],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,le],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,pe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,pe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,pe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,pe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,pe],[/^(?:border|b)-(?:style-)?()(.+)$/,ee,{autocomplete:["(border|b)-style",`(border|b)-(${ue.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ue.join("|")})`,`(border|b)-<directions>-style-(${ue.join("|")})`,`(border|b)-style-(${ue.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,ee],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ee],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ee],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ee]],va=e=>([,t],r)=>{var c,l;let o=Y(t,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${e}-color`]:_(s,n)}:e===""?{"--un-border-opacity":(c=s.alpha)!=null?c:1,[`border${e}-color`]:_(s,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:_(s,`var(--un-border${e}-opacity)`)};if(a)return{[`border${e}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function se(e,t){let r=Q(e,t),o=ee(["",e[1],"solid"]);if(r&&o)return[...r,...o]}function Q([,e="",t],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])!=null?a:i.bracket.cssvar.px(t||"1");if(e in O&&o!=null)return O[e].map(s=>[`border${s}-width`,o])}function ce([,e="",t],{theme:r}){if(e in O&&Re(t,r))return Object.assign({},...O[e].map(o=>va(o)(["",t],r)))}function le([,e="",t]){let r=i.bracket.percent(t);if(e in O&&r!=null)return O[e].map(o=>[`--un-border${o}-opacity`,r])}function pe([,e="",t],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[t||"DEFAULT"])||i.bracket.cssvar.fraction.rem(t||"1");if(e in _e&&o!=null)return _e[e].map(a=>[`border${a}-radius`,o])}function ee([,e="",t]){if(ue.includes(t)&&e in O)return O[e].map(r=>[`border${r}-style`,t])}var rr=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:i.bracket.percent.cssvar(e)})]],or=[[/^(?:text|color|c)-(.+)$/,S("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":i.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],nr=[[/^bg-(.+)$/,S("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":i.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Te={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},ar=e=>{var t;return(t=i.properties(e))!=null?t:Te[e]},ir=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?ar(e):[Te.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let s=(a=(n=r.duration)==null?void 0:n[t||"DEFAULT"])!=null?a:i.time(t||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys(Te).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"transition-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":i.global(e)||ar(e)}),{autocomplete:[`transition-property-(${[...F,...Object.keys(Te)].join("|")})`]}],["transition-none",{transition:"none"}]];var sr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:i.bracket(e)!=null?i.bracket(e).split(" ").map(t=>{var r;return(r=i.cssvar.fraction(t))!=null?r:t}).join(" "):i.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,o;return{"flex-basis":(o=(r=t.spacing)==null?void 0:r[e])!=null?o:i.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 cr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},lr=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||i.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=U((o=t.fontSize)==null?void 0:o[e]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":i.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var n,a;let r=U((n=t.fontSize)==null?void 0:n[e]),o=(a=r==null?void 0:r[0])!=null?a:i.bracket.cssvar.rem(e);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":cr[e]||i.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(cr).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||i.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":e}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||i.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])||i.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],pr=[[/^tab(?:-(.+))?$/,([,e])=>{let t=i.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],ur=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||i.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],mr=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||i.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,S("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":i.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],fr=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.textShadow)==null?void 0:o[e||"DEFAULT"];return r!=null?{"--un-text-shadow":Z(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":i.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,S("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":i.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var dr={"":"",x:"column-",y:"row-"},gr=([,e="",t],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:i.bracket.cssvar.rem(t);if(o!=null)return{[`grid-${dr[e]}gap`]:o,[`${dr[e]}gap`]:o}},br=[[/^(?:flex-|grid-)?gap-?()(.+)$/,gr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,gr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var H=e=>e.replace("col","column"),Xe=e=>e[0]==="r"?"Row":"Column",ka=(e,t,r)=>{var n;let o=(n=t[`gridAuto${Xe(e)}`])==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)},hr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-${H(e)}`]:(n=(o=r[`grid${Xe(e)}`])==null?void 0:o[t])!=null?n:i.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${H(e)}`]:"1/-1"};let r=i.bracket.number(t);if(r!=null)return{[`grid-${H(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-${H(e)}-start`]:(r=i.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${H(e)}-end`]:(r=i.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${H(e)}`]:ka(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":i.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":H(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-template-${H(e)}`]:(n=(o=r[`gridTemplate${Xe(e)}`])==null?void 0:o[t])!=null?n:i.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${H(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${H(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Ee=["auto","hidden","clip","visible","scroll"],xr=[[/^(?:overflow|of)-(.+)$/,([,e])=>Ee.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Ee.join("|")})`,`(overflow|of)-(x|y)-(${Ee.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Ee.includes(t)?{[`overflow-${e}`]:t}:void 0]];var yr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],vr=[["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"}]],kr=[[/^order-(.+)$/,([,e])=>({order:i.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],$r=[["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"}]],wr=[["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 Ye(e,{theme:t}){var r,o;return(o=(r=t.spacing)==null?void 0:r[e])!=null?o:i.bracket.cssvar.auto.fraction.rem(e)}function je([,e,t],r){let o=Ye(t,r);if(o!=null&&e in Ue)return Ue[e].map(n=>[n.slice(1),o])}var Sr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Ye(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])-(.+)$/,je],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,je],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,je],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,je],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Ye(t,r)})]],Cr=[["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"}]],Rr=[[/^z([\d.]+)$/,([,e])=>({"z-index":i.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":i.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],zr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var x="var(--un-empty,/*!*/ /*!*/)",Tr=[["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:i.bracket.cssvar(e)||e})]],Er=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],jr=[[/^cursor-(.+)$/,([,e])=>({cursor:i.bracket.cssvar(e)||e})]],Or=[["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"}]],Ar=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Mr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],Ur=[[/^content-(.+)$/,([,e])=>{let t=i.bracket.cssvar(e);return{content:t==null?`"${e}"`:t}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],_r=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Pr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Fr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Lr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Dr=[["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 Wr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var o,n;let r=(n=(o=t.ringWidth)==null?void 0:o[e||"DEFAULT"])!=null?n:i.px(e||"1");if(r)return[{[T]:"","--un-ring-inset":x,"--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,o;return{"--un-ring-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:i.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,o;return{"--un-ring-offset-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:i.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,S("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":i.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,S("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":i.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Nr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return[{[T]:"","--un-shadow-inset":x,"--un-shadow":"0 0 #0000"},{"--un-shadow":Z(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)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":i.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var $a={h:"height",w:"width",inline:"inline-size",block:"block-size"};function me(e,t){return`${e||""}${$a[t]}`}function Br(e,t,r,o){var s;let n=me(e,t).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 Hr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[me(e,t)]:Br(e,t,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)-(.+)$/,([,e,t,r],{theme:o})=>({[me(e,t)]:Br(e,t,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-(.+)$/,([,e,t,r],o)=>{var n;return{[me(e,t)]:(n=Pt(o))==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],o)=>{var n;return{[me(e,t)]:(n=J(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function wa(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return i.bracket.cssvar.auto.number(e)}var Kr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":wa(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Ir=[[/^pa?()-?(-?.+)$/,C("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,C("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,C("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,C("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,C("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,C("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Gr=[[/^ma?()-?(-?.+)$/,C("margin")],[/^m-?xy()()$/,C("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,C("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,C("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,C("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,C("margin")]];var Sa={"--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(" ")},Zr={"--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(" ")},te=R($({"--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},Zr),{[T]:"",[Ce]:""}),Jr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=E[e])!=null?t:i.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(E).join("|")})`,`origin-(${Object.keys(E).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=i.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=i.bracket.cssvar(e))!=null?r:e.length>=3?E[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,qr],[/^(?:transform-)?translate-([xyz])-(.+)$/,qr],[/^(?:transform-)?rotate-()(.+)$/,Yr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Yr],[/^(?:transform-)?skew-([xy])-(.+)$/,Ca],[/^(?:transform-)?scale-()(.+)$/,Xr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Xr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[te,{transform:"var(--un-transform)"}]],["transform-gpu",Sa],["transform-cpu",Zr],["transform-none",{transform:"none"}]];function qr([,e,t],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:i.bracket.cssvar.fraction.rem(t);if(o!=null)return[te,[...Pe[e].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Xr([,e,t]){let r=i.bracket.cssvar.fraction.percent(t);if(r!=null)return[te,[...Pe[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Yr([,e="",t]){let r=i.bracket.cssvar.degree(t);if(r!=null)return e?[te,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[te,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function Ca([,e,t]){let r=i.bracket.cssvar.degree(t);if(r!=null)return[te,{[`--un-skew-${e}`]: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"},Qr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Ra[e];if(r)return{[r]:i.cssvar(t)}}]],eo=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:i.bracket(`[${t}]`)})]];var to=[[/^(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}}