@unocss/runtime 0.64.0 → 0.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mini.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Si=Object.defineProperty;var $i=(t,e)=>{for(var r in e)Si(t,r,{get:e[r],enumerable:!0})};var ge="default",Le="preflights",vi="shortcuts",Ci="imports",Ht={[Ci]:-200,[Le]:-100,[vi]:-10,[ge]:0};var Fe=/[\\:]?[\s'"`;{}]+/g;function ki(t){return t.split(Fe)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return ki(t)}};function A(t=[]){return Array.isArray(t)?t:[t]}function B(t){return Array.from(new Set(t))}function ut(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function V(t){return typeof t=="string"}var be=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function _e(t){return t instanceof be}function Z(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.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&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var Ie=te;var Ri=/^\[(.+?)~?="(.*)"\]$/;var Ei=/[\w\u00A0-\uFFFF%-?]/;function Gt(t){return t.match(Ri)}function xe(t=""){return Ei.test(t)}function qt(t){return typeof t=="function"?{match:t}:t}function ft(t){return t.length===3}function pt(t){return t!=null}function Yt(){}var We=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>e(i,r,o)))}},De=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function ie(t){return V(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Xt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ie(e)):[t]:[ie(t)]}function Ti(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function se(t){return t==null?"":Ti(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ne(t){return t&&typeof t=="object"&&!Array.isArray(t)}function dt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Ne(n)&&Ne(o)&&Object.keys(o).forEach(s=>{Ne(n[s])&&Ne(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=dt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function ye(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?ye(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ye(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ye(n):n;return r}return t}function Zt(t){return V(t[0])}function Jt(t){return V(t[0])}var Be={};function ji(t=["-",":"]){let e=t.join("|");return Be[e]||(Be[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Be[e].lastIndex=0,Be[e]}function Ai(t,e=["-",":"],r=5){let n=ji(e),o,i=t.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,f,p,d,m)=>{if(!e.includes(p))return u;o=!0,s.add(f+p);let b=m+f.length+p.length+1,w={length:u.length,items:[]};a.set(m,w);for(let S of[...d.matchAll(/\S+/g)]){let R=b+S.index,g=a.get(R)?.items;g?a.delete(R):g=[{offset:R,length:S[0].length,className:S[0]}];for(let x of g)x.className=x.className==="~"?f:x.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),w.items.push(x)}return"$".repeat(u.length)}),r-=1;while(o&&r);let l;if(typeof t=="string"){l="";let u=0;for(let[f,p]of a)l+=t.slice(u,f),l+=p.items.map(d=>d.className).join(" "),u=f+p.length;l+=t.slice(u)}else{l=t;for(let[u,f]of a)l.overwrite(u,u+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Qt(t,e=["-",":"],r=5){let n=Ai(t,e,r);return typeof t=="string"?n.expanded:t}var er=new Set;function tr(t){er.has(t)||(console.warn("[unocss]",t),er.add(t))}function or(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var rr="_uno_resolved";function Oi(t){let e=typeof t=="function"?t():t;if(rr in e)return e;e={...e},Object.defineProperty(e,rr,{value:!0,enumerable:!1});let r=e.shortcuts?or(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=A(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function ir(t){let e=Oi(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(A).flatMap(ir);return[e,...r]}function Vi(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let l of t){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:B(nr(...e)),exclude:B(nr(...r))}};return o.length&&(a.filesystem=B(o.flat())),i.length&&(a.inline=B(i.flat())),s.length&&(a.plain=B(s.flat())),a}function ht(t={},e={}){let r=Object.assign({},e,t),n=ut((r.presets||[]).flatMap(A).flatMap(ir),(h,y)=>h.name===y.name),o=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Ht,...i.map(h=>h.layers));function l(h){return B(i.flatMap(y=>A(y[h]||[])))}let u=l("extractors"),f=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!u.includes(f)&&u.unshift(f),u.sort((h,y)=>(h.order||0)-(y.order||0));let p=l("rules"),d={},m=p.length,b=p.map((h,y)=>{if(Zt(h)){A(h[2]?.prefix||"").forEach(z=>{d[z+h[0]]=[y,h[1],h[2],h]});return}return[y,...h]}).filter(Boolean).reverse(),w=Pi(i.map(h=>h.theme)),S=l("extendTheme");for(let h of S)w=h(w)||w;let R={templates:B(i.flatMap(h=>A(h.autocomplete?.templates))),extractors:i.flatMap(h=>A(h.autocomplete?.extractors)).sort((h,y)=>(h.order||0)-(y.order||0)),shorthands:zi(i.map(h=>h.autocomplete?.shorthands||{}))},g=l("separators");g.length||(g=[":","-"]);let x=l("content"),C=Vi(x),P={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:w,rulesSize:m,rulesDynamic:b,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:R,variants:l("variants").map(qt).sort((h,y)=>(h.order||0)-(y.order||0)),shortcuts:or(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:g,details:r.details??r.envMode==="dev",content:C,transformers:ut(l("transformers"),(h,y)=>h.name===y.name)};for(let h of i)h?.configResolved?.(P);return P}function Pi(t){return t.map(e=>e?ye(e):{}).reduce((e,r)=>dt(e,r),{})}function zi(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function nr(...t){return t.flatMap(Mi)}function Mi(t){return Array.isArray(t)?t:t?[t]:[]}var sr="0.64.0";function ar(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var re={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},mt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ht(e,r),this.events.emit("config",this.config)}version=sr;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=ar();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ht(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(_e(s)&&_e(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(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:re,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=e;for(let u of this.config.preprocess)o=u(e);if(this.isBlocked(o)){this.blocked.add(e),this._cache.set(n,null);return}let i=await this.matchVariants(e,o);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(n,null);return}let s=this.makeContext(e,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(u=>this.stringifyUtil(u,s)).filter(pt);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,u=this.config.outputToCssLayers,f=V(e)?await this.applyExtractors(e,n,l?new be:new Set):Array.isArray(e)?new Set(e):e;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(y=>typeof y=="function"?y(h):y).forEach(y=>{f.has(y)||f.add(y)})}let p=a?"":`
1
+ "use strict";(()=>{var Si=Object.defineProperty;var $i=(t,e)=>{for(var r in e)Si(t,r,{get:e[r],enumerable:!0})};var ge="default",Le="preflights",vi="shortcuts",Ci="imports",Ht={[Ci]:-200,[Le]:-100,[vi]:-10,[ge]:0};var Fe=/[\\:]?[\s'"`;{}]+/g;function ki(t){return t.split(Fe)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return ki(t)}};function A(t=[]){return Array.isArray(t)?t:[t]}function B(t){return Array.from(new Set(t))}function ut(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function V(t){return typeof t=="string"}var be=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function _e(t){return t instanceof be}function Z(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.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&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var Ie=te;var Ri=/^\[(.+?)~?="(.*)"\]$/;var Ei=/[\w\u00A0-\uFFFF%-?]/;function Gt(t){return t.match(Ri)}function xe(t=""){return Ei.test(t)}function qt(t){return typeof t=="function"?{match:t}:t}function ft(t){return t.length===3}function pt(t){return t!=null}function Yt(){}var We=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>e(i,r,o)))}},De=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function ie(t){return V(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Xt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ie(e)):[t]:[ie(t)]}function Ti(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function se(t){return t==null?"":Ti(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ne(t){return t&&typeof t=="object"&&!Array.isArray(t)}function dt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Ne(n)&&Ne(o)&&Object.keys(o).forEach(s=>{Ne(n[s])&&Ne(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=dt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function ye(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?ye(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ye(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ye(n):n;return r}return t}function Zt(t){return V(t[0])}function Jt(t){return V(t[0])}var Be={};function ji(t=["-",":"]){let e=t.join("|");return Be[e]||(Be[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Be[e].lastIndex=0,Be[e]}function Ai(t,e=["-",":"],r=5){let n=ji(e),o,i=t.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,f,p,d,m)=>{if(!e.includes(p))return u;o=!0,s.add(f+p);let b=m+f.length+p.length+1,w={length:u.length,items:[]};a.set(m,w);for(let S of[...d.matchAll(/\S+/g)]){let R=b+S.index,g=a.get(R)?.items;g?a.delete(R):g=[{offset:R,length:S[0].length,className:S[0]}];for(let x of g)x.className=x.className==="~"?f:x.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),w.items.push(x)}return"$".repeat(u.length)}),r-=1;while(o&&r);let l;if(typeof t=="string"){l="";let u=0;for(let[f,p]of a)l+=t.slice(u,f),l+=p.items.map(d=>d.className).join(" "),u=f+p.length;l+=t.slice(u)}else{l=t;for(let[u,f]of a)l.overwrite(u,u+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Qt(t,e=["-",":"],r=5){let n=Ai(t,e,r);return typeof t=="string"?n.expanded:t}var er=new Set;function tr(t){er.has(t)||(console.warn("[unocss]",t),er.add(t))}function or(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var rr="_uno_resolved";function Oi(t){let e=typeof t=="function"?t():t;if(rr in e)return e;e={...e},Object.defineProperty(e,rr,{value:!0,enumerable:!1});let r=e.shortcuts?or(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=A(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function ir(t){let e=Oi(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(A).flatMap(ir);return[e,...r]}function Vi(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let l of t){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:B(nr(...e)),exclude:B(nr(...r))}};return o.length&&(a.filesystem=B(o.flat())),i.length&&(a.inline=B(i.flat())),s.length&&(a.plain=B(s.flat())),a}function ht(t={},e={}){let r=Object.assign({},e,t),n=ut((r.presets||[]).flatMap(A).flatMap(ir),(h,y)=>h.name===y.name),o=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Ht,...i.map(h=>h.layers));function l(h){return B(i.flatMap(y=>A(y[h]||[])))}let u=l("extractors"),f=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!u.includes(f)&&u.unshift(f),u.sort((h,y)=>(h.order||0)-(y.order||0));let p=l("rules"),d={},m=p.length,b=p.map((h,y)=>{if(Zt(h)){A(h[2]?.prefix||"").forEach(z=>{d[z+h[0]]=[y,h[1],h[2],h]});return}return[y,...h]}).filter(Boolean).reverse(),w=Pi(i.map(h=>h.theme)),S=l("extendTheme");for(let h of S)w=h(w)||w;let R={templates:B(i.flatMap(h=>A(h.autocomplete?.templates))),extractors:i.flatMap(h=>A(h.autocomplete?.extractors)).sort((h,y)=>(h.order||0)-(y.order||0)),shorthands:zi(i.map(h=>h.autocomplete?.shorthands||{}))},g=l("separators");g.length||(g=[":","-"]);let x=l("content"),C=Vi(x),P={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:w,rulesSize:m,rulesDynamic:b,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:R,variants:l("variants").map(qt).sort((h,y)=>(h.order||0)-(y.order||0)),shortcuts:or(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:g,details:r.details??r.envMode==="dev",content:C,transformers:ut(l("transformers"),(h,y)=>h.name===y.name)};for(let h of i)h?.configResolved?.(P);return P}function Pi(t){return t.map(e=>e?ye(e):{}).reduce((e,r)=>dt(e,r),{})}function zi(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function nr(...t){return t.flatMap(Mi)}function Mi(t){return Array.isArray(t)?t:t?[t]:[]}var sr="0.64.1";function ar(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var re={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},mt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ht(e,r),this.events.emit("config",this.config)}version=sr;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=ar();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ht(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(_e(s)&&_e(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(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:re,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=e;for(let u of this.config.preprocess)o=u(e);if(this.isBlocked(o)){this.blocked.add(e),this._cache.set(n,null);return}let i=await this.matchVariants(e,o);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(n,null);return}let s=this.makeContext(e,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(u=>this.stringifyUtil(u,s)).filter(pt);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,u=this.config.outputToCssLayers,f=V(e)?await this.applyExtractors(e,n,l?new be:new Set):Array.isArray(e)?new Set(e):e;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(y=>typeof y=="function"?y(h):y).forEach(y=>{f.has(y)||f.add(y)})}let p=a?"":`
2
2
  `,d=new Set([ge]),m=l?new Map:new Set,b=new Map,w={},S=Array.from(f).map(async h=>{if(m.has(h))return;let y=await this.parseToken(h);if(y!=null){m instanceof Map?m.set(h,{data:y,count:_e(f)?f.getCount(h):-1}):m.add(h);for(let T of y){let z=T[3]||"",U=T[4]?.layer;b.has(z)||b.set(z,[]),b.get(z).push(T),U&&d.add(U)}}});await Promise.all(S),await(async()=>{if(!i)return;let h={generator:this,theme:this.config.theme},y=new Set([]);this.config.preflights.forEach(({layer:T=Le})=>{d.add(T),y.add(T)}),w=Object.fromEntries(await Promise.all(Array.from(y).map(async T=>{let U=(await Promise.all(this.config.preflights.filter(q=>(q.layer||Le)===T).map(async q=>await q.getCSS(h)))).filter(Boolean).join(p);return[T,U]})))})();let R=this.config.sortLayers(Array.from(d).sort((h,y)=>(this.config.layers[h]??0)-(this.config.layers[y]??0)||h.localeCompare(y))),g={},x=(h=ge)=>{if(g[h])return g[h];let y=Array.from(b).sort((z,U)=>(this.parentOrders.get(z[0])??0)-(this.parentOrders.get(U[0])??0)||z[0]?.localeCompare(U[0]||"")||0).map(([z,U])=>{let q=U.length,me=U.filter($=>($[4]?.layer||ge)===h).sort(($,k)=>$[0]-k[0]||($[4]?.sort||0)-(k[4]?.sort||0)||$[5]?.currentSelector?.localeCompare(k[5]?.currentSelector??"")||$[1]?.localeCompare(k[1]||"")||$[2]?.localeCompare(k[2]||"")||0).map(([,$,k,,L,,Y])=>[[[($&&Ui($,o))??"",L?.sort??0]],k,!!(Y??L?.noMerge)]);if(!me.length)return;let v=me.reverse().map(([$,k,L],Y)=>{if(!L&&this.config.mergeSelectors)for(let X=Y+1;X<q;X++){let H=me[X];if(H&&!H[2]&&($&&H[0]||$==null&&H[0]==null)&&H[1]===k)return $&&H[0]&&H[0].push(...$),null}let ct=$?B($.sort((X,H)=>X[1]-H[1]||X[0]?.localeCompare(H[0]||"")||0).map(X=>X[0]).filter(Boolean)):[];return ct.length?`${ct.join(`,${p}`)}{${k}}`:k}).filter(Boolean).reverse().join(p);if(!z)return v;let E=z.split(" $$ ");return`${E.join("{")}{${p}${v}${p}${"}".repeat(E.length)}`}).filter(Boolean).join(p);if(i&&(y=[w[h],y].filter(Boolean).join(p)),u&&y){let z=typeof u=="object"?u.cssLayerName?.(h):void 0;z!==null&&(z||(z=h),y=`@layer ${z}{${p}${y}${p}}`)}let T=a?"":`/* layer: ${h} */${p}`;return g[h]=y?T+y:""},C=(h=R,y)=>h.filter(T=>!y?.includes(T)).map(T=>x(T)||"").filter(Boolean).join(p);return{get css(){return C()},layers:R,matched:m,getLayers:C,getLayer:x,setLayer:async(h,y)=>{let T=await y(x(h));return g[h]=T,T}}}async matchVariants(e,r){let n=new Set,o=[],i=r||e,s=!0,a={rawSelector:e,theme:this.config.theme,generator:this};for(;s;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let u=await l.match(i,a);if(u){if(V(u)){if(u===i)continue;u={matcher:u}}i=u.matcher??i,o.unshift(u),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,o,n]}applyVariants(e,r=e[4],n=e[1]){let i=r.slice().sort((u,f)=>(u.order||0)-(f.order||0)).reduceRight((u,f)=>p=>{let d=f.body?.(p.entries)||p.entries,m=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??Ii)({...p,entries:d,selector:f.selector?.(p.selector,d)||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},u)},u=>u)({prefix:"",selector:_i(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let u of this.config.postprocess)u(l);return l}constructCustomCSS(e,r,n){let o=ie(r);if(V(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]),l=`${i}{${se(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,o){let[i,s,a]=V(e)?await this.matchVariants(e):e;this.config.details&&(r.rules=r.rules??[]);let l=this.config.rulesStaticMap[s];if(l&&l[1]&&(n||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);let f=l[0],p=ie(l[1]),d=l[2];return V(p)?[[f,p,d]]:[[f,i,p,d,a]]}r.variantHandlers=a;let{rulesDynamic:u}=this.config;for(let[f,p,d,m]of u){if(m?.internal&&!n)continue;let b=s;if(m?.prefix){let g=A(m.prefix);if(o){let x=A(o);if(!g.some(C=>x.includes(C)))continue}else{let x=g.find(C=>s.startsWith(C));if(x==null)continue;b=s.slice(x.length)}}let w=b.match(p);if(!w)continue;let S=await d(w,r);if(!S)continue;if(this.config.details&&r.rules.push([p,d,m]),typeof S!="string")if(Symbol.asyncIterator in S){let g=[];for await(let x of S)x&&g.push(x);S=g}else Symbol.iterator in S&&!Array.isArray(S)&&(S=Array.from(S).filter(pt));let R=Xt(S).filter(g=>g.length);if(R.length)return R.map(g=>{if(V(g))return[f,g,m];let x=a;for(let C of g)C[0]===re.variants?x=[...A(C[1]),...x]:C[0]===re.parent?x=[{parent:C[1]},...x]:C[0]===re.selector?x=[{selector:C[1]},...x]:C[0]===re.layer&&(x=[{layer:C[1]},...x]);return[f,i,g,m,x]})}}stringifyUtil(e,r){if(!e)return;if(ft(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:l}=this.applyVariants(e),u=se(o);if(!u)return;let{layer:f,sort:p,...d}=e[3]??{},m={...d,layer:s??f,sort:a??p};return[e[0],n,u,i,m,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Yt,i,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=A(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(Jt(a)){if(a[0]===l){i=i||a[2],s=a[1],o(a);break}}else{let u=l.match(a[0]);if(u&&(s=a[1](u,r)),s){i=i||a[2],o(a);break}}}if(s&&(s=A(s).map(a=>V(a)?Qt(a.trim()).split(/\s+/g):a).flat()),!s){let[a,l]=V(e)?await this.matchVariants(e):e;if(a!==l){let u=await this.expandShortcut(l,r,n-1);u&&(s=u[0].map(f=>V(f)?a.replace(l,f):f))}}if(s)return[(await Promise.all(s.map(async a=>(V(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new De,s=(await Promise.all(B(n).map(async f=>{let p=V(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ie(f),void 0,[]]];return!p&&this.config.warn&&tr(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,u=[];for(let f of s){if(ft(f)){u.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:m,sort:b,noMerge:w,layer:S}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(S??o.layer,new We).getFallback(p,m,[[],f[0]])[0].push([d,!!(w??f[3]?.noMerge),b??0])}return u.concat(i.flatMap((f,p)=>f.map(([d,m],b,w)=>{let S=(g,x,C)=>{let P=Math.max(...C.map(y=>y[1])),h=C.map(y=>y[0]);return(g?[h.flat(1)]:h).map(y=>{let T=se(y);if(T)return[m,b,T,w,{...o,noMerge:x,sort:P,layer:p},r,void 0]})};return[[d.filter(([,g])=>g).map(([g,,x])=>[g,x]),!0],[d.filter(([,g])=>!g).map(([g,,x])=>[g,x]),!1]].map(([g,x])=>[...S(!1,x,g.filter(([C])=>C.some(P=>P[0]===re.shortcutsNoMerge))),...S(!0,x,g.filter(([C])=>C.every(P=>P[0]!==re.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):V(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(e):V(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};function cr(t,e){return new mt(t,e)}var ur=/\s\$\$\s+/g;function Fi(t){return ur.test(t)}function Ui(t,e){return Fi(t)?t.replace(ur,e?` ${e} `:" "):e?`${e} ${t}`:t}var lr=/^\[(.+?)(~?=)"(.*)"\]$/;function _i(t){return lr.test(t)?t.replace(lr,(e,r,n,o)=>`[${Ie(r)}${n}"${Ie(o)}"]`):`.${Ie(t)}`}function Ii(t,e){return e(t)}var gt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function fr(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Gt(i);if(!a)return;let l=a[1];if(l.startsWith(e))l=l.slice(e.length);else if(r)return;let u=a[2],[,f="",p=u]=u.match(gt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(o==null){let d=s?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,m]=u.match(o)||[];if(m)return`${d}${f}${l}-${m}`}return`${f}${l}-${p}`}}}var Wi=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Di=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,pr=/[\s'"`;>]+/;function dr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Wi),o,i=0;for(let g of n){let[,x,C]=g,P=g.index+x.length;if(r>P&&r<=P+C.length){i=P,o=C;break}}if(!o)return null;let s=o.matchAll(Di),a=0,l,u;for(let g of s){let[x,C,P]=g,h=i+g.index;if(r>h&&r<=h+x.length){a=h,l=C,u=P?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!t?.prefix&&l.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?l.slice(t.prefix.length):l;if(u===void 0)return{extracted:p,resolveReplacement(g){let x=f?t.prefix.length:0;return{start:a+x,end:a+l.length,replacement:g}}};let d=a+l.length+2,m=pr.exec(u),b=0,w;for(;m;){let[g]=m;if(r>d+b&&r<=d+b+m.index){w=u.slice(b,b+m.index);break}b+=m.index+g.length,m=pr.exec(u.slice(b))}w===void 0&&(w=u.slice(b));let[,S="",R]=w.match(gt)||[];return{extracted:`${S}${p}-${R}`,transformSuggestions(g){return g.filter(x=>x.startsWith(`${S}${p}-`)).map(x=>S+x.slice(S.length+p.length+1))},resolveReplacement(g){return{start:b+d,end:b+d+w.length,replacement:S+g.slice(S.length+p.length+1)}}}}}}var Ni=["v-bind:",":"],hr=/[\s'"`;]+/g,bt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Bi=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,xt=["placeholder","fill","opacity","stroke-opacity"];function mr(t){let e=t?.ignoreAttributes??xt,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(bt)).flatMap(i=>Array.from((i[1]||"").matchAll(Bi))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(e.includes(i))return[];for(let l of Ni)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(xe(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(hr).filter(xe):bt.test(a)?(bt.lastIndex=0,this.extract({code:a})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:a.split(hr).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var Ki=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??xt;let e=[fr(t)],r=[mr(t)],n=[dr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},gr=Ki;function Hi(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function br(t,e,r,n){for(let o of Array.from(t.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${Hi(i)}`;e.set(s,i),t=t.replace(i,s)}return t}function xr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var Gi=/\/\/#\s*sourceMappingURL=.*\n?/g;function yr(t){return t.includes("sourceMappingURL=")?t.replace(Gi,""):t}var qi=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Yi=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Xi=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Zi(t){let e=[];for(let o of t.matchAll(Yi))o.index!==0&&!/^[\s'"`]/.test(t[o.index-1]??"")||e.push(o[0]);for(let o of t.matchAll(qi))e.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=br(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(Fe).forEach(o=>{o.includes(n)&&(o=xr(o,r)),xe(o)&&!Xi.test(o)&&e.push(o)}),e}function wr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return Zi(yr(t))}}}var Sr=[{layer:"preflights",getCSS(t){if(t.theme.preflightBase){let e=se(Object.entries(t.theme.preflightBase));return A(t.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${e}}`).join("")}}}];function ae(t,e,r){if(t==="")return;let n=t.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function le(t,e,r,n){if(t===""||(V(n)&&(n=[n]),n.length===0))return;let o=t.length,i=0;for(let s=0;s<o;s++)switch(t[s]){case e:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function ce(t,e,r){r=r??10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let i=le(t,"(",")",e);if(!i)return;let[s,a]=i;n.push(s),t=a}if(n.length>0)return n}var yt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],$r=["%alpha","<alpha-value>"],Ji=new RegExp($r.map(t=>Z(t)).join("|"));function J(t=""){let e=Qi(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,i=r.toLowerCase();if(n.length!==0&&!(yt.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 we(t){let e=t.alpha??1;return typeof e=="string"&&$r.includes(e)?1:e}function _(t,e){if(typeof t=="string")return t.replace(Ji,`${e??1}`);let{components:r}=t,{alpha:n,type:o}=t;return n=e??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,yt.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Qi(t){if(!t)return;let e=es(t);if(e!=null||(e=ts(t),e!=null)||(e=rs(t),e!=null)||(e=os(t),e!=null)||(e=is(t),e!=null))return e}function es(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ts(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function rs(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=ce(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 ns=new RegExp(`^(${yt.join("|")})\\((.+)\\)$`,"i");function os(t){let e=t.match(ns);if(!e)return;let[,r,n]=e,o=vr(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function is(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=vr(e[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function vr(t){let e=ce(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let i=e.splice(r-2);e.push(i.join(" ")),--r}let n=ce(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function Cr(t){let e=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=t[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return e}var kr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tr=new Uint8Array(64),ss=new Uint8Array(128);for(let t=0;t<kr.length;t++){let e=kr.charCodeAt(t);Tr[t]=e,ss[e]=t}function Se(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),t.write(Tr[o])}while(n>0);return e}var Rr=1024*16,Er=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}},wt=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Rr)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Rr&&(this.out+=Er.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Er.decode(e.subarray(0,n)):r}};function jr(t){let e=new wt,r=0,n=0,o=0,i=0;for(let s=0;s<t.length;s++){let a=t[s];if(s>0&&e.write(59),a.length===0)continue;let l=0;for(let u=0;u<a.length;u++){let f=a[u];u>0&&e.write(44),l=Se(e,f[0],l),f.length!==1&&(r=Se(e,f[1],r),n=Se(e,f[2],n),o=Se(e,f[3],o),f.length!==4&&(i=Se(e,f[4],i)))}}return e.flush()}var Ke=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},He=class t{constructor(e,r,n){this.start=e,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(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new t(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,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(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");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(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");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(e,""),this.outro.length)return!0}};function as(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var ls=as(),St=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=jr(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+ls(this.toString())}};function cs(t){let e=t.split(`
3
3
  `),r=e.filter(i=>/^\t+/.test(i)),n=e.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 us(t,e){let r=t.split(/[/\\]/),n=e.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 fs=Object.prototype.toString;function ps(t){return fs.call(t)==="[object Object]"}function Ar(t){let e=t.split(`
4
4
  `),r=[];for(let n=0,o=0;n<e.length;n++)r.push(o),o+=e[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let u=i+s>>1;o<r[u]?s=u:i=u+1}let a=i-1,l=o-r[a];return{line:a,column:l}}}var ds=/\w/,$t=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
3
  "type": "module",
4
- "version": "0.64.0",
4
+ "version": "0.64.1",
5
5
  "description": "CSS-in-JS Runtime for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -35,9 +35,9 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/preset-attributify": "0.64.0",
39
- "@unocss/preset-uno": "0.64.0",
40
- "@unocss/core": "0.64.0"
38
+ "@unocss/preset-attributify": "0.64.1",
39
+ "@unocss/preset-uno": "0.64.1",
40
+ "@unocss/core": "0.64.1"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",