@unocss/runtime 66.3.3 → 66.4.0

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
- "use strict";(()=>{var Hf=Object.defineProperty;var qf=(e,t)=>{for(var r in t)Hf(e,r,{get:t[r],enumerable:!0})};var Xe="default",Dt="preflights",Yf="shortcuts",Xf="imports",_o={[Xf]:-200,[Dt]:-100,[Yf]:-10,[Xe]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function Zf(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Zf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(e){return Array.from(new Set(e))}function wn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function F(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Gt(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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===37){o+="\\%";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 Ht=J;function Lo(){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)}}}var Jf=/^\[(.+?)~?="(.*)"\]$/;var Qf=/[\w\u00A0-\uFFFF%-?]/;function Wo(e){return e.match(Jf)}function Je(e=""){return Qf.test(e)}function Uo(e){return typeof e=="function"?{match:e}:e}function kn(e){return e.length===3}function qt(e){return e!=null}function Bo(){}var Yt=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){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.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)))}},Xt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function et(e){return F(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Io(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>et(t)):[e]:[et(e)]}function eu(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 Le(e){return e==null?"":eu(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Zt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Sn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Zt(n)&&Zt(o)&&Object.keys(o).forEach(s=>{Zt(n[s])&&Zt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Sn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Qe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Qe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}return e}function Do(e){return F(e[0])}function No(e){return F(e[0])}var Jt={};function tu(e=["-",":"]){let t=e.join("|");return Jt[t]||(Jt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Jt[t].lastIndex=0,Jt[t]}function ru(e,t=["-",":"],r=5){let n=tu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,u,p,g,m)=>{if(!t.includes(p))return l;o=!0,s.add(u+p);let h=m+u.length+p.length+1,x={length:l.length,items:[]};a.set(m,x);for(let $ of[...g.matchAll(/\S+/g)]){let C=h+$.index,y=a.get(C)?.items;y?a.delete(C):y=[{offset:C,length:$[0].length,className:$[0]}];for(let b of y)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,p]of a)c+=e.slice(l,u),c+=p.items.map(g=>g.className).join(" "),l=u+p.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Ko(e,t=["-",":"],r=5){let n=ru(e,t,r);return typeof e=="string"?n.expanded:e}var Go=new Set;function Ho(e){Go.has(e)||(console.warn("[unocss]",e),Go.add(e))}function Xo(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var qo="_uno_resolved";async function nu(e){let t=typeof e=="function"?await e():await e;if(qo in t)return t;t={...t},Object.defineProperty(t,qo,{value:!0,enumerable:!1});let r=t.shortcuts?Xo(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Zo(e){let t=await nu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(Zo))).flat();return[t,...r]}function ou(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Yo(...t)),exclude:ue(Yo(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Cn(e={},t={}){let r=Object.assign({},t,e),n=wn((await Promise.all((r.presets||[]).flatMap(S).flatMap(Zo))).flat(),(v,j)=>v.name===j.name),o=[...n.filter(v=>v.enforce==="pre"),...n.filter(v=>!v.enforce),...n.filter(v=>v.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},_o,...i.map(v=>v.layers));function c(v){return ue(i.flatMap(j=>S(j[v]||[])))}let l=c("extractors"),u=s.find(v=>v.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Kt),u&&!l.includes(u)&&l.unshift(u),l.sort((v,j)=>(v.order||0)-(j.order||0));let p=c("rules"),g={},m=p.length,h=p.filter(v=>Do(v)?(S(v[2]?.prefix||"").forEach(k=>{g[k+v[0]]=v}),!1):!0).reverse(),x={templates:ue(i.flatMap(v=>S(v.autocomplete?.templates))),extractors:i.flatMap(v=>S(v.autocomplete?.extractors)).sort((v,j)=>(v.order||0)-(j.order||0)),shorthands:su(i.map(v=>v.autocomplete?.shorthands||{}))},$=c("separators");$.length||($=[":","-"]);let C=c("content"),y=ou(C),b={mergeSelectors:!0,warn:!0,sortLayers:v=>v,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:iu(i.map(v=>v.theme)),rules:p,rulesSize:m,rulesDynamic:h,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Uo).sort((v,j)=>(v.order||0)-(j.order||0)),shortcuts:Xo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:$,details:r.details??r.envMode==="dev",content:y,transformers:wn(c("transformers"),(v,j)=>v.name===j.name)},T=c("extendTheme");for(let v of T)b.theme=v(b.theme,b)||b.theme;for(let v of i)v?.configResolved?.(b);return b}function iu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>Sn(t,r),{})}function su(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Yo(...e){return e.flatMap(au)}function au(e){return Array.isArray(e)?e:e?[e]:[]}var Jo="66.3.3";var $e={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},Rn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Jo;events=Lo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Cn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Cn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Gt(s)&&Gt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:$e,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(qt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=F(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let k={generator:this,theme:this.config.theme};this.config.safelist.flatMap(R=>typeof R=="function"?R(k):R).forEach(R=>{let P=R.trim();P&&!l.has(P)&&l.add(P)})}let u=a?"":`
1
+ "use strict";(()=>{var Hf=Object.defineProperty;var qf=(e,t)=>{for(var r in t)Hf(e,r,{get:t[r],enumerable:!0})};var Xe="default",Dt="preflights",Yf="shortcuts",Xf="imports",_o={[Xf]:-200,[Dt]:-100,[Yf]:-10,[Xe]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function Zf(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Zf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(e){return Array.from(new Set(e))}function wn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function F(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Gt(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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===37){o+="\\%";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 Ht=J;function Lo(){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)}}}var Jf=/^\[(.+?)~?="(.*)"\]$/;var Qf=/[\w\u00A0-\uFFFF%-?]/;function Wo(e){return e.match(Jf)}function Je(e=""){return Qf.test(e)}function Uo(e){return typeof e=="function"?{match:e}:e}function kn(e){return e.length===3}function qt(e){return e!=null}function Bo(){}var Yt=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){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.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)))}},Xt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function et(e){return F(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Io(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>et(t)):[e]:[et(e)]}function eu(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 Le(e){return e==null?"":eu(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Zt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Sn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Zt(n)&&Zt(o)&&Object.keys(o).forEach(s=>{Zt(n[s])&&Zt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Sn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Qe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Qe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}return e}function Do(e){return F(e[0])}function No(e){return F(e[0])}var Jt={};function tu(e=["-",":"]){let t=e.join("|");return Jt[t]||(Jt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Jt[t].lastIndex=0,Jt[t]}function ru(e,t=["-",":"],r=5){let n=tu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,u,p,g,m)=>{if(!t.includes(p))return l;o=!0,s.add(u+p);let h=m+u.length+p.length+1,x={length:l.length,items:[]};a.set(m,x);for(let $ of[...g.matchAll(/\S+/g)]){let C=h+$.index,y=a.get(C)?.items;y?a.delete(C):y=[{offset:C,length:$[0].length,className:$[0]}];for(let b of y)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,p]of a)c+=e.slice(l,u),c+=p.items.map(g=>g.className).join(" "),l=u+p.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Ko(e,t=["-",":"],r=5){let n=ru(e,t,r);return typeof e=="string"?n.expanded:e}var Go=new Set;function Ho(e){Go.has(e)||(console.warn("[unocss]",e),Go.add(e))}function Xo(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var qo="_uno_resolved";async function nu(e){let t=typeof e=="function"?await e():await e;if(qo in t)return t;t={...t},Object.defineProperty(t,qo,{value:!0,enumerable:!1});let r=t.shortcuts?Xo(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Zo(e){let t=await nu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(Zo))).flat();return[t,...r]}function ou(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Yo(...t)),exclude:ue(Yo(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Cn(e={},t={}){let r=Object.assign({},t,e),n=wn((await Promise.all((r.presets||[]).flatMap(S).flatMap(Zo))).flat(),(v,j)=>v.name===j.name),o=[...n.filter(v=>v.enforce==="pre"),...n.filter(v=>!v.enforce),...n.filter(v=>v.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},_o,...i.map(v=>v.layers));function c(v){return ue(i.flatMap(j=>S(j[v]||[])))}let l=c("extractors"),u=s.find(v=>v.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Kt),u&&!l.includes(u)&&l.unshift(u),l.sort((v,j)=>(v.order||0)-(j.order||0));let p=c("rules"),g={},m=p.length,h=p.filter(v=>Do(v)?(S(v[2]?.prefix||"").forEach(k=>{g[k+v[0]]=v}),!1):!0).reverse(),x={templates:ue(i.flatMap(v=>S(v.autocomplete?.templates))),extractors:i.flatMap(v=>S(v.autocomplete?.extractors)).sort((v,j)=>(v.order||0)-(j.order||0)),shorthands:su(i.map(v=>v.autocomplete?.shorthands||{}))},$=c("separators");$.length||($=[":","-"]);let C=c("content"),y=ou(C),b={mergeSelectors:!0,warn:!0,sortLayers:v=>v,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:iu(i.map(v=>v.theme)),rules:p,rulesSize:m,rulesDynamic:h,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Uo).sort((v,j)=>(v.order||0)-(j.order||0)),shortcuts:Xo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:$,details:r.details??r.envMode==="dev",content:y,transformers:wn(c("transformers"),(v,j)=>v.name===j.name)},T=c("extendTheme");for(let v of T)b.theme=v(b.theme,b)||b.theme;for(let v of i)v?.configResolved?.(b);return b}function iu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>Sn(t,r),{})}function su(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Yo(...e){return e.flatMap(au)}function au(e){return Array.isArray(e)?e:e?[e]:[]}var Jo="66.4.0";var $e={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},Rn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Jo;events=Lo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Cn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Cn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Gt(s)&&Gt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:$e,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(qt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=F(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let k={generator:this,theme:this.config.theme};this.config.safelist.flatMap(R=>typeof R=="function"?R(k):R).forEach(R=>{let P=R.trim();P&&!l.has(P)&&l.add(P)})}let u=a?"":`
2
2
  `,p=new Set([Xe]),g=c?new Map:new Set,m=new Map,h={},x=Array.from(l).map(async k=>{if(g.has(k))return;let R=await this.parseToken(k);if(R!=null){g instanceof Map?g.set(k,{data:R,count:Gt(l)?l.getCount(k):-1}):g.add(k);for(let P of R){let ee=P[3]||"",te=P[4]?.layer;m.has(ee)||m.set(ee,[]),m.get(ee).push(P),te&&p.add(te)}}});await Promise.all(x),await(async()=>{if(!i)return;let k={generator:this,theme:this.config.theme},R=new Set([]);this.config.preflights.forEach(({layer:P=Dt})=>{p.add(P),R.add(P)}),h=Object.fromEntries(await Promise.all(Array.from(R).map(async P=>{let te=(await Promise.all(this.config.preflights.filter(le=>(le.layer||Dt)===P).map(async le=>await le.getCSS(k)))).filter(Boolean).join(u);return[P,te]})))})();let $=this.config.sortLayers(Array.from(p).sort((k,R)=>(this.config.layers[k]??0)-(this.config.layers[R]??0)||k.localeCompare(R))),C={},y=this.config.outputToCssLayers,b=k=>{let R=k;return typeof y=="object"&&(R=y.cssLayerName?.(k)),R===null?null:R??k},T=(k=Xe)=>{if(C[k])return C[k];let R=Array.from(m).sort((te,le)=>(this.parentOrders.get(te[0])??0)-(this.parentOrders.get(le[0])??0)||te[0]?.localeCompare(le[0]||"")||0).map(([te,le])=>{let E=le.length,V=le.filter(I=>(I[4]?.layer||Xe)===k).sort((I,fe)=>I[0]-fe[0]||(I[4]?.sort||0)-(fe[4]?.sort||0)||I[5]?.currentSelector?.localeCompare(fe[5]?.currentSelector??"")||I[1]?.localeCompare(fe[1]||"")||I[2]?.localeCompare(fe[2]||"")||0).map(([,I,fe,,It,,vn])=>[[[(I&&fu(I,o))??"",It?.sort??0]],fe,!!(vn??It?.noMerge)]);if(!V.length)return;let B=V.reverse().map(([I,fe,It],vn)=>{if(!It&&this.config.mergeSelectors)for(let Re=vn+1;Re<E;Re++){let he=V[Re];if(he&&!he[2]&&(I&&he[0]||I==null&&he[0]==null)&&he[1]===fe)return I&&he[0]&&he[0].push(...I),null}let $n=I?ue(I.sort((Re,he)=>Re[1]-he[1]||Re[0]?.localeCompare(he[0]||"")||0).map(Re=>Re[0]).filter(Boolean)):[];return $n.length?`${$n.join(`,${u}`)}{${fe}}`:fe}).filter(Boolean),D=Array.from(new Set(B)).reverse().join(u);if(!te)return D;let Q=te.split(" $$ ");return`${Q.join("{")}{${u}${D}${u}${"}".repeat(Q.length)}`}).filter(Boolean).join(u);i&&(R=[h[k],R].filter(Boolean).join(u));let P;y&&R&&(P=b(k),P!==null&&(R=`@layer ${P}{${u}${R}${u}}`));let ee=a?"":`/* layer: ${k}${P&&P!==k?`, alias: ${P}`:""} */${u}`;return C[k]=R?ee+R:""},v=(k=$,R)=>{let P=k.filter(ee=>!R?.includes(ee));return[y&&P.length>0?`@layer ${P.map(b).filter(qt).join(", ")};`:void 0,...P.map(ee=>T(ee)||"")].filter(Boolean).join(u)};return{get css(){return v()},layers:$,matched:g,getLayers:v,getLayer:T,setLayer:async(k,R)=>{let P=await R(T(k));return C[k]=P,P}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,c]=i;for(;s;){s=!1;let l=i[1];for(let u of this.config.variants){if(!u.multiPass&&c.has(u))continue;let p=await u.match(l,n);if(p){if(F(p)){if(p===l)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(u.multiPass)throw new Error("multiPass can not be used together with array return variants");let g=p.map(m=>{let h=m.matcher??l,x=[m,...a],$=new Set(c);return $.add(u),[i[0],h,x,$]});return(await Promise.all(g.map(m=>o(m)))).flat()}}i[1]=p.matcher??l,a.unshift(p),c.add(u),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((l,u)=>(l.order||0)-(u.order||0)).reduceRight((l,u)=>p=>{let g=u.body?.(p.entries)||p.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0],h=u.selector?.(p.selector,g);return(u.handle??pu)({...p,entries:g,selector:h||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.sort},l)},l=>l)({prefix:"",selector:uu(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,n){let o=et(r);if(F(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${Le(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=F(t)?await this.matchVariants(t):[t],s=async([c,l,u])=>{this.config.details&&(r.rules=r.rules??[]);let p={...r,variantHandlers:u},g=this.config.rulesStaticMap[l];if(g&&g[1]&&(n||!g[2]?.internal))return this.resolveCSSResult(c,g[1],g,p);for(let m of this.config.rulesDynamic){let[h,x,$]=m;if($?.internal&&!n)continue;let C=l;if($?.prefix){let v=S($.prefix);if(o){let j=S(o);if(!v.some(k=>j.includes(k)))continue}else{let j=v.find(k=>l.startsWith(k));if(j==null)continue;C=l.slice(j.length)}}let y=C.match(h);if(!y)continue;let b=await x(y,p);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let v=[];for await(let j of b)j&&v.push(j);b=v}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(qt));let T=this.resolveCSSResult(c,b,m,p);if(T)return T}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}resolveCSSResult=(t,r,n,o)=>{let i=Io(r).filter(s=>s.length);if(i.length){this.config.details&&o.rules.push(n),o.generator.activatedRules.add(n);let s=o.generator.config.rules.indexOf(n),a=n[2];return i.map(c=>{if(F(c))return[s,c,a];let l=o.variantHandlers,u=a;for(let p of c)p[0]===$e.variants?typeof p[1]=="function"?l=p[1](l)||l:l=[...S(p[1]),...l]:p[0]===$e.parent?l=[{parent:p[1]},...l]:p[0]===$e.selector?l=[{selector:p[1]},...l]:p[0]===$e.layer?l=[{layer:p[1]},...l]:p[0]===$e.sort?u={...u,sort:p[1]}:p[0]===$e.noMerge&&(u={...u,noMerge:p[1]});return[s,t,c,u,l]})}};stringifyUtil(t,r){if(!t)return;if(kn(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(t),l=Le(o);if(!l)return;let{layer:u,sort:p,...g}=t[3]??{},m={...g,layer:s??u,sort:a??p};return[t[0],n,l,i,m,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:Bo,i,s,a,c;for(let l of this.config.shortcuts){let u=t;if(l[2]?.prefix){let g=S(l[2].prefix).find(m=>t.startsWith(m));if(g==null)continue;u=t.slice(g.length)}if(No(l)){if(l[0]===u){i=i||l[2],s=l[1],o(l);break}}else{let p=u.match(l[0]);if(p&&(s=l[1](p,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ue(S(s).filter(F).map(l=>Ko(l.trim()).split(/\s+/g)).flat()),c=S(s).filter(l=>!F(l)).map(l=>({handles:[],value:l}))),!s){let l=F(t)?await this.matchVariants(t):[t];for(let u of l){let[p,g,m]=u;if(p!==g){let h=await this.expandShortcut(g,r,n-1);h&&(a=h[0].filter(F).map(x=>p.replace(g,x)),c=h[0].filter(x=>!F(x)).map(x=>({handles:[...x.handles,...m],value:x.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(S(a).map(async l=>(await this.expandShortcut(l,r,n-1))?.[0]||[l])),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Xt,s=(await Promise.all(ue(n).map(async u=>{let p=F(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",et(u.value),void 0,u.handles]];return!p&&this.config.warn&&Ho(`unmatched utility "${u}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[0]),[a,,c]=t,l=[];for(let u of s){if(kn(u)){l.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let{selector:p,entries:g,parent:m,sort:h,noMerge:x,layer:$}=this.applyVariants(u,[...u[4],...c],a);i.getFallback($??o.layer,new Yt).getFallback(p,m,[[],u[0]])[0].push([g,!!(x??u[3]?.noMerge),h??0])}return l.concat(i.flatMap((u,p)=>u.map(([g,m],h,x)=>{let $=(y,b,T)=>{let v=Math.max(...T.map(k=>k[1])),j=T.map(k=>k[0]);return(y?[j.flat(1)]:j).map(k=>{let R=Le(k);if(R)return[m,h,R,x,{...o,noMerge:b,sort:v,layer:p},r,void 0]})};return[[g.filter(([,y])=>y).map(([y,,b])=>[y,b]),!0],[g.filter(([,y])=>!y).map(([y,,b])=>[y,b]),!1]].map(([y,b])=>[...$(!1,b,y.filter(([T])=>T.some(v=>v[0]===$e.shortcutsNoMerge))),...$(!0,b,y.filter(([T])=>T.every(v=>v[0]!==$e.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):F(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):F(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function ei(e,t){return await Rn.create(e,t)}var ti=/\s\$\$\s+/g;function lu(e){return ti.test(e)}function fu(e,t){return lu(e)?e.replace(ti,t?` ${t} `:" "):t?`${t} ${e}`:e}var Qo=/^\[(.+?)(~?=)"(.*)"\]$/;function uu(e){return Qo.test(e)?e.replace(Qo,(t,r,n,o)=>`[${Ht(r)}${n}"${Ht(o)}"]`):`.${Ht(e)}`}function pu(e,t){return t(e)}var En=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function ri(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Wo(i);if(!a)return;let c=a[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;let l=a[2],[,u="",p=l]=l.match(En)||[];if(p==="~"||n&&p==="true"||!p)return`${u}${c}`;if(o==null){let g=s?.config?.separators?.join("|");g?o=new RegExp(`^(.*\\](?:${g}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,g,m]=l.match(o)||[];if(m)return`${g}${u}${c}-${m}`}if(u&&p.match(/^[\d.]+$/)){let g=u.split(/([^:]*:)/g).filter(Boolean),m=g.pop()+p,h=g.join("");return[{matcher:`${u}${c}-${p}`},{matcher:`${h}${c}-${m}`}]}return`${u}${c}-${p}`}}}var du=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,mu=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,ni=/[\s'"`;>]+/;function oi(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(du),o,i=0;for(let y of n){let[,b,T]=y,v=y.index+b.length;if(r>v&&r<=v+T.length){i=v,o=T;break}}if(!o)return null;let s=o.matchAll(mu),a=0,c,l;for(let y of s){let[b,T,v]=y,j=i+y.index;if(r>j&&r<=j+b.length){a=j,c=T,l=v?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let u=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!u)return null;let p=u?c.slice(e.prefix.length):c;if(l===void 0)return{extracted:p,resolveReplacement(y){let b=u?e.prefix.length:0;return{start:a+b,end:a+c.length,replacement:y}}};let g=a+c.length+2,m=ni.exec(l),h=0,x;for(;m;){let[y]=m;if(r>g+h&&r<=g+h+m.index){x=l.slice(h,h+m.index);break}h+=m.index+y.length,m=ni.exec(l.slice(h))}x===void 0&&(x=l.slice(h));let[,$="",C]=x.match(En)||[];return{extracted:`${$}${p}-${C}`,transformSuggestions(y){return y.filter(b=>b.startsWith(`${$}${p}-`)).map(b=>$+b.slice($.length+p.length+1))},resolveReplacement(y){return{start:h+g,end:h+g+x.length,replacement:$+y.slice($.length+p.length+1)}}}}}}var hu=["v-bind:",":"],ii=/[\s'"`;]+/g,Tn=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,gu=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,jn=["placeholder","fill","opacity","stroke-opacity"];function si(e){let t=e?.ignoreAttributes??jn,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Tn)).flatMap(i=>Array.from((i[1]||"").matchAll(gu))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let c of hu)if(i.startsWith(c)){i=i.slice(c.length);break}if(!a){if(Je(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?a.split(ii).filter(Je):Tn.test(a)?(Tn.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(ii).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}var bu=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??jn;let t=[ri(e)],r=[si(e)],n=[oi(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},ai=bu;function xu(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function ci(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${xu(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function li(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var yu=/\/\/#\s*sourceMappingURL=.*\n?/g;function fi(e){return e.includes("sourceMappingURL=")?e.replace(yu,""):e}var vu=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,$u=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,wu=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function ku(e){let t=[];for(let o of e.matchAll($u))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(vu))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=ci(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Nt).forEach(o=>{o.includes(n)&&(o=li(o,r)),Je(o)&&!wu.test(o)&&t.push(o)}),t}function ui(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return ku(fi(e))}}}function pi(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Le(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),S(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function re(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function pe(e,t,r,n){if(e===""||(F(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function Ee(e,t,r,n="(",o=")"){r=r??10;let i=[],s=0;for(;e!=="";){if(++s>r)return;let a=pe(e,n,o,t);if(!a)return;let[c,l]=a;i.push(c),e=l}if(i.length>0)return i}var zn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var di=["%alpha","<alpha-value>"],Su=new RegExp(di.map(e=>K(e)).join("|"),"g");function Y(e=""){let t=Cu(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(zn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function ie(e){let t=e.alpha??1;return typeof t=="string"&&di.includes(t)?1:t}function A(e,t){if(typeof e=="string")return e.replace(Su,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,zn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Cu(e){if(!e)return;let t=Ru(e);if(t!=null||(t=Eu(e),t!=null)||(t=Tu(e),t!=null)||(t=zu(e),t!=null)||(t=Au(e),t!=null))return t}function Ru(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 r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function Eu(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Tu(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Ee(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 ju=new RegExp(`^(${zn.join("|")})\\((.+)\\)$`,"i");function zu(e){let t=e.match(ju);if(!t)return;let[,r,n]=t,o=mi(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Au(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=mi(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function mi(e){let t=Ee(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=Ee(t[r-1],"/",2);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}}var hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xi=new Uint8Array(64),Ou=new Uint8Array(128);for(let e=0;e<hi.length;e++){let t=hi.charCodeAt(e);xi[e]=t,Ou[t]=e}function tt(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(xi[o])}while(n>0);return t}var gi=1024*16,bi=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},An=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(gi)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===gi&&(this.out+=bi.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+bi.decode(t.subarray(0,n)):r}};function yi(e){let t=new An,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let c=0;for(let l=0;l<a.length;l++){let u=a[l];l>0&&t.write(44),c=tt(t,u[0],c),u.length!==1&&(r=tt(t,u[1],r),n=tt(t,u[2],n),o=tt(t,u[3],o),u.length!==4&&(i=tt(t,u[4],i)))}}return t.flush()}var Qt=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},er=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function Pu(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Vu=Pu(),On=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=yi(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Vu(this.toString())}};function Mu(e){let t=e.split(`
3
3
  `),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function Fu(e,t){let r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var _u=Object.prototype.toString;function Lu(e){return _u.call(e)==="[object Object]"}function vi(e){let t=e.split(`
4
4
  `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let l=i+s>>1;o<r[l]?s=l:i=l+1}let a=i-1,c=o-r[a];return{line:a,column:c}}}var Wu=/\w/,Pn=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
package/core.global.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(()=>{var G="default",W="preflights",ke="shortcuts",_e="imports",fe={[_e]:-200,[W]:-100,[ke]:-10,[G]:0};var pe=/[\\:]?[\s'"`;{}]+/g;function Le(n){return n.split(pe)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return Le(n)}};function U(n=[]){return Array.isArray(n)?n:[n]}function D(n){return Array.from(new Set(n))}function ie(n,e){return n.reduce((t,r)=>(t.findIndex(o=>e(r,o))===-1&&t.push(r),t),[])}function P(n){return typeof n=="string"}var H=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function q(n){return n instanceof H}function De(n){let e=n.length,t=-1,r,s="",o=n.charCodeAt(0);for(;++t<e;){if(r=n.charCodeAt(t),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&o===45){s+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){s+=`\\${n.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(t);continue}s+=`\\${n.charAt(t)}`}return s}var Z=De;function de(){return{events:{},emit(n,...e){(this.events[n]||[]).forEach(t=>t(...e))},on(n,e){return(this.events[n]=this.events[n]||[]).push(e),()=>this.events[n]=(this.events[n]||[]).filter(t=>t!==e)}}}function me(n){return typeof n=="function"?{match:n}:n}function oe(n){return n.length===3}function J(n){return n!=null}function ge(){}var Q=class{_map=new Map;get(e,t){let r=this._map.get(e);if(r)return r.get(t)}getFallback(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(t)||s.set(t,r),s.get(t)}set(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.set(t,r),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,r])=>Array.from(r.entries()).map(([s,o])=>e(o,t,s)))}},X=class extends Map{getFallback(e,t){let r=this.get(e);return r===void 0?(this.set(e,t),t):r}map(e){let t=[];return this.forEach((r,s)=>{t.push(e(r,s))}),t}flatMap(e){let t=[];return this.forEach((r,s)=>{t.push(...e(r,s))}),t}};function N(n){return P(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function he(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>N(e)):[n]:[N(n)]}function Fe(n){return n.filter(([e,t],r)=>{if(e.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===e&&n[s][1]===t)return!1;return!0})}function te(n){return n==null?"":Fe(n).map(([e,t])=>t!=null&&typeof t!="function"?`${e}:${t};`:void 0).filter(Boolean).join("")}function ee(n){return n&&typeof n=="object"&&!Array.isArray(n)}function ae(n,e,t=!1){let r=n,s=e;if(Array.isArray(s))return t&&Array.isArray(s)?[...r,...s]:[...s];let o={...r};return ee(r)&&ee(s)&&Object.keys(s).forEach(u=>{ee(r[u])&&ee(s[u])||Array.isArray(r[u])&&Array.isArray(s[u])?o[u]=ae(r[u],s[u],t):Object.assign(o,{[u]:s[u]})}),o}function B(n){let e,t,r;if(Array.isArray(n)){for(t=Array.from({length:e=n.length});e--;)t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}if(Object.prototype.toString.call(n)==="[object Object]"){t={};for(e in n)e==="__proto__"?Object.defineProperty(t,e,{value:B(n[e]),configurable:!0,enumerable:!0,writable:!0}):t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}return n}function ye(n){return P(n[0])}function Se(n){return P(n[0])}var ne={};function Ie(n=["-",":"]){let e=n.join("|");return ne[e]||(ne[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),ne[e].lastIndex=0,ne[e]}function Ke(n,e=["-",":"],t=5){let r=Ie(e),s,o=n.toString(),u=new Set,f=new Map;do s=!1,o=o.replace(r,(i,a,l,d,y)=>{if(!e.includes(l))return i;s=!0,u.add(a+l);let R=y+a.length+l.length+1,v={length:i.length,items:[]};f.set(y,v);for(let E of[...d.matchAll(/\S+/g)]){let $=R+E.index,x=f.get($)?.items;x?f.delete($):x=[{offset:$,length:E[0].length,className:E[0]}];for(let S of x)S.className=S.className==="~"?a:S.className.replace(/^(!?)(.*)/,`$1${a}${l}$2`),v.items.push(S)}return"$".repeat(i.length)}),t-=1;while(s&&t);let c;if(typeof n=="string"){c="";let i=0;for(let[a,l]of f)c+=n.slice(i,a),c+=l.items.map(d=>d.className).join(" "),i=a+l.length;c+=n.slice(i)}else{c=n;for(let[i,a]of f)c.overwrite(i,i+a.length,a.items.map(l=>l.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:f,get expanded(){return c.toString()}}}function xe(n,e=["-",":"],t=5){let r=Ke(n,e,t);return typeof n=="string"?r.expanded:n}var be=new Set;function Ce(n){be.has(n)||(console.warn("[unocss]",n),be.add(n))}function Ee(n){return U(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Te="_uno_resolved";async function Ge(n){let e=typeof n=="function"?await n():await n;if(Te in e)return e;e={...e},Object.defineProperty(e,Te,{value:!0,enumerable:!1});let t=e.shortcuts?Ee(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let r=s=>{s[2]||(s[2]={});let o=s[2];o.prefix==null&&e.prefix&&(o.prefix=U(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}async function ve(n){let e=await Ge(n);if(!e.presets)return[e];let t=(await Promise.all((e.presets||[]).flatMap(U).flatMap(ve))).flat();return[e,...t]}function He(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],o=[];for(let f of n){if(f.pipeline===!1){r=!0;break}else f.pipeline?.include&&e.push(f.pipeline.include),f.pipeline?.exclude&&t.push(f.pipeline.exclude);f.filesystem&&s.push(f.filesystem),f.inline&&o.push(f.inline)}let u={pipeline:r?!1:{include:D(Re(...e)),exclude:D(Re(...t))}};return s.length&&(u.filesystem=D(s.flat())),o.length&&(u.inline=D(o.flat())),u}async function le(n={},e={}){let t=Object.assign({},e,n),r=ie((await Promise.all((t.presets||[]).flatMap(U).flatMap(ve))).flat(),(p,T)=>p.name===T.name),s=[...r.filter(p=>p.enforce==="pre"),...r.filter(p=>!p.enforce),...r.filter(p=>p.enforce==="post")],o=[...s,t],u=[...o].reverse(),f=Object.assign({},fe,...o.map(p=>p.layers));function c(p){return D(o.flatMap(T=>U(T[p]||[])))}let i=c("extractors"),a=u.find(p=>p.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=Y),a&&!i.includes(a)&&i.unshift(a),i.sort((p,T)=>(p.order||0)-(T.order||0));let l=c("rules"),d={},y=l.length,R=l.filter(p=>ye(p)?(U(p[2]?.prefix||"").forEach(m=>{d[m+p[0]]=p}),!1):!0).reverse(),v={templates:D(o.flatMap(p=>U(p.autocomplete?.templates))),extractors:o.flatMap(p=>U(p.autocomplete?.extractors)).sort((p,T)=>(p.order||0)-(T.order||0)),shorthands:Ne(o.map(p=>p.autocomplete?.shorthands||{}))},E=c("separators");E.length||(E=[":","-"]);let $=c("content"),x=He($),S={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:c("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:f,theme:Be(o.map(p=>p.theme)),rules:l,rulesSize:y,rulesDynamic:R,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:v,variants:c("variants").map(me).sort((p,T)=>(p.order||0)-(T.order||0)),shortcuts:Ee(c("shortcuts")).reverse(),extractors:i,safelist:c("safelist"),separators:E,details:t.details??t.envMode==="dev",content:x,transformers:ie(c("transformers"),(p,T)=>p.name===T.name)},V=c("extendTheme");for(let p of V)S.theme=p(S.theme,S)||S.theme;for(let p of o)p?.configResolved?.(S);return S}function Be(n){return n.map(e=>e?B(e):{}).reduce((e,t)=>ae(e,t),{})}function Ne(n){return n.reduce((e,t)=>{let r={};for(let s in t){let o=t[s];Array.isArray(o)?r[s]=`(${o.join("|")})`:r[s]=o}return{...e,...r}},{})}function Re(...n){return n.flatMap(ze)}function ze(n){return Array.isArray(n)?n:n?[n]:[]}var we="66.3.3";var I={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},ce=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=we;events=de();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},t={}){let r=new n(e,t);return r.config=await le(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await le(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,t,r=new Set){let s={original:e,code:e,id:t,extracted:r,envMode:this.config.envMode};for(let o of this.config.extractors){let u=await o.extract?.(s);if(u)if(q(u)&&q(r))for(let f of u)r.setCount(f,r.getCount(f)+u.getCount(f));else for(let f of u)r.add(f)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:I,variantHandlers:t[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:t};return r}async parseToken(e,t){if(this.blocked.has(e))return;let r=`${e}${t?` ${t}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=this.config.preprocess.reduce((c,i)=>i(c)??c,e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(r,null);return}let o=await this.matchVariants(e,s);if(o.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(r,null);return}let u=async c=>{let i=this.makeContext(e,[t||c[0],c[1],c[2],c[3]]);this.config.details&&(i.variants=[...c[3]]);let a=await this.expandShortcut(i.currentSelector,i);return a?await this.stringifyShortcuts(i.variantMatch,i,a[0],a[1]):(await this.parseUtil(i.variantMatch,i))?.map(d=>this.stringifyUtil(d,i)).filter(J)},f=(await Promise.all(o.map(c=>u(c)))).flat().filter(c=>!!c);if(f?.length)return this.cache.set(r,f),f;this.cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:o=!0,safelist:u=!0,minify:f=!1,extendedInfo:c=!1}=t,i=P(e)?await this.applyExtractors(e,r,c?new H:new Set):Array.isArray(e)?new Set(e):e;if(u){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap(g=>typeof g=="function"?g(m):g).forEach(g=>{let b=g.trim();b&&!i.has(b)&&i.add(b)})}let a=f?"":`
1
+ "use strict";(()=>{var G="default",W="preflights",ke="shortcuts",_e="imports",fe={[_e]:-200,[W]:-100,[ke]:-10,[G]:0};var pe=/[\\:]?[\s'"`;{}]+/g;function Le(n){return n.split(pe)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return Le(n)}};function U(n=[]){return Array.isArray(n)?n:[n]}function D(n){return Array.from(new Set(n))}function ie(n,e){return n.reduce((t,r)=>(t.findIndex(o=>e(r,o))===-1&&t.push(r),t),[])}function P(n){return typeof n=="string"}var H=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function q(n){return n instanceof H}function De(n){let e=n.length,t=-1,r,s="",o=n.charCodeAt(0);for(;++t<e;){if(r=n.charCodeAt(t),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&o===45){s+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){s+=`\\${n.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(t);continue}s+=`\\${n.charAt(t)}`}return s}var Z=De;function de(){return{events:{},emit(n,...e){(this.events[n]||[]).forEach(t=>t(...e))},on(n,e){return(this.events[n]=this.events[n]||[]).push(e),()=>this.events[n]=(this.events[n]||[]).filter(t=>t!==e)}}}function me(n){return typeof n=="function"?{match:n}:n}function oe(n){return n.length===3}function J(n){return n!=null}function ge(){}var Q=class{_map=new Map;get(e,t){let r=this._map.get(e);if(r)return r.get(t)}getFallback(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(t)||s.set(t,r),s.get(t)}set(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.set(t,r),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,r])=>Array.from(r.entries()).map(([s,o])=>e(o,t,s)))}},X=class extends Map{getFallback(e,t){let r=this.get(e);return r===void 0?(this.set(e,t),t):r}map(e){let t=[];return this.forEach((r,s)=>{t.push(e(r,s))}),t}flatMap(e){let t=[];return this.forEach((r,s)=>{t.push(...e(r,s))}),t}};function N(n){return P(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function he(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>N(e)):[n]:[N(n)]}function Fe(n){return n.filter(([e,t],r)=>{if(e.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===e&&n[s][1]===t)return!1;return!0})}function te(n){return n==null?"":Fe(n).map(([e,t])=>t!=null&&typeof t!="function"?`${e}:${t};`:void 0).filter(Boolean).join("")}function ee(n){return n&&typeof n=="object"&&!Array.isArray(n)}function ae(n,e,t=!1){let r=n,s=e;if(Array.isArray(s))return t&&Array.isArray(s)?[...r,...s]:[...s];let o={...r};return ee(r)&&ee(s)&&Object.keys(s).forEach(u=>{ee(r[u])&&ee(s[u])||Array.isArray(r[u])&&Array.isArray(s[u])?o[u]=ae(r[u],s[u],t):Object.assign(o,{[u]:s[u]})}),o}function B(n){let e,t,r;if(Array.isArray(n)){for(t=Array.from({length:e=n.length});e--;)t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}if(Object.prototype.toString.call(n)==="[object Object]"){t={};for(e in n)e==="__proto__"?Object.defineProperty(t,e,{value:B(n[e]),configurable:!0,enumerable:!0,writable:!0}):t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}return n}function ye(n){return P(n[0])}function Se(n){return P(n[0])}var ne={};function Ie(n=["-",":"]){let e=n.join("|");return ne[e]||(ne[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),ne[e].lastIndex=0,ne[e]}function Ke(n,e=["-",":"],t=5){let r=Ie(e),s,o=n.toString(),u=new Set,f=new Map;do s=!1,o=o.replace(r,(i,a,l,d,y)=>{if(!e.includes(l))return i;s=!0,u.add(a+l);let R=y+a.length+l.length+1,v={length:i.length,items:[]};f.set(y,v);for(let E of[...d.matchAll(/\S+/g)]){let $=R+E.index,x=f.get($)?.items;x?f.delete($):x=[{offset:$,length:E[0].length,className:E[0]}];for(let S of x)S.className=S.className==="~"?a:S.className.replace(/^(!?)(.*)/,`$1${a}${l}$2`),v.items.push(S)}return"$".repeat(i.length)}),t-=1;while(s&&t);let c;if(typeof n=="string"){c="";let i=0;for(let[a,l]of f)c+=n.slice(i,a),c+=l.items.map(d=>d.className).join(" "),i=a+l.length;c+=n.slice(i)}else{c=n;for(let[i,a]of f)c.overwrite(i,i+a.length,a.items.map(l=>l.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:f,get expanded(){return c.toString()}}}function xe(n,e=["-",":"],t=5){let r=Ke(n,e,t);return typeof n=="string"?r.expanded:n}var be=new Set;function Ce(n){be.has(n)||(console.warn("[unocss]",n),be.add(n))}function Ee(n){return U(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Te="_uno_resolved";async function Ge(n){let e=typeof n=="function"?await n():await n;if(Te in e)return e;e={...e},Object.defineProperty(e,Te,{value:!0,enumerable:!1});let t=e.shortcuts?Ee(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let r=s=>{s[2]||(s[2]={});let o=s[2];o.prefix==null&&e.prefix&&(o.prefix=U(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}async function ve(n){let e=await Ge(n);if(!e.presets)return[e];let t=(await Promise.all((e.presets||[]).flatMap(U).flatMap(ve))).flat();return[e,...t]}function He(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],o=[];for(let f of n){if(f.pipeline===!1){r=!0;break}else f.pipeline?.include&&e.push(f.pipeline.include),f.pipeline?.exclude&&t.push(f.pipeline.exclude);f.filesystem&&s.push(f.filesystem),f.inline&&o.push(f.inline)}let u={pipeline:r?!1:{include:D(Re(...e)),exclude:D(Re(...t))}};return s.length&&(u.filesystem=D(s.flat())),o.length&&(u.inline=D(o.flat())),u}async function le(n={},e={}){let t=Object.assign({},e,n),r=ie((await Promise.all((t.presets||[]).flatMap(U).flatMap(ve))).flat(),(p,T)=>p.name===T.name),s=[...r.filter(p=>p.enforce==="pre"),...r.filter(p=>!p.enforce),...r.filter(p=>p.enforce==="post")],o=[...s,t],u=[...o].reverse(),f=Object.assign({},fe,...o.map(p=>p.layers));function c(p){return D(o.flatMap(T=>U(T[p]||[])))}let i=c("extractors"),a=u.find(p=>p.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=Y),a&&!i.includes(a)&&i.unshift(a),i.sort((p,T)=>(p.order||0)-(T.order||0));let l=c("rules"),d={},y=l.length,R=l.filter(p=>ye(p)?(U(p[2]?.prefix||"").forEach(m=>{d[m+p[0]]=p}),!1):!0).reverse(),v={templates:D(o.flatMap(p=>U(p.autocomplete?.templates))),extractors:o.flatMap(p=>U(p.autocomplete?.extractors)).sort((p,T)=>(p.order||0)-(T.order||0)),shorthands:Ne(o.map(p=>p.autocomplete?.shorthands||{}))},E=c("separators");E.length||(E=[":","-"]);let $=c("content"),x=He($),S={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:c("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:f,theme:Be(o.map(p=>p.theme)),rules:l,rulesSize:y,rulesDynamic:R,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:v,variants:c("variants").map(me).sort((p,T)=>(p.order||0)-(T.order||0)),shortcuts:Ee(c("shortcuts")).reverse(),extractors:i,safelist:c("safelist"),separators:E,details:t.details??t.envMode==="dev",content:x,transformers:ie(c("transformers"),(p,T)=>p.name===T.name)},V=c("extendTheme");for(let p of V)S.theme=p(S.theme,S)||S.theme;for(let p of o)p?.configResolved?.(S);return S}function Be(n){return n.map(e=>e?B(e):{}).reduce((e,t)=>ae(e,t),{})}function Ne(n){return n.reduce((e,t)=>{let r={};for(let s in t){let o=t[s];Array.isArray(o)?r[s]=`(${o.join("|")})`:r[s]=o}return{...e,...r}},{})}function Re(...n){return n.flatMap(ze)}function ze(n){return Array.isArray(n)?n:n?[n]:[]}var we="66.4.0";var I={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},ce=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=we;events=de();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},t={}){let r=new n(e,t);return r.config=await le(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await le(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,t,r=new Set){let s={original:e,code:e,id:t,extracted:r,envMode:this.config.envMode};for(let o of this.config.extractors){let u=await o.extract?.(s);if(u)if(q(u)&&q(r))for(let f of u)r.setCount(f,r.getCount(f)+u.getCount(f));else for(let f of u)r.add(f)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:I,variantHandlers:t[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:t};return r}async parseToken(e,t){if(this.blocked.has(e))return;let r=`${e}${t?` ${t}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=this.config.preprocess.reduce((c,i)=>i(c)??c,e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(r,null);return}let o=await this.matchVariants(e,s);if(o.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(r,null);return}let u=async c=>{let i=this.makeContext(e,[t||c[0],c[1],c[2],c[3]]);this.config.details&&(i.variants=[...c[3]]);let a=await this.expandShortcut(i.currentSelector,i);return a?await this.stringifyShortcuts(i.variantMatch,i,a[0],a[1]):(await this.parseUtil(i.variantMatch,i))?.map(d=>this.stringifyUtil(d,i)).filter(J)},f=(await Promise.all(o.map(c=>u(c)))).flat().filter(c=>!!c);if(f?.length)return this.cache.set(r,f),f;this.cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:o=!0,safelist:u=!0,minify:f=!1,extendedInfo:c=!1}=t,i=P(e)?await this.applyExtractors(e,r,c?new H:new Set):Array.isArray(e)?new Set(e):e;if(u){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap(g=>typeof g=="function"?g(m):g).forEach(g=>{let b=g.trim();b&&!i.has(b)&&i.add(b)})}let a=f?"":`
2
2
  `,l=new Set([G]),d=c?new Map:new Set,y=new Map,R={},v=Array.from(i).map(async m=>{if(d.has(m))return;let g=await this.parseToken(m);if(g!=null){d instanceof Map?d.set(m,{data:g,count:q(i)?i.getCount(m):-1}):d.add(m);for(let b of g){let O=b[3]||"",k=b[4]?.layer;y.has(O)||y.set(O,[]),y.get(O).push(b),k&&l.add(k)}}});await Promise.all(v),await(async()=>{if(!o)return;let m={generator:this,theme:this.config.theme},g=new Set([]);this.config.preflights.forEach(({layer:b=W})=>{l.add(b),g.add(b)}),R=Object.fromEntries(await Promise.all(Array.from(g).map(async b=>{let k=(await Promise.all(this.config.preflights.filter(_=>(_.layer||W)===b).map(async _=>await _.getCSS(m)))).filter(Boolean).join(a);return[b,k]})))})();let E=this.config.sortLayers(Array.from(l).sort((m,g)=>(this.config.layers[m]??0)-(this.config.layers[g]??0)||m.localeCompare(g))),$={},x=this.config.outputToCssLayers,S=m=>{let g=m;return typeof x=="object"&&(g=x.cssLayerName?.(m)),g===null?null:g??m},V=(m=G)=>{if($[m])return $[m];let g=Array.from(y).sort((k,_)=>(this.parentOrders.get(k[0])??0)-(this.parentOrders.get(_[0])??0)||k[0]?.localeCompare(_[0]||"")||0).map(([k,_])=>{let h=_.length,C=_.filter(A=>(A[4]?.layer||G)===m).sort((A,L)=>A[0]-L[0]||(A[4]?.sort||0)-(L[4]?.sort||0)||A[5]?.currentSelector?.localeCompare(L[5]?.currentSelector??"")||A[1]?.localeCompare(L[1]||"")||A[2]?.localeCompare(L[2]||"")||0).map(([,A,L,,z,,re])=>[[[(A&&qe(A,s))??"",z?.sort??0]],L,!!(re??z?.noMerge)]);if(!C.length)return;let w=C.reverse().map(([A,L,z],re)=>{if(!z&&this.config.mergeSelectors)for(let K=re+1;K<h;K++){let F=C[K];if(F&&!F[2]&&(A&&F[0]||A==null&&F[0]==null)&&F[1]===L)return A&&F[0]&&F[0].push(...A),null}let se=A?D(A.sort((K,F)=>K[1]-F[1]||K[0]?.localeCompare(F[0]||"")||0).map(K=>K[0]).filter(Boolean)):[];return se.length?`${se.join(`,${a}`)}{${L}}`:L}).filter(Boolean),M=Array.from(new Set(w)).reverse().join(a);if(!k)return M;let j=k.split(" $$ ");return`${j.join("{")}{${a}${M}${a}${"}".repeat(j.length)}`}).filter(Boolean).join(a);o&&(g=[R[m],g].filter(Boolean).join(a));let b;x&&g&&(b=S(m),b!==null&&(g=`@layer ${b}{${a}${g}${a}}`));let O=f?"":`/* layer: ${m}${b&&b!==m?`, alias: ${b}`:""} */${a}`;return $[m]=g?O+g:""},p=(m=E,g)=>{let b=m.filter(O=>!g?.includes(O));return[x&&b.length>0?`@layer ${b.map(S).filter(J).join(", ")};`:void 0,...b.map(O=>V(O)||"")].filter(Boolean).join(a)};return{get css(){return p()},layers:E,matched:d,getLayers:p,getLayer:V,setLayer:async(m,g)=>{let b=await g(V(m));return $[m]=b,b}}}async matchVariants(e,t){let r={rawSelector:e,theme:this.config.theme,generator:this},s=async o=>{let u=!0,[,,f,c]=o;for(;u;){u=!1;let i=o[1];for(let a of this.config.variants){if(!a.multiPass&&c.has(a))continue;let l=await a.match(i,r);if(l){if(P(l)){if(l===i)continue;l={matcher:l}}if(Array.isArray(l)){if(!l.length)continue;if(l.length===1)l=l[0];else{if(a.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=l.map(y=>{let R=y.matcher??i,v=[y,...f],E=new Set(c);return E.add(a),[o[0],R,v,E]});return(await Promise.all(d.map(y=>s(y)))).flat()}}o[1]=l.matcher??i,f.unshift(l),c.add(a),u=!0;break}}if(!u)break;if(f.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[o]};return await s([e,t||e,[],new Set])}applyVariants(e,t=e[4],r=e[1]){let o=t.slice().sort((i,a)=>(i.order||0)-(a.order||0)).reduceRight((i,a)=>l=>{let d=a.body?.(l.entries)||l.entries,y=Array.isArray(a.parent)?a.parent:[a.parent,void 0],R=a.selector?.(l.selector,d);return(a.handle??Je)({...l,entries:d,selector:R||l.selector,parent:y[0]||l.parent,parentOrder:y[1]||l.parentOrder,layer:a.layer||l.layer,sort:a.sort||l.sort},i)},i=>i)({prefix:"",selector:Ze(r),pseudo:"",entries:e[2]}),{parent:u,parentOrder:f}=o;u!=null&&f!=null&&this.parentOrders.set(u,f);let c={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:u,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let i of this.config.postprocess)i(c);return c}constructCustomCSS(e,t,r){let s=N(t);if(P(s))return s;let{selector:o,entries:u,parent:f}=this.applyVariants([0,r||e.rawSelector,s,void 0,e.variantHandlers]),c=`${o}{${te(u)}}`;return f?`${f}{${c}}`:c}async parseUtil(e,t,r=!1,s){let o=P(e)?await this.matchVariants(e):[e],u=async([c,i,a])=>{this.config.details&&(t.rules=t.rules??[]);let l={...t,variantHandlers:a},d=this.config.rulesStaticMap[i];if(d&&d[1]&&(r||!d[2]?.internal))return this.resolveCSSResult(c,d[1],d,l);for(let y of this.config.rulesDynamic){let[R,v,E]=y;if(E?.internal&&!r)continue;let $=i;if(E?.prefix){let p=U(E.prefix);if(s){let T=U(s);if(!p.some(m=>T.includes(m)))continue}else{let T=p.find(m=>i.startsWith(m));if(T==null)continue;$=i.slice(T.length)}}let x=$.match(R);if(!x)continue;let S=await v(x,l);if(!S)continue;if(typeof S!="string")if(Symbol.asyncIterator in S){let p=[];for await(let T of S)T&&p.push(T);S=p}else Symbol.iterator in S&&!Array.isArray(S)&&(S=Array.from(S).filter(J));let V=this.resolveCSSResult(c,S,y,l);if(V)return V}},f=(await Promise.all(o.map(c=>u(c)))).flat().filter(c=>!!c);if(f.length)return f}resolveCSSResult=(e,t,r,s)=>{let o=he(t).filter(u=>u.length);if(o.length){this.config.details&&s.rules.push(r),s.generator.activatedRules.add(r);let u=s.generator.config.rules.indexOf(r),f=r[2];return o.map(c=>{if(P(c))return[u,c,f];let i=s.variantHandlers,a=f;for(let l of c)l[0]===I.variants?typeof l[1]=="function"?i=l[1](i)||i:i=[...U(l[1]),...i]:l[0]===I.parent?i=[{parent:l[1]},...i]:l[0]===I.selector?i=[{selector:l[1]},...i]:l[0]===I.layer?i=[{layer:l[1]},...i]:l[0]===I.sort?a={...a,sort:l[1]}:l[0]===I.noMerge&&(a={...a,noMerge:l[1]});return[u,e,c,a,i]})}};stringifyUtil(e,t){if(!e)return;if(oe(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?t:void 0,void 0];let{selector:r,entries:s,parent:o,layer:u,sort:f,noMerge:c}=this.applyVariants(e),i=te(s);if(!i)return;let{layer:a,sort:l,...d}=e[3]??{},y={...d,layer:u??a,sort:f??l};return[e[0],r,i,o,y,this.config.details?t:void 0,c]}async expandShortcut(e,t,r=5){if(r===0)return;let s=this.config.details?i=>{t.shortcuts=t.shortcuts??[],t.shortcuts.push(i)}:ge,o,u,f,c;for(let i of this.config.shortcuts){let a=e;if(i[2]?.prefix){let d=U(i[2].prefix).find(y=>e.startsWith(y));if(d==null)continue;a=e.slice(d.length)}if(Se(i)){if(i[0]===a){o=o||i[2],u=i[1],s(i);break}}else{let l=a.match(i[0]);if(l&&(u=i[1](l,t)),u){o=o||i[2],s(i);break}}}if(u&&(f=D(U(u).filter(P).map(i=>xe(i.trim()).split(/\s+/g)).flat()),c=U(u).filter(i=>!P(i)).map(i=>({handles:[],value:i}))),!u){let i=P(e)?await this.matchVariants(e):[e];for(let a of i){let[l,d,y]=a;if(l!==d){let R=await this.expandShortcut(d,t,r-1);R&&(f=R[0].filter(P).map(v=>l.replace(d,v)),c=R[0].filter(v=>!P(v)).map(v=>({handles:[...v.handles,...y],value:v.value})))}}}if(!(!f?.length&&!c?.length))return[[await Promise.all(U(f).map(async i=>(await this.expandShortcut(i,t,r-1))?.[0]||[i])),c].flat(2).filter(i=>!!i),o]}async stringifyShortcuts(e,t,r,s={layer:this.config.shortcutsLayer}){let o=new X,u=(await Promise.all(D(r).map(async a=>{let l=P(a)?await this.parseUtil(a,t,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",N(a.value),void 0,a.handles]];return!l&&this.config.warn&&Ce(`unmatched utility "${a}" in shortcut "${e[1]}"`),l||[]}))).flat(1).filter(Boolean).sort((a,l)=>a[0]-l[0]),[f,,c]=e,i=[];for(let a of u){if(oe(a)){i.push([a[0],void 0,a[1],void 0,a[2],t,void 0]);continue}let{selector:l,entries:d,parent:y,sort:R,noMerge:v,layer:E}=this.applyVariants(a,[...a[4],...c],f);o.getFallback(E??s.layer,new Q).getFallback(l,y,[[],a[0]])[0].push([d,!!(v??a[3]?.noMerge),R??0])}return i.concat(o.flatMap((a,l)=>a.map(([d,y],R,v)=>{let E=(x,S,V)=>{let p=Math.max(...V.map(m=>m[1])),T=V.map(m=>m[0]);return(x?[T.flat(1)]:T).map(m=>{let g=te(m);if(g)return[y,R,g,v,{...s,noMerge:S,sort:p,layer:l},t,void 0]})};return[[d.filter(([,x])=>x).map(([x,,S])=>[x,S]),!0],[d.filter(([,x])=>!x).map(([x,,S])=>[x,S]),!1]].map(([x,S])=>[...E(!1,S,x.filter(([V])=>V.some(p=>p[0]===I.shortcutsNoMerge))),...E(!0,S,x.filter(([V])=>V.every(p=>p[0]!==I.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(t=>Array.isArray(t)?t[0]:t).some(t=>typeof t=="function"?t(e):P(t)?t===e:t.test(e))}getBlocked(e){let t=this.config.blocklist.find(r=>{let s=Array.isArray(r)?r[0]:r;return typeof s=="function"?s(e):P(s)?s===e:s.test(e)});return t?Array.isArray(t)?t:[t,void 0]:void 0}};async function Me(n,e){return await ce.create(n,e)}var Pe=/\s\$\$\s+/g;function Ye(n){return Pe.test(n)}function qe(n,e){return Ye(n)?n.replace(Pe,e?` ${e} `:" "):e?`${e} ${n}`:n}var Ae=/^\[(.+?)(~?=)"(.*)"\]$/;function Ze(n){return Ae.test(n)?n.replace(Ae,(e,t,r,s)=>`[${Z(t)}${r}"${Z(s)}"]`):`.${Z(n)}`}function Je(n,e){return e(n)}function Qe(n){return n.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():"")}function Ue(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Ve(n){return n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var $e=["Webkit","Moz","ms"];function je(n){let e={};function t(r){let s=e[r];if(s)return s;let o=Qe(r);if(o!=="filter"&&o in n)return e[r]=Ve(o);o=Ue(o);for(let u=0;u<$e.length;u++){let f=`${$e[u]}${o}`;if(f in n)return e[r]=Ve(Ue(f))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=t(s[0]))})}function Oe(n){return n.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}async function ue(n={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,t=window.document,r=()=>t.documentElement,s=e.__unocss||{},o=Object.assign({},n,s.runtime),u=o.defaults||{},f=o.cloakAttribute??"un-cloak";o.autoPrefix&&(u.postprocess=U(u.postprocess)).unshift(je(t.createElement("div").style)),o.configResolved?.(s,u);let c=await Me(s,u),i=h=>o.inject?o.inject(h):r().prepend(h),a=()=>o.rootElement?o.rootElement():t.body,l=new Map,d=!0,y=new Set,R,v,E=[],$=()=>new Promise(h=>{E.push(h),v!=null&&clearTimeout(v),v=setTimeout(()=>V().then(()=>{let C=E;E=[],C.forEach(w=>w())}),0)});function x(h,C=!1){if(h.nodeType!==1)return;let w=h;w.hasAttribute(f)&&w.removeAttribute(f),C&&w.querySelectorAll(`[${f}]`).forEach(M=>{M.removeAttribute(f)})}function S(h,C){let w=l.get(h);if(!w)if(w=t.createElement("style"),w.setAttribute("data-unocss-runtime-layer",h),l.set(h,w),C==null)i(w);else{let M=S(C),j=M.parentNode;j?j.insertBefore(w,M.nextSibling):i(w)}return w}async function V(){let h=[...y],C=await c.generate(h);return C.layers.reduce((M,j)=>(S(j,M).innerHTML=C.getLayer(j)??"",j),void 0),h.filter(M=>!C.matched.has(M)).forEach(M=>y.delete(M)),{...C,getStyleElement:M=>l.get(M),getStyleElements:()=>l}}async function p(h){let C=y.size;await c.applyExtractors(h,void 0,y),C!==y.size&&await $()}async function T(h=a()){let C=h&&h.outerHTML;C&&(await p(`${C} ${Oe(C)}`),x(r()),x(h,!0))}let m=new MutationObserver(h=>{d||h.forEach(async C=>{if(C.target.nodeType!==1)return;let w=C.target;for(let M of l)if(w===M[1])return;if(C.type==="childList")C.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let j=M;R&&!R(j)||(await p(j.outerHTML),x(j))});else{if(R&&!R(w))return;if(C.attributeName!==f){let M=Array.from(w.attributes).map(A=>A.value?`${A.name}="${A.value}"`:A.name).join(" "),j=`<${w.tagName.toLowerCase()} ${M}>`;await p(j)}x(w)}})}),g=!1;function b(){if(g)return;let h=o.observer?.target?o.observer.target():a();h&&(m.observe(h,{childList:!0,subtree:!0,attributes:!0,attributeFilter:o.observer?.attributeFilter}),g=!0)}function O(){o.bypassDefined&&Xe(c.blocked),T(),b()}function k(){t.readyState==="loading"?e.addEventListener("DOMContentLoaded",O):O()}let _=e.__unocss_runtime=e.__unocss_runtime={version:c.version,uno:c,async extract(h){P(h)||(h.forEach(C=>y.add(C)),h=""),await p(h)},extractAll:T,inspect(h){R=h},toggleObserver(h){h===void 0?d=!d:d=!!h,!g&&!d&&k()},update:V,presets:e.__unocss_runtime?.presets??{}};o.ready?.(_)!==!1&&(d=!1,k())}function Xe(n=new Set){for(let e=0;e<document.styleSheets.length;e++){let t=document.styleSheets[e],r;try{if(r=t.cssRules||t.rules,!r)continue;Array.from(r).flatMap(s=>s.selectorText?.split(/,/g)||[]).forEach(s=>{s&&(s=s.trim(),s.startsWith(".")&&(s=s.slice(1)),n.add(s))})}catch{continue}}return n}ue();})();