@unocss/runtime 0.63.5 → 0.63.6
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 Ba=Object.defineProperty;var Ia=(e,t)=>{for(var r in t)Ba(e,r,{get:t[r],enumerable:!0})};var Ae="default",et="preflights",Ka="shortcuts",Ga="imports",zn={[Ga]:-200,[et]:-100,[Ka]:-10,[Ae]:0};var tt=/[\\:]?[\s'"`;{}]+/g;function Ha(e){return e.split(tt)}var rt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ha(e)}};function A(e=[]){return Array.isArray(e)?e:[e]}function Z(e){return Array.from(new Set(e))}function _r(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function P(e){return typeof e=="string"}var Ve=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 nt(e){return e instanceof Ve}function ae(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(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 ot=te;var qa=/^\[(.+?)~?="(.*)"\]$/;var Ya=/[\w\u00A0-\uFFFF%-?]/;function On(e){return e.match(qa)}function Pe(e=""){return Ya.test(e)}function An(e){return typeof e=="function"?{match:e}:e}function Fr(e){return e.length===3}function Lr(e){return e!=null}function Vn(){}var it=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)))}},st=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function xe(e){return P(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=>xe(t)):[e]:[xe(e)]}function Xa(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 ye(e){return e==null?"":Xa(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function at(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ur(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 at(n)&&at(o)&&Object.keys(o).forEach(s=>{at(n[s])&&at(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Ur(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Me(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Me(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Me(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Me(n):n;return r}return e}function Mn(e){return P(e[0])}function _n(e){return P(e[0])}var lt={};function Za(e=["-",":"]){let t=e.join("|");return lt[t]||(lt[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),lt[t].lastIndex=0,lt[t]}function Ja(e,t=["-",":"],r=5){let n=Za(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(f,u,p,d,m)=>{if(!t.includes(p))return f;o=!0,s.add(u+p);let b=m+u.length+p.length+1,x={length:f.length,items:[]};a.set(m,x);for(let $ of[...d.matchAll(/\S+/g)]){let j=b+$.index,g=a.get(j)?.items;g?a.delete(j):g=[{offset:j,length:$[0].length,className:$[0]}];for(let y of g)y.className=y.className==="~"?u:y.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),x.items.push(y)}return"$".repeat(f.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let f=0;for(let[u,p]of a)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 a)l.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Fn(e,t=["-",":"],r=5){let n=Ja(e,t,r);return typeof e=="string"?n.expanded:e}var Ln=new Set;function Un(e){Ln.has(e)||(console.warn("[unocss]",e),Ln.add(e))}function Dn(e){return A(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Wn="_uno_resolved";function Qa(e){let t=typeof e=="function"?e():e;if(Wn in t)return t;t={...t},Object.defineProperty(t,Wn,{value:!0,enumerable:!1});let r=t.shortcuts?Dn(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=A(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function Bn(e){let t=Qa(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(A).flatMap(Bn);return[t,...r]}function el(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:Z(Nn(...t)),exclude:Z(Nn(...r))}};return o.length&&(a.filesystem=Z(o.flat())),i.length&&(a.inline=Z(i.flat())),s.length&&(a.plain=Z(s.flat())),a}function Wr(e={},t={}){let r=Object.assign({},t,e),n=_r((r.presets||[]).flatMap(A).flatMap(Bn),(h,v)=>h.name===v.name),o=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},zn,...i.map(h=>h.layers));function l(h){return Z(i.flatMap(v=>A(v[h]||[])))}let f=l("extractors"),u=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=rt),u&&!f.includes(u)&&f.unshift(u),f.sort((h,v)=>(h.order||0)-(v.order||0));let p=l("rules"),d={},m=p.length,b=p.map((h,v)=>{if(Mn(h)){A(h[2]?.prefix||"").forEach(U=>{d[U+h[0]]=[v,h[1],h[2],h]});return}return[v,...h]}).filter(Boolean).reverse(),x=tl(i.map(h=>h.theme)),$=l("extendTheme");for(let h of $)x=h(x)||x;let j={templates:Z(i.flatMap(h=>A(h.autocomplete?.templates))),extractors:i.flatMap(h=>A(h.autocomplete?.extractors)).sort((h,v)=>(h.order||0)-(v.order||0)),shorthands:rl(i.map(h=>h.autocomplete?.shorthands||{}))},g=l("separators");g.length||(g=[":","-"]);let y=l("content"),T=el(y),F={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:x,rulesSize:m,rulesDynamic:b,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:j,variants:l("variants").map(An).sort((h,v)=>(h.order||0)-(v.order||0)),shortcuts:Dn(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:g,details:r.details??r.envMode==="dev",content:T,transformers:_r(l("transformers"),(h,v)=>h.name===v.name)};for(let h of i)h?.configResolved?.(F);return F}function tl(e){return e.map(t=>t?Me(t):{}).reduce((t,r)=>Ur(t,r),{})}function rl(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Nn(...e){return e.flatMap(nl)}function nl(e){return Array.isArray(e)?e:e?[e]:[]}var In="0.63.5";function Kn(){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 pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},Nr=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Wr(t,r),this.events.emit("config",this.config)}version=In;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Kn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Wr(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(nt(s)&&nt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:pe,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 s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(f=>this.stringifyUtil(f,s)).filter(Lr);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:s=!0,minify:a=!1,extendedInfo:l=!1}=r,f=this.config.outputToCssLayers,u=P(t)?await this.applyExtractors(t,n,l?new Ve:new Set):Array.isArray(t)?new Set(t):t;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(v=>typeof v=="function"?v(h):v).forEach(v=>{u.has(v)||u.add(v)})}let p=a?"":`
|
|
1
|
+
"use strict";(()=>{var Ba=Object.defineProperty;var Ia=(e,t)=>{for(var r in t)Ba(e,r,{get:t[r],enumerable:!0})};var Ae="default",et="preflights",Ka="shortcuts",Ga="imports",zn={[Ga]:-200,[et]:-100,[Ka]:-10,[Ae]:0};var tt=/[\\:]?[\s'"`;{}]+/g;function Ha(e){return e.split(tt)}var rt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ha(e)}};function A(e=[]){return Array.isArray(e)?e:[e]}function Z(e){return Array.from(new Set(e))}function _r(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function P(e){return typeof e=="string"}var Ve=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 nt(e){return e instanceof Ve}function ae(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(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 ot=te;var qa=/^\[(.+?)~?="(.*)"\]$/;var Ya=/[\w\u00A0-\uFFFF%-?]/;function On(e){return e.match(qa)}function Pe(e=""){return Ya.test(e)}function An(e){return typeof e=="function"?{match:e}:e}function Fr(e){return e.length===3}function Lr(e){return e!=null}function Vn(){}var it=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)))}},st=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function xe(e){return P(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=>xe(t)):[e]:[xe(e)]}function Xa(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 ye(e){return e==null?"":Xa(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function at(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ur(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 at(n)&&at(o)&&Object.keys(o).forEach(s=>{at(n[s])&&at(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Ur(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Me(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Me(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Me(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Me(n):n;return r}return e}function Mn(e){return P(e[0])}function _n(e){return P(e[0])}var lt={};function Za(e=["-",":"]){let t=e.join("|");return lt[t]||(lt[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),lt[t].lastIndex=0,lt[t]}function Ja(e,t=["-",":"],r=5){let n=Za(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(f,u,p,d,m)=>{if(!t.includes(p))return f;o=!0,s.add(u+p);let b=m+u.length+p.length+1,x={length:f.length,items:[]};a.set(m,x);for(let $ of[...d.matchAll(/\S+/g)]){let j=b+$.index,g=a.get(j)?.items;g?a.delete(j):g=[{offset:j,length:$[0].length,className:$[0]}];for(let y of g)y.className=y.className==="~"?u:y.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),x.items.push(y)}return"$".repeat(f.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let f=0;for(let[u,p]of a)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 a)l.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Fn(e,t=["-",":"],r=5){let n=Ja(e,t,r);return typeof e=="string"?n.expanded:e}var Ln=new Set;function Un(e){Ln.has(e)||(console.warn("[unocss]",e),Ln.add(e))}function Dn(e){return A(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Wn="_uno_resolved";function Qa(e){let t=typeof e=="function"?e():e;if(Wn in t)return t;t={...t},Object.defineProperty(t,Wn,{value:!0,enumerable:!1});let r=t.shortcuts?Dn(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=A(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function Bn(e){let t=Qa(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(A).flatMap(Bn);return[t,...r]}function el(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:Z(Nn(...t)),exclude:Z(Nn(...r))}};return o.length&&(a.filesystem=Z(o.flat())),i.length&&(a.inline=Z(i.flat())),s.length&&(a.plain=Z(s.flat())),a}function Wr(e={},t={}){let r=Object.assign({},t,e),n=_r((r.presets||[]).flatMap(A).flatMap(Bn),(h,v)=>h.name===v.name),o=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},zn,...i.map(h=>h.layers));function l(h){return Z(i.flatMap(v=>A(v[h]||[])))}let f=l("extractors"),u=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=rt),u&&!f.includes(u)&&f.unshift(u),f.sort((h,v)=>(h.order||0)-(v.order||0));let p=l("rules"),d={},m=p.length,b=p.map((h,v)=>{if(Mn(h)){A(h[2]?.prefix||"").forEach(U=>{d[U+h[0]]=[v,h[1],h[2],h]});return}return[v,...h]}).filter(Boolean).reverse(),x=tl(i.map(h=>h.theme)),$=l("extendTheme");for(let h of $)x=h(x)||x;let j={templates:Z(i.flatMap(h=>A(h.autocomplete?.templates))),extractors:i.flatMap(h=>A(h.autocomplete?.extractors)).sort((h,v)=>(h.order||0)-(v.order||0)),shorthands:rl(i.map(h=>h.autocomplete?.shorthands||{}))},g=l("separators");g.length||(g=[":","-"]);let y=l("content"),T=el(y),F={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:x,rulesSize:m,rulesDynamic:b,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:j,variants:l("variants").map(An).sort((h,v)=>(h.order||0)-(v.order||0)),shortcuts:Dn(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:g,details:r.details??r.envMode==="dev",content:T,transformers:_r(l("transformers"),(h,v)=>h.name===v.name)};for(let h of i)h?.configResolved?.(F);return F}function tl(e){return e.map(t=>t?Me(t):{}).reduce((t,r)=>Ur(t,r),{})}function rl(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Nn(...e){return e.flatMap(nl)}function nl(e){return Array.isArray(e)?e:e?[e]:[]}var In="0.63.6";function Kn(){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 pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},Nr=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Wr(t,r),this.events.emit("config",this.config)}version=In;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Kn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Wr(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(nt(s)&&nt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:pe,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 s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(f=>this.stringifyUtil(f,s)).filter(Lr);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:s=!0,minify:a=!1,extendedInfo:l=!1}=r,f=this.config.outputToCssLayers,u=P(t)?await this.applyExtractors(t,n,l?new Ve:new Set):Array.isArray(t)?new Set(t):t;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(v=>typeof v=="function"?v(h):v).forEach(v=>{u.has(v)||u.add(v)})}let p=a?"":`
|
|
2
2
|
`,d=new Set([Ae]),m=l?new Map:new Set,b=new Map,x={},$=Array.from(u).map(async h=>{if(m.has(h))return;let v=await this.parseToken(h);if(v!=null){m instanceof Map?m.set(h,{data:v,count:nt(u)?u.getCount(h):-1}):m.add(h);for(let V of v){let U=V[3]||"",G=V[4]?.layer;b.has(U)||b.set(U,[]),b.get(U).push(V),G&&d.add(G)}}});await Promise.all($),await(async()=>{if(!i)return;let h={generator:this,theme:this.config.theme},v=new Set([]);this.config.preflights.forEach(({layer:V=et})=>{d.add(V),v.add(V)}),x=Object.fromEntries(await Promise.all(Array.from(v).map(async V=>{let G=(await Promise.all(this.config.preflights.filter(oe=>(oe.layer||et)===V).map(async oe=>await oe.getCSS(h)))).filter(Boolean).join(p);return[V,G]})))})();let j=this.config.sortLayers(Array.from(d).sort((h,v)=>(this.config.layers[h]??0)-(this.config.layers[v]??0)||h.localeCompare(v))),g={},y=(h=Ae)=>{if(g[h])return g[h];let v=Array.from(b).sort((U,G)=>(this.parentOrders.get(U[0])??0)-(this.parentOrders.get(G[0])??0)||U[0]?.localeCompare(G[0]||"")||0).map(([U,G])=>{let oe=G.length,Oe=G.filter(k=>(k[4]?.layer||Ae)===h).sort((k,E)=>k[0]-E[0]||(k[4]?.sort||0)-(E[4]?.sort||0)||k[5]?.currentSelector?.localeCompare(E[5]?.currentSelector??"")||k[1]?.localeCompare(E[1]||"")||k[2]?.localeCompare(E[2]||"")||0).map(([,k,E,,N,,ie])=>[[[(k&&sl(k,o))??"",N?.sort??0]],E,!!(ie??N?.noMerge)]);if(!Oe.length)return;let S=Oe.reverse().map(([k,E,N],ie)=>{if(!N&&this.config.mergeSelectors)for(let se=ie+1;se<oe;se++){let Q=Oe[se];if(Q&&!Q[2]&&(k&&Q[0]||k==null&&Q[0]==null)&&Q[1]===E)return k&&Q[0]&&Q[0].push(...k),null}let Mr=k?Z(k.sort((se,Q)=>se[1]-Q[1]||se[0]?.localeCompare(Q[0]||"")||0).map(se=>se[0]).filter(Boolean)):[];return Mr.length?`${Mr.join(`,${p}`)}{${E}}`:E}).filter(Boolean).reverse().join(p);if(!U)return S;let z=U.split(" $$ ");return`${z.join("{")}{${p}${S}${p}${"}".repeat(z.length)}`}).filter(Boolean).join(p);if(i&&(v=[x[h],v].filter(Boolean).join(p)),f&&v){let U=typeof f=="object"?f.cssLayerName?.(h):void 0;U!==null&&(U||(U=h),v=`@layer ${U}{${p}${v}${p}}`)}let V=a?"":`/* layer: ${h} */${p}`;return g[h]=v?V+v:""},T=(h=j,v)=>h.filter(V=>!v?.includes(V)).map(V=>y(V)||"").filter(Boolean).join(p);return{get css(){return T()},layers:j,matched:m,getLayers:T,getLayer:y,setLayer:async(h,v)=>{let V=await v(y(h));return g[h]=V,V}}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!0,a={rawSelector:t,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 f=await l.match(i,a);if(f){if(P(f)){if(f===i)continue;f={matcher:f}}i=f.matcher??i,o.unshift(f),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((f,u)=>(f.order||0)-(u.order||0)).reduceRight((f,u)=>p=>{let d=u.body?.(p.entries)||p.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0];return(u.handle??ll)({...p,entries:d,selector:u.selector?.(p.selector,d)||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.sort},f)},f=>f)({prefix:"",selector:al(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let f of this.config.postprocess)f(l);return l}constructCustomCSS(t,r,n){let o=xe(r);if(P(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${i}{${ye(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1,o){let[i,s,a]=P(t)?await this.matchVariants(t):t;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 u=l[0],p=xe(l[1]),d=l[2];return P(p)?[[u,p,d]]:[[u,i,p,d,a]]}r.variantHandlers=a;let{rulesDynamic:f}=this.config;for(let[u,p,d,m]of f){if(m?.internal&&!n)continue;let b=s;if(m?.prefix){let g=A(m.prefix);if(o){let y=A(o);if(!g.some(T=>y.includes(T)))continue}else{let y=g.find(T=>s.startsWith(T));if(y==null)continue;b=s.slice(y.length)}}let x=b.match(p);if(!x)continue;let $=await d(x,r);if(!$)continue;if(this.config.details&&r.rules.push([p,d,m]),typeof $!="string")if(Symbol.asyncIterator in $){let g=[];for await(let y of $)y&&g.push(y);$=g}else Symbol.iterator in $&&!Array.isArray($)&&($=Array.from($).filter(Lr));let j=Pn($).filter(g=>g.length);if(j.length)return j.map(g=>{if(P(g))return[u,g,m];let y=a;for(let T of g)T[0]===pe.variants?y=[...A(T[1]),...y]:T[0]===pe.parent?y=[{parent:T[1]},...y]:T[0]===pe.selector?y=[{selector:T[1]},...y]:T[0]===pe.layer&&(y=[{layer:T[1]},...y]);return[u,i,g,m,y]})}}stringifyUtil(t,r){if(!t)return;if(Fr(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:l}=this.applyVariants(t),f=ye(o);if(!f)return;let{layer:u,sort:p,...d}=t[3]??{},m={...d,layer:s??u,sort:a??p};return[t[0],n,f,i,m,this.config.details?r:void 0,l]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Vn,i,s;for(let a of this.config.shortcuts){let l=t;if(a[2]?.prefix){let u=A(a[2].prefix).find(p=>t.startsWith(p));if(u==null)continue;l=t.slice(u.length)}if(_n(a)){if(a[0]===l){i=i||a[2],s=a[1],o(a);break}}else{let f=l.match(a[0]);if(f&&(s=a[1](f,r)),s){i=i||a[2],o(a);break}}}if(s&&(s=A(s).map(a=>P(a)?Fn(a.trim()).split(/\s+/g):a).flat()),!s){let[a,l]=P(t)?await this.matchVariants(t):t;if(a!==l){let f=await this.expandShortcut(l,r,n-1);f&&(s=f[0].map(u=>P(u)?a.replace(l,u):u))}}if(s)return[(await Promise.all(s.map(async a=>(P(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new st,s=(await Promise.all(Z(n).map(async u=>{let p=P(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",xe(u),void 0,[]]];return!p&&this.config.warn&&Un(`unmatched utility "${u}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[0]),[a,,l]=t,f=[];for(let u of s){if(Fr(u)){f.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let{selector:p,entries:d,parent:m,sort:b,noMerge:x,layer:$}=this.applyVariants(u,[...u[4],...l],a);i.getFallback($??o.layer,new it).getFallback(p,m,[[],u[0]])[0].push([d,!!(x??u[3]?.noMerge),b??0])}return f.concat(i.flatMap((u,p)=>u.map(([d,m],b,x)=>{let $=(g,y,T)=>{let F=Math.max(...T.map(v=>v[1])),h=T.map(v=>v[0]);return(g?[h.flat(1)]:h).map(v=>{let V=ye(v);if(V)return[m,b,V,x,{...o,noMerge:y,sort:F,layer:p},r,void 0]})};return[[d.filter(([,g])=>g).map(([g,,y])=>[g,y]),!0],[d.filter(([,g])=>!g).map(([g,,y])=>[g,y]),!1]].map(([g,y])=>[...$(!1,y,g.filter(([T])=>T.some(F=>F[0]===pe.shortcutsNoMerge))),...$(!0,y,g.filter(([T])=>T.every(F=>F[0]!==pe.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):P(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):P(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};function Hn(e,t){return new Nr(e,t)}var qn=/\s\$\$\s+/g;function il(e){return qn.test(e)}function sl(e,t){return il(e)?e.replace(qn,t?` ${t} `:" "):t?`${t} ${e}`:e}var Gn=/^\[(.+?)(~?=)"(.*)"\]$/;function al(e){return Gn.test(e)?e.replace(Gn,(t,r,n,o)=>`[${ot(r)}${n}"${ot(o)}"]`):`.${ot(e)}`}function ll(e,t){return t(e)}var Dr=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function Yn(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=On(i);if(!a)return;let l=a[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let f=a[2],[,u="",p=f]=f.match(Dr)||[];if(p==="~"||n&&p==="true"||!p)return`${u}${l}`;if(o==null){let d=s?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,m]=f.match(o)||[];if(m)return`${d}${u}${l}-${m}`}return`${u}${l}-${p}`}}}var cl=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,fl=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,Xn=/[\s'"`;>]+/;function Zn(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(cl),o,i=0;for(let g of n){let[,y,T]=g,F=g.index+y.length;if(r>F&&r<=F+T.length){i=F,o=T;break}}if(!o)return null;let s=o.matchAll(fl),a=0,l,f;for(let g of s){let[y,T,F]=g,h=i+g.index;if(r>h&&r<=h+y.length){a=h,l=T,f=F?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let u=!!e?.prefix&&l.startsWith(e.prefix);if(e?.prefixedOnly&&!u)return null;let p=u?l.slice(e.prefix.length):l;if(f===void 0)return{extracted:p,resolveReplacement(g){let y=u?e.prefix.length:0;return{start:a+y,end:a+l.length,replacement:g}}};let d=a+l.length+2,m=Xn.exec(f),b=0,x;for(;m;){let[g]=m;if(r>d+b&&r<=d+b+m.index){x=f.slice(b,b+m.index);break}b+=m.index+g.length,m=Xn.exec(f.slice(b))}x===void 0&&(x=f.slice(b));let[,$="",j]=x.match(Dr)||[];return{extracted:`${$}${p}-${j}`,transformSuggestions(g){return g.filter(y=>y.startsWith(`${$}${p}-`)).map(y=>$+y.slice($.length+p.length+1))},resolveReplacement(g){return{start:b+d,end:b+d+x.length,replacement:$+g.slice($.length+p.length+1)}}}}}}var ul=["v-bind:",":"],Jn=/[\s'"`;]+/g,Br=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,pl=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Ir=["placeholder","fill","opacity","stroke-opacity"];function Qn(e){let t=e?.ignoreAttributes??Ir,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Br)).flatMap(i=>Array.from((i[1]||"").matchAll(pl))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let l of ul)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(Pe(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(Jn).filter(Pe):Br.test(a)?(Br.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(Jn).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var dl=(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??Ir;let t=[Yn(e)],r=[Qn(e)],n=[Zn(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},eo=dl;function ml(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function to(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${ml(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function ro(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var hl=/\/\/#\s*sourceMappingURL=.*\n?/g;function no(e){return e.includes("sourceMappingURL=")?e.replace(hl,""):e}var gl=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,bl=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,xl=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function yl(e){let t=[];for(let o of e.matchAll(bl))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(gl))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=to(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(tt).forEach(o=>{o.includes(n)&&(o=ro(o,r)),Pe(o)&&!xl.test(o)&&t.push(o)}),t}var oo={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return yl(no(e))}};var io=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=ye(Object.entries(e.theme.preflightBase));return A(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];function ve(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function le(e,t,r,n){if(e===""||(P(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===e.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[e.slice(0,s),e.slice(s+l)]}}return[e,""]}function de(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=le(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var Kr=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],so=["%alpha","<alpha-value>"],vl=new RegExp(so.map(e=>ae(e)).join("|"));function H(e=""){let t=wl(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Kr.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function re(e){let t=e.alpha??1;return typeof t=="string"&&so.includes(t)?1:t}function M(e,t){if(typeof e=="string")return e.replace(vl,`${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}`,Kr.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function wl(e){if(!e)return;let t=$l(e);if(t!=null||(t=kl(e),t!=null)||(t=Sl(e),t!=null)||(t=Rl(e),t!=null)||(t=Tl(e),t!=null))return t}function $l(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 kl(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Sl(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=de(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 Cl=new RegExp(`^(${Kr.join("|")})\\((.+)\\)$`,"i");function Rl(e){let t=e.match(Cl);if(!t)return;let[,r,n]=t,o=ao(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Tl(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=ao(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function ao(e){let t=de(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=de(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 ct(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var lo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uo=new Uint8Array(64),El=new Uint8Array(128);for(let e=0;e<lo.length;e++){let t=lo.charCodeAt(e);uo[e]=t,El[t]=e}function _e(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(uo[o])}while(n>0);return t}var co=1024*16,fo=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}},Gr=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(co)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===co&&(this.out+=fo.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+fo.decode(t.subarray(0,n)):r}};function po(e){let t=new Gr,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let l=0;for(let f=0;f<a.length;f++){let u=a[f];f>0&&t.write(44),l=_e(t,u[0],l),u.length!==1&&(r=_e(t,u[1],r),n=_e(t,u[2],n),o=_e(t,u[3],o),u.length!==4&&(i=_e(t,u[4],i)))}}return t.flush()}var ft=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))}},ut=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function jl(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var zl=jl(),Hr=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=po(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,"+zl(this.toString())}};function Ol(e){let t=e.split(`
|
|
3
3
|
`),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function Al(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 Vl=Object.prototype.toString;function Pl(e){return Vl.call(e)==="[object Object]"}function mo(e){let t=e.split(`
|
|
4
4
|
`),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let f=i+s>>1;o<r[f]?s=f:i=f+1}let a=i-1,l=o-r[a];return{line:a,column:l}}}var Ml=/\w/,qr=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
|
package/core.global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(()=>{var G="default",N="preflights",Pe="shortcuts",Oe="imports",ce={[Oe]:-200,[N]:-100,[Pe]:-10,[G]:0};var le=/[\\:]?[\s'"`;{}]+/g;function je(n){return n.split(le)}var z={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return je(n)}};function V(n=[]){return Array.isArray(n)?n:[n]}function j(n){return Array.from(new Set(n))}function te(n,e){return n.reduce((t,r)=>(t.findIndex(i=>e(r,i))===-1&&t.push(r),t),[])}function w(n){return typeof n=="string"}var H=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,t){return this._map.set(e,t),super.add(e)}};function W(n){return n instanceof H}function _e(n){let e=n.length,t=-1,r,s="",i=n.charCodeAt(0);for(;++t<e;){if(r=n.charCodeAt(t),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){s+=`\\${n.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(t);continue}s+=`\\${n.charAt(t)}`}return s}var Y=_e;function ue(n){return typeof n=="function"?{match:n}:n}function ne(n){return n.length===3}function re(n){return n!=null}function fe(){}var q=class{_map=new Map;get(e,t){let r=this._map.get(e);if(r)return r.get(t)}getFallback(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(t)||s.set(t,r),s.get(t)}set(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.set(t,r),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,r])=>Array.from(r.entries()).map(([s,i])=>e(i,t,s)))}},Z=class extends Map{getFallback(e,t){let r=this.get(e);return r===void 0?(this.set(e,t),t):r}map(e){let t=[];return this.forEach((r,s)=>{t.push(e(r,s))}),t}flatMap(e){let t=[];return this.forEach((r,s)=>{t.push(...e(r,s))}),t}};function K(n){return w(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function pe(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>K(e)):[n]:[K(n)]}function ke(n){return n.filter(([e,t],r)=>{if(e.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===e&&n[s][1]===t)return!1;return!0})}function Q(n){return n==null?"":ke(n).map(([e,t])=>t!=null&&typeof t!="function"?`${e}:${t};`:void 0).filter(Boolean).join("")}function J(n){return n&&typeof n=="object"&&!Array.isArray(n)}function se(n,e,t=!1){let r=n,s=e;if(Array.isArray(s))return t&&Array.isArray(s)?[...r,...s]:[...s];let i={...r};return J(r)&&J(s)&&Object.keys(s).forEach(l=>{J(r[l])&&J(s[l])||Array.isArray(r[l])&&Array.isArray(s[l])?i[l]=se(r[l],s[l],t):Object.assign(i,{[l]:s[l]})}),i}function B(n){let e,t,r;if(Array.isArray(n)){for(t=Array.from({length:e=n.length});e--;)t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}if(Object.prototype.toString.call(n)==="[object Object]"){t={};for(e in n)e==="__proto__"?Object.defineProperty(t,e,{value:B(n[e]),configurable:!0,enumerable:!0,writable:!0}):t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}return n}function de(n){return w(n[0])}function me(n){return w(n[0])}var X={};function Le(n=["-",":"]){let e=n.join("|");return X[e]||(X[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),X[e].lastIndex=0,X[e]}function De(n,e=["-",":"],t=5){let r=Le(e),s,i=n.toString(),l=new Set,a=new Map;do s=!1,i=i.replace(r,(p,u,f,x,S)=>{if(!e.includes(f))return p;s=!0,l.add(u+f);let v=S+u.length+f.length+1,M={length:p.length,items:[]};a.set(S,M);for(let T of[...x.matchAll(/\S+/g)]){let $=v+T.index,m=a.get($)?.items;m?a.delete($):m=[{offset:$,length:T[0].length,className:T[0]}];for(let g of m)g.className=g.className==="~"?u:g.className.replace(/^(!?)(.*)/,`$1${u}${f}$2`),M.items.push(g)}return"$".repeat(p.length)}),t-=1;while(s&&t);let o;if(typeof n=="string"){o="";let p=0;for(let[u,f]of a)o+=n.slice(p,u),o+=f.items.map(x=>x.className).join(" "),p=u+f.length;o+=n.slice(p)}else{o=n;for(let[p,u]of a)o.overwrite(p,p+u.length,u.items.map(f=>f.className).join(" "))}return{prefixes:Array.from(l),hasChanged:s,groupsByOffset:a,get expanded(){return o.toString()}}}function ge(n,e=["-",":"],t=5){let r=De(n,e,t);return typeof n=="string"?r.expanded:n}var he=new Set;function ye(n){he.has(n)||(console.warn("[unocss]",n),he.add(n))}function be(n){return V(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var xe="_uno_resolved";function Fe(n){let e=typeof n=="function"?n():n;if(xe in e)return e;e={...e},Object.defineProperty(e,xe,{value:!0,enumerable:!1});let t=e.shortcuts?be(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let r=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&e.prefix&&(i.prefix=V(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}function Ce(n){let e=Fe(n);if(!e.presets)return[e];let t=(e.presets||[]).flatMap(V).flatMap(Ce);return[e,...t]}function Ke(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],i=[],l=[];for(let o of n){if(o.pipeline===!1){r=!0;break}else o.pipeline?.include&&e.push(o.pipeline.include),o.pipeline?.exclude&&t.push(o.pipeline.exclude);o.filesystem&&s.push(o.filesystem),o.inline&&i.push(o.inline),o.plain&&l.push(o.plain)}let a={pipeline:r?!1:{include:j(Se(...e)),exclude:j(Se(...t))}};return s.length&&(a.filesystem=j(s.flat())),i.length&&(a.inline=j(i.flat())),l.length&&(a.plain=j(l.flat())),a}function ie(n={},e={}){let t=Object.assign({},e,n),r=te((t.presets||[]).flatMap(V).flatMap(Ce),(c,d)=>c.name===d.name),s=[...r.filter(c=>c.enforce==="pre"),...r.filter(c=>!c.enforce),...r.filter(c=>c.enforce==="post")],i=[...s,t],l=[...i].reverse(),a=Object.assign({},ce,...i.map(c=>c.layers));function o(c){return j(i.flatMap(d=>V(d[c]||[])))}let p=o("extractors"),u=l.find(c=>c.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=z),u&&!p.includes(u)&&p.unshift(u),p.sort((c,d)=>(c.order||0)-(d.order||0));let f=o("rules"),x={},S=f.length,v=f.map((c,d)=>{if(de(c)){V(c[2]?.prefix||"").forEach(A=>{x[A+c[0]]=[d,c[1],c[2],c]});return}return[d,...c]}).filter(Boolean).reverse(),M=Ie(i.map(c=>c.theme)),T=o("extendTheme");for(let c of T)M=c(M)||M;let $={templates:j(i.flatMap(c=>V(c.autocomplete?.templates))),extractors:i.flatMap(c=>V(c.autocomplete?.extractors)).sort((c,d)=>(c.order||0)-(d.order||0)),shorthands:Ge(i.map(c=>c.autocomplete?.shorthands||{}))},m=o("separators");m.length||(m=[":","-"]);let g=o("content"),E=Ke(g),P={mergeSelectors:!0,warn:!0,sortLayers:c=>c,...t,blocklist:o("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:a,theme:M,rulesSize:S,rulesDynamic:v,rulesStaticMap:x,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:$,variants:o("variants").map(ue).sort((c,d)=>(c.order||0)-(d.order||0)),shortcuts:be(o("shortcuts")).reverse(),extractors:p,safelist:o("safelist"),separators:m,details:t.details??t.envMode==="dev",content:E,transformers:te(o("transformers"),(c,d)=>c.name===d.name)};for(let c of i)c?.configResolved?.(P);return P}function Ie(n){return n.map(e=>e?B(e):{}).reduce((e,t)=>se(e,t),{})}function Ge(n){return n.reduce((e,t)=>{let r={};for(let s in t){let i=t[s];Array.isArray(i)?r[s]=`(${i.join("|")})`:r[s]=i}return{...e,...r}},{})}function Se(...n){return n.flatMap(He)}function He(n){return Array.isArray(n)?n:n?[n]:[]}var Te="0.63.5";function Ee(){return{events:{},emit(n,...e){(this.events[n]||[]).forEach(t=>t(...e))},on(n,e){return(this.events[n]=this.events[n]||[]).push(e),()=>this.events[n]=(this.events[n]||[]).filter(t=>t!==e)}}}var F={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},oe=class{constructor(e={},t={}){this.userConfig=e;this.defaults=t;this.config=ie(e,t),this.events.emit("config",this.config)}version=Te;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Ee();setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ie(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,t,r=new Set){let s={original:e,code:e,id:t,extracted:r,envMode:this.config.envMode};for(let i of this.config.extractors){let l=await i.extract?.(s);if(l)if(W(l)&&W(r))for(let a of l)r.setCount(a,r.getCount(a)+l.getCount(a));else for(let a of l)r.add(a)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:F,variantHandlers:t[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:t};return r}async parseToken(e,t){if(this.blocked.has(e))return;let r=`${e}${t?` ${t}`:""}`;if(this._cache.has(r))return this._cache.get(r);let s=e;for(let p of this.config.preprocess)s=p(e);if(this.isBlocked(s)){this.blocked.add(e),this._cache.set(r,null);return}let i=await this.matchVariants(e,s);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(r,null);return}let l=this.makeContext(e,[t||i[0],i[1],i[2],i[3]]);this.config.details&&(l.variants=[...i[3]]);let a=await this.expandShortcut(l.currentSelector,l),o=a?await this.stringifyShortcuts(l.variantMatch,l,a[0],a[1]):(await this.parseUtil(l.variantMatch,l))?.map(p=>this.stringifyUtil(p,l)).filter(re);if(o?.length)return this._cache.set(r,o),o;this._cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:i=!0,safelist:l=!0,minify:a=!1,extendedInfo:o=!1}=t,p=this.config.outputToCssLayers,u=w(e)?await this.applyExtractors(e,r,o?new H:new Set):Array.isArray(e)?new Set(e):e;if(l){let c={generator:this,theme:this.config.theme};this.config.safelist.flatMap(d=>typeof d=="function"?d(c):d).forEach(d=>{u.has(d)||u.add(d)})}let f=a?"":`
|
|
1
|
+
"use strict";(()=>{var G="default",N="preflights",Pe="shortcuts",Oe="imports",ce={[Oe]:-200,[N]:-100,[Pe]:-10,[G]:0};var le=/[\\:]?[\s'"`;{}]+/g;function je(n){return n.split(le)}var z={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return je(n)}};function V(n=[]){return Array.isArray(n)?n:[n]}function j(n){return Array.from(new Set(n))}function te(n,e){return n.reduce((t,r)=>(t.findIndex(i=>e(r,i))===-1&&t.push(r),t),[])}function w(n){return typeof n=="string"}var H=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,t){return this._map.set(e,t),super.add(e)}};function W(n){return n instanceof H}function _e(n){let e=n.length,t=-1,r,s="",i=n.charCodeAt(0);for(;++t<e;){if(r=n.charCodeAt(t),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){s+=`\\${n.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(t);continue}s+=`\\${n.charAt(t)}`}return s}var Y=_e;function ue(n){return typeof n=="function"?{match:n}:n}function ne(n){return n.length===3}function re(n){return n!=null}function fe(){}var q=class{_map=new Map;get(e,t){let r=this._map.get(e);if(r)return r.get(t)}getFallback(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(t)||s.set(t,r),s.get(t)}set(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.set(t,r),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,r])=>Array.from(r.entries()).map(([s,i])=>e(i,t,s)))}},Z=class extends Map{getFallback(e,t){let r=this.get(e);return r===void 0?(this.set(e,t),t):r}map(e){let t=[];return this.forEach((r,s)=>{t.push(e(r,s))}),t}flatMap(e){let t=[];return this.forEach((r,s)=>{t.push(...e(r,s))}),t}};function K(n){return w(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function pe(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>K(e)):[n]:[K(n)]}function ke(n){return n.filter(([e,t],r)=>{if(e.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===e&&n[s][1]===t)return!1;return!0})}function Q(n){return n==null?"":ke(n).map(([e,t])=>t!=null&&typeof t!="function"?`${e}:${t};`:void 0).filter(Boolean).join("")}function J(n){return n&&typeof n=="object"&&!Array.isArray(n)}function se(n,e,t=!1){let r=n,s=e;if(Array.isArray(s))return t&&Array.isArray(s)?[...r,...s]:[...s];let i={...r};return J(r)&&J(s)&&Object.keys(s).forEach(l=>{J(r[l])&&J(s[l])||Array.isArray(r[l])&&Array.isArray(s[l])?i[l]=se(r[l],s[l],t):Object.assign(i,{[l]:s[l]})}),i}function B(n){let e,t,r;if(Array.isArray(n)){for(t=Array.from({length:e=n.length});e--;)t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}if(Object.prototype.toString.call(n)==="[object Object]"){t={};for(e in n)e==="__proto__"?Object.defineProperty(t,e,{value:B(n[e]),configurable:!0,enumerable:!0,writable:!0}):t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}return n}function de(n){return w(n[0])}function me(n){return w(n[0])}var X={};function Le(n=["-",":"]){let e=n.join("|");return X[e]||(X[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),X[e].lastIndex=0,X[e]}function De(n,e=["-",":"],t=5){let r=Le(e),s,i=n.toString(),l=new Set,a=new Map;do s=!1,i=i.replace(r,(p,u,f,x,S)=>{if(!e.includes(f))return p;s=!0,l.add(u+f);let v=S+u.length+f.length+1,M={length:p.length,items:[]};a.set(S,M);for(let T of[...x.matchAll(/\S+/g)]){let $=v+T.index,m=a.get($)?.items;m?a.delete($):m=[{offset:$,length:T[0].length,className:T[0]}];for(let g of m)g.className=g.className==="~"?u:g.className.replace(/^(!?)(.*)/,`$1${u}${f}$2`),M.items.push(g)}return"$".repeat(p.length)}),t-=1;while(s&&t);let o;if(typeof n=="string"){o="";let p=0;for(let[u,f]of a)o+=n.slice(p,u),o+=f.items.map(x=>x.className).join(" "),p=u+f.length;o+=n.slice(p)}else{o=n;for(let[p,u]of a)o.overwrite(p,p+u.length,u.items.map(f=>f.className).join(" "))}return{prefixes:Array.from(l),hasChanged:s,groupsByOffset:a,get expanded(){return o.toString()}}}function ge(n,e=["-",":"],t=5){let r=De(n,e,t);return typeof n=="string"?r.expanded:n}var he=new Set;function ye(n){he.has(n)||(console.warn("[unocss]",n),he.add(n))}function be(n){return V(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var xe="_uno_resolved";function Fe(n){let e=typeof n=="function"?n():n;if(xe in e)return e;e={...e},Object.defineProperty(e,xe,{value:!0,enumerable:!1});let t=e.shortcuts?be(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let r=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&e.prefix&&(i.prefix=V(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}function Ce(n){let e=Fe(n);if(!e.presets)return[e];let t=(e.presets||[]).flatMap(V).flatMap(Ce);return[e,...t]}function Ke(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],i=[],l=[];for(let o of n){if(o.pipeline===!1){r=!0;break}else o.pipeline?.include&&e.push(o.pipeline.include),o.pipeline?.exclude&&t.push(o.pipeline.exclude);o.filesystem&&s.push(o.filesystem),o.inline&&i.push(o.inline),o.plain&&l.push(o.plain)}let a={pipeline:r?!1:{include:j(Se(...e)),exclude:j(Se(...t))}};return s.length&&(a.filesystem=j(s.flat())),i.length&&(a.inline=j(i.flat())),l.length&&(a.plain=j(l.flat())),a}function ie(n={},e={}){let t=Object.assign({},e,n),r=te((t.presets||[]).flatMap(V).flatMap(Ce),(c,d)=>c.name===d.name),s=[...r.filter(c=>c.enforce==="pre"),...r.filter(c=>!c.enforce),...r.filter(c=>c.enforce==="post")],i=[...s,t],l=[...i].reverse(),a=Object.assign({},ce,...i.map(c=>c.layers));function o(c){return j(i.flatMap(d=>V(d[c]||[])))}let p=o("extractors"),u=l.find(c=>c.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=z),u&&!p.includes(u)&&p.unshift(u),p.sort((c,d)=>(c.order||0)-(d.order||0));let f=o("rules"),x={},S=f.length,v=f.map((c,d)=>{if(de(c)){V(c[2]?.prefix||"").forEach(A=>{x[A+c[0]]=[d,c[1],c[2],c]});return}return[d,...c]}).filter(Boolean).reverse(),M=Ie(i.map(c=>c.theme)),T=o("extendTheme");for(let c of T)M=c(M)||M;let $={templates:j(i.flatMap(c=>V(c.autocomplete?.templates))),extractors:i.flatMap(c=>V(c.autocomplete?.extractors)).sort((c,d)=>(c.order||0)-(d.order||0)),shorthands:Ge(i.map(c=>c.autocomplete?.shorthands||{}))},m=o("separators");m.length||(m=[":","-"]);let g=o("content"),E=Ke(g),P={mergeSelectors:!0,warn:!0,sortLayers:c=>c,...t,blocklist:o("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:a,theme:M,rulesSize:S,rulesDynamic:v,rulesStaticMap:x,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:$,variants:o("variants").map(ue).sort((c,d)=>(c.order||0)-(d.order||0)),shortcuts:be(o("shortcuts")).reverse(),extractors:p,safelist:o("safelist"),separators:m,details:t.details??t.envMode==="dev",content:E,transformers:te(o("transformers"),(c,d)=>c.name===d.name)};for(let c of i)c?.configResolved?.(P);return P}function Ie(n){return n.map(e=>e?B(e):{}).reduce((e,t)=>se(e,t),{})}function Ge(n){return n.reduce((e,t)=>{let r={};for(let s in t){let i=t[s];Array.isArray(i)?r[s]=`(${i.join("|")})`:r[s]=i}return{...e,...r}},{})}function Se(...n){return n.flatMap(He)}function He(n){return Array.isArray(n)?n:n?[n]:[]}var Te="0.63.6";function Ee(){return{events:{},emit(n,...e){(this.events[n]||[]).forEach(t=>t(...e))},on(n,e){return(this.events[n]=this.events[n]||[]).push(e),()=>this.events[n]=(this.events[n]||[]).filter(t=>t!==e)}}}var F={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},oe=class{constructor(e={},t={}){this.userConfig=e;this.defaults=t;this.config=ie(e,t),this.events.emit("config",this.config)}version=Te;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Ee();setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ie(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,t,r=new Set){let s={original:e,code:e,id:t,extracted:r,envMode:this.config.envMode};for(let i of this.config.extractors){let l=await i.extract?.(s);if(l)if(W(l)&&W(r))for(let a of l)r.setCount(a,r.getCount(a)+l.getCount(a));else for(let a of l)r.add(a)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:F,variantHandlers:t[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:t};return r}async parseToken(e,t){if(this.blocked.has(e))return;let r=`${e}${t?` ${t}`:""}`;if(this._cache.has(r))return this._cache.get(r);let s=e;for(let p of this.config.preprocess)s=p(e);if(this.isBlocked(s)){this.blocked.add(e),this._cache.set(r,null);return}let i=await this.matchVariants(e,s);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(r,null);return}let l=this.makeContext(e,[t||i[0],i[1],i[2],i[3]]);this.config.details&&(l.variants=[...i[3]]);let a=await this.expandShortcut(l.currentSelector,l),o=a?await this.stringifyShortcuts(l.variantMatch,l,a[0],a[1]):(await this.parseUtil(l.variantMatch,l))?.map(p=>this.stringifyUtil(p,l)).filter(re);if(o?.length)return this._cache.set(r,o),o;this._cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:i=!0,safelist:l=!0,minify:a=!1,extendedInfo:o=!1}=t,p=this.config.outputToCssLayers,u=w(e)?await this.applyExtractors(e,r,o?new H:new Set):Array.isArray(e)?new Set(e):e;if(l){let c={generator:this,theme:this.config.theme};this.config.safelist.flatMap(d=>typeof d=="function"?d(c):d).forEach(d=>{u.has(d)||u.add(d)})}let f=a?"":`
|
|
2
2
|
`,x=new Set([G]),S=o?new Map:new Set,v=new Map,M={},T=Array.from(u).map(async c=>{if(S.has(c))return;let d=await this.parseToken(c);if(d!=null){S instanceof Map?S.set(c,{data:d,count:W(u)?u.getCount(c):-1}):S.add(c);for(let R of d){let A=R[3]||"",O=R[4]?.layer;v.has(A)||v.set(A,[]),v.get(A).push(R),O&&x.add(O)}}});await Promise.all(T),await(async()=>{if(!i)return;let c={generator:this,theme:this.config.theme},d=new Set([]);this.config.preflights.forEach(({layer:R=N})=>{x.add(R),d.add(R)}),M=Object.fromEntries(await Promise.all(Array.from(d).map(async R=>{let O=(await Promise.all(this.config.preflights.filter(k=>(k.layer||N)===R).map(async k=>await k.getCSS(c)))).filter(Boolean).join(f);return[R,O]})))})();let $=this.config.sortLayers(Array.from(x).sort((c,d)=>(this.config.layers[c]??0)-(this.config.layers[d]??0)||c.localeCompare(d))),m={},g=(c=G)=>{if(m[c])return m[c];let d=Array.from(v).sort((A,O)=>(this.parentOrders.get(A[0])??0)-(this.parentOrders.get(O[0])??0)||A[0]?.localeCompare(O[0]||"")||0).map(([A,O])=>{let k=O.length,I=O.filter(h=>(h[4]?.layer||G)===c).sort((h,b)=>h[0]-b[0]||(h[4]?.sort||0)-(b[4]?.sort||0)||h[5]?.currentSelector?.localeCompare(b[5]?.currentSelector??"")||h[1]?.localeCompare(b[1]||"")||h[2]?.localeCompare(b[2]||"")||0).map(([,h,b,,U,,L])=>[[[(h&&ze(h,s))??"",U?.sort??0]],b,!!(L??U?.noMerge)]);if(!I.length)return;let y=I.reverse().map(([h,b,U],L)=>{if(!U&&this.config.mergeSelectors)for(let D=L+1;D<k;D++){let _=I[D];if(_&&!_[2]&&(h&&_[0]||h==null&&_[0]==null)&&_[1]===b)return h&&_[0]&&_[0].push(...h),null}let ee=h?j(h.sort((D,_)=>D[1]-_[1]||D[0]?.localeCompare(_[0]||"")||0).map(D=>D[0]).filter(Boolean)):[];return ee.length?`${ee.join(`,${f}`)}{${b}}`:b}).filter(Boolean).reverse().join(f);if(!A)return y;let C=A.split(" $$ ");return`${C.join("{")}{${f}${y}${f}${"}".repeat(C.length)}`}).filter(Boolean).join(f);if(i&&(d=[M[c],d].filter(Boolean).join(f)),p&&d){let A=typeof p=="object"?p.cssLayerName?.(c):void 0;A!==null&&(A||(A=c),d=`@layer ${A}{${f}${d}${f}}`)}let R=a?"":`/* layer: ${c} */${f}`;return m[c]=d?R+d:""},E=(c=$,d)=>c.filter(R=>!d?.includes(R)).map(R=>g(R)||"").filter(Boolean).join(f);return{get css(){return E()},layers:$,matched:S,getLayers:E,getLayer:g,setLayer:async(c,d)=>{let R=await d(g(c));return m[c]=R,R}}}async matchVariants(e,t){let r=new Set,s=[],i=t||e,l=!0,a={rawSelector:e,theme:this.config.theme,generator:this};for(;l;){l=!1;for(let o of this.config.variants){if(!o.multiPass&&r.has(o))continue;let p=await o.match(i,a);if(p){if(w(p)){if(p===i)continue;p={matcher:p}}i=p.matcher??i,s.unshift(p),r.add(o),l=!0;break}}if(!l)break;if(s.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,s,r]}applyVariants(e,t=e[4],r=e[1]){let i=t.slice().sort((p,u)=>(p.order||0)-(u.order||0)).reduceRight((p,u)=>f=>{let x=u.body?.(f.entries)||f.entries,S=Array.isArray(u.parent)?u.parent:[u.parent,void 0];return(u.handle??Ye)({...f,entries:x,selector:u.selector?.(f.selector,x)||f.selector,parent:S[0]||f.parent,parentOrder:S[1]||f.parentOrder,layer:u.layer||f.layer,sort:u.sort||f.sort},p)},p=>p)({prefix:"",selector:We(r),pseudo:"",entries:e[2]}),{parent:l,parentOrder:a}=i;l!=null&&a!=null&&this.parentOrders.set(l,a);let o={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:l,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let p of this.config.postprocess)p(o);return o}constructCustomCSS(e,t,r){let s=K(t);if(w(s))return s;let{selector:i,entries:l,parent:a}=this.applyVariants([0,r||e.rawSelector,s,void 0,e.variantHandlers]),o=`${i}{${Q(l)}}`;return a?`${a}{${o}}`:o}async parseUtil(e,t,r=!1,s){let[i,l,a]=w(e)?await this.matchVariants(e):e;this.config.details&&(t.rules=t.rules??[]);let o=this.config.rulesStaticMap[l];if(o&&o[1]&&(r||!o[2]?.internal)){this.config.details&&t.rules.push(o[3]);let u=o[0],f=K(o[1]),x=o[2];return w(f)?[[u,f,x]]:[[u,i,f,x,a]]}t.variantHandlers=a;let{rulesDynamic:p}=this.config;for(let[u,f,x,S]of p){if(S?.internal&&!r)continue;let v=l;if(S?.prefix){let m=V(S.prefix);if(s){let g=V(s);if(!m.some(E=>g.includes(E)))continue}else{let g=m.find(E=>l.startsWith(E));if(g==null)continue;v=l.slice(g.length)}}let M=v.match(f);if(!M)continue;let T=await x(M,t);if(!T)continue;if(this.config.details&&t.rules.push([f,x,S]),typeof T!="string")if(Symbol.asyncIterator in T){let m=[];for await(let g of T)g&&m.push(g);T=m}else Symbol.iterator in T&&!Array.isArray(T)&&(T=Array.from(T).filter(re));let $=pe(T).filter(m=>m.length);if($.length)return $.map(m=>{if(w(m))return[u,m,S];let g=a;for(let E of m)E[0]===F.variants?g=[...V(E[1]),...g]:E[0]===F.parent?g=[{parent:E[1]},...g]:E[0]===F.selector?g=[{selector:E[1]},...g]:E[0]===F.layer&&(g=[{layer:E[1]},...g]);return[u,i,m,S,g]})}}stringifyUtil(e,t){if(!e)return;if(ne(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?t:void 0,void 0];let{selector:r,entries:s,parent:i,layer:l,sort:a,noMerge:o}=this.applyVariants(e),p=Q(s);if(!p)return;let{layer:u,sort:f,...x}=e[3]??{},S={...x,layer:l??u,sort:a??f};return[e[0],r,p,i,S,this.config.details?t:void 0,o]}async expandShortcut(e,t,r=5){if(r===0)return;let s=this.config.details?a=>{t.shortcuts=t.shortcuts??[],t.shortcuts.push(a)}:fe,i,l;for(let a of this.config.shortcuts){let o=e;if(a[2]?.prefix){let u=V(a[2].prefix).find(f=>e.startsWith(f));if(u==null)continue;o=e.slice(u.length)}if(me(a)){if(a[0]===o){i=i||a[2],l=a[1],s(a);break}}else{let p=o.match(a[0]);if(p&&(l=a[1](p,t)),l){i=i||a[2],s(a);break}}}if(l&&(l=V(l).map(a=>w(a)?ge(a.trim()).split(/\s+/g):a).flat()),!l){let[a,o]=w(e)?await this.matchVariants(e):e;if(a!==o){let p=await this.expandShortcut(o,t,r-1);p&&(l=p[0].map(u=>w(u)?a.replace(o,u):u))}}if(l)return[(await Promise.all(l.map(async a=>(w(a)?(await this.expandShortcut(a,t,r-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,t,r,s={layer:this.config.shortcutsLayer}){let i=new Z,l=(await Promise.all(j(r).map(async u=>{let f=w(u)?await this.parseUtil(u,t,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",K(u),void 0,[]]];return!f&&this.config.warn&&ye(`unmatched utility "${u}" in shortcut "${e[1]}"`),f||[]}))).flat(1).filter(Boolean).sort((u,f)=>u[0]-f[0]),[a,,o]=e,p=[];for(let u of l){if(ne(u)){p.push([u[0],void 0,u[1],void 0,u[2],t,void 0]);continue}let{selector:f,entries:x,parent:S,sort:v,noMerge:M,layer:T}=this.applyVariants(u,[...u[4],...o],a);i.getFallback(T??s.layer,new q).getFallback(f,S,[[],u[0]])[0].push([x,!!(M??u[3]?.noMerge),v??0])}return p.concat(i.flatMap((u,f)=>u.map(([x,S],v,M)=>{let T=(m,g,E)=>{let P=Math.max(...E.map(d=>d[1])),c=E.map(d=>d[0]);return(m?[c.flat(1)]:c).map(d=>{let R=Q(d);if(R)return[S,v,R,M,{...s,noMerge:g,sort:P,layer:f},t,void 0]})};return[[x.filter(([,m])=>m).map(([m,,g])=>[m,g]),!0],[x.filter(([,m])=>!m).map(([m,,g])=>[m,g]),!1]].map(([m,g])=>[...T(!1,g,m.filter(([E])=>E.some(P=>P[0]===F.shortcutsNoMerge))),...T(!0,g,m.filter(([E])=>E.every(P=>P[0]!==F.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(t=>Array.isArray(t)?t[0]:t).some(t=>typeof t=="function"?t(e):w(t)?t===e:t.test(e))}getBlocked(e){let t=this.config.blocklist.find(r=>{let s=Array.isArray(r)?r[0]:r;return typeof s=="function"?s(e):w(s)?s===e:s.test(e)});return t?Array.isArray(t)?t:[t,void 0]:void 0}};function ve(n,e){return new oe(n,e)}var Me=/\s\$\$\s+/g;function Ne(n){return Me.test(n)}function ze(n,e){return Ne(n)?n.replace(Me,e?` ${e} `:" "):e?`${e} ${n}`:n}var Re=/^\[(.+?)(~?=)"(.*)"\]$/;function We(n){return Re.test(n)?n.replace(Re,(e,t,r,s)=>`[${Y(t)}${r}"${Y(s)}"]`):`.${Y(n)}`}function Ye(n,e){return e(n)}function qe(n){return n.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():"")}function we(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Ae(n){return n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Ue=["Webkit","Moz","ms"];function Ve(n){let e={};function t(r){let s=e[r];if(s)return s;let i=qe(r);if(i!=="filter"&&i in n)return e[r]=Ae(i);i=we(i);for(let l=0;l<Ue.length;l++){let a=`${Ue[l]}${i}`;if(a in n)return e[r]=Ae(we(a))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=t(s[0]))})}function $e(n){return n.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function ae(n={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,t=window.document,r=()=>t.documentElement,s=e.__unocss||{},i=Object.assign({},n,s.runtime),l=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(l.postprocess=V(l.postprocess)).unshift(Ve(t.createElement("div").style)),i.configResolved?.(s,l);let o=ve(s,l),p=y=>i.inject?i.inject(y):r().prepend(y),u=()=>i.rootElement?i.rootElement():t.body,f=new Map,x=!0,S=new Set,v,M,T=[],$=()=>new Promise(y=>{T.push(y),M!=null&&clearTimeout(M),M=setTimeout(()=>E().then(()=>{let C=T;T=[],C.forEach(h=>h())}),0)});function m(y,C=!1){if(y.nodeType!==1)return;let h=y;h.hasAttribute(a)&&h.removeAttribute(a),C&&h.querySelectorAll(`[${a}]`).forEach(b=>{b.removeAttribute(a)})}function g(y,C){let h=f.get(y);if(!h)if(h=t.createElement("style"),h.setAttribute("data-unocss-runtime-layer",y),f.set(y,h),C==null)p(h);else{let b=g(C),U=b.parentNode;U?U.insertBefore(h,b.nextSibling):p(h)}return h}async function E(){let y=[...S],C=await o.generate(y);return C.layers.reduce((b,U)=>(g(U,b).innerHTML=C.getLayer(U)??"",U),void 0),y.filter(b=>!C.matched.has(b)).forEach(b=>S.delete(b)),{...C,getStyleElement:b=>f.get(b),getStyleElements:()=>f}}async function P(y){let C=S.size;await o.applyExtractors(y,void 0,S),C!==S.size&&await $()}async function c(y=u()){let C=y&&y.outerHTML;C&&(await P(`${C} ${$e(C)}`),m(r()),m(y,!0))}let d=new MutationObserver(y=>{x||y.forEach(async C=>{if(C.target.nodeType!==1)return;let h=C.target;for(let b of f)if(h===b[1])return;if(C.type==="childList")C.addedNodes.forEach(async b=>{if(b.nodeType!==1)return;let U=b;v&&!v(U)||(await P(U.outerHTML),m(U))});else{if(v&&!v(h))return;if(C.attributeName!==a){let b=Array.from(h.attributes).map(L=>L.value?`${L.name}="${L.value}"`:L.name).join(" "),U=`<${h.tagName.toLowerCase()} ${b}>`;await P(U)}m(h)}})}),R=!1;function A(){if(R)return;let y=i.observer?.target?i.observer.target():u();y&&(d.observe(y,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),R=!0)}function O(){i.bypassDefined&&Ze(o.blocked),c(),A()}function k(){t.readyState==="loading"?e.addEventListener("DOMContentLoaded",O):O()}let I=e.__unocss_runtime=e.__unocss_runtime={version:o.version,uno:o,async extract(y){w(y)||(y.forEach(C=>S.add(C)),y=""),await P(y)},extractAll:c,inspect(y){v=y},toggleObserver(y){y===void 0?x=!x:x=!!y,!R&&!x&&k()},update:E,presets:e.__unocss_runtime?.presets??{}};i.ready?.(I)!==!1&&(x=!1,k())}function Ze(n=new Set){for(let e=0;e<document.styleSheets.length;e++){let t=document.styleSheets[e],r;try{if(r=t.cssRules||t.rules,!r)continue;Array.from(r).flatMap(s=>s.selectorText?.split(/,/g)||[]).forEach(s=>{s&&(s=s.trim(),s.startsWith(".")&&(s=s.slice(1)),n.add(s))})}catch{continue}}return n}ae();})();
|
package/full.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Ja=Object.defineProperty;var Qa=(e,t)=>{for(var r in t)Ja(e,r,{get:t[r],enumerable:!0})};var Ae="default",tt="preflights",el="shortcuts",tl="imports",Vn={[tl]:-200,[tt]:-100,[el]:-10,[Ae]:0};var rt=/[\\:]?[\s'"`;{}]+/g;function rl(e){return e.split(rt)}var nt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return rl(e)}};function A(e=[]){return Array.isArray(e)?e:[e]}function Z(e){return Array.from(new Set(e))}function Lr(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function P(e){return typeof e=="string"}var Ve=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 ot(e){return e instanceof Ve}function ae(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(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 it=te;var nl=/^\[(.+?)~?="(.*)"\]$/;var ol=/[\w\u00A0-\uFFFF%-?]/;function Pn(e){return e.match(nl)}function Pe(e=""){return ol.test(e)}function Mn(e){return typeof e=="function"?{match:e}:e}function Ur(e){return e.length===3}function Wr(e){return e!=null}function _n(){}var st=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)))}},at=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function xe(e){return P(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Fn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>xe(t)):[e]:[xe(e)]}function il(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 ye(e){return e==null?"":il(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function lt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function _e(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 lt(n)&<(o)&&Object.keys(o).forEach(s=>{lt(n[s])&<(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=_e(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Me(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Me(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Me(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Me(n):n;return r}return e}function Ln(e){return P(e[0])}function Un(e){return P(e[0])}var ct={};function sl(e=["-",":"]){let t=e.join("|");return ct[t]||(ct[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),ct[t].lastIndex=0,ct[t]}function al(e,t=["-",":"],r=5){let n=sl(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(f,u,p,d,m)=>{if(!t.includes(p))return f;o=!0,s.add(u+p);let g=m+u.length+p.length+1,x={length:f.length,items:[]};a.set(m,x);for(let $ of[...d.matchAll(/\S+/g)]){let j=g+$.index,b=a.get(j)?.items;b?a.delete(j):b=[{offset:j,length:$[0].length,className:$[0]}];for(let y of b)y.className=y.className==="~"?u:y.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),x.items.push(y)}return"$".repeat(f.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let f=0;for(let[u,p]of a)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 a)l.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Wn(e,t=["-",":"],r=5){let n=al(e,t,r);return typeof e=="string"?n.expanded:e}var Nn=new Set;function Dn(e){Nn.has(e)||(console.warn("[unocss]",e),Nn.add(e))}function Kn(e){return A(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Bn="_uno_resolved";function ll(e){let t=typeof e=="function"?e():e;if(Bn in t)return t;t={...t},Object.defineProperty(t,Bn,{value:!0,enumerable:!1});let r=t.shortcuts?Kn(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=A(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function Gn(e){let t=ll(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(A).flatMap(Gn);return[t,...r]}function cl(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:Z(In(...t)),exclude:Z(In(...r))}};return o.length&&(a.filesystem=Z(o.flat())),i.length&&(a.inline=Z(i.flat())),s.length&&(a.plain=Z(s.flat())),a}function Nr(e={},t={}){let r=Object.assign({},t,e),n=Lr((r.presets||[]).flatMap(A).flatMap(Gn),(h,v)=>h.name===v.name),o=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Vn,...i.map(h=>h.layers));function l(h){return Z(i.flatMap(v=>A(v[h]||[])))}let f=l("extractors"),u=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=nt),u&&!f.includes(u)&&f.unshift(u),f.sort((h,v)=>(h.order||0)-(v.order||0));let p=l("rules"),d={},m=p.length,g=p.map((h,v)=>{if(Ln(h)){A(h[2]?.prefix||"").forEach(U=>{d[U+h[0]]=[v,h[1],h[2],h]});return}return[v,...h]}).filter(Boolean).reverse(),x=fl(i.map(h=>h.theme)),$=l("extendTheme");for(let h of $)x=h(x)||x;let j={templates:Z(i.flatMap(h=>A(h.autocomplete?.templates))),extractors:i.flatMap(h=>A(h.autocomplete?.extractors)).sort((h,v)=>(h.order||0)-(v.order||0)),shorthands:ul(i.map(h=>h.autocomplete?.shorthands||{}))},b=l("separators");b.length||(b=[":","-"]);let y=l("content"),T=cl(y),F={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:x,rulesSize:m,rulesDynamic:g,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:j,variants:l("variants").map(Mn).sort((h,v)=>(h.order||0)-(v.order||0)),shortcuts:Kn(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:b,details:r.details??r.envMode==="dev",content:T,transformers:Lr(l("transformers"),(h,v)=>h.name===v.name)};for(let h of i)h?.configResolved?.(F);return F}function fl(e){return e.map(t=>t?Me(t):{}).reduce((t,r)=>_e(t,r),{})}function ul(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function In(...e){return e.flatMap(pl)}function pl(e){return Array.isArray(e)?e:e?[e]:[]}var Hn="0.63.5";function qn(){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 pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},Dr=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Nr(t,r),this.events.emit("config",this.config)}version=Hn;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=qn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Nr(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(ot(s)&&ot(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:pe,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 s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(f=>this.stringifyUtil(f,s)).filter(Wr);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:s=!0,minify:a=!1,extendedInfo:l=!1}=r,f=this.config.outputToCssLayers,u=P(t)?await this.applyExtractors(t,n,l?new Ve:new Set):Array.isArray(t)?new Set(t):t;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(v=>typeof v=="function"?v(h):v).forEach(v=>{u.has(v)||u.add(v)})}let p=a?"":`
|
|
1
|
+
"use strict";(()=>{var Ja=Object.defineProperty;var Qa=(e,t)=>{for(var r in t)Ja(e,r,{get:t[r],enumerable:!0})};var Ae="default",tt="preflights",el="shortcuts",tl="imports",Vn={[tl]:-200,[tt]:-100,[el]:-10,[Ae]:0};var rt=/[\\:]?[\s'"`;{}]+/g;function rl(e){return e.split(rt)}var nt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return rl(e)}};function A(e=[]){return Array.isArray(e)?e:[e]}function Z(e){return Array.from(new Set(e))}function Lr(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function P(e){return typeof e=="string"}var Ve=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 ot(e){return e instanceof Ve}function ae(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(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 it=te;var nl=/^\[(.+?)~?="(.*)"\]$/;var ol=/[\w\u00A0-\uFFFF%-?]/;function Pn(e){return e.match(nl)}function Pe(e=""){return ol.test(e)}function Mn(e){return typeof e=="function"?{match:e}:e}function Ur(e){return e.length===3}function Wr(e){return e!=null}function _n(){}var st=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)))}},at=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function xe(e){return P(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Fn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>xe(t)):[e]:[xe(e)]}function il(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 ye(e){return e==null?"":il(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function lt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function _e(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 lt(n)&<(o)&&Object.keys(o).forEach(s=>{lt(n[s])&<(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=_e(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Me(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Me(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Me(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Me(n):n;return r}return e}function Ln(e){return P(e[0])}function Un(e){return P(e[0])}var ct={};function sl(e=["-",":"]){let t=e.join("|");return ct[t]||(ct[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),ct[t].lastIndex=0,ct[t]}function al(e,t=["-",":"],r=5){let n=sl(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(f,u,p,d,m)=>{if(!t.includes(p))return f;o=!0,s.add(u+p);let g=m+u.length+p.length+1,x={length:f.length,items:[]};a.set(m,x);for(let $ of[...d.matchAll(/\S+/g)]){let j=g+$.index,b=a.get(j)?.items;b?a.delete(j):b=[{offset:j,length:$[0].length,className:$[0]}];for(let y of b)y.className=y.className==="~"?u:y.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),x.items.push(y)}return"$".repeat(f.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let f=0;for(let[u,p]of a)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 a)l.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Wn(e,t=["-",":"],r=5){let n=al(e,t,r);return typeof e=="string"?n.expanded:e}var Nn=new Set;function Dn(e){Nn.has(e)||(console.warn("[unocss]",e),Nn.add(e))}function Kn(e){return A(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Bn="_uno_resolved";function ll(e){let t=typeof e=="function"?e():e;if(Bn in t)return t;t={...t},Object.defineProperty(t,Bn,{value:!0,enumerable:!1});let r=t.shortcuts?Kn(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=A(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function Gn(e){let t=ll(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(A).flatMap(Gn);return[t,...r]}function cl(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:Z(In(...t)),exclude:Z(In(...r))}};return o.length&&(a.filesystem=Z(o.flat())),i.length&&(a.inline=Z(i.flat())),s.length&&(a.plain=Z(s.flat())),a}function Nr(e={},t={}){let r=Object.assign({},t,e),n=Lr((r.presets||[]).flatMap(A).flatMap(Gn),(h,v)=>h.name===v.name),o=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Vn,...i.map(h=>h.layers));function l(h){return Z(i.flatMap(v=>A(v[h]||[])))}let f=l("extractors"),u=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=nt),u&&!f.includes(u)&&f.unshift(u),f.sort((h,v)=>(h.order||0)-(v.order||0));let p=l("rules"),d={},m=p.length,g=p.map((h,v)=>{if(Ln(h)){A(h[2]?.prefix||"").forEach(U=>{d[U+h[0]]=[v,h[1],h[2],h]});return}return[v,...h]}).filter(Boolean).reverse(),x=fl(i.map(h=>h.theme)),$=l("extendTheme");for(let h of $)x=h(x)||x;let j={templates:Z(i.flatMap(h=>A(h.autocomplete?.templates))),extractors:i.flatMap(h=>A(h.autocomplete?.extractors)).sort((h,v)=>(h.order||0)-(v.order||0)),shorthands:ul(i.map(h=>h.autocomplete?.shorthands||{}))},b=l("separators");b.length||(b=[":","-"]);let y=l("content"),T=cl(y),F={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:x,rulesSize:m,rulesDynamic:g,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:j,variants:l("variants").map(Mn).sort((h,v)=>(h.order||0)-(v.order||0)),shortcuts:Kn(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:b,details:r.details??r.envMode==="dev",content:T,transformers:Lr(l("transformers"),(h,v)=>h.name===v.name)};for(let h of i)h?.configResolved?.(F);return F}function fl(e){return e.map(t=>t?Me(t):{}).reduce((t,r)=>_e(t,r),{})}function ul(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function In(...e){return e.flatMap(pl)}function pl(e){return Array.isArray(e)?e:e?[e]:[]}var Hn="0.63.6";function qn(){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 pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},Dr=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Nr(t,r),this.events.emit("config",this.config)}version=Hn;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=qn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Nr(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(ot(s)&&ot(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:pe,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 s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(f=>this.stringifyUtil(f,s)).filter(Wr);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:s=!0,minify:a=!1,extendedInfo:l=!1}=r,f=this.config.outputToCssLayers,u=P(t)?await this.applyExtractors(t,n,l?new Ve:new Set):Array.isArray(t)?new Set(t):t;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(v=>typeof v=="function"?v(h):v).forEach(v=>{u.has(v)||u.add(v)})}let p=a?"":`
|
|
2
2
|
`,d=new Set([Ae]),m=l?new Map:new Set,g=new Map,x={},$=Array.from(u).map(async h=>{if(m.has(h))return;let v=await this.parseToken(h);if(v!=null){m instanceof Map?m.set(h,{data:v,count:ot(u)?u.getCount(h):-1}):m.add(h);for(let V of v){let U=V[3]||"",G=V[4]?.layer;g.has(U)||g.set(U,[]),g.get(U).push(V),G&&d.add(G)}}});await Promise.all($),await(async()=>{if(!i)return;let h={generator:this,theme:this.config.theme},v=new Set([]);this.config.preflights.forEach(({layer:V=tt})=>{d.add(V),v.add(V)}),x=Object.fromEntries(await Promise.all(Array.from(v).map(async V=>{let G=(await Promise.all(this.config.preflights.filter(oe=>(oe.layer||tt)===V).map(async oe=>await oe.getCSS(h)))).filter(Boolean).join(p);return[V,G]})))})();let j=this.config.sortLayers(Array.from(d).sort((h,v)=>(this.config.layers[h]??0)-(this.config.layers[v]??0)||h.localeCompare(v))),b={},y=(h=Ae)=>{if(b[h])return b[h];let v=Array.from(g).sort((U,G)=>(this.parentOrders.get(U[0])??0)-(this.parentOrders.get(G[0])??0)||U[0]?.localeCompare(G[0]||"")||0).map(([U,G])=>{let oe=G.length,Oe=G.filter(k=>(k[4]?.layer||Ae)===h).sort((k,E)=>k[0]-E[0]||(k[4]?.sort||0)-(E[4]?.sort||0)||k[5]?.currentSelector?.localeCompare(E[5]?.currentSelector??"")||k[1]?.localeCompare(E[1]||"")||k[2]?.localeCompare(E[2]||"")||0).map(([,k,E,,N,,ie])=>[[[(k&&hl(k,o))??"",N?.sort??0]],E,!!(ie??N?.noMerge)]);if(!Oe.length)return;let S=Oe.reverse().map(([k,E,N],ie)=>{if(!N&&this.config.mergeSelectors)for(let se=ie+1;se<oe;se++){let Q=Oe[se];if(Q&&!Q[2]&&(k&&Q[0]||k==null&&Q[0]==null)&&Q[1]===E)return k&&Q[0]&&Q[0].push(...k),null}let Fr=k?Z(k.sort((se,Q)=>se[1]-Q[1]||se[0]?.localeCompare(Q[0]||"")||0).map(se=>se[0]).filter(Boolean)):[];return Fr.length?`${Fr.join(`,${p}`)}{${E}}`:E}).filter(Boolean).reverse().join(p);if(!U)return S;let z=U.split(" $$ ");return`${z.join("{")}{${p}${S}${p}${"}".repeat(z.length)}`}).filter(Boolean).join(p);if(i&&(v=[x[h],v].filter(Boolean).join(p)),f&&v){let U=typeof f=="object"?f.cssLayerName?.(h):void 0;U!==null&&(U||(U=h),v=`@layer ${U}{${p}${v}${p}}`)}let V=a?"":`/* layer: ${h} */${p}`;return b[h]=v?V+v:""},T=(h=j,v)=>h.filter(V=>!v?.includes(V)).map(V=>y(V)||"").filter(Boolean).join(p);return{get css(){return T()},layers:j,matched:m,getLayers:T,getLayer:y,setLayer:async(h,v)=>{let V=await v(y(h));return b[h]=V,V}}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!0,a={rawSelector:t,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 f=await l.match(i,a);if(f){if(P(f)){if(f===i)continue;f={matcher:f}}i=f.matcher??i,o.unshift(f),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((f,u)=>(f.order||0)-(u.order||0)).reduceRight((f,u)=>p=>{let d=u.body?.(p.entries)||p.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0];return(u.handle??gl)({...p,entries:d,selector:u.selector?.(p.selector,d)||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.sort},f)},f=>f)({prefix:"",selector:Br(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let f of this.config.postprocess)f(l);return l}constructCustomCSS(t,r,n){let o=xe(r);if(P(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${i}{${ye(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1,o){let[i,s,a]=P(t)?await this.matchVariants(t):t;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 u=l[0],p=xe(l[1]),d=l[2];return P(p)?[[u,p,d]]:[[u,i,p,d,a]]}r.variantHandlers=a;let{rulesDynamic:f}=this.config;for(let[u,p,d,m]of f){if(m?.internal&&!n)continue;let g=s;if(m?.prefix){let b=A(m.prefix);if(o){let y=A(o);if(!b.some(T=>y.includes(T)))continue}else{let y=b.find(T=>s.startsWith(T));if(y==null)continue;g=s.slice(y.length)}}let x=g.match(p);if(!x)continue;let $=await d(x,r);if(!$)continue;if(this.config.details&&r.rules.push([p,d,m]),typeof $!="string")if(Symbol.asyncIterator in $){let b=[];for await(let y of $)y&&b.push(y);$=b}else Symbol.iterator in $&&!Array.isArray($)&&($=Array.from($).filter(Wr));let j=Fn($).filter(b=>b.length);if(j.length)return j.map(b=>{if(P(b))return[u,b,m];let y=a;for(let T of b)T[0]===pe.variants?y=[...A(T[1]),...y]:T[0]===pe.parent?y=[{parent:T[1]},...y]:T[0]===pe.selector?y=[{selector:T[1]},...y]:T[0]===pe.layer&&(y=[{layer:T[1]},...y]);return[u,i,b,m,y]})}}stringifyUtil(t,r){if(!t)return;if(Ur(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:l}=this.applyVariants(t),f=ye(o);if(!f)return;let{layer:u,sort:p,...d}=t[3]??{},m={...d,layer:s??u,sort:a??p};return[t[0],n,f,i,m,this.config.details?r:void 0,l]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:_n,i,s;for(let a of this.config.shortcuts){let l=t;if(a[2]?.prefix){let u=A(a[2].prefix).find(p=>t.startsWith(p));if(u==null)continue;l=t.slice(u.length)}if(Un(a)){if(a[0]===l){i=i||a[2],s=a[1],o(a);break}}else{let f=l.match(a[0]);if(f&&(s=a[1](f,r)),s){i=i||a[2],o(a);break}}}if(s&&(s=A(s).map(a=>P(a)?Wn(a.trim()).split(/\s+/g):a).flat()),!s){let[a,l]=P(t)?await this.matchVariants(t):t;if(a!==l){let f=await this.expandShortcut(l,r,n-1);f&&(s=f[0].map(u=>P(u)?a.replace(l,u):u))}}if(s)return[(await Promise.all(s.map(async a=>(P(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new at,s=(await Promise.all(Z(n).map(async u=>{let p=P(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",xe(u),void 0,[]]];return!p&&this.config.warn&&Dn(`unmatched utility "${u}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[0]),[a,,l]=t,f=[];for(let u of s){if(Ur(u)){f.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let{selector:p,entries:d,parent:m,sort:g,noMerge:x,layer:$}=this.applyVariants(u,[...u[4],...l],a);i.getFallback($??o.layer,new st).getFallback(p,m,[[],u[0]])[0].push([d,!!(x??u[3]?.noMerge),g??0])}return f.concat(i.flatMap((u,p)=>u.map(([d,m],g,x)=>{let $=(b,y,T)=>{let F=Math.max(...T.map(v=>v[1])),h=T.map(v=>v[0]);return(b?[h.flat(1)]:h).map(v=>{let V=ye(v);if(V)return[m,g,V,x,{...o,noMerge:y,sort:F,layer:p},r,void 0]})};return[[d.filter(([,b])=>b).map(([b,,y])=>[b,y]),!0],[d.filter(([,b])=>!b).map(([b,,y])=>[b,y]),!1]].map(([b,y])=>[...$(!1,y,b.filter(([T])=>T.some(F=>F[0]===pe.shortcutsNoMerge))),...$(!0,y,b.filter(([T])=>T.every(F=>F[0]!==pe.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):P(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):P(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};function Xn(e,t){return new Dr(e,t)}var Zn=/\s\$\$\s+/g;function ml(e){return Zn.test(e)}function hl(e,t){return ml(e)?e.replace(Zn,t?` ${t} `:" "):t?`${t} ${e}`:e}var Yn=/^\[(.+?)(~?=)"(.*)"\]$/;function Br(e){return Yn.test(e)?e.replace(Yn,(t,r,n,o)=>`[${it(r)}${n}"${it(o)}"]`):`.${it(e)}`}function gl(e,t){return t(e)}var Ir=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function Jn(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Pn(i);if(!a)return;let l=a[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let f=a[2],[,u="",p=f]=f.match(Ir)||[];if(p==="~"||n&&p==="true"||!p)return`${u}${l}`;if(o==null){let d=s?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,m]=f.match(o)||[];if(m)return`${d}${u}${l}-${m}`}return`${u}${l}-${p}`}}}var bl=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,xl=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,Qn=/[\s'"`;>]+/;function eo(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(bl),o,i=0;for(let b of n){let[,y,T]=b,F=b.index+y.length;if(r>F&&r<=F+T.length){i=F,o=T;break}}if(!o)return null;let s=o.matchAll(xl),a=0,l,f;for(let b of s){let[y,T,F]=b,h=i+b.index;if(r>h&&r<=h+y.length){a=h,l=T,f=F?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let u=!!e?.prefix&&l.startsWith(e.prefix);if(e?.prefixedOnly&&!u)return null;let p=u?l.slice(e.prefix.length):l;if(f===void 0)return{extracted:p,resolveReplacement(b){let y=u?e.prefix.length:0;return{start:a+y,end:a+l.length,replacement:b}}};let d=a+l.length+2,m=Qn.exec(f),g=0,x;for(;m;){let[b]=m;if(r>d+g&&r<=d+g+m.index){x=f.slice(g,g+m.index);break}g+=m.index+b.length,m=Qn.exec(f.slice(g))}x===void 0&&(x=f.slice(g));let[,$="",j]=x.match(Ir)||[];return{extracted:`${$}${p}-${j}`,transformSuggestions(b){return b.filter(y=>y.startsWith(`${$}${p}-`)).map(y=>$+y.slice($.length+p.length+1))},resolveReplacement(b){return{start:g+d,end:g+d+x.length,replacement:$+b.slice($.length+p.length+1)}}}}}}var yl=["v-bind:",":"],to=/[\s'"`;]+/g,Kr=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,vl=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Gr=["placeholder","fill","opacity","stroke-opacity"];function ro(e){let t=e?.ignoreAttributes??Gr,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Kr)).flatMap(i=>Array.from((i[1]||"").matchAll(vl))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let l of yl)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(Pe(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(to).filter(Pe):Kr.test(a)?(Kr.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(to).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var wl=(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??Gr;let t=[Jn(e)],r=[ro(e)],n=[eo(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},no=wl;var ft="__TAGIFY__",$l=/<([\w:-]+)/g;function oo(e){let{prefix:t="",excludedTags:r=["b",/^h\d+$/,"table"]}=e;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll($l)).filter(({1:o})=>{for(let i of r)if(typeof i=="string"){if(o===i)return!1}else if(i.test(o))return!1;return o.startsWith(t)}).map(([,o])=>`${ft}${o}`)}}}function io(e){let{extraProperties:t}=e,r=`${ft}${e.prefix??""}`;return{name:"tagify",match(n){if(!n.startsWith(r))return;let o=n.slice(r.length),i={matcher:o,selector:s=>s.slice(ft.length+1)};return t&&(typeof t=="function"?i.body=s=>[...s,...Object.entries(t(o)??{})]:i.body=s=>[...s,...Object.entries(t)]),i}}}var kl=(e={})=>{let{defaultExtractor:t=!0}=e,r=[io(e)],n=[oo(e)];return{name:"@unocss/preset-tagify",variants:r,extractors:n,extractorDefault:t?void 0:!1}},so=kl;function Hr(e){return{"h1,h2,h3,h4,h5,h6":{color:"var(--un-prose-headings)","font-weight":"600","line-height":1.25},a:{color:"var(--un-prose-links)","text-decoration":"underline","font-weight":"500"},"a code":{color:"var(--un-prose-links)"},"p,ul,ol,pre":{margin:"1em 0","line-height":1.75},blockquote:{margin:"1em 0","padding-left":"1em","font-style":"italic","border-left":".25em solid var(--un-prose-borders)"},h1:{margin:"1rem 0","font-size":"2.25em"},h2:{margin:"1.75em 0 .5em","font-size":"1.75em"},h3:{margin:"1.5em 0 .5em","font-size":"1.375em"},h4:{margin:"1em 0","font-size":"1.125em"},"img,video":{"max-width":"100%"},"figure,picture":{margin:"1em 0"},figcaption:{color:"var(--un-prose-captions)","font-size":".875em"},code:{color:"var(--un-prose-code)","font-size":".875em","font-weight":600,"font-family":e.fontFamily?.mono},":not(pre) > code::before,:not(pre) > code::after":{content:'"`"'},pre:{padding:"1.25rem 1.5rem","overflow-x":"auto","border-radius":".375rem"},"pre,code":{"white-space":"pre","word-spacing":"normal","word-break":"normal","word-wrap":"normal","-moz-tab-size":4,"-o-tab-size":4,"tab-size":4,"-webkit-hyphens":"none","-moz-hyphens":"none",hyphens:"none",background:"transparent"},"pre code":{"font-weight":"inherit"},"ol,ul":{"padding-left":"1.25em"},ol:{"list-style-type":"decimal"},'ol[type="A"]':{"list-style-type":"upper-alpha"},'ol[type="a"]':{"list-style-type":"lower-alpha"},'ol[type="A" s]':{"list-style-type":"upper-alpha"},'ol[type="a" s]':{"list-style-type":"lower-alpha"},'ol[type="I"]':{"list-style-type":"upper-roman"},'ol[type="i"]':{"list-style-type":"lower-roman"},'ol[type="I" s]':{"list-style-type":"upper-roman"},'ol[type="i" s]':{"list-style-type":"lower-roman"},'ol[type="1"]':{"list-style-type":"decimal"},ul:{"list-style-type":"disc"},"ol > li::marker,ul > li::marker,summary::marker":{color:"var(--un-prose-lists)"},hr:{margin:"2em 0",border:"1px solid var(--un-prose-hr)"},table:{display:"block",margin:"1em 0","border-collapse":"collapse","overflow-x":"auto"},"tr:nth-child(2n)":{background:"var(--un-prose-bg-soft)"},"td,th":{border:"1px solid var(--un-prose-borders)",padding:".625em 1em"},abbr:{cursor:"help"},kbd:{color:"var(--un-prose-code)",border:"1px solid",padding:".25rem .5rem","font-size":".875em","border-radius":".25rem"},details:{margin:"1em 0",padding:"1.25rem 1.5rem",background:"var(--un-prose-bg-soft)"},summary:{cursor:"pointer","font-weight":"600"}}}function ao(e){let t="",{escapedSelector:r,selectorName:n,preflights:o,compatibility:i}=e,s=i?.noColonNot||i?.noColonWhere;for(let a in o){let l=o[a],f=`:not(:where(.not-${n},.not-${n} *))`,u=a.split(",").map(p=>{let d=p.match(/:[():\-\w]+$/g);if(d){let m=d[0];return p=p.replace(m,""),r.map(g=>s?`${g} ${p}${m}`:`${g} :where(${p})${f}${m}`).join(",")}return null}).filter(p=>p);u.length?t+=u.join(","):t+=r.map(p=>s?a.split(",").map(d=>`${p} ${d}`).join(","):`${p} :where(${a})${f}`).join(","),t+="{";for(let p in l){let d=l[p];t+=`${p}:${d};`}t+="}"}return t}function lo(e,t){let{escapedSelectors:r,selectorName:n,cssExtend:o,compatibility:i}=t,s=Array.from(r);return!s[s.length-1].startsWith(".")&&!i?.noColonIs&&(s=[`:is(${s[s.length-1]},.${n})`]),ao(o?{escapedSelector:s,selectorName:n,preflights:_e(Hr(e.theme),o),compatibility:i}:{escapedSelector:s,selectorName:n,preflights:Hr(e.theme),compatibility:i})}var Sl=e=>{e?.className&&console.warn('[unocss:preset-typography] "className" is deprecated. Use "selectorName" instead.');let t=new Set,r=e?.selectorName||e?.className||"prose",n=new RegExp(`^${r}$`),o=new RegExp(`^${r}-([-\\w]+)$`),i=new RegExp(`^${r}-invert$`),s=e?.compatibility;return{name:"@unocss/preset-typography",enforce:"post",layers:{typography:-20},rules:[[n,(a,{rawSelector:l})=>(t.add(Br(l)),{color:"var(--un-prose-body)","max-width":"65ch"}),{layer:"typography"}],[o,([,a],{theme:l})=>{let f=l.colors?.[a];if(f==null)return;let u=typeof f=="object"?f:{};return{"--un-prose-body":u[700]??f,"--un-prose-headings":u[900]??f,"--un-prose-links":u[900]??f,"--un-prose-lists":u[400]??f,"--un-prose-hr":u[200]??f,"--un-prose-captions":u[500]??f,"--un-prose-code":u[900]??f,"--un-prose-borders":u[200]??f,"--un-prose-bg-soft":u[100]??f,"--un-prose-invert-body":u[200]??f,"--un-prose-invert-headings":u[100]??f,"--un-prose-invert-links":u[100]??f,"--un-prose-invert-lists":u[500]??f,"--un-prose-invert-hr":u[700]??f,"--un-prose-invert-captions":u[400]??f,"--un-prose-invert-code":u[100]??f,"--un-prose-invert-borders":u[700]??f,"--un-prose-invert-bg-soft":u[800]??f}},{layer:"typography"}],[i,()=>({"--un-prose-body":"var(--un-prose-invert-body)","--un-prose-headings":"var(--un-prose-invert-headings)","--un-prose-links":"var(--un-prose-invert-links)","--un-prose-lists":"var(--un-prose-invert-lists)","--un-prose-hr":"var(--un-prose-invert-hr)","--un-prose-captions":"var(--un-prose-invert-captions)","--un-prose-code":"var(--un-prose-invert-code)","--un-prose-borders":"var(--un-prose-invert-borders)","--un-prose-bg-soft":"var(--un-prose-invert-bg-soft)"}),{layer:"typography"}]],preflights:[{layer:"typography",getCSS:a=>{if(t.size>0){let l=typeof e?.cssExtend=="function"?e.cssExtend(a.theme):e?.cssExtend;return lo(a,{escapedSelectors:t,selectorName:r,cssExtend:l,compatibility:s})}}}]}},co=Sl;function Cl(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function fo(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${Cl(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function uo(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var Rl=/\/\/#\s*sourceMappingURL=.*\n?/g;function po(e){return e.includes("sourceMappingURL=")?e.replace(Rl,""):e}var Tl=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,El=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,jl=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function zl(e){let t=[];for(let o of e.matchAll(El))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(Tl))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=fo(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(rt).forEach(o=>{o.includes(n)&&(o=uo(o,r)),Pe(o)&&!jl.test(o)&&t.push(o)}),t}var mo={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return zl(po(e))}};var ho=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=ye(Object.entries(e.theme.preflightBase));return A(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];function ve(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function le(e,t,r,n){if(e===""||(P(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===e.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[e.slice(0,s),e.slice(s+l)]}}return[e,""]}function de(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=le(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var qr=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],go=["%alpha","<alpha-value>"],Ol=new RegExp(go.map(e=>ae(e)).join("|"));function H(e=""){let t=Al(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(qr.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function re(e){let t=e.alpha??1;return typeof t=="string"&&go.includes(t)?1:t}function M(e,t){if(typeof e=="string")return e.replace(Ol,`${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}`,qr.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Al(e){if(!e)return;let t=Vl(e);if(t!=null||(t=Pl(e),t!=null)||(t=Ml(e),t!=null)||(t=Fl(e),t!=null)||(t=Ll(e),t!=null))return t}function Vl(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 Pl(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Ml(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=de(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 _l=new RegExp(`^(${qr.join("|")})\\((.+)\\)$`,"i");function Fl(e){let t=e.match(_l);if(!t)return;let[,r,n]=t,o=bo(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Ll(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=bo(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function bo(e){let t=de(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=de(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 ut(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wo=new Uint8Array(64),Ul=new Uint8Array(128);for(let e=0;e<xo.length;e++){let t=xo.charCodeAt(e);wo[e]=t,Ul[t]=e}function Fe(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(wo[o])}while(n>0);return t}var yo=1024*16,vo=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}},Yr=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(yo)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===yo&&(this.out+=vo.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+vo.decode(t.subarray(0,n)):r}};function $o(e){let t=new Yr,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let l=0;for(let f=0;f<a.length;f++){let u=a[f];f>0&&t.write(44),l=Fe(t,u[0],l),u.length!==1&&(r=Fe(t,u[1],r),n=Fe(t,u[2],n),o=Fe(t,u[3],o),u.length!==4&&(i=Fe(t,u[4],i)))}}return t.flush()}var pt=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))}},dt=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function Wl(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Nl=Wl(),Xr=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=$o(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,"+Nl(this.toString())}};function Dl(e){let t=e.split(`
|
|
3
3
|
`),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function Bl(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 Il=Object.prototype.toString;function Kl(e){return Il.call(e)==="[object Object]"}function ko(e){let t=e.split(`
|
|
4
4
|
`),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let f=i+s>>1;o<r[f]?s=f:i=f+1}let a=i-1,l=o-r[a];return{line:a,column:l}}}var Gl=/\w/,Zr=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
|
package/mini.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var $i=Object.defineProperty;var Si=(t,e)=>{for(var r in e)$i(t,r,{get:e[r],enumerable:!0})};var ge="default",Le="preflights",vi="shortcuts",Ci="imports",Ht={[Ci]:-200,[Le]:-100,[vi]:-10,[ge]:0};var Fe=/[\\:]?[\s'"`;{}]+/g;function ki(t){return t.split(Fe)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return ki(t)}};function A(t=[]){return Array.isArray(t)?t:[t]}function B(t){return Array.from(new Set(t))}function ut(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function V(t){return typeof t=="string"}var be=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function _e(t){return t instanceof be}function Z(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var We=te;var Ri=/^\[(.+?)~?="(.*)"\]$/;var Ei=/[\w\u00A0-\uFFFF%-?]/;function Gt(t){return t.match(Ri)}function xe(t=""){return Ei.test(t)}function qt(t){return typeof t=="function"?{match:t}:t}function ft(t){return t.length===3}function pt(t){return t!=null}function Yt(){}var Ie=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>e(i,r,o)))}},De=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function ie(t){return V(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Xt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ie(e)):[t]:[ie(t)]}function Ti(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function se(t){return t==null?"":Ti(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ne(t){return t&&typeof t=="object"&&!Array.isArray(t)}function dt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Ne(n)&&Ne(o)&&Object.keys(o).forEach(s=>{Ne(n[s])&&Ne(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=dt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function ye(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?ye(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ye(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ye(n):n;return r}return t}function Zt(t){return V(t[0])}function Jt(t){return V(t[0])}var Be={};function ji(t=["-",":"]){let e=t.join("|");return Be[e]||(Be[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Be[e].lastIndex=0,Be[e]}function Ai(t,e=["-",":"],r=5){let n=ji(e),o,i=t.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,f,p,d,m)=>{if(!e.includes(p))return u;o=!0,s.add(f+p);let b=m+f.length+p.length+1,w={length:u.length,items:[]};a.set(m,w);for(let $ of[...d.matchAll(/\S+/g)]){let R=b+$.index,g=a.get(R)?.items;g?a.delete(R):g=[{offset:R,length:$[0].length,className:$[0]}];for(let x of g)x.className=x.className==="~"?f:x.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),w.items.push(x)}return"$".repeat(u.length)}),r-=1;while(o&&r);let l;if(typeof t=="string"){l="";let u=0;for(let[f,p]of a)l+=t.slice(u,f),l+=p.items.map(d=>d.className).join(" "),u=f+p.length;l+=t.slice(u)}else{l=t;for(let[u,f]of a)l.overwrite(u,u+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Qt(t,e=["-",":"],r=5){let n=Ai(t,e,r);return typeof t=="string"?n.expanded:t}var er=new Set;function tr(t){er.has(t)||(console.warn("[unocss]",t),er.add(t))}function or(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var rr="_uno_resolved";function Oi(t){let e=typeof t=="function"?t():t;if(rr in e)return e;e={...e},Object.defineProperty(e,rr,{value:!0,enumerable:!1});let r=e.shortcuts?or(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=A(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function ir(t){let e=Oi(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(A).flatMap(ir);return[e,...r]}function Vi(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let l of t){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:B(nr(...e)),exclude:B(nr(...r))}};return o.length&&(a.filesystem=B(o.flat())),i.length&&(a.inline=B(i.flat())),s.length&&(a.plain=B(s.flat())),a}function ht(t={},e={}){let r=Object.assign({},e,t),n=ut((r.presets||[]).flatMap(A).flatMap(ir),(h,y)=>h.name===y.name),o=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Ht,...i.map(h=>h.layers));function l(h){return B(i.flatMap(y=>A(y[h]||[])))}let u=l("extractors"),f=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!u.includes(f)&&u.unshift(f),u.sort((h,y)=>(h.order||0)-(y.order||0));let p=l("rules"),d={},m=p.length,b=p.map((h,y)=>{if(Zt(h)){A(h[2]?.prefix||"").forEach(z=>{d[z+h[0]]=[y,h[1],h[2],h]});return}return[y,...h]}).filter(Boolean).reverse(),w=Pi(i.map(h=>h.theme)),$=l("extendTheme");for(let h of $)w=h(w)||w;let R={templates:B(i.flatMap(h=>A(h.autocomplete?.templates))),extractors:i.flatMap(h=>A(h.autocomplete?.extractors)).sort((h,y)=>(h.order||0)-(y.order||0)),shorthands:zi(i.map(h=>h.autocomplete?.shorthands||{}))},g=l("separators");g.length||(g=[":","-"]);let x=l("content"),C=Vi(x),P={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:w,rulesSize:m,rulesDynamic:b,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:R,variants:l("variants").map(qt).sort((h,y)=>(h.order||0)-(y.order||0)),shortcuts:or(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:g,details:r.details??r.envMode==="dev",content:C,transformers:ut(l("transformers"),(h,y)=>h.name===y.name)};for(let h of i)h?.configResolved?.(P);return P}function Pi(t){return t.map(e=>e?ye(e):{}).reduce((e,r)=>dt(e,r),{})}function zi(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function nr(...t){return t.flatMap(Mi)}function Mi(t){return Array.isArray(t)?t:t?[t]:[]}var sr="0.63.5";function ar(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var re={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},mt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ht(e,r),this.events.emit("config",this.config)}version=sr;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=ar();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ht(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(_e(s)&&_e(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:re,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=e;for(let u of this.config.preprocess)o=u(e);if(this.isBlocked(o)){this.blocked.add(e),this._cache.set(n,null);return}let i=await this.matchVariants(e,o);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(n,null);return}let s=this.makeContext(e,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(u=>this.stringifyUtil(u,s)).filter(pt);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,u=this.config.outputToCssLayers,f=V(e)?await this.applyExtractors(e,n,l?new be:new Set):Array.isArray(e)?new Set(e):e;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(y=>typeof y=="function"?y(h):y).forEach(y=>{f.has(y)||f.add(y)})}let p=a?"":`
|
|
1
|
+
"use strict";(()=>{var $i=Object.defineProperty;var Si=(t,e)=>{for(var r in e)$i(t,r,{get:e[r],enumerable:!0})};var ge="default",Le="preflights",vi="shortcuts",Ci="imports",Ht={[Ci]:-200,[Le]:-100,[vi]:-10,[ge]:0};var Fe=/[\\:]?[\s'"`;{}]+/g;function ki(t){return t.split(Fe)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return ki(t)}};function A(t=[]){return Array.isArray(t)?t:[t]}function B(t){return Array.from(new Set(t))}function ut(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function V(t){return typeof t=="string"}var be=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function _e(t){return t instanceof be}function Z(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var We=te;var Ri=/^\[(.+?)~?="(.*)"\]$/;var Ei=/[\w\u00A0-\uFFFF%-?]/;function Gt(t){return t.match(Ri)}function xe(t=""){return Ei.test(t)}function qt(t){return typeof t=="function"?{match:t}:t}function ft(t){return t.length===3}function pt(t){return t!=null}function Yt(){}var Ie=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>e(i,r,o)))}},De=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function ie(t){return V(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Xt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ie(e)):[t]:[ie(t)]}function Ti(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function se(t){return t==null?"":Ti(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ne(t){return t&&typeof t=="object"&&!Array.isArray(t)}function dt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Ne(n)&&Ne(o)&&Object.keys(o).forEach(s=>{Ne(n[s])&&Ne(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=dt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function ye(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?ye(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ye(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ye(n):n;return r}return t}function Zt(t){return V(t[0])}function Jt(t){return V(t[0])}var Be={};function ji(t=["-",":"]){let e=t.join("|");return Be[e]||(Be[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Be[e].lastIndex=0,Be[e]}function Ai(t,e=["-",":"],r=5){let n=ji(e),o,i=t.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,f,p,d,m)=>{if(!e.includes(p))return u;o=!0,s.add(f+p);let b=m+f.length+p.length+1,w={length:u.length,items:[]};a.set(m,w);for(let $ of[...d.matchAll(/\S+/g)]){let R=b+$.index,g=a.get(R)?.items;g?a.delete(R):g=[{offset:R,length:$[0].length,className:$[0]}];for(let x of g)x.className=x.className==="~"?f:x.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),w.items.push(x)}return"$".repeat(u.length)}),r-=1;while(o&&r);let l;if(typeof t=="string"){l="";let u=0;for(let[f,p]of a)l+=t.slice(u,f),l+=p.items.map(d=>d.className).join(" "),u=f+p.length;l+=t.slice(u)}else{l=t;for(let[u,f]of a)l.overwrite(u,u+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Qt(t,e=["-",":"],r=5){let n=Ai(t,e,r);return typeof t=="string"?n.expanded:t}var er=new Set;function tr(t){er.has(t)||(console.warn("[unocss]",t),er.add(t))}function or(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var rr="_uno_resolved";function Oi(t){let e=typeof t=="function"?t():t;if(rr in e)return e;e={...e},Object.defineProperty(e,rr,{value:!0,enumerable:!1});let r=e.shortcuts?or(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=A(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function ir(t){let e=Oi(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(A).flatMap(ir);return[e,...r]}function Vi(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let l of t){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:B(nr(...e)),exclude:B(nr(...r))}};return o.length&&(a.filesystem=B(o.flat())),i.length&&(a.inline=B(i.flat())),s.length&&(a.plain=B(s.flat())),a}function ht(t={},e={}){let r=Object.assign({},e,t),n=ut((r.presets||[]).flatMap(A).flatMap(ir),(h,y)=>h.name===y.name),o=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Ht,...i.map(h=>h.layers));function l(h){return B(i.flatMap(y=>A(y[h]||[])))}let u=l("extractors"),f=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!u.includes(f)&&u.unshift(f),u.sort((h,y)=>(h.order||0)-(y.order||0));let p=l("rules"),d={},m=p.length,b=p.map((h,y)=>{if(Zt(h)){A(h[2]?.prefix||"").forEach(z=>{d[z+h[0]]=[y,h[1],h[2],h]});return}return[y,...h]}).filter(Boolean).reverse(),w=Pi(i.map(h=>h.theme)),$=l("extendTheme");for(let h of $)w=h(w)||w;let R={templates:B(i.flatMap(h=>A(h.autocomplete?.templates))),extractors:i.flatMap(h=>A(h.autocomplete?.extractors)).sort((h,y)=>(h.order||0)-(y.order||0)),shorthands:zi(i.map(h=>h.autocomplete?.shorthands||{}))},g=l("separators");g.length||(g=[":","-"]);let x=l("content"),C=Vi(x),P={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:w,rulesSize:m,rulesDynamic:b,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:R,variants:l("variants").map(qt).sort((h,y)=>(h.order||0)-(y.order||0)),shortcuts:or(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:g,details:r.details??r.envMode==="dev",content:C,transformers:ut(l("transformers"),(h,y)=>h.name===y.name)};for(let h of i)h?.configResolved?.(P);return P}function Pi(t){return t.map(e=>e?ye(e):{}).reduce((e,r)=>dt(e,r),{})}function zi(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function nr(...t){return t.flatMap(Mi)}function Mi(t){return Array.isArray(t)?t:t?[t]:[]}var sr="0.63.6";function ar(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var re={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},mt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ht(e,r),this.events.emit("config",this.config)}version=sr;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=ar();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ht(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(_e(s)&&_e(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:re,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=e;for(let u of this.config.preprocess)o=u(e);if(this.isBlocked(o)){this.blocked.add(e),this._cache.set(n,null);return}let i=await this.matchVariants(e,o);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(n,null);return}let s=this.makeContext(e,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(u=>this.stringifyUtil(u,s)).filter(pt);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,u=this.config.outputToCssLayers,f=V(e)?await this.applyExtractors(e,n,l?new be:new Set):Array.isArray(e)?new Set(e):e;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(y=>typeof y=="function"?y(h):y).forEach(y=>{f.has(y)||f.add(y)})}let p=a?"":`
|
|
2
2
|
`,d=new Set([ge]),m=l?new Map:new Set,b=new Map,w={},$=Array.from(f).map(async h=>{if(m.has(h))return;let y=await this.parseToken(h);if(y!=null){m instanceof Map?m.set(h,{data:y,count:_e(f)?f.getCount(h):-1}):m.add(h);for(let T of y){let z=T[3]||"",U=T[4]?.layer;b.has(z)||b.set(z,[]),b.get(z).push(T),U&&d.add(U)}}});await Promise.all($),await(async()=>{if(!i)return;let h={generator:this,theme:this.config.theme},y=new Set([]);this.config.preflights.forEach(({layer:T=Le})=>{d.add(T),y.add(T)}),w=Object.fromEntries(await Promise.all(Array.from(y).map(async T=>{let U=(await Promise.all(this.config.preflights.filter(q=>(q.layer||Le)===T).map(async q=>await q.getCSS(h)))).filter(Boolean).join(p);return[T,U]})))})();let R=this.config.sortLayers(Array.from(d).sort((h,y)=>(this.config.layers[h]??0)-(this.config.layers[y]??0)||h.localeCompare(y))),g={},x=(h=ge)=>{if(g[h])return g[h];let y=Array.from(b).sort((z,U)=>(this.parentOrders.get(z[0])??0)-(this.parentOrders.get(U[0])??0)||z[0]?.localeCompare(U[0]||"")||0).map(([z,U])=>{let q=U.length,me=U.filter(S=>(S[4]?.layer||ge)===h).sort((S,k)=>S[0]-k[0]||(S[4]?.sort||0)-(k[4]?.sort||0)||S[5]?.currentSelector?.localeCompare(k[5]?.currentSelector??"")||S[1]?.localeCompare(k[1]||"")||S[2]?.localeCompare(k[2]||"")||0).map(([,S,k,,L,,Y])=>[[[(S&&Ui(S,o))??"",L?.sort??0]],k,!!(Y??L?.noMerge)]);if(!me.length)return;let v=me.reverse().map(([S,k,L],Y)=>{if(!L&&this.config.mergeSelectors)for(let X=Y+1;X<q;X++){let H=me[X];if(H&&!H[2]&&(S&&H[0]||S==null&&H[0]==null)&&H[1]===k)return S&&H[0]&&H[0].push(...S),null}let ct=S?B(S.sort((X,H)=>X[1]-H[1]||X[0]?.localeCompare(H[0]||"")||0).map(X=>X[0]).filter(Boolean)):[];return ct.length?`${ct.join(`,${p}`)}{${k}}`:k}).filter(Boolean).reverse().join(p);if(!z)return v;let E=z.split(" $$ ");return`${E.join("{")}{${p}${v}${p}${"}".repeat(E.length)}`}).filter(Boolean).join(p);if(i&&(y=[w[h],y].filter(Boolean).join(p)),u&&y){let z=typeof u=="object"?u.cssLayerName?.(h):void 0;z!==null&&(z||(z=h),y=`@layer ${z}{${p}${y}${p}}`)}let T=a?"":`/* layer: ${h} */${p}`;return g[h]=y?T+y:""},C=(h=R,y)=>h.filter(T=>!y?.includes(T)).map(T=>x(T)||"").filter(Boolean).join(p);return{get css(){return C()},layers:R,matched:m,getLayers:C,getLayer:x,setLayer:async(h,y)=>{let T=await y(x(h));return g[h]=T,T}}}async matchVariants(e,r){let n=new Set,o=[],i=r||e,s=!0,a={rawSelector:e,theme:this.config.theme,generator:this};for(;s;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let u=await l.match(i,a);if(u){if(V(u)){if(u===i)continue;u={matcher:u}}i=u.matcher??i,o.unshift(u),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,o,n]}applyVariants(e,r=e[4],n=e[1]){let i=r.slice().sort((u,f)=>(u.order||0)-(f.order||0)).reduceRight((u,f)=>p=>{let d=f.body?.(p.entries)||p.entries,m=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??Wi)({...p,entries:d,selector:f.selector?.(p.selector,d)||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},u)},u=>u)({prefix:"",selector:_i(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let u of this.config.postprocess)u(l);return l}constructCustomCSS(e,r,n){let o=ie(r);if(V(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]),l=`${i}{${se(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,o){let[i,s,a]=V(e)?await this.matchVariants(e):e;this.config.details&&(r.rules=r.rules??[]);let l=this.config.rulesStaticMap[s];if(l&&l[1]&&(n||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);let f=l[0],p=ie(l[1]),d=l[2];return V(p)?[[f,p,d]]:[[f,i,p,d,a]]}r.variantHandlers=a;let{rulesDynamic:u}=this.config;for(let[f,p,d,m]of u){if(m?.internal&&!n)continue;let b=s;if(m?.prefix){let g=A(m.prefix);if(o){let x=A(o);if(!g.some(C=>x.includes(C)))continue}else{let x=g.find(C=>s.startsWith(C));if(x==null)continue;b=s.slice(x.length)}}let w=b.match(p);if(!w)continue;let $=await d(w,r);if(!$)continue;if(this.config.details&&r.rules.push([p,d,m]),typeof $!="string")if(Symbol.asyncIterator in $){let g=[];for await(let x of $)x&&g.push(x);$=g}else Symbol.iterator in $&&!Array.isArray($)&&($=Array.from($).filter(pt));let R=Xt($).filter(g=>g.length);if(R.length)return R.map(g=>{if(V(g))return[f,g,m];let x=a;for(let C of g)C[0]===re.variants?x=[...A(C[1]),...x]:C[0]===re.parent?x=[{parent:C[1]},...x]:C[0]===re.selector?x=[{selector:C[1]},...x]:C[0]===re.layer&&(x=[{layer:C[1]},...x]);return[f,i,g,m,x]})}}stringifyUtil(e,r){if(!e)return;if(ft(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:l}=this.applyVariants(e),u=se(o);if(!u)return;let{layer:f,sort:p,...d}=e[3]??{},m={...d,layer:s??f,sort:a??p};return[e[0],n,u,i,m,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Yt,i,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=A(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(Jt(a)){if(a[0]===l){i=i||a[2],s=a[1],o(a);break}}else{let u=l.match(a[0]);if(u&&(s=a[1](u,r)),s){i=i||a[2],o(a);break}}}if(s&&(s=A(s).map(a=>V(a)?Qt(a.trim()).split(/\s+/g):a).flat()),!s){let[a,l]=V(e)?await this.matchVariants(e):e;if(a!==l){let u=await this.expandShortcut(l,r,n-1);u&&(s=u[0].map(f=>V(f)?a.replace(l,f):f))}}if(s)return[(await Promise.all(s.map(async a=>(V(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new De,s=(await Promise.all(B(n).map(async f=>{let p=V(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ie(f),void 0,[]]];return!p&&this.config.warn&&tr(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,u=[];for(let f of s){if(ft(f)){u.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:m,sort:b,noMerge:w,layer:$}=this.applyVariants(f,[...f[4],...l],a);i.getFallback($??o.layer,new Ie).getFallback(p,m,[[],f[0]])[0].push([d,!!(w??f[3]?.noMerge),b??0])}return u.concat(i.flatMap((f,p)=>f.map(([d,m],b,w)=>{let $=(g,x,C)=>{let P=Math.max(...C.map(y=>y[1])),h=C.map(y=>y[0]);return(g?[h.flat(1)]:h).map(y=>{let T=se(y);if(T)return[m,b,T,w,{...o,noMerge:x,sort:P,layer:p},r,void 0]})};return[[d.filter(([,g])=>g).map(([g,,x])=>[g,x]),!0],[d.filter(([,g])=>!g).map(([g,,x])=>[g,x]),!1]].map(([g,x])=>[...$(!1,x,g.filter(([C])=>C.some(P=>P[0]===re.shortcutsNoMerge))),...$(!0,x,g.filter(([C])=>C.every(P=>P[0]!==re.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):V(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(e):V(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};function cr(t,e){return new mt(t,e)}var ur=/\s\$\$\s+/g;function Fi(t){return ur.test(t)}function Ui(t,e){return Fi(t)?t.replace(ur,e?` ${e} `:" "):e?`${e} ${t}`:t}var lr=/^\[(.+?)(~?=)"(.*)"\]$/;function _i(t){return lr.test(t)?t.replace(lr,(e,r,n,o)=>`[${We(r)}${n}"${We(o)}"]`):`.${We(t)}`}function Wi(t,e){return e(t)}var gt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function fr(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Gt(i);if(!a)return;let l=a[1];if(l.startsWith(e))l=l.slice(e.length);else if(r)return;let u=a[2],[,f="",p=u]=u.match(gt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(o==null){let d=s?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,m]=u.match(o)||[];if(m)return`${d}${f}${l}-${m}`}return`${f}${l}-${p}`}}}var Ii=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Di=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,pr=/[\s'"`;>]+/;function dr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Ii),o,i=0;for(let g of n){let[,x,C]=g,P=g.index+x.length;if(r>P&&r<=P+C.length){i=P,o=C;break}}if(!o)return null;let s=o.matchAll(Di),a=0,l,u;for(let g of s){let[x,C,P]=g,h=i+g.index;if(r>h&&r<=h+x.length){a=h,l=C,u=P?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!t?.prefix&&l.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?l.slice(t.prefix.length):l;if(u===void 0)return{extracted:p,resolveReplacement(g){let x=f?t.prefix.length:0;return{start:a+x,end:a+l.length,replacement:g}}};let d=a+l.length+2,m=pr.exec(u),b=0,w;for(;m;){let[g]=m;if(r>d+b&&r<=d+b+m.index){w=u.slice(b,b+m.index);break}b+=m.index+g.length,m=pr.exec(u.slice(b))}w===void 0&&(w=u.slice(b));let[,$="",R]=w.match(gt)||[];return{extracted:`${$}${p}-${R}`,transformSuggestions(g){return g.filter(x=>x.startsWith(`${$}${p}-`)).map(x=>$+x.slice($.length+p.length+1))},resolveReplacement(g){return{start:b+d,end:b+d+w.length,replacement:$+g.slice($.length+p.length+1)}}}}}}var Ni=["v-bind:",":"],hr=/[\s'"`;]+/g,bt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Bi=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,xt=["placeholder","fill","opacity","stroke-opacity"];function mr(t){let e=t?.ignoreAttributes??xt,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(bt)).flatMap(i=>Array.from((i[1]||"").matchAll(Bi))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(e.includes(i))return[];for(let l of Ni)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(xe(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(hr).filter(xe):bt.test(a)?(bt.lastIndex=0,this.extract({code:a})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:a.split(hr).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var Ki=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??xt;let e=[fr(t)],r=[mr(t)],n=[dr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},gr=Ki;function Hi(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function br(t,e,r,n){for(let o of Array.from(t.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${Hi(i)}`;e.set(s,i),t=t.replace(i,s)}return t}function xr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var Gi=/\/\/#\s*sourceMappingURL=.*\n?/g;function yr(t){return t.includes("sourceMappingURL=")?t.replace(Gi,""):t}var qi=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Yi=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Xi=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Zi(t){let e=[];for(let o of t.matchAll(Yi))o.index!==0&&!/^[\s'"`]/.test(t[o.index-1]??"")||e.push(o[0]);for(let o of t.matchAll(qi))e.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=br(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(Fe).forEach(o=>{o.includes(n)&&(o=xr(o,r)),xe(o)&&!Xi.test(o)&&e.push(o)}),e}var wr={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return Zi(yr(t))}};var $r=[{layer:"preflights",getCSS(t){if(t.theme.preflightBase){let e=se(Object.entries(t.theme.preflightBase));return A(t.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${e}}`).join("")}}}];function ae(t,e,r){if(t==="")return;let n=t.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function le(t,e,r,n){if(t===""||(V(n)&&(n=[n]),n.length===0))return;let o=t.length,i=0;for(let s=0;s<o;s++)switch(t[s]){case e:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function ce(t,e,r){r=r??10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let i=le(t,"(",")",e);if(!i)return;let[s,a]=i;n.push(s),t=a}if(n.length>0)return n}var yt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Sr=["%alpha","<alpha-value>"],Ji=new RegExp(Sr.map(t=>Z(t)).join("|"));function J(t=""){let e=Qi(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,i=r.toLowerCase();if(n.length!==0&&!(yt.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function we(t){let e=t.alpha??1;return typeof e=="string"&&Sr.includes(e)?1:e}function _(t,e){if(typeof t=="string")return t.replace(Ji,`${e??1}`);let{components:r}=t,{alpha:n,type:o}=t;return n=e??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,yt.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Qi(t){if(!t)return;let e=es(t);if(e!=null||(e=ts(t),e!=null)||(e=rs(t),e!=null)||(e=os(t),e!=null)||(e=is(t),e!=null))return e}function es(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ts(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function rs(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=ce(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var ns=new RegExp(`^(${yt.join("|")})\\((.+)\\)$`,"i");function os(t){let e=t.match(ns);if(!e)return;let[,r,n]=e,o=vr(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function is(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=vr(e[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function vr(t){let e=ce(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let i=e.splice(r-2);e.push(i.join(" ")),--r}let n=ce(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function Cr(t){let e=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=t[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return e}var kr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tr=new Uint8Array(64),ss=new Uint8Array(128);for(let t=0;t<kr.length;t++){let e=kr.charCodeAt(t);Tr[t]=e,ss[e]=t}function $e(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),t.write(Tr[o])}while(n>0);return e}var Rr=1024*16,Er=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}},wt=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Rr)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Rr&&(this.out+=Er.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Er.decode(e.subarray(0,n)):r}};function jr(t){let e=new wt,r=0,n=0,o=0,i=0;for(let s=0;s<t.length;s++){let a=t[s];if(s>0&&e.write(59),a.length===0)continue;let l=0;for(let u=0;u<a.length;u++){let f=a[u];u>0&&e.write(44),l=$e(e,f[0],l),f.length!==1&&(r=$e(e,f[1],r),n=$e(e,f[2],n),o=$e(e,f[3],o),f.length!==4&&(i=$e(e,f[4],i)))}}return e.flush()}var Ke=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},He=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new t(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function as(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var ls=as(),$t=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=jr(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+ls(this.toString())}};function cs(t){let e=t.split(`
|
|
3
3
|
`),r=e.filter(i=>/^\t+/.test(i)),n=e.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function us(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var fs=Object.prototype.toString;function ps(t){return fs.call(t)==="[object Object]"}function Ar(t){let e=t.split(`
|
|
4
4
|
`),r=[];for(let n=0,o=0;n<e.length;n++)r.push(o),o+=e[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let u=i+s>>1;o<r[u]?s=u:i=u+1}let a=i-1,l=o-r[a];return{line:a,column:l}}}var ds=/\w/,St=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.63.
|
|
4
|
+
"version": "0.63.6",
|
|
5
5
|
"description": "CSS-in-JS Runtime for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/
|
|
39
|
-
"@unocss/
|
|
40
|
-
"@unocss/preset-uno": "0.63.
|
|
38
|
+
"@unocss/preset-attributify": "0.63.6",
|
|
39
|
+
"@unocss/core": "0.63.6",
|
|
40
|
+
"@unocss/preset-uno": "0.63.6"
|
|
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 Aa=Object.defineProperty;var Pa=(e,t)=>{for(var r in t)Aa(e,r,{get:t[r],enumerable:!0})};var Ve="default",Qe="preflights",Ma="shortcuts",_a="imports",Rn={[_a]:-200,[Qe]:-100,[Ma]:-10,[Ve]:0};var et=/[\\:]?[\s'"`;{}]+/g;function Fa(e){return e.split(et)}var tt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Fa(e)}};function V(e=[]){return Array.isArray(e)?e:[e]}function Z(e){return Array.from(new Set(e))}function Mr(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function P(e){return typeof e=="string"}var Ae=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 rt(e){return e instanceof Ae}function ae(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(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 nt=te;var La=/[\w\u00A0-\uFFFF%-?]/;function Tn(e=""){return La.test(e)}function En(e){return typeof e=="function"?{match:e}:e}function _r(e){return e.length===3}function Fr(e){return e!=null}function jn(){}var ot=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)))}},it=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function xe(e){return P(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function zn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>xe(t)):[e]:[xe(e)]}function Ua(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 ye(e){return e==null?"":Ua(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function st(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Lr(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 st(n)&&st(o)&&Object.keys(o).forEach(s=>{st(n[s])&&st(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Lr(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Pe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Pe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Pe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Pe(n):n;return r}return e}function On(e){return P(e[0])}function Vn(e){return P(e[0])}var at={};function Wa(e=["-",":"]){let t=e.join("|");return at[t]||(at[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),at[t].lastIndex=0,at[t]}function Na(e,t=["-",":"],r=5){let n=Wa(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(f,u,p,d,m)=>{if(!t.includes(p))return f;o=!0,s.add(u+p);let g=m+u.length+p.length+1,y={length:f.length,items:[]};a.set(m,y);for(let k of[...d.matchAll(/\S+/g)]){let z=g+k.index,b=a.get(z)?.items;b?a.delete(z):b=[{offset:z,length:k[0].length,className:k[0]}];for(let w of b)w.className=w.className==="~"?u:w.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),y.items.push(w)}return"$".repeat(f.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let f=0;for(let[u,p]of a)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 a)l.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function An(e,t=["-",":"],r=5){let n=Na(e,t,r);return typeof e=="string"?n.expanded:e}var Pn=new Set;function Mn(e){Pn.has(e)||(console.warn("[unocss]",e),Pn.add(e))}function Ln(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var _n="_uno_resolved";function Da(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?Ln(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 Un(e){let t=Da(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(V).flatMap(Un);return[t,...r]}function Ba(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:Z(Fn(...t)),exclude:Z(Fn(...r))}};return o.length&&(a.filesystem=Z(o.flat())),i.length&&(a.inline=Z(i.flat())),s.length&&(a.plain=Z(s.flat())),a}function Ur(e={},t={}){let r=Object.assign({},t,e),n=Mr((r.presets||[]).flatMap(V).flatMap(Un),(h,x)=>h.name===x.name),o=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Rn,...i.map(h=>h.layers));function l(h){return Z(i.flatMap(x=>V(x[h]||[])))}let f=l("extractors"),u=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=tt),u&&!f.includes(u)&&f.unshift(u),f.sort((h,x)=>(h.order||0)-(x.order||0));let p=l("rules"),d={},m=p.length,g=p.map((h,x)=>{if(On(h)){V(h[2]?.prefix||"").forEach(L=>{d[L+h[0]]=[x,h[1],h[2],h]});return}return[x,...h]}).filter(Boolean).reverse(),y=Ia(i.map(h=>h.theme)),k=l("extendTheme");for(let h of k)y=h(y)||y;let z={templates:Z(i.flatMap(h=>V(h.autocomplete?.templates))),extractors:i.flatMap(h=>V(h.autocomplete?.extractors)).sort((h,x)=>(h.order||0)-(x.order||0)),shorthands:Ka(i.map(h=>h.autocomplete?.shorthands||{}))},b=l("separators");b.length||(b=[":","-"]);let w=l("content"),O=Ba(w),K={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:y,rulesSize:m,rulesDynamic:g,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:z,variants:l("variants").map(En).sort((h,x)=>(h.order||0)-(x.order||0)),shortcuts:Ln(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:b,details:r.details??r.envMode==="dev",content:O,transformers:Mr(l("transformers"),(h,x)=>h.name===x.name)};for(let h of i)h?.configResolved?.(K);return K}function Ia(e){return e.map(t=>t?Pe(t):{}).reduce((t,r)=>Lr(t,r),{})}function Ka(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Fn(...e){return e.flatMap(Ga)}function Ga(e){return Array.isArray(e)?e:e?[e]:[]}var Wn="0.63.5";function Nn(){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 pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},Wr=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ur(t,r),this.events.emit("config",this.config)}version=Wn;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Nn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Ur(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(rt(s)&&rt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:pe,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 s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(f=>this.stringifyUtil(f,s)).filter(Fr);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:s=!0,minify:a=!1,extendedInfo:l=!1}=r,f=this.config.outputToCssLayers,u=P(t)?await this.applyExtractors(t,n,l?new Ae:new Set):Array.isArray(t)?new Set(t):t;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(x=>typeof x=="function"?x(h):x).forEach(x=>{u.has(x)||u.add(x)})}let p=a?"":`
|
|
1
|
+
"use strict";(()=>{var Aa=Object.defineProperty;var Pa=(e,t)=>{for(var r in t)Aa(e,r,{get:t[r],enumerable:!0})};var Ve="default",Qe="preflights",Ma="shortcuts",_a="imports",Rn={[_a]:-200,[Qe]:-100,[Ma]:-10,[Ve]:0};var et=/[\\:]?[\s'"`;{}]+/g;function Fa(e){return e.split(et)}var tt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Fa(e)}};function V(e=[]){return Array.isArray(e)?e:[e]}function Z(e){return Array.from(new Set(e))}function Mr(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function P(e){return typeof e=="string"}var Ae=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 rt(e){return e instanceof Ae}function ae(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(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 nt=te;var La=/[\w\u00A0-\uFFFF%-?]/;function Tn(e=""){return La.test(e)}function En(e){return typeof e=="function"?{match:e}:e}function _r(e){return e.length===3}function Fr(e){return e!=null}function jn(){}var ot=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)))}},it=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function xe(e){return P(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function zn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>xe(t)):[e]:[xe(e)]}function Ua(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 ye(e){return e==null?"":Ua(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function st(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Lr(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 st(n)&&st(o)&&Object.keys(o).forEach(s=>{st(n[s])&&st(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Lr(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Pe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Pe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Pe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Pe(n):n;return r}return e}function On(e){return P(e[0])}function Vn(e){return P(e[0])}var at={};function Wa(e=["-",":"]){let t=e.join("|");return at[t]||(at[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),at[t].lastIndex=0,at[t]}function Na(e,t=["-",":"],r=5){let n=Wa(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(f,u,p,d,m)=>{if(!t.includes(p))return f;o=!0,s.add(u+p);let g=m+u.length+p.length+1,y={length:f.length,items:[]};a.set(m,y);for(let k of[...d.matchAll(/\S+/g)]){let z=g+k.index,b=a.get(z)?.items;b?a.delete(z):b=[{offset:z,length:k[0].length,className:k[0]}];for(let w of b)w.className=w.className==="~"?u:w.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),y.items.push(w)}return"$".repeat(f.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let f=0;for(let[u,p]of a)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 a)l.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function An(e,t=["-",":"],r=5){let n=Na(e,t,r);return typeof e=="string"?n.expanded:e}var Pn=new Set;function Mn(e){Pn.has(e)||(console.warn("[unocss]",e),Pn.add(e))}function Ln(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var _n="_uno_resolved";function Da(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?Ln(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 Un(e){let t=Da(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(V).flatMap(Un);return[t,...r]}function Ba(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:Z(Fn(...t)),exclude:Z(Fn(...r))}};return o.length&&(a.filesystem=Z(o.flat())),i.length&&(a.inline=Z(i.flat())),s.length&&(a.plain=Z(s.flat())),a}function Ur(e={},t={}){let r=Object.assign({},t,e),n=Mr((r.presets||[]).flatMap(V).flatMap(Un),(h,x)=>h.name===x.name),o=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Rn,...i.map(h=>h.layers));function l(h){return Z(i.flatMap(x=>V(x[h]||[])))}let f=l("extractors"),u=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=tt),u&&!f.includes(u)&&f.unshift(u),f.sort((h,x)=>(h.order||0)-(x.order||0));let p=l("rules"),d={},m=p.length,g=p.map((h,x)=>{if(On(h)){V(h[2]?.prefix||"").forEach(L=>{d[L+h[0]]=[x,h[1],h[2],h]});return}return[x,...h]}).filter(Boolean).reverse(),y=Ia(i.map(h=>h.theme)),k=l("extendTheme");for(let h of k)y=h(y)||y;let z={templates:Z(i.flatMap(h=>V(h.autocomplete?.templates))),extractors:i.flatMap(h=>V(h.autocomplete?.extractors)).sort((h,x)=>(h.order||0)-(x.order||0)),shorthands:Ka(i.map(h=>h.autocomplete?.shorthands||{}))},b=l("separators");b.length||(b=[":","-"]);let w=l("content"),O=Ba(w),K={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:y,rulesSize:m,rulesDynamic:g,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:z,variants:l("variants").map(En).sort((h,x)=>(h.order||0)-(x.order||0)),shortcuts:Ln(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:b,details:r.details??r.envMode==="dev",content:O,transformers:Mr(l("transformers"),(h,x)=>h.name===x.name)};for(let h of i)h?.configResolved?.(K);return K}function Ia(e){return e.map(t=>t?Pe(t):{}).reduce((t,r)=>Lr(t,r),{})}function Ka(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Fn(...e){return e.flatMap(Ga)}function Ga(e){return Array.isArray(e)?e:e?[e]:[]}var Wn="0.63.6";function Nn(){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 pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},Wr=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ur(t,r),this.events.emit("config",this.config)}version=Wn;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Nn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Ur(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(rt(s)&&rt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:pe,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 s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(f=>this.stringifyUtil(f,s)).filter(Fr);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:s=!0,minify:a=!1,extendedInfo:l=!1}=r,f=this.config.outputToCssLayers,u=P(t)?await this.applyExtractors(t,n,l?new Ae:new Set):Array.isArray(t)?new Set(t):t;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(x=>typeof x=="function"?x(h):x).forEach(x=>{u.has(x)||u.add(x)})}let p=a?"":`
|
|
2
2
|
`,d=new Set([Ve]),m=l?new Map:new Set,g=new Map,y={},k=Array.from(u).map(async h=>{if(m.has(h))return;let x=await this.parseToken(h);if(x!=null){m instanceof Map?m.set(h,{data:x,count:rt(u)?u.getCount(h):-1}):m.add(h);for(let A of x){let L=A[3]||"",G=A[4]?.layer;g.has(L)||g.set(L,[]),g.get(L).push(A),G&&d.add(G)}}});await Promise.all(k),await(async()=>{if(!i)return;let h={generator:this,theme:this.config.theme},x=new Set([]);this.config.preflights.forEach(({layer:A=Qe})=>{d.add(A),x.add(A)}),y=Object.fromEntries(await Promise.all(Array.from(x).map(async A=>{let G=(await Promise.all(this.config.preflights.filter(oe=>(oe.layer||Qe)===A).map(async oe=>await oe.getCSS(h)))).filter(Boolean).join(p);return[A,G]})))})();let z=this.config.sortLayers(Array.from(d).sort((h,x)=>(this.config.layers[h]??0)-(this.config.layers[x]??0)||h.localeCompare(x))),b={},w=(h=Ve)=>{if(b[h])return b[h];let x=Array.from(g).sort((L,G)=>(this.parentOrders.get(L[0])??0)-(this.parentOrders.get(G[0])??0)||L[0]?.localeCompare(G[0]||"")||0).map(([L,G])=>{let oe=G.length,Oe=G.filter($=>($[4]?.layer||Ve)===h).sort(($,T)=>$[0]-T[0]||($[4]?.sort||0)-(T[4]?.sort||0)||$[5]?.currentSelector?.localeCompare(T[5]?.currentSelector??"")||$[1]?.localeCompare(T[1]||"")||$[2]?.localeCompare(T[2]||"")||0).map(([,$,T,,W,,ie])=>[[[($&&Ya($,o))??"",W?.sort??0]],T,!!(ie??W?.noMerge)]);if(!Oe.length)return;let S=Oe.reverse().map(([$,T,W],ie)=>{if(!W&&this.config.mergeSelectors)for(let se=ie+1;se<oe;se++){let Q=Oe[se];if(Q&&!Q[2]&&($&&Q[0]||$==null&&Q[0]==null)&&Q[1]===T)return $&&Q[0]&&Q[0].push(...$),null}let Pr=$?Z($.sort((se,Q)=>se[1]-Q[1]||se[0]?.localeCompare(Q[0]||"")||0).map(se=>se[0]).filter(Boolean)):[];return Pr.length?`${Pr.join(`,${p}`)}{${T}}`:T}).filter(Boolean).reverse().join(p);if(!L)return S;let E=L.split(" $$ ");return`${E.join("{")}{${p}${S}${p}${"}".repeat(E.length)}`}).filter(Boolean).join(p);if(i&&(x=[y[h],x].filter(Boolean).join(p)),f&&x){let L=typeof f=="object"?f.cssLayerName?.(h):void 0;L!==null&&(L||(L=h),x=`@layer ${L}{${p}${x}${p}}`)}let A=a?"":`/* layer: ${h} */${p}`;return b[h]=x?A+x:""},O=(h=z,x)=>h.filter(A=>!x?.includes(A)).map(A=>w(A)||"").filter(Boolean).join(p);return{get css(){return O()},layers:z,matched:m,getLayers:O,getLayer:w,setLayer:async(h,x)=>{let A=await x(w(h));return b[h]=A,A}}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!0,a={rawSelector:t,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 f=await l.match(i,a);if(f){if(P(f)){if(f===i)continue;f={matcher:f}}i=f.matcher??i,o.unshift(f),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((f,u)=>(f.order||0)-(u.order||0)).reduceRight((f,u)=>p=>{let d=u.body?.(p.entries)||p.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0];return(u.handle??Za)({...p,entries:d,selector:u.selector?.(p.selector,d)||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.sort},f)},f=>f)({prefix:"",selector:Xa(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let f of this.config.postprocess)f(l);return l}constructCustomCSS(t,r,n){let o=xe(r);if(P(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${i}{${ye(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1,o){let[i,s,a]=P(t)?await this.matchVariants(t):t;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 u=l[0],p=xe(l[1]),d=l[2];return P(p)?[[u,p,d]]:[[u,i,p,d,a]]}r.variantHandlers=a;let{rulesDynamic:f}=this.config;for(let[u,p,d,m]of f){if(m?.internal&&!n)continue;let g=s;if(m?.prefix){let b=V(m.prefix);if(o){let w=V(o);if(!b.some(O=>w.includes(O)))continue}else{let w=b.find(O=>s.startsWith(O));if(w==null)continue;g=s.slice(w.length)}}let y=g.match(p);if(!y)continue;let k=await d(y,r);if(!k)continue;if(this.config.details&&r.rules.push([p,d,m]),typeof k!="string")if(Symbol.asyncIterator in k){let b=[];for await(let w of k)w&&b.push(w);k=b}else Symbol.iterator in k&&!Array.isArray(k)&&(k=Array.from(k).filter(Fr));let z=zn(k).filter(b=>b.length);if(z.length)return z.map(b=>{if(P(b))return[u,b,m];let w=a;for(let O of b)O[0]===pe.variants?w=[...V(O[1]),...w]:O[0]===pe.parent?w=[{parent:O[1]},...w]:O[0]===pe.selector?w=[{selector:O[1]},...w]:O[0]===pe.layer&&(w=[{layer:O[1]},...w]);return[u,i,b,m,w]})}}stringifyUtil(t,r){if(!t)return;if(_r(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:l}=this.applyVariants(t),f=ye(o);if(!f)return;let{layer:u,sort:p,...d}=t[3]??{},m={...d,layer:s??u,sort:a??p};return[t[0],n,f,i,m,this.config.details?r:void 0,l]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:jn,i,s;for(let a of this.config.shortcuts){let l=t;if(a[2]?.prefix){let u=V(a[2].prefix).find(p=>t.startsWith(p));if(u==null)continue;l=t.slice(u.length)}if(Vn(a)){if(a[0]===l){i=i||a[2],s=a[1],o(a);break}}else{let f=l.match(a[0]);if(f&&(s=a[1](f,r)),s){i=i||a[2],o(a);break}}}if(s&&(s=V(s).map(a=>P(a)?An(a.trim()).split(/\s+/g):a).flat()),!s){let[a,l]=P(t)?await this.matchVariants(t):t;if(a!==l){let f=await this.expandShortcut(l,r,n-1);f&&(s=f[0].map(u=>P(u)?a.replace(l,u):u))}}if(s)return[(await Promise.all(s.map(async a=>(P(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new it,s=(await Promise.all(Z(n).map(async u=>{let p=P(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",xe(u),void 0,[]]];return!p&&this.config.warn&&Mn(`unmatched utility "${u}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[0]),[a,,l]=t,f=[];for(let u of s){if(_r(u)){f.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let{selector:p,entries:d,parent:m,sort:g,noMerge:y,layer:k}=this.applyVariants(u,[...u[4],...l],a);i.getFallback(k??o.layer,new ot).getFallback(p,m,[[],u[0]])[0].push([d,!!(y??u[3]?.noMerge),g??0])}return f.concat(i.flatMap((u,p)=>u.map(([d,m],g,y)=>{let k=(b,w,O)=>{let K=Math.max(...O.map(x=>x[1])),h=O.map(x=>x[0]);return(b?[h.flat(1)]:h).map(x=>{let A=ye(x);if(A)return[m,g,A,y,{...o,noMerge:w,sort:K,layer:p},r,void 0]})};return[[d.filter(([,b])=>b).map(([b,,w])=>[b,w]),!0],[d.filter(([,b])=>!b).map(([b,,w])=>[b,w]),!1]].map(([b,w])=>[...k(!1,w,b.filter(([O])=>O.some(K=>K[0]===pe.shortcutsNoMerge))),...k(!0,w,b.filter(([O])=>O.every(K=>K[0]!==pe.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):P(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):P(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};function Bn(e,t){return new Wr(e,t)}var In=/\s\$\$\s+/g;function qa(e){return In.test(e)}function Ya(e,t){return qa(e)?e.replace(In,t?` ${t} `:" "):t?`${t} ${e}`:e}var Dn=/^\[(.+?)(~?=)"(.*)"\]$/;function Xa(e){return Dn.test(e)?e.replace(Dn,(t,r,n,o)=>`[${nt(r)}${n}"${nt(o)}"]`):`.${nt(e)}`}function Za(e,t){return t(e)}function Ja(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Kn(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${Ja(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function Gn(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var Qa=/\/\/#\s*sourceMappingURL=.*\n?/g;function Hn(e){return e.includes("sourceMappingURL=")?e.replace(Qa,""):e}var el=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,tl=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,rl=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function nl(e){let t=[];for(let o of e.matchAll(tl))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(el))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=Kn(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(et).forEach(o=>{o.includes(n)&&(o=Gn(o,r)),Tn(o)&&!rl.test(o)&&t.push(o)}),t}var qn={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return nl(Hn(e))}};var Yn=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=ye(Object.entries(e.theme.preflightBase));return V(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];function ve(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function le(e,t,r,n){if(e===""||(P(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===e.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[e.slice(0,s),e.slice(s+l)]}}return[e,""]}function de(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=le(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var Nr=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Xn=["%alpha","<alpha-value>"],ol=new RegExp(Xn.map(e=>ae(e)).join("|"));function H(e=""){let t=il(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Nr.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function re(e){let t=e.alpha??1;return typeof t=="string"&&Xn.includes(t)?1:t}function M(e,t){if(typeof e=="string")return e.replace(ol,`${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}`,Nr.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function il(e){if(!e)return;let t=sl(e);if(t!=null||(t=al(e),t!=null)||(t=ll(e),t!=null)||(t=fl(e),t!=null)||(t=ul(e),t!=null))return t}function sl(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 al(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function ll(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=de(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 cl=new RegExp(`^(${Nr.join("|")})\\((.+)\\)$`,"i");function fl(e){let t=e.match(cl);if(!t)return;let[,r,n]=t,o=Zn(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function ul(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Zn(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Zn(e){let t=de(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=de(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 lt(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var Jn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",to=new Uint8Array(64),pl=new Uint8Array(128);for(let e=0;e<Jn.length;e++){let t=Jn.charCodeAt(e);to[e]=t,pl[t]=e}function Me(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(to[o])}while(n>0);return t}var Qn=1024*16,eo=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}},Dr=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Qn)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===Qn&&(this.out+=eo.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+eo.decode(t.subarray(0,n)):r}};function ro(e){let t=new Dr,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let l=0;for(let f=0;f<a.length;f++){let u=a[f];f>0&&t.write(44),l=Me(t,u[0],l),u.length!==1&&(r=Me(t,u[1],r),n=Me(t,u[2],n),o=Me(t,u[3],o),u.length!==4&&(i=Me(t,u[4],i)))}}return t.flush()}var ct=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))}},ft=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function dl(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var ml=dl(),Br=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=ro(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,"+ml(this.toString())}};function hl(e){let t=e.split(`
|
|
3
3
|
`),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function gl(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 bl=Object.prototype.toString;function xl(e){return bl.call(e)==="[object Object]"}function no(e){let t=e.split(`
|
|
4
4
|
`),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let f=i+s>>1;o<r[f]?s=f:i=f+1}let a=i-1,l=o-r[a];return{line:a,column:l}}}var yl=/\w/,Ir=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
|