@unocss/runtime 0.57.2 → 0.57.3
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/attributify.global.js +1 -1
- package/core.global.js +1 -1
- package/full.global.js +1 -1
- package/mini.global.js +1 -1
- package/package.json +4 -4
- package/uno.global.js +1 -1
package/attributify.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Ma=Object.defineProperty;var Ua=(e,t)=>{for(var r in t)Ma(e,r,{get:t[r],enumerable:!0})};function ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(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 Ke=Z;function V(e=[]){return Array.isArray(e)?e:[e]}function ge(e){return Array.from(new Set(e))}function dn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function A(e){return typeof e=="string"}function he(e){return A(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function gn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>he(t)):[e]:[he(e)]}function Fa(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 be(e){return e==null?"":Fa(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function qe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function zr(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 qe(n)&&qe(o)&&Object.keys(o).forEach(a=>{qe(n[a])&&qe(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=zr(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function hn(e){return A(e[0])}function bn(e){return A(e[0])}var La=/^\[(.+?)~?="(.*)"\]$/;var Na=/[\w\u00A0-\uFFFF-_:%-?]/,jr="$$shortcut-no-merge";function xn(e){return e.match(La)}function Te(e=""){return Na.test(e)}function yn(e){return typeof e=="function"?{match:e}:e}function Ar(e){return e.length===3}function vn(e){return e!=null}function wn(){}var Ye=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)))}};var Ee=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}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 Xe(e){return e instanceof Ee}var Ze={};function Wa(e=["-",":"]){let t=e.join("|");return Ze[t]||(Ze[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ze[t].lastIndex=0,Ze[t]}function Da(e,t=["-",":"],r=5){let n=Wa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(f,u,p,d,g)=>{if(!t.includes(p))return f;o=!0,a.add(u+p);let x=g+u.length+p.length+1,k={length:f.length,items:[]};s.set(g,k);for(let y of[...d.matchAll(/\S+/g)]){let S=x+y.index,h=s.get(S)?.items;h?s.delete(S):h=[{offset:S,length:y[0].length,className:y[0]}];for(let R of h)R.className=R.className==="~"?u:R.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),k.items.push(R)}return"$".repeat(f.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let f=0;for(let[u,p]of s)c+=e.slice(f,u),c+=p.items.map(d=>d.className).join(" "),f=u+p.length;c+=e.slice(f)}else{c=e;for(let[f,u]of s)c.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function $n(e,t=["-",":"],r=5){let n=Da(e,t,r);return typeof e=="string"?n.expanded:e}var kn=new Set;function q(e){kn.has(e)||(console.warn("[unocss]",e),kn.add(e))}var Je=/[\\:]?[\s'"`;{}]+/g;function Ba(e){return e.split(Je)}var Qe={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ba(e)}};function Sn(){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 et="default",tt="preflights",Ia="shortcuts",Ga="imports",Cn={[Ga]:-200,[tt]:-100,[Ia]:-10,[et]:0};function Tn(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Rn="_uno_resolved";function Ha(e){let t=typeof e=="function"?e():e;if(Rn in t)return t;t={...t},Object.defineProperty(t,Rn,{value:!0,enumerable:!1});let r=t.shortcuts?Tn(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=V(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function En(e){let t=Ha(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(V).flatMap(En);return[t,...r]}function Or(e={},t={}){let r=Object.assign({},t,e),n=dn((r.presets||[]).flatMap(V).flatMap(En),(m,w)=>m.name===w.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},Cn,...i.map(m=>m.layers));function c(m){return ge(i.flatMap(w=>V(w[m]||[])))}let f=c("extractors"),u=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Qe),u&&!f.includes(u)&&f.unshift(u),f.sort((m,w)=>(m.order||0)-(w.order||0));let p=c("rules"),d={},g=p.length,x=p.map((m,w)=>{if(hn(m)){V(m[2]?.prefix||"").forEach(U=>{d[U+m[0]]=[w,m[1],m[2],m]});return}return[w,...m]}).filter(Boolean).reverse(),k=Ka(i.map(m=>m.theme)),y=c("extendTheme");for(let m of y)k=m(k)||k;let S={templates:ge(i.flatMap(m=>V(m.autocomplete?.templates))),extractors:i.flatMap(m=>V(m.autocomplete?.extractors)).sort((m,w)=>(m.order||0)-(w.order||0)),shorthands:qa(i.map(m=>m.autocomplete?.shorthands||{}))},h=c("separators");h.length||(h=[":","-"]);let R={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:k,rulesSize:g,rulesDynamic:x,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:S,variants:c("variants").map(yn).sort((m,w)=>(m.order||0)-(w.order||0)),shortcuts:Tn(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:h,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(R);return R}function Ka(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>zr(t,r),{})}function qa(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}},{})}var zn="0.57.
|
|
1
|
+
"use strict";(()=>{var Ma=Object.defineProperty;var Ua=(e,t)=>{for(var r in t)Ma(e,r,{get:t[r],enumerable:!0})};function ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(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 Ke=Z;function V(e=[]){return Array.isArray(e)?e:[e]}function ge(e){return Array.from(new Set(e))}function dn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function A(e){return typeof e=="string"}function he(e){return A(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function gn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>he(t)):[e]:[he(e)]}function Fa(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 be(e){return e==null?"":Fa(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function qe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function zr(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 qe(n)&&qe(o)&&Object.keys(o).forEach(a=>{qe(n[a])&&qe(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=zr(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function hn(e){return A(e[0])}function bn(e){return A(e[0])}var La=/^\[(.+?)~?="(.*)"\]$/;var Na=/[\w\u00A0-\uFFFF-_:%-?]/,jr="$$shortcut-no-merge";function xn(e){return e.match(La)}function Te(e=""){return Na.test(e)}function yn(e){return typeof e=="function"?{match:e}:e}function Ar(e){return e.length===3}function vn(e){return e!=null}function wn(){}var Ye=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)))}};var Ee=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}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 Xe(e){return e instanceof Ee}var Ze={};function Wa(e=["-",":"]){let t=e.join("|");return Ze[t]||(Ze[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ze[t].lastIndex=0,Ze[t]}function Da(e,t=["-",":"],r=5){let n=Wa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(f,u,p,d,g)=>{if(!t.includes(p))return f;o=!0,a.add(u+p);let x=g+u.length+p.length+1,k={length:f.length,items:[]};s.set(g,k);for(let y of[...d.matchAll(/\S+/g)]){let S=x+y.index,h=s.get(S)?.items;h?s.delete(S):h=[{offset:S,length:y[0].length,className:y[0]}];for(let R of h)R.className=R.className==="~"?u:R.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),k.items.push(R)}return"$".repeat(f.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let f=0;for(let[u,p]of s)c+=e.slice(f,u),c+=p.items.map(d=>d.className).join(" "),f=u+p.length;c+=e.slice(f)}else{c=e;for(let[f,u]of s)c.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function $n(e,t=["-",":"],r=5){let n=Da(e,t,r);return typeof e=="string"?n.expanded:e}var kn=new Set;function q(e){kn.has(e)||(console.warn("[unocss]",e),kn.add(e))}var Je=/[\\:]?[\s'"`;{}]+/g;function Ba(e){return e.split(Je)}var Qe={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ba(e)}};function Sn(){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 et="default",tt="preflights",Ia="shortcuts",Ga="imports",Cn={[Ga]:-200,[tt]:-100,[Ia]:-10,[et]:0};function Tn(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Rn="_uno_resolved";function Ha(e){let t=typeof e=="function"?e():e;if(Rn in t)return t;t={...t},Object.defineProperty(t,Rn,{value:!0,enumerable:!1});let r=t.shortcuts?Tn(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=V(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function En(e){let t=Ha(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(V).flatMap(En);return[t,...r]}function Or(e={},t={}){let r=Object.assign({},t,e),n=dn((r.presets||[]).flatMap(V).flatMap(En),(m,w)=>m.name===w.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},Cn,...i.map(m=>m.layers));function c(m){return ge(i.flatMap(w=>V(w[m]||[])))}let f=c("extractors"),u=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Qe),u&&!f.includes(u)&&f.unshift(u),f.sort((m,w)=>(m.order||0)-(w.order||0));let p=c("rules"),d={},g=p.length,x=p.map((m,w)=>{if(hn(m)){V(m[2]?.prefix||"").forEach(U=>{d[U+m[0]]=[w,m[1],m[2],m]});return}return[w,...m]}).filter(Boolean).reverse(),k=Ka(i.map(m=>m.theme)),y=c("extendTheme");for(let m of y)k=m(k)||k;let S={templates:ge(i.flatMap(m=>V(m.autocomplete?.templates))),extractors:i.flatMap(m=>V(m.autocomplete?.extractors)).sort((m,w)=>(m.order||0)-(w.order||0)),shorthands:qa(i.map(m=>m.autocomplete?.shorthands||{}))},h=c("separators");h.length||(h=[":","-"]);let R={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:k,rulesSize:g,rulesDynamic:x,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:S,variants:c("variants").map(yn).sort((m,w)=>(m.order||0)-(w.order||0)),shortcuts:Tn(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:h,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(R);return R}function Ka(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>zr(t,r),{})}function qa(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}},{})}var zn="0.57.3";var Vr=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Or(t,r),this.events.emit("config",this.config)}version=zn;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Sn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Or(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 a=await i.extract?.(o);if(a)if(Xe(a)&&Xe(n))for(let s of a)n.setCount(s,n.getCount(s)+a.getCount(s));else for(let s of a)n.add(s)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let f of this.config.preprocess)o=f(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=await this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(a.variants=[...i[3]]);let s=await this.expandShortcut(a.currentSelector,a),c=s?await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]):(await this.parseUtil(a.variantMatch,a))?.map(f=>this.stringifyUtil(f,a)).filter(vn);if(c?.length)return this._cache.set(n,c),c;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:s=!1,extendedInfo:c=!1}=r,f=A(t)?await this.applyExtractors(t,n,c?new Ee:new Set):Array.isArray(t)?new Set(t):t;a&&this.config.safelist.forEach(m=>{f.has(m)||f.add(m)});let u=s?"":`
|
|
2
2
|
`,p=new Set([et]),d=c?new Map:new Set,g=new Map,x={},k=Array.from(f).map(async m=>{if(d.has(m))return;let w=await this.parseToken(m);if(w!=null){d instanceof Map?d.set(m,{data:w,count:Xe(f)?f.getCount(m):-1}):d.add(m);for(let j of w){let U=j[3]||"",B=j[4]?.layer;g.has(U)||g.set(U,[]),g.get(U).push(j),B&&p.add(B)}}});await Promise.all(k),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:j=tt})=>{p.add(j),w.add(j)}),x=Object.fromEntries(await Promise.all(Array.from(w).map(async j=>{let B=(await Promise.all(this.config.preflights.filter(ee=>(ee.layer||tt)===j).map(async ee=>await ee.getCSS(m)))).filter(Boolean).join(u);return[j,B]})))})();let y=this.config.sortLayers(Array.from(p).sort((m,w)=>(this.config.layers[m]??0)-(this.config.layers[w]??0)||m.localeCompare(w))),S={},h=m=>{if(S[m])return S[m];let w=Array.from(g).sort((U,B)=>(this.parentOrders.get(U[0])??0)-(this.parentOrders.get(B[0])??0)||U[0]?.localeCompare(B[0]||"")||0).map(([U,B])=>{let ee=B.length,de=B.filter(v=>(v[4]?.layer||et)===m).sort((v,T)=>v[0]-T[0]||(v[4]?.sort||0)-(T[4]?.sort||0)||v[5]?.currentSelector?.localeCompare(T[5]?.currentSelector??"")||v[1]?.localeCompare(T[1]||"")||v[2]?.localeCompare(T[2]||"")||0).map(([,v,T,,W,,I])=>[[[(v&&Ja(v,o))??"",W?.sort??0]],T,!!(I??W?.noMerge)]);if(!de.length)return;let He=de.reverse().map(([v,T,W],I)=>{if(!W&&this.config.mergeSelectors)for(let re=I+1;re<ee;re++){let K=de[re];if(K&&!K[2]&&(v&&K[0]||v==null&&K[0]==null)&&K[1]===T)return v&&K[0]&&K[0].push(...v),null}let te=v?ge(v.sort((re,K)=>re[1]-K[1]||re[0]?.localeCompare(K[0]||"")||0).map(re=>re[0]).filter(Boolean)):[];return te.length?`${te.join(`,${u}`)}{${T}}`:T}).filter(Boolean).reverse().join(u);if(!U)return He;let $=U.split(" $$ ");return`${$.join("{")}{${u}${He}${u}${"}".repeat($.length)}`}).filter(Boolean).join(u);i&&(w=[x[m],w].filter(Boolean).join(u));let j=s?"":`/* layer: ${m} */${u}`;return S[m]=w?j+w:""},R=(m=y,w)=>m.filter(j=>!w?.includes(j)).map(j=>h(j)||"").filter(Boolean).join(u);return{get css(){return R()},layers:y,matched:d,getLayers:R,getLayer:h}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,a=!0,s={rawSelector:t,theme:this.config.theme,generator:this};for(;a;){a=!1;for(let c of this.config.variants){if(!c.multiPass&&n.has(c))continue;let f=await c.match(i,s);if(f){if(A(f)){if(f===i)continue;f={matcher:f}}i=f.matcher,o.unshift(f),n.add(c),a=!0;break}}if(!a)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((f,u)=>(f.order||0)-(u.order||0)).reduceRight((f,u)=>p=>{let d=u.body?.(p.entries)||p.entries,g=Array.isArray(u.parent)?u.parent:[u.parent,void 0];return(u.handle??es)({...p,entries:d,selector:u.selector?.(p.selector,d)||p.selector,parent:g[0]||p.parent,parentOrder:g[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.sort},f)},f=>f)({prefix:"",selector:Qa(n),pseudo:"",entries:t[2]}),{parent:a,parentOrder:s}=i;a!=null&&s!=null&&this.parentOrders.set(a,s);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:a,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let f of this.config.postprocess)f(c);return c}constructCustomCSS(t,r,n){let o=he(r);if(A(o))return o;let{selector:i,entries:a,parent:s}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${be(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(t,r,n=!1,o){let[i,a,s]=A(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);let c=this.config.rulesStaticMap[a];if(c&&c[1]&&(n||!c[2]?.internal)){this.config.details&&r.rules.push(c[3]);let u=c[0],p=he(c[1]),d=c[2];return A(p)?[[u,p,d]]:[[u,i,p,d,s]]}r.variantHandlers=s;let{rulesDynamic:f}=this.config;for(let[u,p,d,g]of f){if(g?.internal&&!n)continue;let x=a;if(g?.prefix){let h=V(g.prefix);if(o){let R=V(o);if(!h.some(m=>R.includes(m)))continue}else{let R=h.find(m=>a.startsWith(m));if(R==null)continue;x=a.slice(R.length)}}let k=x.match(p);if(!k)continue;let y=await d(k,r);if(!y)continue;this.config.details&&r.rules.push([p,d,g]);let S=gn(y).filter(h=>h.length);if(S.length)return S.map(h=>A(h)?[u,h,g]:[u,i,h,g,s])}}stringifyUtil(t,r){if(!t)return;if(Ar(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:a,sort:s,noMerge:c}=this.applyVariants(t),f=be(o);if(!f)return;let{layer:u,sort:p,...d}=t[3]??{},g={...d,layer:a??u,sort:s??p};return[t[0],n,f,i,g,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?s=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(s)}:wn,i,a;for(let s of this.config.shortcuts){let c=t;if(s[2]?.prefix){let u=V(s[2].prefix).find(p=>t.startsWith(p));if(u==null)continue;c=t.slice(u.length)}if(bn(s)){if(s[0]===c){i=i||s[2],a=s[1],o(s);break}}else{let f=c.match(s[0]);if(f&&(a=s[1](f,r)),a){i=i||s[2],o(s);break}}}if(A(a)&&(a=$n(a.trim()).split(/\s+/g)),!a){let[s,c]=A(t)?await this.matchVariants(t):t;if(s!==c){let f=await this.expandShortcut(c,r,n-1);f&&(a=f[0].map(u=>A(u)?s.replace(c,u):u))}}if(a)return[(await Promise.all(a.map(async s=>(A(s)?(await this.expandShortcut(s,r,n-1))?.[0]:void 0)||[s]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Ye,a=(await Promise.all(ge(n).map(async u=>{let p=A(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",he(u),void 0,[]]];return!p&&this.config.warn&&q(`unmatched utility "${u}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[0]),[s,,c]=t,f=[];for(let u of a){if(Ar(u)){f.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let{selector:p,entries:d,parent:g,sort:x,noMerge:k}=this.applyVariants(u,[...u[4],...c],s);i.getFallback(p,g,[[],u[0]])[0].push([d,!!(k??u[3]?.noMerge),x??0])}return f.concat(i.map(([u,p],d,g)=>{let x=(y,S,h)=>{let R=Math.max(...h.map(w=>w[1])),m=h.map(w=>w[0]);return(y?[m.flat(1)]:m).map(w=>{let j=be(w);if(j)return[p,d,j,g,{...o,noMerge:S,sort:R},r,void 0]})};return[[u.filter(([,y])=>y).map(([y,,S])=>[y,S]),!0],[u.filter(([,y])=>!y).map(([y,,S])=>[y,S]),!1]].map(([y,S])=>[...x(!1,S,y.filter(([h])=>h.some(R=>R[0]===jr))),...x(!0,S,y.filter(([h])=>h.every(R=>R[0]!==jr)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="function"?r(t):A(r)?r===t:r.test(t))}};function An(e,t){return new Vr(e,t)}var Xa=/\s\$\$\s+/g;function Za(e){return e.match(/\s\$\$\s/)}function Ja(e,t){return Za(e)?e.replace(Xa,t?` ${t} `:" "):t?`${t} ${e}`:e}var jn=/^\[(.+?)(~?=)"(.*)"\]$/;function Qa(e){return jn.test(e)?e.replace(jn,(t,r,n,o)=>`[${Ke(r)}${n}"${Ke(o)}"]`):`.${Ke(e)}`}function es(e,t){return t(e)}var ts=/\/\/#\s*sourceMappingURL=.*\n?/g;function On(e){return e.includes("sourceMappingURL=")?e.replace(ts,""):e}var rs=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,ns=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,os=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function is(e){let t=[];for(let r of e.matchAll(ns))r.index!==0&&!e[r.index-1]?.match(/^[\s'"`]/)||t.push(r[0]);for(let r of e.matchAll(rs))t.push(r[0]);return e.split(Je).forEach(r=>{Te(r)&&!os.test(r)&&t.push(r)}),t}var Vn={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return is(On(e))}};var _n=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=be(Object.entries(e.theme.preflightBase));return V(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];var F={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},_r={...F,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Pr={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},rt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Pn=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],M=Object.assign({},...Pn.map(e=>({[e.replace(/ /,"-")]:e})),...Pn.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),C=["inherit","initial","revert","revert-layer","unset"],Mr=/(?:calc|clamp|min|max)\s*\(.*\)/;function xe(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,a=0;for(let s=0;s<n;s++)switch(e[s]){case t:i||(i=!0,a=s),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(a,s+1),e.slice(s+1),e.slice(0,a)];break}}function Ur(e,t,r,n){if(e===""||(A(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let a=0;a<o;a++)switch(e[a]){case t:i++;break;case r:if(--i<0)return;break;default:for(let s of n){let c=s.length;if(c&&s===e.slice(a,a+c)&&i===0)return a===0||a===o-c?void 0:[e.slice(0,a),e.slice(a+c)]}}return[e,""]}function ce(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Ur(e,"(",")",t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var Fr=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Mn=["%alpha","<alpha-value>"],as=new RegExp(Mn.map(e=>ne(e)).join("|"));function Y(e=""){let t=ss(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Fr.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(a=>typeof a=="string"?a.trim():a),alpha:typeof o=="string"?o.trim():o}}function J(e){let t=e.alpha??1;return typeof t=="string"&&Mn.includes(t)?1:t}function _(e,t){if(typeof e=="string")return e.replace(as,`${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}`,Fr.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function ss(e){if(!e)return;let t=cs(e);if(t!=null||(t=ls(e),t!=null)||(t=fs(e),t!=null)||(t=ps(e),t!=null)||(t=ms(e),t!=null))return t}function cs(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ls(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function fs(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,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 us=new RegExp(`^(${Fr.join("|")})\\((.+)\\)$`,"i");function ps(e){let t=e.match(us);if(!t)return;let[,r,n]=t,o=Un(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function ms(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Un(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Un(e){let t=ce(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=ce(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}}function nt(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let a=e[i](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}function D(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${ne(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,...t(a)})}},autocomplete:`${e}:`}}function L(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${ne(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,parent:`${a.parent?`${a.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function oe(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=xe(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function N(e,t,r){if(t.startsWith(e)){let n=oe(e,t,r);if(n){let[o="",i=n[1]]=N("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=t.indexOf(o,e.length);if(i!==-1){let a=t.indexOf("/",e.length),s=a===-1||i<=a;return[t.slice(e.length,s?i:a),t.slice(i+o.length),s?"":t.slice(a+1,i)]}}}}var ds=",".charCodeAt(0),gs=";".charCodeAt(0),Fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ln=new Uint8Array(64),hs=new Uint8Array(128);for(let e=0;e<Fn.length;e++){let t=Fn.charCodeAt(e);Ln[e]=t,hs[t]=e}var Lr=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}};function Nn(e){let t=new Int32Array(5),r=1024*16,n=r-36,o=new Uint8Array(r),i=o.subarray(0,n),a=0,s="";for(let c=0;c<e.length;c++){let f=e[c];if(c>0&&(a===r&&(s+=Lr.decode(o),a=0),o[a++]=gs),f.length!==0){t[0]=0;for(let u=0;u<f.length;u++){let p=f[u];a>n&&(s+=Lr.decode(i),o.copyWithin(0,n,a),a-=n),u>0&&(o[a++]=ds),a=ze(o,a,t,p,0),p.length!==1&&(a=ze(o,a,t,p,1),a=ze(o,a,t,p,2),a=ze(o,a,t,p,3),p.length!==4&&(a=ze(o,a,t,p,4)))}}}return s+Lr.decode(o.subarray(0,a))}function ze(e,t,r,n,o){let i=n[o],a=i-r[o];r[o]=i,a=a<0?-a<<1|1:a<<1;do{let s=a&31;a>>>=5,a>0&&(s|=32),e[t++]=Ln[s]}while(a>0);return t}var ot=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))}},it=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}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 bs(){return typeof window<"u"&&typeof window.btoa=="function"?e=>window.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 xs=bs(),Nr=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Nn(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+xs(this.toString())}};function ys(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,a)=>{let s=/^ +/.exec(a)[0].length;return Math.min(s,i)},1/0);return new Array(o+1).join(" ")}function vs(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 ws=Object.prototype.toString;function $s(e){return ws.call(e)==="[object Object]"}function Wn(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,a=r.length;for(;i<a;){let f=i+a>>1;o<r[f]?a=f:i=f+1}let s=i-1,c=o-r[s];return{line:s,column:c}}}var ks=/\w/,Wr=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.indexOf(`
|
package/core.global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(()=>{function we(t){let e=t.length,r=-1,n,s="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){s+="\uFFFD";continue}if(n===37){s+="\\%";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){s+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){s+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=t.charAt(r);continue}s+=`\\${t.charAt(r)}`}return s}var F=we;function M(t=[]){return Array.isArray(t)?t:[t]}function L(t){return Array.from(new Set(t))}function ne(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"}function k(t){return v(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function se(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>k(e)):[t]:[k(t)]}function Me(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(t[s][0]===e&&t[s][1]===r)return!1;return!0})}function N(t){return t==null?"":Me(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function I(t){return t&&typeof t=="object"&&!Array.isArray(t)}function J(t,e,r=!1){let n=t,s=e;if(Array.isArray(s))return r&&Array.isArray(s)?[...n,...s]:[...s];let i={...n};return I(n)&&I(s)&&Object.keys(s).forEach(c=>{I(n[c])&&I(s[c])||Array.isArray(n[c])&&Array.isArray(s[c])?i[c]=J(n[c],s[c],r):Object.assign(i,{[c]:s[c]})}),i}function K(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?K(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:K(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?K(n):n;return r}return t}function ie(t){return v(t[0])}function oe(t){return v(t[0])}var Q="$$shortcut-no-merge";function ae(t){return typeof t=="function"?{match:t}:t}function X(t){return t.length===3}function ce(t){return t!=null}function le(){}var B=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(r)||s.set(r,n),s.get(r)}set(e,r,n){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.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(([s,i])=>e(i,r,s)))}};var G=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 z(t){return t instanceof G}var W={};function Ue(t=["-",":"]){let e=t.join("|");return W[e]||(W[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),W[e].lastIndex=0,W[e]}function _e(t,e=["-",":"],r=5){let n=Ue(e),s,i=t.toString(),c=new Set,l=new Map;do s=!1,i=i.replace(n,(f,o,p,y,x)=>{if(!e.includes(p))return f;s=!0,c.add(o+p);let A=x+o.length+p.length+1,R={length:f.length,items:[]};l.set(x,R);for(let b of[...y.matchAll(/\S+/g)]){let T=A+b.index,S=l.get(T)?.items;S?l.delete(T):S=[{offset:T,length:b[0].length,className:b[0]}];for(let C of S)C.className=C.className==="~"?o:C.className.replace(/^(!?)(.*)/,`$1${o}${p}$2`),R.items.push(C)}return"$".repeat(f.length)}),r-=1;while(s&&r);let u;if(typeof t=="string"){u="";let f=0;for(let[o,p]of l)u+=t.slice(f,o),u+=p.items.map(y=>y.className).join(" "),f=o+p.length;u+=t.slice(f)}else{u=t;for(let[f,o]of l)u.overwrite(f,f+o.length,o.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(c),hasChanged:s,groupsByOffset:l,get expanded(){return u.toString()}}}function ue(t,e=["-",":"],r=5){let n=_e(t,e,r);return typeof t=="string"?n.expanded:t}var fe=new Set;function pe(t){fe.has(t)||(console.warn("[unocss]",t),fe.add(t))}var de=/[\\:]?[\s'"`;{}]+/g;function Ve(t){return t.split(de)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ve(t)}};function ge(){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 q="default",Z="preflights",Pe="shortcuts",$e="imports",he={[$e]:-200,[Z]:-100,[Pe]:-10,[q]:0};function ye(t){return M(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var me="_uno_resolved";function Oe(t){let e=typeof t=="function"?t():t;if(me in e)return e;e={...e},Object.defineProperty(e,me,{value:!0,enumerable:!1});let r=e.shortcuts?ye(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&e.prefix&&(i.prefix=M(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function xe(t){let e=Oe(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(M).flatMap(xe);return[e,...r]}function ee(t={},e={}){let r=Object.assign({},e,t),n=ne((r.presets||[]).flatMap(M).flatMap(xe),(a,h)=>a.name===h.name),s=[...n.filter(a=>a.enforce==="pre"),...n.filter(a=>!a.enforce),...n.filter(a=>a.enforce==="post")],i=[...s,r],c=[...i].reverse(),l=Object.assign({},he,...i.map(a=>a.layers));function u(a){return L(i.flatMap(h=>M(h[a]||[])))}let f=u("extractors"),o=c.find(a=>a.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=Y),o&&!f.includes(o)&&f.unshift(o),f.sort((a,h)=>(a.order||0)-(h.order||0));let p=u("rules"),y={},x=p.length,A=p.map((a,h)=>{if(ie(a)){M(a[2]?.prefix||"").forEach(w=>{y[w+a[0]]=[h,a[1],a[2],a]});return}return[h,...a]}).filter(Boolean).reverse(),R=je(i.map(a=>a.theme)),b=u("extendTheme");for(let a of b)R=a(R)||R;let T={templates:L(i.flatMap(a=>M(a.autocomplete?.templates))),extractors:i.flatMap(a=>M(a.autocomplete?.extractors)).sort((a,h)=>(a.order||0)-(h.order||0)),shorthands:De(i.map(a=>a.autocomplete?.shorthands||{}))},S=u("separators");S.length||(S=[":","-"]);let C={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:a=>a,...r,presets:s,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:R,rulesSize:x,rulesDynamic:A,rulesStaticMap:y,preprocess:u("preprocess"),postprocess:u("postprocess"),preflights:u("preflights"),autocomplete:T,variants:u("variants").map(ae).sort((a,h)=>(a.order||0)-(h.order||0)),shortcuts:ye(u("shortcuts")).reverse(),extractors:f,safelist:u("safelist"),separators:S,details:r.details??r.envMode==="dev"};for(let a of i)a?.configResolved?.(C);return C}function je(t){return t.map(e=>e?K(e):{}).reduce((e,r)=>J(e,r),{})}function De(t){return t.reduce((e,r)=>{let n={};for(let s in r){let i=r[s];Array.isArray(i)?n[s]=`(${i.join("|")})`:n[s]=i}return{...e,...n}},{})}var Se="0.57.
|
|
1
|
+
"use strict";(()=>{function we(t){let e=t.length,r=-1,n,s="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){s+="\uFFFD";continue}if(n===37){s+="\\%";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){s+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){s+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=t.charAt(r);continue}s+=`\\${t.charAt(r)}`}return s}var F=we;function M(t=[]){return Array.isArray(t)?t:[t]}function L(t){return Array.from(new Set(t))}function ne(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"}function k(t){return v(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function se(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>k(e)):[t]:[k(t)]}function Me(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(t[s][0]===e&&t[s][1]===r)return!1;return!0})}function N(t){return t==null?"":Me(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function I(t){return t&&typeof t=="object"&&!Array.isArray(t)}function J(t,e,r=!1){let n=t,s=e;if(Array.isArray(s))return r&&Array.isArray(s)?[...n,...s]:[...s];let i={...n};return I(n)&&I(s)&&Object.keys(s).forEach(c=>{I(n[c])&&I(s[c])||Array.isArray(n[c])&&Array.isArray(s[c])?i[c]=J(n[c],s[c],r):Object.assign(i,{[c]:s[c]})}),i}function K(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?K(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:K(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?K(n):n;return r}return t}function ie(t){return v(t[0])}function oe(t){return v(t[0])}var Q="$$shortcut-no-merge";function ae(t){return typeof t=="function"?{match:t}:t}function X(t){return t.length===3}function ce(t){return t!=null}function le(){}var B=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(r)||s.set(r,n),s.get(r)}set(e,r,n){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.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(([s,i])=>e(i,r,s)))}};var G=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 z(t){return t instanceof G}var W={};function Ue(t=["-",":"]){let e=t.join("|");return W[e]||(W[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),W[e].lastIndex=0,W[e]}function _e(t,e=["-",":"],r=5){let n=Ue(e),s,i=t.toString(),c=new Set,l=new Map;do s=!1,i=i.replace(n,(f,o,p,y,x)=>{if(!e.includes(p))return f;s=!0,c.add(o+p);let A=x+o.length+p.length+1,R={length:f.length,items:[]};l.set(x,R);for(let b of[...y.matchAll(/\S+/g)]){let T=A+b.index,S=l.get(T)?.items;S?l.delete(T):S=[{offset:T,length:b[0].length,className:b[0]}];for(let C of S)C.className=C.className==="~"?o:C.className.replace(/^(!?)(.*)/,`$1${o}${p}$2`),R.items.push(C)}return"$".repeat(f.length)}),r-=1;while(s&&r);let u;if(typeof t=="string"){u="";let f=0;for(let[o,p]of l)u+=t.slice(f,o),u+=p.items.map(y=>y.className).join(" "),f=o+p.length;u+=t.slice(f)}else{u=t;for(let[f,o]of l)u.overwrite(f,f+o.length,o.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(c),hasChanged:s,groupsByOffset:l,get expanded(){return u.toString()}}}function ue(t,e=["-",":"],r=5){let n=_e(t,e,r);return typeof t=="string"?n.expanded:t}var fe=new Set;function pe(t){fe.has(t)||(console.warn("[unocss]",t),fe.add(t))}var de=/[\\:]?[\s'"`;{}]+/g;function Ve(t){return t.split(de)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ve(t)}};function ge(){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 q="default",Z="preflights",Pe="shortcuts",$e="imports",he={[$e]:-200,[Z]:-100,[Pe]:-10,[q]:0};function ye(t){return M(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var me="_uno_resolved";function Oe(t){let e=typeof t=="function"?t():t;if(me in e)return e;e={...e},Object.defineProperty(e,me,{value:!0,enumerable:!1});let r=e.shortcuts?ye(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&e.prefix&&(i.prefix=M(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function xe(t){let e=Oe(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(M).flatMap(xe);return[e,...r]}function ee(t={},e={}){let r=Object.assign({},e,t),n=ne((r.presets||[]).flatMap(M).flatMap(xe),(a,h)=>a.name===h.name),s=[...n.filter(a=>a.enforce==="pre"),...n.filter(a=>!a.enforce),...n.filter(a=>a.enforce==="post")],i=[...s,r],c=[...i].reverse(),l=Object.assign({},he,...i.map(a=>a.layers));function u(a){return L(i.flatMap(h=>M(h[a]||[])))}let f=u("extractors"),o=c.find(a=>a.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=Y),o&&!f.includes(o)&&f.unshift(o),f.sort((a,h)=>(a.order||0)-(h.order||0));let p=u("rules"),y={},x=p.length,A=p.map((a,h)=>{if(ie(a)){M(a[2]?.prefix||"").forEach(w=>{y[w+a[0]]=[h,a[1],a[2],a]});return}return[h,...a]}).filter(Boolean).reverse(),R=je(i.map(a=>a.theme)),b=u("extendTheme");for(let a of b)R=a(R)||R;let T={templates:L(i.flatMap(a=>M(a.autocomplete?.templates))),extractors:i.flatMap(a=>M(a.autocomplete?.extractors)).sort((a,h)=>(a.order||0)-(h.order||0)),shorthands:De(i.map(a=>a.autocomplete?.shorthands||{}))},S=u("separators");S.length||(S=[":","-"]);let C={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:a=>a,...r,presets:s,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:R,rulesSize:x,rulesDynamic:A,rulesStaticMap:y,preprocess:u("preprocess"),postprocess:u("postprocess"),preflights:u("preflights"),autocomplete:T,variants:u("variants").map(ae).sort((a,h)=>(a.order||0)-(h.order||0)),shortcuts:ye(u("shortcuts")).reverse(),extractors:f,safelist:u("safelist"),separators:S,details:r.details??r.envMode==="dev"};for(let a of i)a?.configResolved?.(C);return C}function je(t){return t.map(e=>e?K(e):{}).reduce((e,r)=>J(e,r),{})}function De(t){return t.reduce((e,r)=>{let n={};for(let s in r){let i=r[s];Array.isArray(i)?n[s]=`(${i.join("|")})`:n[s]=i}return{...e,...n}},{})}var Se="0.57.3";var te=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ee(e,r),this.events.emit("config",this.config)}version=Se;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=ge();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ee(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let s={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let c=await i.extract?.(s);if(c)if(z(c)&&z(n))for(let l of c)n.setCount(l,n.getCount(l)+c.getCount(l));else for(let l of c)n.add(l)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...s)=>this.constructCustomCSS(n,...s),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 s=e;for(let f of this.config.preprocess)s=f(e);if(this.isBlocked(s)){this.blocked.add(e),this._cache.set(n,null);return}let i=await this.matchVariants(e,s);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(n,null);return}let c=this.makeContext(e,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(c.variants=[...i[3]]);let l=await this.expandShortcut(c.currentSelector,c),u=l?await this.stringifyShortcuts(c.variantMatch,c,l[0],l[1]):(await this.parseUtil(c.variantMatch,c))?.map(f=>this.stringifyUtil(f,c)).filter(ce);if(u?.length)return this._cache.set(n,u),u;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:s,preflights:i=!0,safelist:c=!0,minify:l=!1,extendedInfo:u=!1}=r,f=v(e)?await this.applyExtractors(e,n,u?new G:new Set):Array.isArray(e)?new Set(e):e;c&&this.config.safelist.forEach(a=>{f.has(a)||f.add(a)});let o=l?"":`
|
|
2
2
|
`,p=new Set([q]),y=u?new Map:new Set,x=new Map,A={},R=Array.from(f).map(async a=>{if(y.has(a))return;let h=await this.parseToken(a);if(h!=null){y instanceof Map?y.set(a,{data:h,count:z(f)?f.getCount(a):-1}):y.add(a);for(let E of h){let w=E[3]||"",_=E[4]?.layer;x.has(w)||x.set(w,[]),x.get(w).push(E),_&&p.add(_)}}});await Promise.all(R),await(async()=>{if(!i)return;let a={generator:this,theme:this.config.theme},h=new Set([]);this.config.preflights.forEach(({layer:E=Z})=>{p.add(E),h.add(E)}),A=Object.fromEntries(await Promise.all(Array.from(h).map(async E=>{let _=(await Promise.all(this.config.preflights.filter($=>($.layer||Z)===E).map(async $=>await $.getCSS(a)))).filter(Boolean).join(o);return[E,_]})))})();let b=this.config.sortLayers(Array.from(p).sort((a,h)=>(this.config.layers[a]??0)-(this.config.layers[h]??0)||a.localeCompare(h))),T={},S=a=>{if(T[a])return T[a];let h=Array.from(x).sort((w,_)=>(this.parentOrders.get(w[0])??0)-(this.parentOrders.get(_[0])??0)||w[0]?.localeCompare(_[0]||"")||0).map(([w,_])=>{let $=_.length,D=_.filter(d=>(d[4]?.layer||q)===a).sort((d,m)=>d[0]-m[0]||(d[4]?.sort||0)-(m[4]?.sort||0)||d[5]?.currentSelector?.localeCompare(m[5]?.currentSelector??"")||d[1]?.localeCompare(m[1]||"")||d[2]?.localeCompare(m[2]||"")||0).map(([,d,m,,U,,V])=>[[[(d&&Ge(d,s))??"",U?.sort??0]],m,!!(V??U?.noMerge)]);if(!D.length)return;let H=D.reverse().map(([d,m,U],V)=>{if(!U&&this.config.mergeSelectors)for(let j=V+1;j<$;j++){let P=D[j];if(P&&!P[2]&&(d&&P[0]||d==null&&P[0]==null)&&P[1]===m)return d&&P[0]&&P[0].push(...d),null}let O=d?L(d.sort((j,P)=>j[1]-P[1]||j[0]?.localeCompare(P[0]||"")||0).map(j=>j[0]).filter(Boolean)):[];return O.length?`${O.join(`,${o}`)}{${m}}`:m}).filter(Boolean).reverse().join(o);if(!w)return H;let g=w.split(" $$ ");return`${g.join("{")}{${o}${H}${o}${"}".repeat(g.length)}`}).filter(Boolean).join(o);i&&(h=[A[a],h].filter(Boolean).join(o));let E=l?"":`/* layer: ${a} */${o}`;return T[a]=h?E+h:""},C=(a=b,h)=>a.filter(E=>!h?.includes(E)).map(E=>S(E)||"").filter(Boolean).join(o);return{get css(){return C()},layers:b,matched:y,getLayers:C,getLayer:S}}async matchVariants(e,r){let n=new Set,s=[],i=r||e,c=!0,l={rawSelector:e,theme:this.config.theme,generator:this};for(;c;){c=!1;for(let u of this.config.variants){if(!u.multiPass&&n.has(u))continue;let f=await u.match(i,l);if(f){if(v(f)){if(f===i)continue;f={matcher:f}}i=f.matcher,s.unshift(f),n.add(u),c=!0;break}}if(!c)break;if(s.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,s,n]}applyVariants(e,r=e[4],n=e[1]){let i=r.slice().sort((f,o)=>(f.order||0)-(o.order||0)).reduceRight((f,o)=>p=>{let y=o.body?.(p.entries)||p.entries,x=Array.isArray(o.parent)?o.parent:[o.parent,void 0];return(o.handle??Fe)({...p,entries:y,selector:o.selector?.(p.selector,y)||p.selector,parent:x[0]||p.parent,parentOrder:x[1]||p.parentOrder,layer:o.layer||p.layer,sort:o.sort||p.sort},f)},f=>f)({prefix:"",selector:He(n),pseudo:"",entries:e[2]}),{parent:c,parentOrder:l}=i;c!=null&&l!=null&&this.parentOrders.set(c,l);let u={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:c,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let f of this.config.postprocess)f(u);return u}constructCustomCSS(e,r,n){let s=k(r);if(v(s))return s;let{selector:i,entries:c,parent:l}=this.applyVariants([0,n||e.rawSelector,s,void 0,e.variantHandlers]),u=`${i}{${N(c)}}`;return l?`${l}{${u}}`:u}async parseUtil(e,r,n=!1,s){let[i,c,l]=v(e)?await this.matchVariants(e):e;this.config.details&&(r.rules=r.rules??[]);let u=this.config.rulesStaticMap[c];if(u&&u[1]&&(n||!u[2]?.internal)){this.config.details&&r.rules.push(u[3]);let o=u[0],p=k(u[1]),y=u[2];return v(p)?[[o,p,y]]:[[o,i,p,y,l]]}r.variantHandlers=l;let{rulesDynamic:f}=this.config;for(let[o,p,y,x]of f){if(x?.internal&&!n)continue;let A=c;if(x?.prefix){let S=M(x.prefix);if(s){let C=M(s);if(!S.some(a=>C.includes(a)))continue}else{let C=S.find(a=>c.startsWith(a));if(C==null)continue;A=c.slice(C.length)}}let R=A.match(p);if(!R)continue;let b=await y(R,r);if(!b)continue;this.config.details&&r.rules.push([p,y,x]);let T=se(b).filter(S=>S.length);if(T.length)return T.map(S=>v(S)?[o,S,x]:[o,i,S,x,l])}}stringifyUtil(e,r){if(!e)return;if(X(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:s,parent:i,layer:c,sort:l,noMerge:u}=this.applyVariants(e),f=N(s);if(!f)return;let{layer:o,sort:p,...y}=e[3]??{},x={...y,layer:c??o,sort:l??p};return[e[0],n,f,i,x,this.config.details?r:void 0,u]}async expandShortcut(e,r,n=5){if(n===0)return;let s=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:le,i,c;for(let l of this.config.shortcuts){let u=e;if(l[2]?.prefix){let o=M(l[2].prefix).find(p=>e.startsWith(p));if(o==null)continue;u=e.slice(o.length)}if(oe(l)){if(l[0]===u){i=i||l[2],c=l[1],s(l);break}}else{let f=u.match(l[0]);if(f&&(c=l[1](f,r)),c){i=i||l[2],s(l);break}}}if(v(c)&&(c=ue(c.trim()).split(/\s+/g)),!c){let[l,u]=v(e)?await this.matchVariants(e):e;if(l!==u){let f=await this.expandShortcut(u,r,n-1);f&&(c=f[0].map(o=>v(o)?l.replace(u,o):o))}}if(c)return[(await Promise.all(c.map(async l=>(v(l)?(await this.expandShortcut(l,r,n-1))?.[0]:void 0)||[l]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,r,n,s={layer:this.config.shortcutsLayer}){let i=new B,c=(await Promise.all(L(n).map(async o=>{let p=v(o)?await this.parseUtil(o,r,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",k(o),void 0,[]]];return!p&&this.config.warn&&pe(`unmatched utility "${o}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((o,p)=>o[0]-p[0]),[l,,u]=e,f=[];for(let o of c){if(X(o)){f.push([o[0],void 0,o[1],void 0,o[2],r,void 0]);continue}let{selector:p,entries:y,parent:x,sort:A,noMerge:R}=this.applyVariants(o,[...o[4],...u],l);i.getFallback(p,x,[[],o[0]])[0].push([y,!!(R??o[3]?.noMerge),A??0])}return f.concat(i.map(([o,p],y,x)=>{let A=(b,T,S)=>{let C=Math.max(...S.map(h=>h[1])),a=S.map(h=>h[0]);return(b?[a.flat(1)]:a).map(h=>{let E=N(h);if(E)return[p,y,E,x,{...s,noMerge:T,sort:C},r,void 0]})};return[[o.filter(([,b])=>b).map(([b,,T])=>[b,T]),!0],[o.filter(([,b])=>!b).map(([b,,T])=>[b,T]),!1]].map(([b,T])=>[...A(!1,T,b.filter(([S])=>S.some(C=>C[0]===Q))),...A(!0,T,b.filter(([S])=>S.every(C=>C[0]!==Q)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="function"?r(e):v(r)?r===e:r.test(e))}};function Te(t,e){return new te(t,e)}var ke=/\s\$\$\s+/g;function Ke(t){return t.match(/\s\$\$\s/)}function Ge(t,e){return Ke(t)?t.replace(ke,e?` ${e} `:" "):e?`${e} ${t}`:t}var be=/^\[(.+?)(~?=)"(.*)"\]$/;function He(t){return be.test(t)?t.replace(be,(e,r,n,s)=>`[${F(r)}${n}"${F(s)}"]`):`.${F(t)}`}function Fe(t,e){return e(t)}function Ie(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function Ce(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Ee(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Re=["Webkit","Moz","ms"];function ve(t){let e={};function r(n){let s=e[n];if(s)return s;let i=Ie(n);if(i!=="filter"&&i in t)return e[n]=Ee(i);i=Ce(i);for(let c=0;c<Re.length;c++){let l=`${Re[c]}${i}`;if(l in t)return e[n]=Ee(Ce(l))}return n}return({entries:n})=>n.forEach(s=>{s[0].startsWith("--")||(s[0]=r(s[0]))})}function Ae(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function re(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,r=window.document,n=()=>r.documentElement,s=e.__unocss||{},i=Object.assign({},t,s.runtime),c=i.defaults||{},l=i.cloakAttribute??"un-cloak";i.autoPrefix&&(c.postprocess=M(c.postprocess)).unshift(ve(r.createElement("div").style)),i.configResolved?.(s,c);let u=Te(s,c),f=g=>i.inject?i.inject(g):n().prepend(g),o=new Map,p=!0,y=new Set,x,A,R=[],b=()=>new Promise(g=>{R.push(g),A!=null&&clearTimeout(A),A=setTimeout(()=>C().then(()=>{let d=R;R=[],d.forEach(m=>m())}),0)});function T(g){if(g.nodeType!==1)return;let d=g;d.hasAttribute(l)&&d.removeAttribute(l),d.querySelectorAll(`[${l}]`).forEach(m=>{m.removeAttribute(l)})}function S(g,d){let m=o.get(g);if(!m)if(m=r.createElement("style"),m.setAttribute("data-unocss-runtime-layer",g),o.set(g,m),d==null)f(m);else{let U=S(d),V=U.parentNode;V?V.insertBefore(m,U.nextSibling):f(m)}return m}async function C(){let g=await u.generate(y);return g.layers.reduce((d,m)=>(S(m,d).innerHTML=g.getLayer(m)??"",m),void 0),y=g.matched,{...g,getStyleElement:d=>o.get(d),getStyleElements:()=>o}}async function a(g){let d=y.size;await u.applyExtractors(g,void 0,y),d!==y.size&&await b()}async function h(){let g=r.body,d=g&&g.outerHTML;d&&(await a(`${d} ${Ae(d)}`),T(n()),T(g))}let E=new MutationObserver(g=>{p||g.forEach(async d=>{if(d.target.nodeType!==1)return;let m=d.target;for(let U of o)if(m===U[1])return;if(d.type==="childList")d.addedNodes.forEach(async U=>{if(U.nodeType!==1)return;let V=U;x&&!x(V)||(await a(V.outerHTML),T(V))});else{if(x&&!x(m))return;if(d.attributeName!==l){let U=Array.from(m.attributes).map(O=>O.value?`${O.name}="${O.value}"`:O.name).join(" "),V=`<${m.tagName.toLowerCase()} ${U}>`;await a(V)}m.hasAttribute(l)&&m.removeAttribute(l)}})}),w=!1;function _(){if(w)return;let g=i.observer?.target?i.observer.target():n()||r.body;g&&(E.observe(g,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),w=!0)}function $(){i.bypassDefined&&Ne(u.blocked),h(),_()}function D(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",$):$()}let H=e.__unocss_runtime=e.__unocss_runtime={version:u.version,uno:u,async extract(g){v(g)||(g.forEach(d=>y.add(d)),g=""),await a(g)},extractAll:h,inspect(g){x=g},toggleObserver(g){g===void 0?p=!p:p=!!g,!w&&!p&&D()},update:C,presets:e.__unocss_runtime?.presets??{}};i.ready?.(H)!==!1&&(p=!1,D())}function Ne(t=new Set){for(let e=0;e<document.styleSheets.length;e++){let r=document.styleSheets[e],n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(s=>s.selectorText?.split(/,/g)||[]).forEach(s=>{s&&(s=s.trim(),s.startsWith(".")&&(s=s.slice(1)),t.add(s))})}catch{continue}}return t}re();})();
|
package/full.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Ga=Object.defineProperty;var Ha=(e,t)=>{for(var r in t)Ga(e,r,{get:t[r],enumerable:!0})};function ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(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 qe=Z;function V(e=[]){return Array.isArray(e)?e:[e]}function ge(e){return Array.from(new Set(e))}function bn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function O(e){return typeof e=="string"}function he(e){return O(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function xn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>he(t)):[e]:[he(e)]}function Ka(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 be(e){return e==null?"":Ka(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ye(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Te(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 Ye(n)&&Ye(o)&&Object.keys(o).forEach(a=>{Ye(n[a])&&Ye(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=Te(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function yn(e){return O(e[0])}function vn(e){return O(e[0])}var qa=/^\[(.+?)~?="(.*)"\]$/;var Ya=/[\w\u00A0-\uFFFF-_:%-?]/,Or="$$shortcut-no-merge";function wn(e){return e.match(qa)}function Ee(e=""){return Ya.test(e)}function $n(e){return typeof e=="function"?{match:e}:e}function Ar(e){return e.length===3}function kn(e){return e!=null}function Sn(){}var Xe=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)))}};var ze=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}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 Ze(e){return e instanceof ze}var Je={};function Xa(e=["-",":"]){let t=e.join("|");return Je[t]||(Je[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Je[t].lastIndex=0,Je[t]}function Za(e,t=["-",":"],r=5){let n=Xa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(l,p,u,d,g)=>{if(!t.includes(u))return l;o=!0,a.add(p+u);let b=g+p.length+u.length+1,k={length:l.length,items:[]};s.set(g,k);for(let y of[...d.matchAll(/\S+/g)]){let S=b+y.index,h=s.get(S)?.items;h?s.delete(S):h=[{offset:S,length:y[0].length,className:y[0]}];for(let R of h)R.className=R.className==="~"?p:R.className.replace(/^(!?)(.*)/,`$1${p}${u}$2`),k.items.push(R)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[p,u]of s)c+=e.slice(l,p),c+=u.items.map(d=>d.className).join(" "),l=p+u.length;c+=e.slice(l)}else{c=e;for(let[l,p]of s)c.overwrite(l,l+p.length,p.items.map(u=>u.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function Cn(e,t=["-",":"],r=5){let n=Za(e,t,r);return typeof e=="string"?n.expanded:e}var Rn=new Set;function q(e){Rn.has(e)||(console.warn("[unocss]",e),Rn.add(e))}var Qe=/[\\:]?[\s'"`;{}]+/g;function Ja(e){return e.split(Qe)}var et={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ja(e)}};function Tn(){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 tt="default",rt="preflights",Qa="shortcuts",es="imports",En={[es]:-200,[rt]:-100,[Qa]:-10,[tt]:0};function jn(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var zn="_uno_resolved";function ts(e){let t=typeof e=="function"?e():e;if(zn in t)return t;t={...t},Object.defineProperty(t,zn,{value:!0,enumerable:!1});let r=t.shortcuts?jn(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=V(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function On(e){let t=ts(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(V).flatMap(On);return[t,...r]}function Vr(e={},t={}){let r=Object.assign({},t,e),n=bn((r.presets||[]).flatMap(V).flatMap(On),(m,w)=>m.name===w.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},En,...i.map(m=>m.layers));function c(m){return ge(i.flatMap(w=>V(w[m]||[])))}let l=c("extractors"),p=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;p===void 0&&(p=et),p&&!l.includes(p)&&l.unshift(p),l.sort((m,w)=>(m.order||0)-(w.order||0));let u=c("rules"),d={},g=u.length,b=u.map((m,w)=>{if(yn(m)){V(m[2]?.prefix||"").forEach(U=>{d[U+m[0]]=[w,m[1],m[2],m]});return}return[w,...m]}).filter(Boolean).reverse(),k=rs(i.map(m=>m.theme)),y=c("extendTheme");for(let m of y)k=m(k)||k;let S={templates:ge(i.flatMap(m=>V(m.autocomplete?.templates))),extractors:i.flatMap(m=>V(m.autocomplete?.extractors)).sort((m,w)=>(m.order||0)-(w.order||0)),shorthands:ns(i.map(m=>m.autocomplete?.shorthands||{}))},h=c("separators");h.length||(h=[":","-"]);let R={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:k,rulesSize:g,rulesDynamic:b,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:S,variants:c("variants").map($n).sort((m,w)=>(m.order||0)-(w.order||0)),shortcuts:jn(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:h,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(R);return R}function rs(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>Te(t,r),{})}function ns(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}},{})}var An="0.57.
|
|
1
|
+
"use strict";(()=>{var Ga=Object.defineProperty;var Ha=(e,t)=>{for(var r in t)Ga(e,r,{get:t[r],enumerable:!0})};function ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(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 qe=Z;function V(e=[]){return Array.isArray(e)?e:[e]}function ge(e){return Array.from(new Set(e))}function bn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function O(e){return typeof e=="string"}function he(e){return O(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function xn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>he(t)):[e]:[he(e)]}function Ka(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 be(e){return e==null?"":Ka(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ye(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Te(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 Ye(n)&&Ye(o)&&Object.keys(o).forEach(a=>{Ye(n[a])&&Ye(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=Te(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function yn(e){return O(e[0])}function vn(e){return O(e[0])}var qa=/^\[(.+?)~?="(.*)"\]$/;var Ya=/[\w\u00A0-\uFFFF-_:%-?]/,Or="$$shortcut-no-merge";function wn(e){return e.match(qa)}function Ee(e=""){return Ya.test(e)}function $n(e){return typeof e=="function"?{match:e}:e}function Ar(e){return e.length===3}function kn(e){return e!=null}function Sn(){}var Xe=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)))}};var ze=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}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 Ze(e){return e instanceof ze}var Je={};function Xa(e=["-",":"]){let t=e.join("|");return Je[t]||(Je[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Je[t].lastIndex=0,Je[t]}function Za(e,t=["-",":"],r=5){let n=Xa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(l,p,u,d,g)=>{if(!t.includes(u))return l;o=!0,a.add(p+u);let b=g+p.length+u.length+1,k={length:l.length,items:[]};s.set(g,k);for(let y of[...d.matchAll(/\S+/g)]){let S=b+y.index,h=s.get(S)?.items;h?s.delete(S):h=[{offset:S,length:y[0].length,className:y[0]}];for(let R of h)R.className=R.className==="~"?p:R.className.replace(/^(!?)(.*)/,`$1${p}${u}$2`),k.items.push(R)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[p,u]of s)c+=e.slice(l,p),c+=u.items.map(d=>d.className).join(" "),l=p+u.length;c+=e.slice(l)}else{c=e;for(let[l,p]of s)c.overwrite(l,l+p.length,p.items.map(u=>u.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function Cn(e,t=["-",":"],r=5){let n=Za(e,t,r);return typeof e=="string"?n.expanded:e}var Rn=new Set;function q(e){Rn.has(e)||(console.warn("[unocss]",e),Rn.add(e))}var Qe=/[\\:]?[\s'"`;{}]+/g;function Ja(e){return e.split(Qe)}var et={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ja(e)}};function Tn(){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 tt="default",rt="preflights",Qa="shortcuts",es="imports",En={[es]:-200,[rt]:-100,[Qa]:-10,[tt]:0};function jn(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var zn="_uno_resolved";function ts(e){let t=typeof e=="function"?e():e;if(zn in t)return t;t={...t},Object.defineProperty(t,zn,{value:!0,enumerable:!1});let r=t.shortcuts?jn(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=V(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function On(e){let t=ts(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(V).flatMap(On);return[t,...r]}function Vr(e={},t={}){let r=Object.assign({},t,e),n=bn((r.presets||[]).flatMap(V).flatMap(On),(m,w)=>m.name===w.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},En,...i.map(m=>m.layers));function c(m){return ge(i.flatMap(w=>V(w[m]||[])))}let l=c("extractors"),p=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;p===void 0&&(p=et),p&&!l.includes(p)&&l.unshift(p),l.sort((m,w)=>(m.order||0)-(w.order||0));let u=c("rules"),d={},g=u.length,b=u.map((m,w)=>{if(yn(m)){V(m[2]?.prefix||"").forEach(U=>{d[U+m[0]]=[w,m[1],m[2],m]});return}return[w,...m]}).filter(Boolean).reverse(),k=rs(i.map(m=>m.theme)),y=c("extendTheme");for(let m of y)k=m(k)||k;let S={templates:ge(i.flatMap(m=>V(m.autocomplete?.templates))),extractors:i.flatMap(m=>V(m.autocomplete?.extractors)).sort((m,w)=>(m.order||0)-(w.order||0)),shorthands:ns(i.map(m=>m.autocomplete?.shorthands||{}))},h=c("separators");h.length||(h=[":","-"]);let R={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:k,rulesSize:g,rulesDynamic:b,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:S,variants:c("variants").map($n).sort((m,w)=>(m.order||0)-(w.order||0)),shortcuts:jn(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:h,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(R);return R}function rs(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>Te(t,r),{})}function ns(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}},{})}var An="0.57.3";var _r=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Vr(t,r),this.events.emit("config",this.config)}version=An;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Tn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Vr(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 a=await i.extract?.(o);if(a)if(Ze(a)&&Ze(n))for(let s of a)n.setCount(s,n.getCount(s)+a.getCount(s));else for(let s of a)n.add(s)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=await this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(a.variants=[...i[3]]);let s=await this.expandShortcut(a.currentSelector,a),c=s?await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]):(await this.parseUtil(a.variantMatch,a))?.map(l=>this.stringifyUtil(l,a)).filter(kn);if(c?.length)return this._cache.set(n,c),c;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:s=!1,extendedInfo:c=!1}=r,l=O(t)?await this.applyExtractors(t,n,c?new ze:new Set):Array.isArray(t)?new Set(t):t;a&&this.config.safelist.forEach(m=>{l.has(m)||l.add(m)});let p=s?"":`
|
|
2
2
|
`,u=new Set([tt]),d=c?new Map:new Set,g=new Map,b={},k=Array.from(l).map(async m=>{if(d.has(m))return;let w=await this.parseToken(m);if(w!=null){d instanceof Map?d.set(m,{data:w,count:Ze(l)?l.getCount(m):-1}):d.add(m);for(let j of w){let U=j[3]||"",B=j[4]?.layer;g.has(U)||g.set(U,[]),g.get(U).push(j),B&&u.add(B)}}});await Promise.all(k),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:j=rt})=>{u.add(j),w.add(j)}),b=Object.fromEntries(await Promise.all(Array.from(w).map(async j=>{let B=(await Promise.all(this.config.preflights.filter(ee=>(ee.layer||rt)===j).map(async ee=>await ee.getCSS(m)))).filter(Boolean).join(p);return[j,B]})))})();let y=this.config.sortLayers(Array.from(u).sort((m,w)=>(this.config.layers[m]??0)-(this.config.layers[w]??0)||m.localeCompare(w))),S={},h=m=>{if(S[m])return S[m];let w=Array.from(g).sort((U,B)=>(this.parentOrders.get(U[0])??0)-(this.parentOrders.get(B[0])??0)||U[0]?.localeCompare(B[0]||"")||0).map(([U,B])=>{let ee=B.length,de=B.filter(v=>(v[4]?.layer||tt)===m).sort((v,T)=>v[0]-T[0]||(v[4]?.sort||0)-(T[4]?.sort||0)||v[5]?.currentSelector?.localeCompare(T[5]?.currentSelector??"")||v[1]?.localeCompare(T[1]||"")||v[2]?.localeCompare(T[2]||"")||0).map(([,v,T,,W,,I])=>[[[(v&&ss(v,o))??"",W?.sort??0]],T,!!(I??W?.noMerge)]);if(!de.length)return;let Ke=de.reverse().map(([v,T,W],I)=>{if(!W&&this.config.mergeSelectors)for(let re=I+1;re<ee;re++){let K=de[re];if(K&&!K[2]&&(v&&K[0]||v==null&&K[0]==null)&&K[1]===T)return v&&K[0]&&K[0].push(...v),null}let te=v?ge(v.sort((re,K)=>re[1]-K[1]||re[0]?.localeCompare(K[0]||"")||0).map(re=>re[0]).filter(Boolean)):[];return te.length?`${te.join(`,${p}`)}{${T}}`:T}).filter(Boolean).reverse().join(p);if(!U)return Ke;let $=U.split(" $$ ");return`${$.join("{")}{${p}${Ke}${p}${"}".repeat($.length)}`}).filter(Boolean).join(p);i&&(w=[b[m],w].filter(Boolean).join(p));let j=s?"":`/* layer: ${m} */${p}`;return S[m]=w?j+w:""},R=(m=y,w)=>m.filter(j=>!w?.includes(j)).map(j=>h(j)||"").filter(Boolean).join(p);return{get css(){return R()},layers:y,matched:d,getLayers:R,getLayer:h}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,a=!0,s={rawSelector:t,theme:this.config.theme,generator:this};for(;a;){a=!1;for(let c of this.config.variants){if(!c.multiPass&&n.has(c))continue;let l=await c.match(i,s);if(l){if(O(l)){if(l===i)continue;l={matcher:l}}i=l.matcher,o.unshift(l),n.add(c),a=!0;break}}if(!a)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((l,p)=>(l.order||0)-(p.order||0)).reduceRight((l,p)=>u=>{let d=p.body?.(u.entries)||u.entries,g=Array.isArray(p.parent)?p.parent:[p.parent,void 0];return(p.handle??cs)({...u,entries:d,selector:p.selector?.(u.selector,d)||u.selector,parent:g[0]||u.parent,parentOrder:g[1]||u.parentOrder,layer:p.layer||u.layer,sort:p.sort||u.sort},l)},l=>l)({prefix:"",selector:Pr(n),pseudo:"",entries:t[2]}),{parent:a,parentOrder:s}=i;a!=null&&s!=null&&this.parentOrders.set(a,s);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:a,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=he(r);if(O(o))return o;let{selector:i,entries:a,parent:s}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${be(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(t,r,n=!1,o){let[i,a,s]=O(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);let c=this.config.rulesStaticMap[a];if(c&&c[1]&&(n||!c[2]?.internal)){this.config.details&&r.rules.push(c[3]);let p=c[0],u=he(c[1]),d=c[2];return O(u)?[[p,u,d]]:[[p,i,u,d,s]]}r.variantHandlers=s;let{rulesDynamic:l}=this.config;for(let[p,u,d,g]of l){if(g?.internal&&!n)continue;let b=a;if(g?.prefix){let h=V(g.prefix);if(o){let R=V(o);if(!h.some(m=>R.includes(m)))continue}else{let R=h.find(m=>a.startsWith(m));if(R==null)continue;b=a.slice(R.length)}}let k=b.match(u);if(!k)continue;let y=await d(k,r);if(!y)continue;this.config.details&&r.rules.push([u,d,g]);let S=xn(y).filter(h=>h.length);if(S.length)return S.map(h=>O(h)?[p,h,g]:[p,i,h,g,s])}}stringifyUtil(t,r){if(!t)return;if(Ar(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:a,sort:s,noMerge:c}=this.applyVariants(t),l=be(o);if(!l)return;let{layer:p,sort:u,...d}=t[3]??{},g={...d,layer:a??p,sort:s??u};return[t[0],n,l,i,g,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?s=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(s)}:Sn,i,a;for(let s of this.config.shortcuts){let c=t;if(s[2]?.prefix){let p=V(s[2].prefix).find(u=>t.startsWith(u));if(p==null)continue;c=t.slice(p.length)}if(vn(s)){if(s[0]===c){i=i||s[2],a=s[1],o(s);break}}else{let l=c.match(s[0]);if(l&&(a=s[1](l,r)),a){i=i||s[2],o(s);break}}}if(O(a)&&(a=Cn(a.trim()).split(/\s+/g)),!a){let[s,c]=O(t)?await this.matchVariants(t):t;if(s!==c){let l=await this.expandShortcut(c,r,n-1);l&&(a=l[0].map(p=>O(p)?s.replace(c,p):p))}}if(a)return[(await Promise.all(a.map(async s=>(O(s)?(await this.expandShortcut(s,r,n-1))?.[0]:void 0)||[s]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Xe,a=(await Promise.all(ge(n).map(async p=>{let u=O(p)?await this.parseUtil(p,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",he(p),void 0,[]]];return!u&&this.config.warn&&q(`unmatched utility "${p}" in shortcut "${t[1]}"`),u||[]}))).flat(1).filter(Boolean).sort((p,u)=>p[0]-u[0]),[s,,c]=t,l=[];for(let p of a){if(Ar(p)){l.push([p[0],void 0,p[1],void 0,p[2],r,void 0]);continue}let{selector:u,entries:d,parent:g,sort:b,noMerge:k}=this.applyVariants(p,[...p[4],...c],s);i.getFallback(u,g,[[],p[0]])[0].push([d,!!(k??p[3]?.noMerge),b??0])}return l.concat(i.map(([p,u],d,g)=>{let b=(y,S,h)=>{let R=Math.max(...h.map(w=>w[1])),m=h.map(w=>w[0]);return(y?[m.flat(1)]:m).map(w=>{let j=be(w);if(j)return[u,d,j,g,{...o,noMerge:S,sort:R},r,void 0]})};return[[p.filter(([,y])=>y).map(([y,,S])=>[y,S]),!0],[p.filter(([,y])=>!y).map(([y,,S])=>[y,S]),!1]].map(([y,S])=>[...b(!1,S,y.filter(([h])=>h.some(R=>R[0]===Or))),...b(!0,S,y.filter(([h])=>h.every(R=>R[0]!==Or)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="function"?r(t):O(r)?r===t:r.test(t))}};function _n(e,t){return new _r(e,t)}var is=/\s\$\$\s+/g;function as(e){return e.match(/\s\$\$\s/)}function ss(e,t){return as(e)?e.replace(is,t?` ${t} `:" "):t?`${t} ${e}`:e}var Vn=/^\[(.+?)(~?=)"(.*)"\]$/;function Pr(e){return Vn.test(e)?e.replace(Vn,(t,r,n,o)=>`[${qe(r)}${n}"${qe(o)}"]`):`.${qe(e)}`}function cs(e,t){return t(e)}var Mr=/^(?!.*\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/;function Pn(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:a}){let s=wn(i);if(!s)return;let c=s[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;let l=s[2],[,p="",u=l]=l.match(Mr)||[];if(u==="~"||n&&u==="true"||!u)return`${p}${c}`;if(o==null){let d=a?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,g]=l.match(o)||[];if(g)return`${d}${p}${c}-${g}`}return`${p}${c}-${u}`}}}var ls=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,fs=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,Mn=/[\s'"`;>]+/;function Un(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(ls),o,i=0;for(let h of n){let[,R,m]=h,w=h.index+R.length;if(r>w&&r<=w+m.length){i=w,o=m;break}}if(!o)return null;let a=o.matchAll(fs),s=0,c,l;for(let h of a){let[R,m,w]=h,j=i+h.index;if(r>j&&r<=j+R.length){s=j,c=m,l=w?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let p=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!p)return null;let u=p?c.slice(e.prefix.length):c;if(l===void 0)return{extracted:u,resolveReplacement(h){let R=p?e.prefix.length:0;return{start:s+R,end:s+c.length,replacement:h}}};let d=s+c.length+2,g=Mn.exec(l),b=0,k;for(;g;){let[h]=g;if(r>d+b&&r<=d+b+g.index){k=l.slice(b,b+g.index);break}b+=g.index+h.length,g=Mn.exec(l.slice(b))}k===void 0&&(k=l.slice(b));let[,y="",S]=k.match(Mr)||[];return{extracted:`${y}${u}-${S}`,transformSuggestions(h){return h.filter(R=>R.startsWith(`${y}${u}-`)).map(R=>y+R.slice(y.length+u.length+1))},resolveReplacement(h){return{start:b+d,end:b+d+k.length,replacement:y+h.slice(y.length+u.length+1)}}}}}}var ps=["v-bind:",":"],Fn=/[\s'"`;]+/g,us=/<[^>\s]*\s((?:'.*?'|".*?"|`.*?`|\{.*?\}|[^>]*?)*)/g,ms=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.~<]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms,Ur=["placeholder","fill","opacity","stroke-opacity"];function Ln(e){let t=e?.ignoreAttributes??Ur,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(us)).flatMap(i=>Array.from((i[1]||"").matchAll(ms))).flatMap(([,i,...a])=>{let s=a.filter(Boolean).join("");if(t.includes(i))return[];for(let c of ps)if(i.startsWith(c)){i=i.slice(c.length);break}if(!s){if(Ee(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?s.split(Fn).filter(Ee):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:s.split(Fn).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}var ds=(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??Ur;let t=[Pn(e)],r=[Ln(e)],n=[Un(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},Nn=ds;var gs=/\/\/#\s*sourceMappingURL=.*\n?/g;function Wn(e){return e.includes("sourceMappingURL=")?e.replace(gs,""):e}var hs=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,bs=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,xs=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function ys(e){let t=[];for(let r of e.matchAll(bs))r.index!==0&&!e[r.index-1]?.match(/^[\s'"`]/)||t.push(r[0]);for(let r of e.matchAll(hs))t.push(r[0]);return e.split(Qe).forEach(r=>{Ee(r)&&!xs.test(r)&&t.push(r)}),t}var Dn={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return ys(Wn(e))}};var Bn=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=be(Object.entries(e.theme.preflightBase));return V(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];var F={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Fr={...F,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Lr={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},nt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},In=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],M=Object.assign({},...In.map(e=>({[e.replace(/ /,"-")]:e})),...In.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),C=["inherit","initial","revert","revert-layer","unset"],Nr=/(?:calc|clamp|min|max)\s*\(.*\)/;function xe(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,a=0;for(let s=0;s<n;s++)switch(e[s]){case t:i||(i=!0,a=s),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(a,s+1),e.slice(s+1),e.slice(0,a)];break}}function Wr(e,t,r,n){if(e===""||(O(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let a=0;a<o;a++)switch(e[a]){case t:i++;break;case r:if(--i<0)return;break;default:for(let s of n){let c=s.length;if(c&&s===e.slice(a,a+c)&&i===0)return a===0||a===o-c?void 0:[e.slice(0,a),e.slice(a+c)]}}return[e,""]}function ce(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Wr(e,"(",")",t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var Dr=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Gn=["%alpha","<alpha-value>"],vs=new RegExp(Gn.map(e=>ne(e)).join("|"));function Y(e=""){let t=ws(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Dr.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(a=>typeof a=="string"?a.trim():a),alpha:typeof o=="string"?o.trim():o}}function J(e){let t=e.alpha??1;return typeof t=="string"&&Gn.includes(t)?1:t}function _(e,t){if(typeof e=="string")return e.replace(vs,`${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}`,Dr.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function ws(e){if(!e)return;let t=$s(e);if(t!=null||(t=ks(e),t!=null)||(t=Ss(e),t!=null)||(t=Rs(e),t!=null)||(t=Ts(e),t!=null))return t}function $s(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ks(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Ss(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,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 Cs=new RegExp(`^(${Dr.join("|")})\\((.+)\\)$`,"i");function Rs(e){let t=e.match(Cs);if(!t)return;let[,r,n]=t,o=Hn(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Ts(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Hn(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Hn(e){let t=ce(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=ce(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}}function ot(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let a=e[i](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}function D(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${ne(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,...t(a)})}},autocomplete:`${e}:`}}function L(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${ne(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,parent:`${a.parent?`${a.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function oe(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=xe(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function N(e,t,r){if(t.startsWith(e)){let n=oe(e,t,r);if(n){let[o="",i=n[1]]=N("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=t.indexOf(o,e.length);if(i!==-1){let a=t.indexOf("/",e.length),s=a===-1||i<=a;return[t.slice(e.length,s?i:a),t.slice(i+o.length),s?"":t.slice(a+1,i)]}}}}var Es=",".charCodeAt(0),zs=";".charCodeAt(0),Kn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qn=new Uint8Array(64),js=new Uint8Array(128);for(let e=0;e<Kn.length;e++){let t=Kn.charCodeAt(e);qn[e]=t,js[t]=e}var Br=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}};function Yn(e){let t=new Int32Array(5),r=1024*16,n=r-36,o=new Uint8Array(r),i=o.subarray(0,n),a=0,s="";for(let c=0;c<e.length;c++){let l=e[c];if(c>0&&(a===r&&(s+=Br.decode(o),a=0),o[a++]=zs),l.length!==0){t[0]=0;for(let p=0;p<l.length;p++){let u=l[p];a>n&&(s+=Br.decode(i),o.copyWithin(0,n,a),a-=n),p>0&&(o[a++]=Es),a=je(o,a,t,u,0),u.length!==1&&(a=je(o,a,t,u,1),a=je(o,a,t,u,2),a=je(o,a,t,u,3),u.length!==4&&(a=je(o,a,t,u,4)))}}}return s+Br.decode(o.subarray(0,a))}function je(e,t,r,n,o){let i=n[o],a=i-r[o];r[o]=i,a=a<0?-a<<1|1:a<<1;do{let s=a&31;a>>>=5,a>0&&(s|=32),e[t++]=qn[s]}while(a>0);return t}var it=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))}},at=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}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 Os(){return typeof window<"u"&&typeof window.btoa=="function"?e=>window.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 As=Os(),Ir=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Yn(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+As(this.toString())}};function Vs(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,a)=>{let s=/^ +/.exec(a)[0].length;return Math.min(s,i)},1/0);return new Array(o+1).join(" ")}function _s(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 Ps=Object.prototype.toString;function Ms(e){return Ps.call(e)==="[object Object]"}function Xn(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,a=r.length;for(;i<a;){let l=i+a>>1;o<r[l]?a=l:i=l+1}let s=i-1,c=o-r[s];return{line:s,column:c}}}var Us=/\w/,Gr=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.indexOf(`
|
package/mini.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Ii=Object.defineProperty;var Bi=(t,e)=>{for(var r in e)Ii(t,r,{get:e[r],enumerable:!0})};function H(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var Ve=Z;function j(t=[]){return Array.isArray(t)?t:[t]}function ee(t){return Array.from(new Set(t))}function Pt(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function A(t){return typeof t=="string"}function te(t){return A(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Mt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>te(e)):[t]:[te(t)]}function Ki(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function re(t){return t==null?"":Ki(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function ze(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return ze(n)&&ze(i)&&Object.keys(i).forEach(s=>{ze(n[s])&&ze(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=rt(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function ue(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?ue(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ue(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ue(n):n;return r}return t}function _t(t){return A(t[0])}function Lt(t){return A(t[0])}var Hi=/^\[(.+?)~?="(.*)"\]$/;var Gi=/[\w\u00A0-\uFFFF-_:%-?]/,nt="$$shortcut-no-merge";function Ut(t){return t.match(Hi)}function fe(t=""){return Gi.test(t)}function Ft(t){return typeof t=="function"?{match:t}:t}function it(t){return t.length===3}function Nt(t){return t!=null}function Wt(){}var Pe=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.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(([i,o])=>e(o,r,i)))}};var pe=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 Me(t){return t instanceof pe}var _e={};function qi(t=["-",":"]){let e=t.join("|");return _e[e]||(_e[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),_e[e].lastIndex=0,_e[e]}function Yi(t,e=["-",":"],r=5){let n=qi(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(c,f,p,m,h)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let y=h+f.length+p.length+1,S={length:c.length,items:[]};a.set(h,S);for(let b of[...m.matchAll(/\S+/g)]){let v=y+b.index,g=a.get(v)?.items;g?a.delete(v):g=[{offset:v,length:b[0].length,className:b[0]}];for(let k of g)k.className=k.className==="~"?f:k.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),S.items.push(k)}return"$".repeat(c.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(m=>m.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:a,get expanded(){return l.toString()}}}function Dt(t,e=["-",":"],r=5){let n=Yi(t,e,r);return typeof t=="string"?n.expanded:t}var It=new Set;function G(t){It.has(t)||(console.warn("[unocss]",t),It.add(t))}var Le=/[\\:]?[\s'"`;{}]+/g;function Zi(t){return t.split(Le)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Zi(t)}};function Bt(){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 Fe="default",Ne="preflights",Xi="shortcuts",Ji="imports",Kt={[Ji]:-200,[Ne]:-100,[Xi]:-10,[Fe]:0};function Gt(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ht="_uno_resolved";function Qi(t){let e=typeof t=="function"?t():t;if(Ht in e)return e;e={...e},Object.defineProperty(e,Ht,{value:!0,enumerable:!1});let r=e.shortcuts?Gt(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=j(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function qt(t){let e=Qi(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(j).flatMap(qt);return[e,...r]}function ot(t={},e={}){let r=Object.assign({},e,t),n=Pt((r.presets||[]).flatMap(j).flatMap(qt),(d,w)=>d.name===w.name),i=[...n.filter(d=>d.enforce==="pre"),...n.filter(d=>!d.enforce),...n.filter(d=>d.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Kt,...o.map(d=>d.layers));function l(d){return ee(o.flatMap(w=>j(w[d]||[])))}let c=l("extractors"),f=s.find(d=>d.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!c.includes(f)&&c.unshift(f),c.sort((d,w)=>(d.order||0)-(w.order||0));let p=l("rules"),m={},h=p.length,y=p.map((d,w)=>{if(_t(d)){j(d[2]?.prefix||"").forEach(V=>{m[V+d[0]]=[w,d[1],d[2],d]});return}return[w,...d]}).filter(Boolean).reverse(),S=eo(o.map(d=>d.theme)),b=l("extendTheme");for(let d of b)S=d(S)||S;let v={templates:ee(o.flatMap(d=>j(d.autocomplete?.templates))),extractors:o.flatMap(d=>j(d.autocomplete?.extractors)).sort((d,w)=>(d.order||0)-(w.order||0)),shorthands:to(o.map(d=>d.autocomplete?.shorthands||{}))},g=l("separators");g.length||(g=[":","-"]);let k={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:d=>d,...r,presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:S,rulesSize:h,rulesDynamic:y,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:v,variants:l("variants").map(Ft).sort((d,w)=>(d.order||0)-(w.order||0)),shortcuts:Gt(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:g,details:r.details??r.envMode==="dev"};for(let d of o)d?.configResolved?.(k);return k}function eo(t){return t.map(e=>e?ue(e):{}).reduce((e,r)=>rt(e,r),{})}function to(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}var Yt="0.57.
|
|
1
|
+
"use strict";(()=>{var Ii=Object.defineProperty;var Bi=(t,e)=>{for(var r in e)Ii(t,r,{get:e[r],enumerable:!0})};function H(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var Ve=Z;function j(t=[]){return Array.isArray(t)?t:[t]}function ee(t){return Array.from(new Set(t))}function Pt(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function A(t){return typeof t=="string"}function te(t){return A(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Mt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>te(e)):[t]:[te(t)]}function Ki(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function re(t){return t==null?"":Ki(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function ze(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return ze(n)&&ze(i)&&Object.keys(i).forEach(s=>{ze(n[s])&&ze(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=rt(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function ue(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?ue(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ue(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ue(n):n;return r}return t}function _t(t){return A(t[0])}function Lt(t){return A(t[0])}var Hi=/^\[(.+?)~?="(.*)"\]$/;var Gi=/[\w\u00A0-\uFFFF-_:%-?]/,nt="$$shortcut-no-merge";function Ut(t){return t.match(Hi)}function fe(t=""){return Gi.test(t)}function Ft(t){return typeof t=="function"?{match:t}:t}function it(t){return t.length===3}function Nt(t){return t!=null}function Wt(){}var Pe=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.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(([i,o])=>e(o,r,i)))}};var pe=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 Me(t){return t instanceof pe}var _e={};function qi(t=["-",":"]){let e=t.join("|");return _e[e]||(_e[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),_e[e].lastIndex=0,_e[e]}function Yi(t,e=["-",":"],r=5){let n=qi(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(c,f,p,m,h)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let y=h+f.length+p.length+1,S={length:c.length,items:[]};a.set(h,S);for(let b of[...m.matchAll(/\S+/g)]){let v=y+b.index,g=a.get(v)?.items;g?a.delete(v):g=[{offset:v,length:b[0].length,className:b[0]}];for(let k of g)k.className=k.className==="~"?f:k.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),S.items.push(k)}return"$".repeat(c.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(m=>m.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:a,get expanded(){return l.toString()}}}function Dt(t,e=["-",":"],r=5){let n=Yi(t,e,r);return typeof t=="string"?n.expanded:t}var It=new Set;function G(t){It.has(t)||(console.warn("[unocss]",t),It.add(t))}var Le=/[\\:]?[\s'"`;{}]+/g;function Zi(t){return t.split(Le)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Zi(t)}};function Bt(){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 Fe="default",Ne="preflights",Xi="shortcuts",Ji="imports",Kt={[Ji]:-200,[Ne]:-100,[Xi]:-10,[Fe]:0};function Gt(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ht="_uno_resolved";function Qi(t){let e=typeof t=="function"?t():t;if(Ht in e)return e;e={...e},Object.defineProperty(e,Ht,{value:!0,enumerable:!1});let r=e.shortcuts?Gt(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=j(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function qt(t){let e=Qi(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(j).flatMap(qt);return[e,...r]}function ot(t={},e={}){let r=Object.assign({},e,t),n=Pt((r.presets||[]).flatMap(j).flatMap(qt),(d,w)=>d.name===w.name),i=[...n.filter(d=>d.enforce==="pre"),...n.filter(d=>!d.enforce),...n.filter(d=>d.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Kt,...o.map(d=>d.layers));function l(d){return ee(o.flatMap(w=>j(w[d]||[])))}let c=l("extractors"),f=s.find(d=>d.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!c.includes(f)&&c.unshift(f),c.sort((d,w)=>(d.order||0)-(w.order||0));let p=l("rules"),m={},h=p.length,y=p.map((d,w)=>{if(_t(d)){j(d[2]?.prefix||"").forEach(V=>{m[V+d[0]]=[w,d[1],d[2],d]});return}return[w,...d]}).filter(Boolean).reverse(),S=eo(o.map(d=>d.theme)),b=l("extendTheme");for(let d of b)S=d(S)||S;let v={templates:ee(o.flatMap(d=>j(d.autocomplete?.templates))),extractors:o.flatMap(d=>j(d.autocomplete?.extractors)).sort((d,w)=>(d.order||0)-(w.order||0)),shorthands:to(o.map(d=>d.autocomplete?.shorthands||{}))},g=l("separators");g.length||(g=[":","-"]);let k={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:d=>d,...r,presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:S,rulesSize:h,rulesDynamic:y,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:v,variants:l("variants").map(Ft).sort((d,w)=>(d.order||0)-(w.order||0)),shortcuts:Gt(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:g,details:r.details??r.envMode==="dev"};for(let d of o)d?.configResolved?.(k);return k}function eo(t){return t.map(e=>e?ue(e):{}).reduce((e,r)=>rt(e,r),{})}function to(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}var Yt="0.57.3";var st=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ot(e,r),this.events.emit("config",this.config)}version=Yt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Bt();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ot(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(Me(s)&&Me(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,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),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 i=e;for(let c of this.config.preprocess)i=c(e);if(this.isBlocked(i)){this.blocked.add(e),this._cache.set(n,null);return}let o=await this.matchVariants(e,i);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(n,null);return}let s=this.makeContext(e,[r||o[0],o[1],o[2],o[3]]);this.config.details&&(s.variants=[...o[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(c=>this.stringifyUtil(c,s)).filter(Nt);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=A(e)?await this.applyExtractors(e,n,l?new pe:new Set):Array.isArray(e)?new Set(e):e;s&&this.config.safelist.forEach(d=>{c.has(d)||c.add(d)});let f=a?"":`
|
|
2
2
|
`,p=new Set([Fe]),m=l?new Map:new Set,h=new Map,y={},S=Array.from(c).map(async d=>{if(m.has(d))return;let w=await this.parseToken(d);if(w!=null){m instanceof Map?m.set(d,{data:w,count:Me(c)?c.getCount(d):-1}):m.add(d);for(let R of w){let V=R[3]||"",_=R[4]?.layer;h.has(V)||h.set(V,[]),h.get(V).push(R),_&&p.add(_)}}});await Promise.all(S),await(async()=>{if(!o)return;let d={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:R=Ne})=>{p.add(R),w.add(R)}),y=Object.fromEntries(await Promise.all(Array.from(w).map(async R=>{let _=(await Promise.all(this.config.preflights.filter(I=>(I.layer||Ne)===R).map(async I=>await I.getCSS(d)))).filter(Boolean).join(f);return[R,_]})))})();let b=this.config.sortLayers(Array.from(p).sort((d,w)=>(this.config.layers[d]??0)-(this.config.layers[w]??0)||d.localeCompare(w))),v={},g=d=>{if(v[d])return v[d];let w=Array.from(h).sort((V,_)=>(this.parentOrders.get(V[0])??0)-(this.parentOrders.get(_[0])??0)||V[0]?.localeCompare(_[0]||"")||0).map(([V,_])=>{let I=_.length,Q=_.filter(x=>(x[4]?.layer||Fe)===d).sort((x,C)=>x[0]-C[0]||(x[4]?.sort||0)-(C[4]?.sort||0)||x[5]?.currentSelector?.localeCompare(C[5]?.currentSelector??"")||x[1]?.localeCompare(C[1]||"")||x[2]?.localeCompare(C[2]||"")||0).map(([,x,C,,P,,L])=>[[[(x&&oo(x,i))??"",P?.sort??0]],C,!!(L??P?.noMerge)]);if(!Q.length)return;let Oe=Q.reverse().map(([x,C,P],L)=>{if(!P&&this.config.mergeSelectors)for(let K=L+1;K<I;K++){let W=Q[K];if(W&&!W[2]&&(x&&W[0]||x==null&&W[0]==null)&&W[1]===C)return x&&W[0]&&W[0].push(...x),null}let B=x?ee(x.sort((K,W)=>K[1]-W[1]||K[0]?.localeCompare(W[0]||"")||0).map(K=>K[0]).filter(Boolean)):[];return B.length?`${B.join(`,${f}`)}{${C}}`:C}).filter(Boolean).reverse().join(f);if(!V)return Oe;let $=V.split(" $$ ");return`${$.join("{")}{${f}${Oe}${f}${"}".repeat($.length)}`}).filter(Boolean).join(f);o&&(w=[y[d],w].filter(Boolean).join(f));let R=a?"":`/* layer: ${d} */${f}`;return v[d]=w?R+w:""},k=(d=b,w)=>d.filter(R=>!w?.includes(R)).map(R=>g(R)||"").filter(Boolean).join(f);return{get css(){return k()},layers:b,matched:m,getLayers:k,getLayer:g}}async matchVariants(e,r){let n=new Set,i=[],o=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 c=await l.match(o,a);if(c){if(A(c)){if(c===o)continue;c={matcher:c}}o=c.matcher,i.unshift(c),n.add(l),s=!0;break}}if(!s)break;if(i.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,o,i,n]}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let m=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??ao)({...p,entries:m,selector:f.selector?.(p.selector,m)||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:so(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=o;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:s,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(e,r,n){let i=te(r);if(A(i))return i;let{selector:o,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),l=`${o}{${re(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,i){let[o,s,a]=A(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=te(l[1]),m=l[2];return A(p)?[[f,p,m]]:[[f,o,p,m,a]]}r.variantHandlers=a;let{rulesDynamic:c}=this.config;for(let[f,p,m,h]of c){if(h?.internal&&!n)continue;let y=s;if(h?.prefix){let g=j(h.prefix);if(i){let k=j(i);if(!g.some(d=>k.includes(d)))continue}else{let k=g.find(d=>s.startsWith(d));if(k==null)continue;y=s.slice(k.length)}}let S=y.match(p);if(!S)continue;let b=await m(S,r);if(!b)continue;this.config.details&&r.rules.push([p,m,h]);let v=Mt(b).filter(g=>g.length);if(v.length)return v.map(g=>A(g)?[f,g,h]:[f,o,g,h,a])}}stringifyUtil(e,r){if(!e)return;if(it(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:i,parent:o,layer:s,sort:a,noMerge:l}=this.applyVariants(e),c=re(i);if(!c)return;let{layer:f,sort:p,...m}=e[3]??{},h={...m,layer:s??f,sort:a??p};return[e[0],n,c,o,h,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let i=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Wt,o,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=j(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(Lt(a)){if(a[0]===l){o=o||a[2],s=a[1],i(a);break}}else{let c=l.match(a[0]);if(c&&(s=a[1](c,r)),s){o=o||a[2],i(a);break}}}if(A(s)&&(s=Dt(s.trim()).split(/\s+/g)),!s){let[a,l]=A(e)?await this.matchVariants(e):e;if(a!==l){let c=await this.expandShortcut(l,r,n-1);c&&(s=c[0].map(f=>A(f)?a.replace(l,f):f))}}if(s)return[(await Promise.all(s.map(async a=>(A(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){let o=new Pe,s=(await Promise.all(ee(n).map(async f=>{let p=A(f)?await this.parseUtil(f,r,!0,i.prefix):[[Number.POSITIVE_INFINITY,"{inline}",te(f),void 0,[]]];return!p&&this.config.warn&&G(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,c=[];for(let f of s){if(it(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:m,parent:h,sort:y,noMerge:S}=this.applyVariants(f,[...f[4],...l],a);o.getFallback(p,h,[[],f[0]])[0].push([m,!!(S??f[3]?.noMerge),y??0])}return c.concat(o.map(([f,p],m,h)=>{let y=(b,v,g)=>{let k=Math.max(...g.map(w=>w[1])),d=g.map(w=>w[0]);return(b?[d.flat(1)]:d).map(w=>{let R=re(w);if(R)return[p,m,R,h,{...i,noMerge:v,sort:k},r,void 0]})};return[[f.filter(([,b])=>b).map(([b,,v])=>[b,v]),!0],[f.filter(([,b])=>!b).map(([b,,v])=>[b,v]),!1]].map(([b,v])=>[...y(!1,v,b.filter(([g])=>g.some(k=>k[0]===nt))),...y(!0,v,b.filter(([g])=>g.every(k=>k[0]!==nt)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="function"?r(e):A(r)?r===e:r.test(e))}};function Xt(t,e){return new st(t,e)}var no=/\s\$\$\s+/g;function io(t){return t.match(/\s\$\$\s/)}function oo(t,e){return io(t)?t.replace(no,e?` ${e} `:" "):e?`${e} ${t}`:t}var Zt=/^\[(.+?)(~?=)"(.*)"\]$/;function so(t){return Zt.test(t)?t.replace(Zt,(e,r,n,i)=>`[${Ve(r)}${n}"${Ve(i)}"]`):`.${Ve(t)}`}function ao(t,e){return e(t)}var lo=/\/\/#\s*sourceMappingURL=.*\n?/g;function Jt(t){return t.includes("sourceMappingURL=")?t.replace(lo,""):t}var co=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,uo=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,fo=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function po(t){let e=[];for(let r of t.matchAll(uo))r.index!==0&&!t[r.index-1]?.match(/^[\s'"`]/)||e.push(r[0]);for(let r of t.matchAll(co))e.push(r[0]);return t.split(Le).forEach(r=>{fe(r)&&!fo.test(r)&&e.push(r)}),e}var Qt={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return po(Jt(t))}};var er=[{layer:"preflights",getCSS(t){if(t.theme.preflightBase){let e=re(Object.entries(t.theme.preflightBase));return j(t.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${e}}`).join("")}}}];var U={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},at={...U,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},lt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},We={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},tr=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],de=Object.assign({},...tr.map(t=>({[t.replace(/ /,"-")]:t})),...tr.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),E=["inherit","initial","revert","revert-layer","unset"],ct=/(?:calc|clamp|min|max)\s*\(.*\)/;function ne(t,e,r){if(t==="")return;let n=t.length,i=0,o=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:o||(o=!0,s=a),i++;break;case r:if(--i,i<0)return;if(i===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function ut(t,e,r,n){if(t===""||(A(n)&&(n=[n]),n.length===0))return;let i=t.length,o=0;for(let s=0;s<i;s++)switch(t[s]){case e:o++;break;case r:if(--o<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&o===0)return s===0||s===i-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function ie(t,e,r){r=r??10;let n=[],i=0;for(;t!=="";){if(++i>r)return;let o=ut(t,"(",")",e);if(!o)return;let[s,a]=o;n.push(s),t=a}if(n.length>0)return n}var ft=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],rr=["%alpha","<alpha-value>"],mo=new RegExp(rr.map(t=>H(t)).join("|"));function me(t=""){let e=ho(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:i}=e,o=r.toLowerCase();if(n.length!==0&&!(ft.includes(o)&&![1,3].includes(n.length)))return{type:o,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof i=="string"?i.trim():i}}function he(t){let e=t.alpha??1;return typeof e=="string"&&rr.includes(e)?1:e}function F(t,e){if(typeof t=="string")return t.replace(mo,`${e??1}`);let{components:r}=t,{alpha:n,type:i}=t;return n=e??n,i=i.toLowerCase(),["hsla","rgba"].includes(i)?`${i}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,ft.includes(i)?`${i}(${r.join(" ")}${n})`:`color(${i} ${r.join(" ")}${n})`)}function ho(t){if(!t)return;let e=go(t);if(e!=null||(e=bo(t),e!=null)||(e=xo(t),e!=null)||(e=wo(t),e!=null)||(e=$o(t),e!=null))return e}function go(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,i=>Number.parseInt(i,16)).map(i=>i<<4|i);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 bo(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function xo(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,i=ie(n,",",5);if(i){if([3,4].includes(i.length))return{type:r,components:i.slice(0,3),alpha:i[3]};if(i.length!==1)return!1}}var yo=new RegExp(`^(${ft.join("|")})\\((.+)\\)$`,"i");function wo(t){let e=t.match(yo);if(!e)return;let[,r,n]=e,i=nr(`${r} ${n}`);if(i){let{alpha:o,components:[s,...a]}=i;return{type:s,components:a,alpha:o}}}function $o(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=nr(e[1]);if(r){let{alpha:n,components:[i,...o]}=r;return{type:i,components:o,alpha:n}}}function nr(t){let e=ie(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 o=e.splice(r-2);e.push(o.join(" ")),--r}let n=ie(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let i=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:i}}function ir(t){let e=function(n){let i=this.__options?.sequence||[];this.__options.sequence=[];for(let o of i){let s=t[o](n);if(s!=null)return s}};function r(n,i){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(i),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}function oe(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${H(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,...e(s)})}},autocomplete:`${t}:`}}function ge(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${H(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function q(t,e,r){if(e.startsWith(`${t}[`)){let[n,i]=ne(e.slice(t.length),"[","]")??[];if(n&&i){for(let o of r)if(i.startsWith(o))return[n,i.slice(o.length),o];return[n,i,""]}}}function z(t,e,r){if(e.startsWith(t)){let n=q(t,e,r);if(n){let[i="",o=n[1]]=z("/",n[1],r)??[];return[n[0],o,i]}for(let i of r.filter(o=>o!=="/")){let o=e.indexOf(i,t.length);if(o!==-1){let s=e.indexOf("/",t.length),a=s===-1||o<=s;return[e.slice(t.length,a?o:s),e.slice(o+i.length),a?"":e.slice(s+1,o)]}}}}var So=",".charCodeAt(0),vo=";".charCodeAt(0),or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sr=new Uint8Array(64),ko=new Uint8Array(128);for(let t=0;t<or.length;t++){let e=or.charCodeAt(t);sr[t]=e,ko[e]=t}var pt=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}};function ar(t){let e=new Int32Array(5),r=1024*16,n=r-36,i=new Uint8Array(r),o=i.subarray(0,n),s=0,a="";for(let l=0;l<t.length;l++){let c=t[l];if(l>0&&(s===r&&(a+=pt.decode(i),s=0),i[s++]=vo),c.length!==0){e[0]=0;for(let f=0;f<c.length;f++){let p=c[f];s>n&&(a+=pt.decode(o),i.copyWithin(0,n,s),s-=n),f>0&&(i[s++]=So),s=be(i,s,e,p,0),p.length!==1&&(s=be(i,s,e,p,1),s=be(i,s,e,p,2),s=be(i,s,e,p,3),p.length!==4&&(s=be(i,s,e,p,4)))}}}return a+pt.decode(i.subarray(0,s))}function be(t,e,r,n,i){let o=n[i],s=o-r[i];r[i]=o,s=s<0?-s<<1|1:s<<1;do{let a=s&31;s>>>=5,s>0&&(a|=32),t[e++]=sr[a]}while(s>0);return e}var De=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))}},Ie=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}split(e){let r=e-this.start,n=this.original.slice(0,r),i=this.original.slice(r);this.original=n;let o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=n,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}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 Co(){return typeof window<"u"&&typeof window.btoa=="function"?t=>window.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 Ro=Co(),dt=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=ar(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,"+Ro(this.toString())}};function Eo(t){let e=t.split(`
|
|
3
3
|
`),r=e.filter(o=>/^\t+/.test(o)),n=e.filter(o=>/^ {2,}/.test(o));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let i=n.reduce((o,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,o)},1/0);return new Array(i+1).join(" ")}function To(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let i=r.length;for(;i--;)r[i]=".."}return r.concat(n).join("/")}var jo=Object.prototype.toString;function Ao(t){return jo.call(t)==="[object Object]"}function lr(t){let e=t.split(`
|
|
4
4
|
`),r=[];for(let n=0,i=0;n<e.length;n++)r.push(i),i+=e[n].length+1;return function(i){let o=0,s=r.length;for(;o<s;){let c=o+s>>1;i<r[c]?s=c:o=c+1}let a=o-1,l=i-r[a];return{line:a,column:l}}}var Oo=/\w/,mt=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,i){if(r.length){let o=r.indexOf(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.3",
|
|
4
4
|
"description": "CSS-in-JS Runtime for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.57.
|
|
39
|
-
"@unocss/preset-attributify": "0.57.
|
|
40
|
-
"@unocss/preset-uno": "0.57.
|
|
38
|
+
"@unocss/core": "0.57.3",
|
|
39
|
+
"@unocss/preset-attributify": "0.57.3",
|
|
40
|
+
"@unocss/preset-uno": "0.57.3"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",
|
package/uno.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Ta=Object.defineProperty;var Ea=(e,t)=>{for(var r in t)Ta(e,r,{get:t[r],enumerable:!0})};function ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(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 He=Z;function _(e=[]){return Array.isArray(e)?e:[e]}function ge(e){return Array.from(new Set(e))}function un(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function j(e){return typeof e=="string"}function he(e){return j(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function pn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>he(t)):[e]:[he(e)]}function za(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 be(e){return e==null?"":za(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ke(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Er(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 Ke(n)&&Ke(o)&&Object.keys(o).forEach(a=>{Ke(n[a])&&Ke(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=Er(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function mn(e){return j(e[0])}function dn(e){return j(e[0])}var ja=/[\w\u00A0-\uFFFF-_:%-?]/,zr="$$shortcut-no-merge";function gn(e=""){return ja.test(e)}function hn(e){return typeof e=="function"?{match:e}:e}function jr(e){return e.length===3}function bn(e){return e!=null}function xn(){}var qe=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)))}};var Te=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}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 Ye(e){return e instanceof Te}var Xe={};function Oa(e=["-",":"]){let t=e.join("|");return Xe[t]||(Xe[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Xe[t].lastIndex=0,Xe[t]}function _a(e,t=["-",":"],r=5){let n=Oa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(f,u,p,d,g)=>{if(!t.includes(p))return f;o=!0,a.add(u+p);let $=g+u.length+p.length+1,R={length:f.length,items:[]};s.set(g,R);for(let y of[...d.matchAll(/\S+/g)]){let k=$+y.index,S=s.get(k)?.items;S?s.delete(k):S=[{offset:k,length:y[0].length,className:y[0]}];for(let z of S)z.className=z.className==="~"?u:z.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),R.items.push(z)}return"$".repeat(f.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let f=0;for(let[u,p]of s)l+=e.slice(f,u),l+=p.items.map(d=>d.className).join(" "),f=u+p.length;l+=e.slice(f)}else{l=e;for(let[f,u]of s)l.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return l.toString()}}}function yn(e,t=["-",":"],r=5){let n=_a(e,t,r);return typeof e=="string"?n.expanded:e}var vn=new Set;function q(e){vn.has(e)||(console.warn("[unocss]",e),vn.add(e))}var Ze=/[\\:]?[\s'"`;{}]+/g;function Aa(e){return e.split(Ze)}var Je={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Aa(e)}};function wn(){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 Qe="default",et="preflights",Va="shortcuts",Pa="imports",kn={[Pa]:-200,[et]:-100,[Va]:-10,[Qe]:0};function Sn(e){return _(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var $n="_uno_resolved";function Ma(e){let t=typeof e=="function"?e():e;if($n in t)return t;t={...t},Object.defineProperty(t,$n,{value:!0,enumerable:!1});let r=t.shortcuts?Sn(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=_(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function Cn(e){let t=Ma(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(_).flatMap(Cn);return[t,...r]}function Or(e={},t={}){let r=Object.assign({},t,e),n=un((r.presets||[]).flatMap(_).flatMap(Cn),(m,v)=>m.name===v.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},kn,...i.map(m=>m.layers));function l(m){return ge(i.flatMap(v=>_(v[m]||[])))}let f=l("extractors"),u=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Je),u&&!f.includes(u)&&f.unshift(u),f.sort((m,v)=>(m.order||0)-(v.order||0));let p=l("rules"),d={},g=p.length,$=p.map((m,v)=>{if(mn(m)){_(m[2]?.prefix||"").forEach(U=>{d[U+m[0]]=[v,m[1],m[2],m]});return}return[v,...m]}).filter(Boolean).reverse(),R=Ua(i.map(m=>m.theme)),y=l("extendTheme");for(let m of y)R=m(R)||R;let k={templates:ge(i.flatMap(m=>_(m.autocomplete?.templates))),extractors:i.flatMap(m=>_(m.autocomplete?.extractors)).sort((m,v)=>(m.order||0)-(v.order||0)),shorthands:La(i.map(m=>m.autocomplete?.shorthands||{}))},S=l("separators");S.length||(S=[":","-"]);let z={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:R,rulesSize:g,rulesDynamic:$,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:k,variants:l("variants").map(hn).sort((m,v)=>(m.order||0)-(v.order||0)),shortcuts:Sn(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:S,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(z);return z}function Ua(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>Er(t,r),{})}function La(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}},{})}var Rn="0.57.
|
|
1
|
+
"use strict";(()=>{var Ta=Object.defineProperty;var Ea=(e,t)=>{for(var r in t)Ta(e,r,{get:t[r],enumerable:!0})};function ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(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 He=Z;function _(e=[]){return Array.isArray(e)?e:[e]}function ge(e){return Array.from(new Set(e))}function un(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function j(e){return typeof e=="string"}function he(e){return j(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function pn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>he(t)):[e]:[he(e)]}function za(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 be(e){return e==null?"":za(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ke(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Er(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 Ke(n)&&Ke(o)&&Object.keys(o).forEach(a=>{Ke(n[a])&&Ke(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=Er(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function mn(e){return j(e[0])}function dn(e){return j(e[0])}var ja=/[\w\u00A0-\uFFFF-_:%-?]/,zr="$$shortcut-no-merge";function gn(e=""){return ja.test(e)}function hn(e){return typeof e=="function"?{match:e}:e}function jr(e){return e.length===3}function bn(e){return e!=null}function xn(){}var qe=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)))}};var Te=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}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 Ye(e){return e instanceof Te}var Xe={};function Oa(e=["-",":"]){let t=e.join("|");return Xe[t]||(Xe[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Xe[t].lastIndex=0,Xe[t]}function _a(e,t=["-",":"],r=5){let n=Oa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(f,u,p,d,g)=>{if(!t.includes(p))return f;o=!0,a.add(u+p);let $=g+u.length+p.length+1,R={length:f.length,items:[]};s.set(g,R);for(let y of[...d.matchAll(/\S+/g)]){let k=$+y.index,S=s.get(k)?.items;S?s.delete(k):S=[{offset:k,length:y[0].length,className:y[0]}];for(let z of S)z.className=z.className==="~"?u:z.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),R.items.push(z)}return"$".repeat(f.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let f=0;for(let[u,p]of s)l+=e.slice(f,u),l+=p.items.map(d=>d.className).join(" "),f=u+p.length;l+=e.slice(f)}else{l=e;for(let[f,u]of s)l.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return l.toString()}}}function yn(e,t=["-",":"],r=5){let n=_a(e,t,r);return typeof e=="string"?n.expanded:e}var vn=new Set;function q(e){vn.has(e)||(console.warn("[unocss]",e),vn.add(e))}var Ze=/[\\:]?[\s'"`;{}]+/g;function Aa(e){return e.split(Ze)}var Je={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Aa(e)}};function wn(){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 Qe="default",et="preflights",Va="shortcuts",Pa="imports",kn={[Pa]:-200,[et]:-100,[Va]:-10,[Qe]:0};function Sn(e){return _(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var $n="_uno_resolved";function Ma(e){let t=typeof e=="function"?e():e;if($n in t)return t;t={...t},Object.defineProperty(t,$n,{value:!0,enumerable:!1});let r=t.shortcuts?Sn(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=_(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function Cn(e){let t=Ma(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(_).flatMap(Cn);return[t,...r]}function Or(e={},t={}){let r=Object.assign({},t,e),n=un((r.presets||[]).flatMap(_).flatMap(Cn),(m,v)=>m.name===v.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},kn,...i.map(m=>m.layers));function l(m){return ge(i.flatMap(v=>_(v[m]||[])))}let f=l("extractors"),u=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Je),u&&!f.includes(u)&&f.unshift(u),f.sort((m,v)=>(m.order||0)-(v.order||0));let p=l("rules"),d={},g=p.length,$=p.map((m,v)=>{if(mn(m)){_(m[2]?.prefix||"").forEach(U=>{d[U+m[0]]=[v,m[1],m[2],m]});return}return[v,...m]}).filter(Boolean).reverse(),R=Ua(i.map(m=>m.theme)),y=l("extendTheme");for(let m of y)R=m(R)||R;let k={templates:ge(i.flatMap(m=>_(m.autocomplete?.templates))),extractors:i.flatMap(m=>_(m.autocomplete?.extractors)).sort((m,v)=>(m.order||0)-(v.order||0)),shorthands:La(i.map(m=>m.autocomplete?.shorthands||{}))},S=l("separators");S.length||(S=[":","-"]);let z={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:R,rulesSize:g,rulesDynamic:$,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:k,variants:l("variants").map(hn).sort((m,v)=>(m.order||0)-(v.order||0)),shortcuts:Sn(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:S,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(z);return z}function Ua(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>Er(t,r),{})}function La(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}},{})}var Rn="0.57.3";var _r=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Or(t,r),this.events.emit("config",this.config)}version=Rn;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=wn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Or(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 a=await i.extract?.(o);if(a)if(Ye(a)&&Ye(n))for(let s of a)n.setCount(s,n.getCount(s)+a.getCount(s));else for(let s of a)n.add(s)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let f of this.config.preprocess)o=f(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=await this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(a.variants=[...i[3]]);let s=await this.expandShortcut(a.currentSelector,a),l=s?await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]):(await this.parseUtil(a.variantMatch,a))?.map(f=>this.stringifyUtil(f,a)).filter(bn);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:s=!1,extendedInfo:l=!1}=r,f=j(t)?await this.applyExtractors(t,n,l?new Te:new Set):Array.isArray(t)?new Set(t):t;a&&this.config.safelist.forEach(m=>{f.has(m)||f.add(m)});let u=s?"":`
|
|
2
2
|
`,p=new Set([Qe]),d=l?new Map:new Set,g=new Map,$={},R=Array.from(f).map(async m=>{if(d.has(m))return;let v=await this.parseToken(m);if(v!=null){d instanceof Map?d.set(m,{data:v,count:Ye(f)?f.getCount(m):-1}):d.add(m);for(let V of v){let U=V[3]||"",B=V[4]?.layer;g.has(U)||g.set(U,[]),g.get(U).push(V),B&&p.add(B)}}});await Promise.all(R),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},v=new Set([]);this.config.preflights.forEach(({layer:V=et})=>{p.add(V),v.add(V)}),$=Object.fromEntries(await Promise.all(Array.from(v).map(async V=>{let B=(await Promise.all(this.config.preflights.filter(ee=>(ee.layer||et)===V).map(async ee=>await ee.getCSS(m)))).filter(Boolean).join(u);return[V,B]})))})();let y=this.config.sortLayers(Array.from(p).sort((m,v)=>(this.config.layers[m]??0)-(this.config.layers[v]??0)||m.localeCompare(v))),k={},S=m=>{if(k[m])return k[m];let v=Array.from(g).sort((U,B)=>(this.parentOrders.get(U[0])??0)-(this.parentOrders.get(B[0])??0)||U[0]?.localeCompare(B[0]||"")||0).map(([U,B])=>{let ee=B.length,de=B.filter(b=>(b[4]?.layer||Qe)===m).sort((b,C)=>b[0]-C[0]||(b[4]?.sort||0)-(C[4]?.sort||0)||b[5]?.currentSelector?.localeCompare(C[5]?.currentSelector??"")||b[1]?.localeCompare(C[1]||"")||b[2]?.localeCompare(C[2]||"")||0).map(([,b,C,,W,,I])=>[[[(b&&Da(b,o))??"",W?.sort??0]],C,!!(I??W?.noMerge)]);if(!de.length)return;let Ge=de.reverse().map(([b,C,W],I)=>{if(!W&&this.config.mergeSelectors)for(let re=I+1;re<ee;re++){let K=de[re];if(K&&!K[2]&&(b&&K[0]||b==null&&K[0]==null)&&K[1]===C)return b&&K[0]&&K[0].push(...b),null}let te=b?ge(b.sort((re,K)=>re[1]-K[1]||re[0]?.localeCompare(K[0]||"")||0).map(re=>re[0]).filter(Boolean)):[];return te.length?`${te.join(`,${u}`)}{${C}}`:C}).filter(Boolean).reverse().join(u);if(!U)return Ge;let x=U.split(" $$ ");return`${x.join("{")}{${u}${Ge}${u}${"}".repeat(x.length)}`}).filter(Boolean).join(u);i&&(v=[$[m],v].filter(Boolean).join(u));let V=s?"":`/* layer: ${m} */${u}`;return k[m]=v?V+v:""},z=(m=y,v)=>m.filter(V=>!v?.includes(V)).map(V=>S(V)||"").filter(Boolean).join(u);return{get css(){return z()},layers:y,matched:d,getLayers:z,getLayer:S}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,a=!0,s={rawSelector:t,theme:this.config.theme,generator:this};for(;a;){a=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let f=await l.match(i,s);if(f){if(j(f)){if(f===i)continue;f={matcher:f}}i=f.matcher,o.unshift(f),n.add(l),a=!0;break}}if(!a)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((f,u)=>(f.order||0)-(u.order||0)).reduceRight((f,u)=>p=>{let d=u.body?.(p.entries)||p.entries,g=Array.isArray(u.parent)?u.parent:[u.parent,void 0];return(u.handle??Ia)({...p,entries:d,selector:u.selector?.(p.selector,d)||p.selector,parent:g[0]||p.parent,parentOrder:g[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.sort},f)},f=>f)({prefix:"",selector:Ba(n),pseudo:"",entries:t[2]}),{parent:a,parentOrder:s}=i;a!=null&&s!=null&&this.parentOrders.set(a,s);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:a,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let f of this.config.postprocess)f(l);return l}constructCustomCSS(t,r,n){let o=he(r);if(j(o))return o;let{selector:i,entries:a,parent:s}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${i}{${be(a)}}`;return s?`${s}{${l}}`:l}async parseUtil(t,r,n=!1,o){let[i,a,s]=j(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);let l=this.config.rulesStaticMap[a];if(l&&l[1]&&(n||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);let u=l[0],p=he(l[1]),d=l[2];return j(p)?[[u,p,d]]:[[u,i,p,d,s]]}r.variantHandlers=s;let{rulesDynamic:f}=this.config;for(let[u,p,d,g]of f){if(g?.internal&&!n)continue;let $=a;if(g?.prefix){let S=_(g.prefix);if(o){let z=_(o);if(!S.some(m=>z.includes(m)))continue}else{let z=S.find(m=>a.startsWith(m));if(z==null)continue;$=a.slice(z.length)}}let R=$.match(p);if(!R)continue;let y=await d(R,r);if(!y)continue;this.config.details&&r.rules.push([p,d,g]);let k=pn(y).filter(S=>S.length);if(k.length)return k.map(S=>j(S)?[u,S,g]:[u,i,S,g,s])}}stringifyUtil(t,r){if(!t)return;if(jr(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:a,sort:s,noMerge:l}=this.applyVariants(t),f=be(o);if(!f)return;let{layer:u,sort:p,...d}=t[3]??{},g={...d,layer:a??u,sort:s??p};return[t[0],n,f,i,g,this.config.details?r:void 0,l]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?s=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(s)}:xn,i,a;for(let s of this.config.shortcuts){let l=t;if(s[2]?.prefix){let u=_(s[2].prefix).find(p=>t.startsWith(p));if(u==null)continue;l=t.slice(u.length)}if(dn(s)){if(s[0]===l){i=i||s[2],a=s[1],o(s);break}}else{let f=l.match(s[0]);if(f&&(a=s[1](f,r)),a){i=i||s[2],o(s);break}}}if(j(a)&&(a=yn(a.trim()).split(/\s+/g)),!a){let[s,l]=j(t)?await this.matchVariants(t):t;if(s!==l){let f=await this.expandShortcut(l,r,n-1);f&&(a=f[0].map(u=>j(u)?s.replace(l,u):u))}}if(a)return[(await Promise.all(a.map(async s=>(j(s)?(await this.expandShortcut(s,r,n-1))?.[0]:void 0)||[s]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new qe,a=(await Promise.all(ge(n).map(async u=>{let p=j(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",he(u),void 0,[]]];return!p&&this.config.warn&&q(`unmatched utility "${u}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[0]),[s,,l]=t,f=[];for(let u of a){if(jr(u)){f.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let{selector:p,entries:d,parent:g,sort:$,noMerge:R}=this.applyVariants(u,[...u[4],...l],s);i.getFallback(p,g,[[],u[0]])[0].push([d,!!(R??u[3]?.noMerge),$??0])}return f.concat(i.map(([u,p],d,g)=>{let $=(y,k,S)=>{let z=Math.max(...S.map(v=>v[1])),m=S.map(v=>v[0]);return(y?[m.flat(1)]:m).map(v=>{let V=be(v);if(V)return[p,d,V,g,{...o,noMerge:k,sort:z},r,void 0]})};return[[u.filter(([,y])=>y).map(([y,,k])=>[y,k]),!0],[u.filter(([,y])=>!y).map(([y,,k])=>[y,k]),!1]].map(([y,k])=>[...$(!1,k,y.filter(([S])=>S.some(z=>z[0]===zr))),...$(!0,k,y.filter(([S])=>S.every(z=>z[0]!==zr)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="function"?r(t):j(r)?r===t:r.test(t))}};function En(e,t){return new _r(e,t)}var Na=/\s\$\$\s+/g;function Wa(e){return e.match(/\s\$\$\s/)}function Da(e,t){return Wa(e)?e.replace(Na,t?` ${t} `:" "):t?`${t} ${e}`:e}var Tn=/^\[(.+?)(~?=)"(.*)"\]$/;function Ba(e){return Tn.test(e)?e.replace(Tn,(t,r,n,o)=>`[${He(r)}${n}"${He(o)}"]`):`.${He(e)}`}function Ia(e,t){return t(e)}var Ga=/\/\/#\s*sourceMappingURL=.*\n?/g;function zn(e){return e.includes("sourceMappingURL=")?e.replace(Ga,""):e}var Ha=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,Ka=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,qa=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function Ya(e){let t=[];for(let r of e.matchAll(Ka))r.index!==0&&!e[r.index-1]?.match(/^[\s'"`]/)||t.push(r[0]);for(let r of e.matchAll(Ha))t.push(r[0]);return e.split(Ze).forEach(r=>{gn(r)&&!qa.test(r)&&t.push(r)}),t}var jn={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Ya(zn(e))}};var On=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=be(Object.entries(e.theme.preflightBase));return _(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];var L={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Ar={...L,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Vr={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},tt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},_n=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],M=Object.assign({},..._n.map(e=>({[e.replace(/ /,"-")]:e})),..._n.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),w=["inherit","initial","revert","revert-layer","unset"],Pr=/(?:calc|clamp|min|max)\s*\(.*\)/;function xe(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,a=0;for(let s=0;s<n;s++)switch(e[s]){case t:i||(i=!0,a=s),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(a,s+1),e.slice(s+1),e.slice(0,a)];break}}function Mr(e,t,r,n){if(e===""||(j(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let a=0;a<o;a++)switch(e[a]){case t:i++;break;case r:if(--i<0)return;break;default:for(let s of n){let l=s.length;if(l&&s===e.slice(a,a+l)&&i===0)return a===0||a===o-l?void 0:[e.slice(0,a),e.slice(a+l)]}}return[e,""]}function ce(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Mr(e,"(",")",t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var Ur=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],An=["%alpha","<alpha-value>"],Xa=new RegExp(An.map(e=>ne(e)).join("|"));function Y(e=""){let t=Za(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Ur.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(a=>typeof a=="string"?a.trim():a),alpha:typeof o=="string"?o.trim():o}}function J(e){let t=e.alpha??1;return typeof t=="string"&&An.includes(t)?1:t}function A(e,t){if(typeof e=="string")return e.replace(Xa,`${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}`,Ur.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Za(e){if(!e)return;let t=Ja(e);if(t!=null||(t=Qa(e),t!=null)||(t=es(e),t!=null)||(t=rs(e),t!=null)||(t=ns(e),t!=null))return t}function Ja(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function Qa(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function es(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,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 ts=new RegExp(`^(${Ur.join("|")})\\((.+)\\)$`,"i");function rs(e){let t=e.match(ts);if(!t)return;let[,r,n]=t,o=Vn(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function ns(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Vn(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Vn(e){let t=ce(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=ce(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}}function rt(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let a=e[i](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}function D(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${ne(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,...t(a)})}},autocomplete:`${e}:`}}function F(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${ne(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,parent:`${a.parent?`${a.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function oe(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=xe(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function N(e,t,r){if(t.startsWith(e)){let n=oe(e,t,r);if(n){let[o="",i=n[1]]=N("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=t.indexOf(o,e.length);if(i!==-1){let a=t.indexOf("/",e.length),s=a===-1||i<=a;return[t.slice(e.length,s?i:a),t.slice(i+o.length),s?"":t.slice(a+1,i)]}}}}var os=",".charCodeAt(0),is=";".charCodeAt(0),Pn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mn=new Uint8Array(64),as=new Uint8Array(128);for(let e=0;e<Pn.length;e++){let t=Pn.charCodeAt(e);Mn[e]=t,as[t]=e}var Lr=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}};function Un(e){let t=new Int32Array(5),r=1024*16,n=r-36,o=new Uint8Array(r),i=o.subarray(0,n),a=0,s="";for(let l=0;l<e.length;l++){let f=e[l];if(l>0&&(a===r&&(s+=Lr.decode(o),a=0),o[a++]=is),f.length!==0){t[0]=0;for(let u=0;u<f.length;u++){let p=f[u];a>n&&(s+=Lr.decode(i),o.copyWithin(0,n,a),a-=n),u>0&&(o[a++]=os),a=Ee(o,a,t,p,0),p.length!==1&&(a=Ee(o,a,t,p,1),a=Ee(o,a,t,p,2),a=Ee(o,a,t,p,3),p.length!==4&&(a=Ee(o,a,t,p,4)))}}}return s+Lr.decode(o.subarray(0,a))}function Ee(e,t,r,n,o){let i=n[o],a=i-r[o];r[o]=i,a=a<0?-a<<1|1:a<<1;do{let s=a&31;a>>>=5,a>0&&(s|=32),e[t++]=Mn[s]}while(a>0);return t}var nt=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))}},ot=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}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 ss(){return typeof window<"u"&&typeof window.btoa=="function"?e=>window.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 cs=ss(),Fr=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Un(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+cs(this.toString())}};function ls(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,a)=>{let s=/^ +/.exec(a)[0].length;return Math.min(s,i)},1/0);return new Array(o+1).join(" ")}function fs(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 us=Object.prototype.toString;function ps(e){return us.call(e)==="[object Object]"}function Ln(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,a=r.length;for(;i<a;){let f=i+a>>1;o<r[f]?a=f:i=f+1}let s=i-1,l=o-r[s];return{line:s,column:l}}}var ms=/\w/,Nr=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.indexOf(`
|