@unocss/runtime 0.65.0 → 0.65.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +2 -2
- package/core.global.js +1 -1
- package/full.global.js +2 -2
- package/mini.global.js +2 -2
- package/package.json +4 -4
- package/preset-icons.global.js +1 -1
- package/preset-mini.global.js +1 -1
- package/preset-uno.global.js +2 -2
- package/preset-wind.global.js +4 -4
- package/uno.global.js +2 -2
package/attributify.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var nl=Object.defineProperty;var ol=(e,t)=>{for(var r in t)nl(e,r,{get:t[r],enumerable:!0})};var Fe="default",lt="preflights",il="shortcuts",sl="imports",Gn={[sl]:-200,[lt]:-100,[il]:-10,[Fe]:0};var ct=/[\\:]?[\s'"`;{}]+/g;function al(e){return e.split(ct)}var ut={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return al(e)}};function V(e=[]){return Array.isArray(e)?e:[e]}function ee(e){return Array.from(new Set(e))}function Dr(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 _e=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 ft(e){return e instanceof _e}function fe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(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 pt=se;var ll=/^\[(.+?)~?="(.*)"\]$/;var cl=/[\w\u00A0-\uFFFF%-?]/;function Hn(e){return e.match(ll)}function Le(e=""){return cl.test(e)}function qn(e){return typeof e=="function"?{match:e}:e}function Ir(e){return e.length===3}function dt(e){return e!=null}function Yn(){}var mt=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)))}},gt=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 $e(e){return P(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Xn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>$e(t)):[e]:[$e(e)]}function ul(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 Se(e){return e==null?"":ul(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function ht(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Kr(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 ht(n)&&ht(o)&&Object.keys(o).forEach(s=>{ht(n[s])&&ht(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Kr(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Ue(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"?Ue(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Ue(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Ue(n):n;return r}return e}function Zn(e){return P(e[0])}function Jn(e){return P(e[0])}var bt={};function fl(e=["-",":"]){let t=e.join("|");return bt[t]||(bt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),bt[t].lastIndex=0,bt[t]}function pl(e,t=["-",":"],r=5){let n=fl(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,f,p,d,m)=>{if(!t.includes(p))return u;o=!0,s.add(f+p);let g=m+f.length+p.length+1,x={length:u.length,items:[]};a.set(m,x);for(let w of[...d.matchAll(/\S+/g)]){let j=g+w.index,y=a.get(j)?.items;y?a.delete(j):y=[{offset:j,length:w[0].length,className:w[0]}];for(let $ of y)$.className=$.className==="~"?f:$.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),x.items.push($)}return"$".repeat(u.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let u=0;for(let[f,p]of a)l+=e.slice(u,f),l+=p.items.map(d=>d.className).join(" "),u=f+p.length;l+=e.slice(u)}else{l=e;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 Qn(e,t=["-",":"],r=5){let n=pl(e,t,r);return typeof e=="string"?n.expanded:e}var eo=new Set;function to(e){eo.has(e)||(console.warn("[unocss]",e),eo.add(e))}function oo(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var ro="_uno_resolved";async function dl(e){let t=typeof e=="function"?await e():await e;if(ro in t)return t;t={...t},Object.defineProperty(t,ro,{value:!0,enumerable:!1});let r=t.shortcuts?oo(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}async function io(e){let t=await dl(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(V).flatMap(io))).flat();return[t,...r]}function ml(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:ee(no(...t)),exclude:ee(no(...r))}};return o.length&&(a.filesystem=ee(o.flat())),i.length&&(a.inline=ee(i.flat())),s.length&&(a.plain=ee(s.flat())),a}async function Gr(e={},t={}){let r=Object.assign({},t,e),n=Dr((await Promise.all((r.presets||[]).flatMap(V).flatMap(io))).flat(),(b,h)=>b.name===h.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Gn,...i.map(b=>b.layers));function l(b){return ee(i.flatMap(h=>V(h[b]||[])))}let u=l("extractors"),f=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=ut),f&&!u.includes(f)&&u.unshift(f),u.sort((b,h)=>(b.order||0)-(h.order||0));let p=l("rules"),d={},m=p.length,g=p.filter(b=>Zn(b)?(V(b[2]?.prefix||"").forEach(k=>{d[k+b[0]]=b}),!1):!0).reverse(),x=gl(i.map(b=>b.theme)),w=l("extendTheme");for(let b of w)x=b(x)||x;let j={templates:ee(i.flatMap(b=>V(b.autocomplete?.templates))),extractors:i.flatMap(b=>V(b.autocomplete?.extractors)).sort((b,h)=>(b.order||0)-(h.order||0)),shorthands:hl(i.map(b=>b.autocomplete?.shorthands||{}))},y=l("separators");y.length||(y=[":","-"]);let $=l("content"),L=ml($),E={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:x,rules:p,rulesSize:m,rulesDynamic:g,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:j,variants:l("variants").map(qn).sort((b,h)=>(b.order||0)-(h.order||0)),shortcuts:oo(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:y,details:r.details??r.envMode==="dev",content:L,transformers:Dr(l("transformers"),(b,h)=>b.name===h.name)};for(let b of i)b?.configResolved?.(E);return E}function gl(e){return e.map(t=>t?Ue(t):{}).reduce((t,r)=>Kr(t,r),{})}function hl(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 no(...e){return e.flatMap(bl)}function bl(e){return Array.isArray(e)?e:e?[e]:[]}var so="0.65.0";function ao(){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",sort:"$$symbol-sort"},Hr=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=so;_cache=new Map;config=void 0;blocked=new Set;parentOrders=new Map;activatedRules=new Set;events=ao();static async create(t={},r={}){let n=new e(t,r);return n.config=await Gr(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this._cache.clear(),this.config=await Gr(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(ft(s)&&ft(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 l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(t),this._cache.set(n,null);return}let s=async l=>{let u=this.makeContext(t,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(u.variants=[...l[3]]);let f=await this.expandShortcut(u.currentSelector,u);return f?await this.stringifyShortcuts(u.variantMatch,u,f[0],f[1]):(await this.parseUtil(u.variantMatch,u))?.map(d=>this.stringifyUtil(d,u)).filter(dt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this._cache.set(n,a),a;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,u=P(t)?await this.applyExtractors(t,n,l?new _e:new Set):Array.isArray(t)?new Set(t):t;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(k=>typeof k=="function"?k(h):k).forEach(k=>{u.has(k)||u.add(k)})}let f=a?"":`
|
|
2
|
-
`,p=new Set([Fe]),d=l?new Map:new Set,m=new Map,g={},x=Array.from(u).map(async h=>{if(d.has(h))return;let k=await this.parseToken(h);if(k!=null){d instanceof Map?d.set(h,{data:k,count:ft(u)?u.getCount(h):-1}):d.add(h);for(let R of k){let H=R[3]||"",q=R[4]?.layer;m.has(H)||m.set(H,[]),m.get(H).push(R),q&&p.add(q)}}});await Promise.all(x),await(async()=>{if(!i)return;let h={generator:this,theme:this.config.theme},k=new Set([]);this.config.preflights.forEach(({layer:R=lt})=>{p.add(R),k.add(R)}),g=Object.fromEntries(await Promise.all(Array.from(k).map(async R=>{let q=(await Promise.all(this.config.preflights.filter(Q=>(Q.layer||lt)===R).map(async Q=>await Q.getCSS(h)))).filter(Boolean).join(f);return[R,q]})))})();let w=this.config.sortLayers(Array.from(p).sort((h,k)=>(this.config.layers[h]??0)-(this.config.layers[k]??0)||h.localeCompare(k))),j={},y=this.config.outputToCssLayers,$=h=>{let k=h;return typeof y=="object"&&(k=y.cssLayerName?.(h)),k===null?null:k??h},L=(h=Fe)=>{if(j[h])return j[h];let k=Array.from(m).sort((q,Q)=>(this.parentOrders.get(q[0])??0)-(this.parentOrders.get(Q[0])??0)||q[0]?.localeCompare(Q[0]||"")||0).map(([q,Q])=>{let C=Q.length,A=Q.filter(z=>(z[4]?.layer||Fe)===h).sort((z,D)=>z[0]-D[0]||(z[4]?.sort||0)-(D[4]?.sort||0)||z[5]?.currentSelector?.localeCompare(D[5]?.currentSelector??"")||z[1]?.localeCompare(D[1]||"")||z[2]?.localeCompare(D[2]||"")||0).map(([,z,D,,at,,Br])=>[[[(z&&vl(z,o))??"",at?.sort??0]],D,!!(Br??at?.noMerge)]);if(!A.length)return;let F=A.reverse().map(([z,D,at],Br)=>{if(!at&&this.config.mergeSelectors)for(let ue=Br+1;ue<C;ue++){let re=A[ue];if(re&&!re[2]&&(z&&re[0]||z==null&&re[0]==null)&&re[1]===D)return z&&re[0]&&re[0].push(...z),null}let Nr=z?ee(z.sort((ue,re)=>ue[1]-re[1]||ue[0]?.localeCompare(re[0]||"")||0).map(ue=>ue[0]).filter(Boolean)):[];return Nr.length?`${Nr.join(`,${f}`)}{${D}}`:D}).filter(Boolean).reverse().join(f);if(!q)return F;let U=q.split(" $$ ");return`${U.join("{")}{${f}${F}${f}${"}".repeat(U.length)}`}).filter(Boolean).join(f);i&&(k=[g[h],k].filter(Boolean).join(f));let R;y&&k&&(R=$(h),R!==null&&(k=`@layer ${R}{${f}${k}${f}}`));let H=a?"":`/* layer: ${h}${R&&R!==h?`, alias: ${R}`:""} */${f}`;return j[h]=k?H+k:""},E=(h=w,k)=>{let R=h.filter(H=>!k?.includes(H));return[y&&R.length>0?`@layer ${R.map($).filter(dt).join(", ")};`:void 0,...R.map(H=>L(H)||"")].filter(Boolean).join(f)};return{get css(){return E()},layers:w,matched:d,getLayers:E,getLayer:L,setLayer:async(h,k)=>{let R=await k(L(h));return j[h]=R,R}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,l]=i;for(;s;){s=!1;let u=i[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(u,n);if(p){if(P(p)){if(p===u)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(m=>{let g=m.matcher??u,x=[m,...a],w=new Set(l);return w.add(f),[i[0],g,x,w]});return(await Promise.all(d.map(m=>o(m)))).flat()}}i[1]=p.matcher??u,a.unshift(p),l.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((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??kl)({...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:wl(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 u of this.config.postprocess)u(l);return l}constructCustomCSS(t,r,n){let o=$e(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}{${Se(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1,o){let i=P(t)?await this.matchVariants(t):[t],s=async([l,u,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[u];if(p&&p[1]&&(n||!p[2]?.internal)){r.generator.activatedRules.add(p),this.config.details&&r.rules.push(p);let m=this.config.rules.indexOf(p),g=$e(p[1]),x=p[2];return P(g)?[[m,g,x]]:[[m,l,g,x,f]]}r.variantHandlers=f;let{rulesDynamic:d}=this.config;for(let m of d){let[g,x,w]=m;if(w?.internal&&!n)continue;let j=u;if(w?.prefix){let E=V(w.prefix);if(o){let b=V(o);if(!E.some(h=>b.includes(h)))continue}else{let b=E.find(h=>u.startsWith(h));if(b==null)continue;j=u.slice(b.length)}}let y=j.match(g);if(!y)continue;let $=await x(y,r);if(!$)continue;if(r.generator.activatedRules.add(m),this.config.details&&r.rules.push(m),typeof $!="string")if(Symbol.asyncIterator in $){let E=[];for await(let b of $)b&&E.push(b);$=E}else Symbol.iterator in $&&!Array.isArray($)&&($=Array.from($).filter(dt));let L=Xn($).filter(E=>E.length);if(L.length){let E=this.config.rules.indexOf(m);return L.map(b=>{if(P(b))return[E,b,w];let h=f,k=w;for(let R of b)R[0]===pe.variants?h=[...V(R[1]),...h]:R[0]===pe.parent?h=[{parent:R[1]},...h]:R[0]===pe.selector?h=[{selector:R[1]},...h]:R[0]===pe.layer?h=[{layer:R[1]},...h]:R[0]===pe.sort&&(k={...k,sort:R[1]});return[E,l,b,k,h]})}}},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}stringifyUtil(t,r){if(!t)return;if(Ir(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),u=Se(o);if(!u)return;let{layer:f,sort:p,...d}=t[3]??{},m={...d,layer:s??f,sort:a??p};return[t[0],n,u,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)}:Yn,i,s;for(let a of this.config.shortcuts){let l=t;if(a[2]?.prefix){let f=V(a[2].prefix).find(p=>t.startsWith(p));if(f==null)continue;l=t.slice(f.length)}if(Jn(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=V(s).map(a=>P(a)?Qn(a.trim()).split(/\s+/g):a).flat()),!s){let a=P(t)?await this.matchVariants(t):[t];for(let l of a){let[u,f]=l;if(u!==f){let p=await this.expandShortcut(f,r,n-1);p&&(s=p[0].map(d=>P(d)?u.replace(f,d):d))}}}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(a=>!!a),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new gt,s=(await Promise.all(ee(n).map(async f=>{let p=P(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",$e(f),void 0,[]]];return!p&&this.config.warn&&to(`unmatched utility "${f}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=t,u=[];for(let f of s){if(Ir(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:g,noMerge:x,layer:w}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(w??o.layer,new mt).getFallback(p,m,[[],f[0]])[0].push([d,!!(x??f[3]?.noMerge),g??0])}return u.concat(i.flatMap((f,p)=>f.map(([d,m],g,x)=>{let w=(y,$,L)=>{let E=Math.max(...L.map(h=>h[1])),b=L.map(h=>h[0]);return(y?[b.flat(1)]:b).map(h=>{let k=Se(h);if(k)return[m,g,k,x,{...o,noMerge:$,sort:E,layer:p},r,void 0]})};return[[d.filter(([,y])=>y).map(([y,,$])=>[y,$]),!0],[d.filter(([,y])=>!y).map(([y,,$])=>[y,$]),!1]].map(([y,$])=>[...w(!1,$,y.filter(([L])=>L.some(E=>E[0]===pe.shortcutsNoMerge))),...w(!0,$,y.filter(([L])=>L.every(E=>E[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}};async function co(e,t){return await Hr.create(e,t)}var uo=/\s\$\$\s+/g;function yl(e){return uo.test(e)}function vl(e,t){return yl(e)?e.replace(uo,t?` ${t} `:" "):t?`${t} ${e}`:e}var lo=/^\[(.+?)(~?=)"(.*)"\]$/;function wl(e){return lo.test(e)?e.replace(lo,(t,r,n,o)=>`[${pt(r)}${n}"${pt(o)}"]`):`.${pt(e)}`}function kl(e,t){return t(e)}var qr=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function fo(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Hn(i);if(!a)return;let l=a[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let u=a[2],[,f="",p=u]=u.match(qr)||[];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}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),m=d.pop()+p,g=d.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${g}${l}-${m}`}]}return`${f}${l}-${p}`}}}var $l=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Sl=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,po=/[\s'"`;>]+/;function mo(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll($l),o,i=0;for(let y of n){let[,$,L]=y,E=y.index+$.length;if(r>E&&r<=E+L.length){i=E,o=L;break}}if(!o)return null;let s=o.matchAll(Sl),a=0,l,u;for(let y of s){let[$,L,E]=y,b=i+y.index;if(r>b&&r<=b+$.length){a=b,l=L,u=E?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!e?.prefix&&l.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let p=f?l.slice(e.prefix.length):l;if(u===void 0)return{extracted:p,resolveReplacement(y){let $=f?e.prefix.length:0;return{start:a+$,end:a+l.length,replacement:y}}};let d=a+l.length+2,m=po.exec(u),g=0,x;for(;m;){let[y]=m;if(r>d+g&&r<=d+g+m.index){x=u.slice(g,g+m.index);break}g+=m.index+y.length,m=po.exec(u.slice(g))}x===void 0&&(x=u.slice(g));let[,w="",j]=x.match(qr)||[];return{extracted:`${w}${p}-${j}`,transformSuggestions(y){return y.filter($=>$.startsWith(`${w}${p}-`)).map($=>w+$.slice(w.length+p.length+1))},resolveReplacement(y){return{start:g+d,end:g+d+x.length,replacement:w+y.slice(w.length+p.length+1)}}}}}}var Cl=["v-bind:",":"],go=/[\s'"`;]+/g,Yr=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Rl=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Xr=["placeholder","fill","opacity","stroke-opacity"];function ho(e){let t=e?.ignoreAttributes??Xr,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Yr)).flatMap(i=>Array.from((i[1]||"").matchAll(Rl))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let l of Cl)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(Le(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(go).filter(Le):Yr.test(a)?(Yr.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(go).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var El=(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??Xr;let t=[fo(e)],r=[ho(e)],n=[mo(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},bo=El;function Tl(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 xo(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${Tl(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function yo(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var jl=/\/\/#\s*sourceMappingURL=.*\n?/g;function vo(e){return e.includes("sourceMappingURL=")?e.replace(jl,""):e}var zl=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Al=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Ol=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Vl(e){let t=[];for(let o of e.matchAll(Al))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(zl))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=xo(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(ct).forEach(o=>{o.includes(n)&&(o=yo(o,r)),Le(o)&&!Ol.test(o)&&t.push(o)}),t}function wo(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Vl(vo(e))}}}function ko(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Se(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),V(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function Ce(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 de(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 xe(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=de(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var Zr=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],$o=["%alpha","<alpha-value>"],Pl=new RegExp($o.map(e=>fe(e)).join("|"));function Y(e=""){let t=Ml(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Zr.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 ae(e){let t=e.alpha??1;return typeof t=="string"&&$o.includes(t)?1:t}function M(e,t){if(typeof e=="string")return e.replace(Pl,`${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}`,Zr.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Ml(e){if(!e)return;let t=Fl(e);if(t!=null||(t=_l(e),t!=null)||(t=Ll(e),t!=null)||(t=Wl(e),t!=null)||(t=Bl(e),t!=null))return t}function Fl(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 _l(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=xe(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 Ul=new RegExp(`^(${Zr.join("|")})\\((.+)\\)$`,"i");function Wl(e){let t=e.match(Ul);if(!t)return;let[,r,n]=t,o=So(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Bl(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=So(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function So(e){let t=xe(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=xe(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 xt(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 Co="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",To=new Uint8Array(64),Nl=new Uint8Array(128);for(let e=0;e<Co.length;e++){let t=Co.charCodeAt(e);To[e]=t,Nl[t]=e}function We(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 Ro=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}},Jr=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Ro)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===Ro&&(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 jo(e){let t=new Jr,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 u=0;u<a.length;u++){let f=a[u];u>0&&t.write(44),l=We(t,f[0],l),f.length!==1&&(r=We(t,f[1],r),n=We(t,f[2],n),o=We(t,f[3],o),f.length!==4&&(i=We(t,f[4],i)))}}return t.flush()}var yt=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))}},vt=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 Il=Dl(),Qr=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=jo(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,"+Il(this.toString())}};function Kl(e){let t=e.split(`
|
|
1
|
+
"use strict";(()=>{var nl=Object.defineProperty;var ol=(e,t)=>{for(var r in t)nl(e,r,{get:t[r],enumerable:!0})};var Fe="default",lt="preflights",il="shortcuts",sl="imports",Gn={[sl]:-200,[lt]:-100,[il]:-10,[Fe]:0};var ct=/[\\:]?[\s'"`;{}]+/g;function al(e){return e.split(ct)}var ut={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return al(e)}};function V(e=[]){return Array.isArray(e)?e:[e]}function ee(e){return Array.from(new Set(e))}function Dr(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 _e=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 ft(e){return e instanceof _e}function fe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(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 pt=se;var ll=/^\[(.+?)~?="(.*)"\]$/;var cl=/[\w\u00A0-\uFFFF%-?]/;function Hn(e){return e.match(ll)}function Le(e=""){return cl.test(e)}function qn(e){return typeof e=="function"?{match:e}:e}function Ir(e){return e.length===3}function dt(e){return e!=null}function Yn(){}var mt=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)))}},gt=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 $e(e){return P(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Xn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>$e(t)):[e]:[$e(e)]}function ul(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 Se(e){return e==null?"":ul(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function ht(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Kr(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 ht(n)&&ht(o)&&Object.keys(o).forEach(s=>{ht(n[s])&&ht(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Kr(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Ue(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"?Ue(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Ue(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Ue(n):n;return r}return e}function Zn(e){return P(e[0])}function Jn(e){return P(e[0])}var bt={};function fl(e=["-",":"]){let t=e.join("|");return bt[t]||(bt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),bt[t].lastIndex=0,bt[t]}function pl(e,t=["-",":"],r=5){let n=fl(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,f,p,d,m)=>{if(!t.includes(p))return u;o=!0,s.add(f+p);let g=m+f.length+p.length+1,x={length:u.length,items:[]};a.set(m,x);for(let w of[...d.matchAll(/\S+/g)]){let j=g+w.index,y=a.get(j)?.items;y?a.delete(j):y=[{offset:j,length:w[0].length,className:w[0]}];for(let $ of y)$.className=$.className==="~"?f:$.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),x.items.push($)}return"$".repeat(u.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let u=0;for(let[f,p]of a)l+=e.slice(u,f),l+=p.items.map(d=>d.className).join(" "),u=f+p.length;l+=e.slice(u)}else{l=e;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 Qn(e,t=["-",":"],r=5){let n=pl(e,t,r);return typeof e=="string"?n.expanded:e}var eo=new Set;function to(e){eo.has(e)||(console.warn("[unocss]",e),eo.add(e))}function oo(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var ro="_uno_resolved";async function dl(e){let t=typeof e=="function"?await e():await e;if(ro in t)return t;t={...t},Object.defineProperty(t,ro,{value:!0,enumerable:!1});let r=t.shortcuts?oo(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}async function io(e){let t=await dl(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(V).flatMap(io))).flat();return[t,...r]}function ml(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:ee(no(...t)),exclude:ee(no(...r))}};return o.length&&(a.filesystem=ee(o.flat())),i.length&&(a.inline=ee(i.flat())),s.length&&(a.plain=ee(s.flat())),a}async function Gr(e={},t={}){let r=Object.assign({},t,e),n=Dr((await Promise.all((r.presets||[]).flatMap(V).flatMap(io))).flat(),(b,h)=>b.name===h.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Gn,...i.map(b=>b.layers));function l(b){return ee(i.flatMap(h=>V(h[b]||[])))}let u=l("extractors"),f=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=ut),f&&!u.includes(f)&&u.unshift(f),u.sort((b,h)=>(b.order||0)-(h.order||0));let p=l("rules"),d={},m=p.length,g=p.filter(b=>Zn(b)?(V(b[2]?.prefix||"").forEach(k=>{d[k+b[0]]=b}),!1):!0).reverse(),x=gl(i.map(b=>b.theme)),w=l("extendTheme");for(let b of w)x=b(x)||x;let j={templates:ee(i.flatMap(b=>V(b.autocomplete?.templates))),extractors:i.flatMap(b=>V(b.autocomplete?.extractors)).sort((b,h)=>(b.order||0)-(h.order||0)),shorthands:hl(i.map(b=>b.autocomplete?.shorthands||{}))},y=l("separators");y.length||(y=[":","-"]);let $=l("content"),L=ml($),E={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:x,rules:p,rulesSize:m,rulesDynamic:g,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:j,variants:l("variants").map(qn).sort((b,h)=>(b.order||0)-(h.order||0)),shortcuts:oo(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:y,details:r.details??r.envMode==="dev",content:L,transformers:Dr(l("transformers"),(b,h)=>b.name===h.name)};for(let b of i)b?.configResolved?.(E);return E}function gl(e){return e.map(t=>t?Ue(t):{}).reduce((t,r)=>Kr(t,r),{})}function hl(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 no(...e){return e.flatMap(bl)}function bl(e){return Array.isArray(e)?e:e?[e]:[]}var so="0.65.1";function ao(){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",sort:"$$symbol-sort"},Hr=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=so;_cache=new Map;config=void 0;blocked=new Set;parentOrders=new Map;activatedRules=new Set;events=ao();static async create(t={},r={}){let n=new e(t,r);return n.config=await Gr(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this._cache.clear(),this.config=await Gr(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(ft(s)&&ft(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 l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(t),this._cache.set(n,null);return}let s=async l=>{let u=this.makeContext(t,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(u.variants=[...l[3]]);let f=await this.expandShortcut(u.currentSelector,u);return f?await this.stringifyShortcuts(u.variantMatch,u,f[0],f[1]):(await this.parseUtil(u.variantMatch,u))?.map(d=>this.stringifyUtil(d,u)).filter(dt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this._cache.set(n,a),a;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,u=P(t)?await this.applyExtractors(t,n,l?new _e:new Set):Array.isArray(t)?new Set(t):t;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(k=>typeof k=="function"?k(h):k).forEach(k=>{u.has(k)||u.add(k)})}let f=a?"":`
|
|
2
|
+
`,p=new Set([Fe]),d=l?new Map:new Set,m=new Map,g={},x=Array.from(u).map(async h=>{if(d.has(h))return;let k=await this.parseToken(h);if(k!=null){d instanceof Map?d.set(h,{data:k,count:ft(u)?u.getCount(h):-1}):d.add(h);for(let R of k){let H=R[3]||"",q=R[4]?.layer;m.has(H)||m.set(H,[]),m.get(H).push(R),q&&p.add(q)}}});await Promise.all(x),await(async()=>{if(!i)return;let h={generator:this,theme:this.config.theme},k=new Set([]);this.config.preflights.forEach(({layer:R=lt})=>{p.add(R),k.add(R)}),g=Object.fromEntries(await Promise.all(Array.from(k).map(async R=>{let q=(await Promise.all(this.config.preflights.filter(Q=>(Q.layer||lt)===R).map(async Q=>await Q.getCSS(h)))).filter(Boolean).join(f);return[R,q]})))})();let w=this.config.sortLayers(Array.from(p).sort((h,k)=>(this.config.layers[h]??0)-(this.config.layers[k]??0)||h.localeCompare(k))),j={},y=this.config.outputToCssLayers,$=h=>{let k=h;return typeof y=="object"&&(k=y.cssLayerName?.(h)),k===null?null:k??h},L=(h=Fe)=>{if(j[h])return j[h];let k=Array.from(m).sort((q,Q)=>(this.parentOrders.get(q[0])??0)-(this.parentOrders.get(Q[0])??0)||q[0]?.localeCompare(Q[0]||"")||0).map(([q,Q])=>{let C=Q.length,A=Q.filter(z=>(z[4]?.layer||Fe)===h).sort((z,D)=>z[0]-D[0]||(z[4]?.sort||0)-(D[4]?.sort||0)||z[5]?.currentSelector?.localeCompare(D[5]?.currentSelector??"")||z[1]?.localeCompare(D[1]||"")||z[2]?.localeCompare(D[2]||"")||0).map(([,z,D,,at,,Br])=>[[[(z&&vl(z,o))??"",at?.sort??0]],D,!!(Br??at?.noMerge)]);if(!A.length)return;let F=A.reverse().map(([z,D,at],Br)=>{if(!at&&this.config.mergeSelectors)for(let ue=Br+1;ue<C;ue++){let re=A[ue];if(re&&!re[2]&&(z&&re[0]||z==null&&re[0]==null)&&re[1]===D)return z&&re[0]&&re[0].push(...z),null}let Nr=z?ee(z.sort((ue,re)=>ue[1]-re[1]||ue[0]?.localeCompare(re[0]||"")||0).map(ue=>ue[0]).filter(Boolean)):[];return Nr.length?`${Nr.join(`,${f}`)}{${D}}`:D}).filter(Boolean).reverse().join(f);if(!q)return F;let U=q.split(" $$ ");return`${U.join("{")}{${f}${F}${f}${"}".repeat(U.length)}`}).filter(Boolean).join(f);i&&(k=[g[h],k].filter(Boolean).join(f));let R;y&&k&&(R=$(h),R!==null&&(k=`@layer ${R}{${f}${k}${f}}`));let H=a?"":`/* layer: ${h}${R&&R!==h?`, alias: ${R}`:""} */${f}`;return j[h]=k?H+k:""},E=(h=w,k)=>{let R=h.filter(H=>!k?.includes(H));return[y&&R.length>0?`@layer ${R.map($).filter(dt).join(", ")};`:void 0,...R.map(H=>L(H)||"")].filter(Boolean).join(f)};return{get css(){return E()},layers:w,matched:d,getLayers:E,getLayer:L,setLayer:async(h,k)=>{let R=await k(L(h));return j[h]=R,R}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,l]=i;for(;s;){s=!1;let u=i[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(u,n);if(p){if(P(p)){if(p===u)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(m=>{let g=m.matcher??u,x=[m,...a],w=new Set(l);return w.add(f),[i[0],g,x,w]});return(await Promise.all(d.map(m=>o(m)))).flat()}}i[1]=p.matcher??u,a.unshift(p),l.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((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??kl)({...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:wl(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 u of this.config.postprocess)u(l);return l}constructCustomCSS(t,r,n){let o=$e(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}{${Se(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1,o){let i=P(t)?await this.matchVariants(t):[t],s=async([l,u,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[u];if(p&&p[1]&&(n||!p[2]?.internal)){r.generator.activatedRules.add(p),this.config.details&&r.rules.push(p);let m=this.config.rules.indexOf(p),g=$e(p[1]),x=p[2];return P(g)?[[m,g,x]]:[[m,l,g,x,f]]}r.variantHandlers=f;let{rulesDynamic:d}=this.config;for(let m of d){let[g,x,w]=m;if(w?.internal&&!n)continue;let j=u;if(w?.prefix){let E=V(w.prefix);if(o){let b=V(o);if(!E.some(h=>b.includes(h)))continue}else{let b=E.find(h=>u.startsWith(h));if(b==null)continue;j=u.slice(b.length)}}let y=j.match(g);if(!y)continue;let $=await x(y,r);if(!$)continue;if(r.generator.activatedRules.add(m),this.config.details&&r.rules.push(m),typeof $!="string")if(Symbol.asyncIterator in $){let E=[];for await(let b of $)b&&E.push(b);$=E}else Symbol.iterator in $&&!Array.isArray($)&&($=Array.from($).filter(dt));let L=Xn($).filter(E=>E.length);if(L.length){let E=this.config.rules.indexOf(m);return L.map(b=>{if(P(b))return[E,b,w];let h=f,k=w;for(let R of b)R[0]===pe.variants?h=[...V(R[1]),...h]:R[0]===pe.parent?h=[{parent:R[1]},...h]:R[0]===pe.selector?h=[{selector:R[1]},...h]:R[0]===pe.layer?h=[{layer:R[1]},...h]:R[0]===pe.sort&&(k={...k,sort:R[1]});return[E,l,b,k,h]})}}},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}stringifyUtil(t,r){if(!t)return;if(Ir(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),u=Se(o);if(!u)return;let{layer:f,sort:p,...d}=t[3]??{},m={...d,layer:s??f,sort:a??p};return[t[0],n,u,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)}:Yn,i,s;for(let a of this.config.shortcuts){let l=t;if(a[2]?.prefix){let f=V(a[2].prefix).find(p=>t.startsWith(p));if(f==null)continue;l=t.slice(f.length)}if(Jn(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=V(s).map(a=>P(a)?Qn(a.trim()).split(/\s+/g):a).flat()),!s){let a=P(t)?await this.matchVariants(t):[t];for(let l of a){let[u,f]=l;if(u!==f){let p=await this.expandShortcut(f,r,n-1);p&&(s=p[0].map(d=>P(d)?u.replace(f,d):d))}}}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(a=>!!a),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new gt,s=(await Promise.all(ee(n).map(async f=>{let p=P(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",$e(f),void 0,[]]];return!p&&this.config.warn&&to(`unmatched utility "${f}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=t,u=[];for(let f of s){if(Ir(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:g,noMerge:x,layer:w}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(w??o.layer,new mt).getFallback(p,m,[[],f[0]])[0].push([d,!!(x??f[3]?.noMerge),g??0])}return u.concat(i.flatMap((f,p)=>f.map(([d,m],g,x)=>{let w=(y,$,L)=>{let E=Math.max(...L.map(h=>h[1])),b=L.map(h=>h[0]);return(y?[b.flat(1)]:b).map(h=>{let k=Se(h);if(k)return[m,g,k,x,{...o,noMerge:$,sort:E,layer:p},r,void 0]})};return[[d.filter(([,y])=>y).map(([y,,$])=>[y,$]),!0],[d.filter(([,y])=>!y).map(([y,,$])=>[y,$]),!1]].map(([y,$])=>[...w(!1,$,y.filter(([L])=>L.some(E=>E[0]===pe.shortcutsNoMerge))),...w(!0,$,y.filter(([L])=>L.every(E=>E[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}};async function co(e,t){return await Hr.create(e,t)}var uo=/\s\$\$\s+/g;function yl(e){return uo.test(e)}function vl(e,t){return yl(e)?e.replace(uo,t?` ${t} `:" "):t?`${t} ${e}`:e}var lo=/^\[(.+?)(~?=)"(.*)"\]$/;function wl(e){return lo.test(e)?e.replace(lo,(t,r,n,o)=>`[${pt(r)}${n}"${pt(o)}"]`):`.${pt(e)}`}function kl(e,t){return t(e)}var qr=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function fo(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Hn(i);if(!a)return;let l=a[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let u=a[2],[,f="",p=u]=u.match(qr)||[];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}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),m=d.pop()+p,g=d.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${g}${l}-${m}`}]}return`${f}${l}-${p}`}}}var $l=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Sl=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,po=/[\s'"`;>]+/;function mo(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll($l),o,i=0;for(let y of n){let[,$,L]=y,E=y.index+$.length;if(r>E&&r<=E+L.length){i=E,o=L;break}}if(!o)return null;let s=o.matchAll(Sl),a=0,l,u;for(let y of s){let[$,L,E]=y,b=i+y.index;if(r>b&&r<=b+$.length){a=b,l=L,u=E?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!e?.prefix&&l.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let p=f?l.slice(e.prefix.length):l;if(u===void 0)return{extracted:p,resolveReplacement(y){let $=f?e.prefix.length:0;return{start:a+$,end:a+l.length,replacement:y}}};let d=a+l.length+2,m=po.exec(u),g=0,x;for(;m;){let[y]=m;if(r>d+g&&r<=d+g+m.index){x=u.slice(g,g+m.index);break}g+=m.index+y.length,m=po.exec(u.slice(g))}x===void 0&&(x=u.slice(g));let[,w="",j]=x.match(qr)||[];return{extracted:`${w}${p}-${j}`,transformSuggestions(y){return y.filter($=>$.startsWith(`${w}${p}-`)).map($=>w+$.slice(w.length+p.length+1))},resolveReplacement(y){return{start:g+d,end:g+d+x.length,replacement:w+y.slice(w.length+p.length+1)}}}}}}var Cl=["v-bind:",":"],go=/[\s'"`;]+/g,Yr=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Rl=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Xr=["placeholder","fill","opacity","stroke-opacity"];function ho(e){let t=e?.ignoreAttributes??Xr,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Yr)).flatMap(i=>Array.from((i[1]||"").matchAll(Rl))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let l of Cl)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(Le(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(go).filter(Le):Yr.test(a)?(Yr.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(go).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var El=(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??Xr;let t=[fo(e)],r=[ho(e)],n=[mo(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},bo=El;function Tl(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 xo(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${Tl(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function yo(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var jl=/\/\/#\s*sourceMappingURL=.*\n?/g;function vo(e){return e.includes("sourceMappingURL=")?e.replace(jl,""):e}var zl=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Al=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Ol=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Vl(e){let t=[];for(let o of e.matchAll(Al))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(zl))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=xo(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(ct).forEach(o=>{o.includes(n)&&(o=yo(o,r)),Le(o)&&!Ol.test(o)&&t.push(o)}),t}function wo(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Vl(vo(e))}}}function ko(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Se(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),V(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function Ce(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 de(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 xe(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=de(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var Zr=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],$o=["%alpha","<alpha-value>"],Pl=new RegExp($o.map(e=>fe(e)).join("|"));function Y(e=""){let t=Ml(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Zr.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 ae(e){let t=e.alpha??1;return typeof t=="string"&&$o.includes(t)?1:t}function M(e,t){if(typeof e=="string")return e.replace(Pl,`${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}`,Zr.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Ml(e){if(!e)return;let t=Fl(e);if(t!=null||(t=_l(e),t!=null)||(t=Ll(e),t!=null)||(t=Wl(e),t!=null)||(t=Bl(e),t!=null))return t}function Fl(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 _l(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=xe(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 Ul=new RegExp(`^(${Zr.join("|")})\\((.+)\\)$`,"i");function Wl(e){let t=e.match(Ul);if(!t)return;let[,r,n]=t,o=So(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Bl(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=So(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function So(e){let t=xe(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=xe(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 xt(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 Co="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",To=new Uint8Array(64),Nl=new Uint8Array(128);for(let e=0;e<Co.length;e++){let t=Co.charCodeAt(e);To[e]=t,Nl[t]=e}function We(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 Ro=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}},Jr=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Ro)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===Ro&&(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 jo(e){let t=new Jr,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 u=0;u<a.length;u++){let f=a[u];u>0&&t.write(44),l=We(t,f[0],l),f.length!==1&&(r=We(t,f[1],r),n=We(t,f[2],n),o=We(t,f[3],o),f.length!==4&&(i=We(t,f[4],i)))}}return t.flush()}var yt=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))}},vt=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 Il=Dl(),Qr=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=jo(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Il(this.toString())}};function Kl(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 Hl=Object.prototype.toString;function ql(e){return Hl.call(e)==="[object Object]"}function zo(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 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 Yl=/\w/,en=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(`
|
|
5
5
|
`,0),a=-1;for(;s>=0&&i>s;){let u=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&u.push(o),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=s,s=r.indexOf(`
|
package/core.global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(()=>{var G="default",z="preflights",je="shortcuts",_e="imports",ue={[_e]:-200,[z]:-100,[je]:-10,[G]:0};var fe=/[\\:]?[\s'"`;{}]+/g;function ke(n){return n.split(fe)}var W={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return ke(n)}};function $(n=[]){return Array.isArray(n)?n:[n]}function L(n){return Array.from(new Set(n))}function se(n,e){return n.reduce((t,r)=>(t.findIndex(i=>e(r,i))===-1&&t.push(r),t),[])}function P(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 Y(n){return n instanceof H}function Le(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 q=Le;function pe(n){return typeof n=="function"?{match:n}:n}function ie(n){return n.length===3}function Z(n){return n!=null}function de(){}var J=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)))}},Q=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 I(n){return P(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function me(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>I(e)):[n]:[I(n)]}function De(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 ee(n){return n==null?"":De(n).map(([e,t])=>t!=null&&typeof t!="function"?`${e}:${t};`:void 0).filter(Boolean).join("")}function X(n){return n&&typeof n=="object"&&!Array.isArray(n)}function oe(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 X(r)&&X(s)&&Object.keys(s).forEach(u=>{X(r[u])&&X(s[u])||Array.isArray(r[u])&&Array.isArray(s[u])?i[u]=oe(r[u],s[u],t):Object.assign(i,{[u]:s[u]})}),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 ge(n){return P(n[0])}function he(n){return P(n[0])}var te={};function Fe(n=["-",":"]){let e=n.join("|");return te[e]||(te[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),te[e].lastIndex=0,te[e]}function Ke(n,e=["-",":"],t=5){let r=Fe(e),s,i=n.toString(),u=new Set,l=new Map;do s=!1,i=i.replace(r,(p,a,c,g,h)=>{if(!e.includes(c))return p;s=!0,u.add(a+c);let v=h+a.length+c.length+1,w={length:p.length,items:[]};l.set(h,w);for(let R of[...g.matchAll(/\S+/g)]){let V=v+R.index,S=l.get(V)?.items;S?l.delete(V):S=[{offset:V,length:R[0].length,className:R[0]}];for(let b of S)b.className=b.className==="~"?a:b.className.replace(/^(!?)(.*)/,`$1${a}${c}$2`),w.items.push(b)}return"$".repeat(p.length)}),t-=1;while(s&&t);let o;if(typeof n=="string"){o="";let p=0;for(let[a,c]of l)o+=n.slice(p,a),o+=c.items.map(g=>g.className).join(" "),p=a+c.length;o+=n.slice(p)}else{o=n;for(let[p,a]of l)o.overwrite(p,p+a.length,a.items.map(c=>c.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:l,get expanded(){return o.toString()}}}function ye(n,e=["-",":"],t=5){let r=Ke(n,e,t);return typeof n=="string"?r.expanded:n}var xe=new Set;function Se(n){xe.has(n)||(console.warn("[unocss]",n),xe.add(n))}function Te(n){return $(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var be="_uno_resolved";async function Ie(n){let e=typeof n=="function"?await n():await n;if(be in e)return e;e={...e},Object.defineProperty(e,be,{value:!0,enumerable:!1});let t=e.shortcuts?Te(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=$(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}async function Ee(n){let e=await Ie(n);if(!e.presets)return[e];let t=(await Promise.all((e.presets||[]).flatMap($).flatMap(Ee))).flat();return[e,...t]}function Ge(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],i=[],u=[];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&&u.push(o.plain)}let l={pipeline:r?!1:{include:L(Ce(...e)),exclude:L(Ce(...t))}};return s.length&&(l.filesystem=L(s.flat())),i.length&&(l.inline=L(i.flat())),u.length&&(l.plain=L(u.flat())),l}async function ae(n={},e={}){let t=Object.assign({},e,n),r=se((await Promise.all((t.presets||[]).flatMap($).flatMap(Ee))).flat(),(d,f)=>d.name===f.name),s=[...r.filter(d=>d.enforce==="pre"),...r.filter(d=>!d.enforce),...r.filter(d=>d.enforce==="post")],i=[...s,t],u=[...i].reverse(),l=Object.assign({},ue,...i.map(d=>d.layers));function o(d){return L(i.flatMap(f=>$(f[d]||[])))}let p=o("extractors"),a=u.find(d=>d.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=W),a&&!p.includes(a)&&p.unshift(a),p.sort((d,f)=>(d.order||0)-(f.order||0));let c=o("rules"),g={},h=c.length,v=c.filter(d=>ge(d)?($(d[2]?.prefix||"").forEach(m=>{g[m+d[0]]=d}),!1):!0).reverse(),w=He(i.map(d=>d.theme)),R=o("extendTheme");for(let d of R)w=d(w)||w;let V={templates:L(i.flatMap(d=>$(d.autocomplete?.templates))),extractors:i.flatMap(d=>$(d.autocomplete?.extractors)).sort((d,f)=>(d.order||0)-(f.order||0)),shorthands:Be(i.map(d=>d.autocomplete?.shorthands||{}))},S=o("separators");S.length||(S=[":","-"]);let b=o("content"),U=Ge(b),E={mergeSelectors:!0,warn:!0,sortLayers:d=>d,...t,blocklist:o("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:l,theme:w,rules:c,rulesSize:h,rulesDynamic:v,rulesStaticMap:g,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:V,variants:o("variants").map(pe).sort((d,f)=>(d.order||0)-(f.order||0)),shortcuts:Te(o("shortcuts")).reverse(),extractors:p,safelist:o("safelist"),separators:S,details:t.details??t.envMode==="dev",content:U,transformers:se(o("transformers"),(d,f)=>d.name===f.name)};for(let d of i)d?.configResolved?.(E);return E}function He(n){return n.map(e=>e?B(e):{}).reduce((e,t)=>oe(e,t),{})}function Be(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 Ce(...n){return n.flatMap(Ne)}function Ne(n){return Array.isArray(n)?n:n?[n]:[]}var Re="0.65.0";function ve(){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 K={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},le=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=Re;_cache=new Map;config=void 0;blocked=new Set;parentOrders=new Map;activatedRules=new Set;events=ve();static async create(e={},t={}){let r=new n(e,t);return r.config=await ae(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this._cache.clear(),this.config=await ae(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 u=await i.extract?.(s);if(u)if(Y(u)&&Y(r))for(let l of u)r.setCount(l,r.getCount(l)+u.getCount(l));else for(let l of u)r.add(l)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:K,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 o of this.config.preprocess)s=o(e);if(this.isBlocked(s)){this.blocked.add(e),this._cache.set(r,null);return}let i=await this.matchVariants(e,s);if(i.every(o=>!o||this.isBlocked(o[1]))){this.blocked.add(e),this._cache.set(r,null);return}let u=async o=>{let p=this.makeContext(e,[t||o[0],o[1],o[2],o[3]]);this.config.details&&(p.variants=[...o[3]]);let a=await this.expandShortcut(p.currentSelector,p);return a?await this.stringifyShortcuts(p.variantMatch,p,a[0],a[1]):(await this.parseUtil(p.variantMatch,p))?.map(g=>this.stringifyUtil(g,p)).filter(Z)},l=(await Promise.all(i.map(o=>u(o)))).flat().filter(o=>!!o);if(l?.length)return this._cache.set(r,l),l;this._cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:i=!0,safelist:u=!0,minify:l=!1,extendedInfo:o=!1}=t,p=P(e)?await this.applyExtractors(e,r,o?new H:new Set):Array.isArray(e)?new Set(e):e;if(u){let f={generator:this,theme:this.config.theme};this.config.safelist.flatMap(m=>typeof m=="function"?m(f):m).forEach(m=>{p.has(m)||p.add(m)})}let a=l?"":`
|
|
1
|
+
"use strict";(()=>{var G="default",z="preflights",je="shortcuts",_e="imports",ue={[_e]:-200,[z]:-100,[je]:-10,[G]:0};var fe=/[\\:]?[\s'"`;{}]+/g;function ke(n){return n.split(fe)}var W={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return ke(n)}};function $(n=[]){return Array.isArray(n)?n:[n]}function L(n){return Array.from(new Set(n))}function se(n,e){return n.reduce((t,r)=>(t.findIndex(i=>e(r,i))===-1&&t.push(r),t),[])}function P(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 Y(n){return n instanceof H}function Le(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 q=Le;function pe(n){return typeof n=="function"?{match:n}:n}function ie(n){return n.length===3}function Z(n){return n!=null}function de(){}var J=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)))}},Q=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 I(n){return P(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function me(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>I(e)):[n]:[I(n)]}function De(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 ee(n){return n==null?"":De(n).map(([e,t])=>t!=null&&typeof t!="function"?`${e}:${t};`:void 0).filter(Boolean).join("")}function X(n){return n&&typeof n=="object"&&!Array.isArray(n)}function oe(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 X(r)&&X(s)&&Object.keys(s).forEach(u=>{X(r[u])&&X(s[u])||Array.isArray(r[u])&&Array.isArray(s[u])?i[u]=oe(r[u],s[u],t):Object.assign(i,{[u]:s[u]})}),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 ge(n){return P(n[0])}function he(n){return P(n[0])}var te={};function Fe(n=["-",":"]){let e=n.join("|");return te[e]||(te[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),te[e].lastIndex=0,te[e]}function Ke(n,e=["-",":"],t=5){let r=Fe(e),s,i=n.toString(),u=new Set,l=new Map;do s=!1,i=i.replace(r,(p,a,c,g,h)=>{if(!e.includes(c))return p;s=!0,u.add(a+c);let v=h+a.length+c.length+1,w={length:p.length,items:[]};l.set(h,w);for(let R of[...g.matchAll(/\S+/g)]){let V=v+R.index,S=l.get(V)?.items;S?l.delete(V):S=[{offset:V,length:R[0].length,className:R[0]}];for(let b of S)b.className=b.className==="~"?a:b.className.replace(/^(!?)(.*)/,`$1${a}${c}$2`),w.items.push(b)}return"$".repeat(p.length)}),t-=1;while(s&&t);let o;if(typeof n=="string"){o="";let p=0;for(let[a,c]of l)o+=n.slice(p,a),o+=c.items.map(g=>g.className).join(" "),p=a+c.length;o+=n.slice(p)}else{o=n;for(let[p,a]of l)o.overwrite(p,p+a.length,a.items.map(c=>c.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:l,get expanded(){return o.toString()}}}function ye(n,e=["-",":"],t=5){let r=Ke(n,e,t);return typeof n=="string"?r.expanded:n}var xe=new Set;function Se(n){xe.has(n)||(console.warn("[unocss]",n),xe.add(n))}function Te(n){return $(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var be="_uno_resolved";async function Ie(n){let e=typeof n=="function"?await n():await n;if(be in e)return e;e={...e},Object.defineProperty(e,be,{value:!0,enumerable:!1});let t=e.shortcuts?Te(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=$(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}async function Ee(n){let e=await Ie(n);if(!e.presets)return[e];let t=(await Promise.all((e.presets||[]).flatMap($).flatMap(Ee))).flat();return[e,...t]}function Ge(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],i=[],u=[];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&&u.push(o.plain)}let l={pipeline:r?!1:{include:L(Ce(...e)),exclude:L(Ce(...t))}};return s.length&&(l.filesystem=L(s.flat())),i.length&&(l.inline=L(i.flat())),u.length&&(l.plain=L(u.flat())),l}async function ae(n={},e={}){let t=Object.assign({},e,n),r=se((await Promise.all((t.presets||[]).flatMap($).flatMap(Ee))).flat(),(d,f)=>d.name===f.name),s=[...r.filter(d=>d.enforce==="pre"),...r.filter(d=>!d.enforce),...r.filter(d=>d.enforce==="post")],i=[...s,t],u=[...i].reverse(),l=Object.assign({},ue,...i.map(d=>d.layers));function o(d){return L(i.flatMap(f=>$(f[d]||[])))}let p=o("extractors"),a=u.find(d=>d.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=W),a&&!p.includes(a)&&p.unshift(a),p.sort((d,f)=>(d.order||0)-(f.order||0));let c=o("rules"),g={},h=c.length,v=c.filter(d=>ge(d)?($(d[2]?.prefix||"").forEach(m=>{g[m+d[0]]=d}),!1):!0).reverse(),w=He(i.map(d=>d.theme)),R=o("extendTheme");for(let d of R)w=d(w)||w;let V={templates:L(i.flatMap(d=>$(d.autocomplete?.templates))),extractors:i.flatMap(d=>$(d.autocomplete?.extractors)).sort((d,f)=>(d.order||0)-(f.order||0)),shorthands:Be(i.map(d=>d.autocomplete?.shorthands||{}))},S=o("separators");S.length||(S=[":","-"]);let b=o("content"),U=Ge(b),E={mergeSelectors:!0,warn:!0,sortLayers:d=>d,...t,blocklist:o("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:l,theme:w,rules:c,rulesSize:h,rulesDynamic:v,rulesStaticMap:g,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:V,variants:o("variants").map(pe).sort((d,f)=>(d.order||0)-(f.order||0)),shortcuts:Te(o("shortcuts")).reverse(),extractors:p,safelist:o("safelist"),separators:S,details:t.details??t.envMode==="dev",content:U,transformers:se(o("transformers"),(d,f)=>d.name===f.name)};for(let d of i)d?.configResolved?.(E);return E}function He(n){return n.map(e=>e?B(e):{}).reduce((e,t)=>oe(e,t),{})}function Be(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 Ce(...n){return n.flatMap(Ne)}function Ne(n){return Array.isArray(n)?n:n?[n]:[]}var Re="0.65.1";function ve(){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 K={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},le=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=Re;_cache=new Map;config=void 0;blocked=new Set;parentOrders=new Map;activatedRules=new Set;events=ve();static async create(e={},t={}){let r=new n(e,t);return r.config=await ae(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this._cache.clear(),this.config=await ae(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 u=await i.extract?.(s);if(u)if(Y(u)&&Y(r))for(let l of u)r.setCount(l,r.getCount(l)+u.getCount(l));else for(let l of u)r.add(l)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:K,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 o of this.config.preprocess)s=o(e);if(this.isBlocked(s)){this.blocked.add(e),this._cache.set(r,null);return}let i=await this.matchVariants(e,s);if(i.every(o=>!o||this.isBlocked(o[1]))){this.blocked.add(e),this._cache.set(r,null);return}let u=async o=>{let p=this.makeContext(e,[t||o[0],o[1],o[2],o[3]]);this.config.details&&(p.variants=[...o[3]]);let a=await this.expandShortcut(p.currentSelector,p);return a?await this.stringifyShortcuts(p.variantMatch,p,a[0],a[1]):(await this.parseUtil(p.variantMatch,p))?.map(g=>this.stringifyUtil(g,p)).filter(Z)},l=(await Promise.all(i.map(o=>u(o)))).flat().filter(o=>!!o);if(l?.length)return this._cache.set(r,l),l;this._cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:i=!0,safelist:u=!0,minify:l=!1,extendedInfo:o=!1}=t,p=P(e)?await this.applyExtractors(e,r,o?new H:new Set):Array.isArray(e)?new Set(e):e;if(u){let f={generator:this,theme:this.config.theme};this.config.safelist.flatMap(m=>typeof m=="function"?m(f):m).forEach(m=>{p.has(m)||p.add(m)})}let a=l?"":`
|
|
2
2
|
`,c=new Set([G]),g=o?new Map:new Set,h=new Map,v={},w=Array.from(p).map(async f=>{if(g.has(f))return;let m=await this.parseToken(f);if(m!=null){g instanceof Map?g.set(f,{data:m,count:Y(p)?p.getCount(f):-1}):g.add(f);for(let x of m){let j=x[3]||"",_=x[4]?.layer;h.has(j)||h.set(j,[]),h.get(j).push(x),_&&c.add(_)}}});await Promise.all(w),await(async()=>{if(!i)return;let f={generator:this,theme:this.config.theme},m=new Set([]);this.config.preflights.forEach(({layer:x=z})=>{c.add(x),m.add(x)}),v=Object.fromEntries(await Promise.all(Array.from(m).map(async x=>{let _=(await Promise.all(this.config.preflights.filter(k=>(k.layer||z)===x).map(async k=>await k.getCSS(f)))).filter(Boolean).join(a);return[x,_]})))})();let R=this.config.sortLayers(Array.from(c).sort((f,m)=>(this.config.layers[f]??0)-(this.config.layers[m]??0)||f.localeCompare(m))),V={},S=this.config.outputToCssLayers,b=f=>{let m=f;return typeof S=="object"&&(m=S.cssLayerName?.(f)),m===null?null:m??f},U=(f=G)=>{if(V[f])return V[f];let m=Array.from(h).sort((_,k)=>(this.parentOrders.get(_[0])??0)-(this.parentOrders.get(k[0])??0)||_[0]?.localeCompare(k[0]||"")||0).map(([_,k])=>{let y=k.length,T=k.filter(C=>(C[4]?.layer||G)===f).sort((C,O)=>C[0]-O[0]||(C[4]?.sort||0)-(O[4]?.sort||0)||C[5]?.currentSelector?.localeCompare(O[5]?.currentSelector??"")||C[1]?.localeCompare(O[1]||"")||C[2]?.localeCompare(O[2]||"")||0).map(([,C,O,,N,,ne])=>[[[(C&&Ye(C,s))??"",N?.sort??0]],O,!!(ne??N?.noMerge)]);if(!T.length)return;let M=T.reverse().map(([C,O,N],ne)=>{if(!N&&this.config.mergeSelectors)for(let F=ne+1;F<y;F++){let D=T[F];if(D&&!D[2]&&(C&&D[0]||C==null&&D[0]==null)&&D[1]===O)return C&&D[0]&&D[0].push(...C),null}let re=C?L(C.sort((F,D)=>F[1]-D[1]||F[0]?.localeCompare(D[0]||"")||0).map(F=>F[0]).filter(Boolean)):[];return re.length?`${re.join(`,${a}`)}{${O}}`:O}).filter(Boolean).reverse().join(a);if(!_)return M;let A=_.split(" $$ ");return`${A.join("{")}{${a}${M}${a}${"}".repeat(A.length)}`}).filter(Boolean).join(a);i&&(m=[v[f],m].filter(Boolean).join(a));let x;S&&m&&(x=b(f),x!==null&&(m=`@layer ${x}{${a}${m}${a}}`));let j=l?"":`/* layer: ${f}${x&&x!==f?`, alias: ${x}`:""} */${a}`;return V[f]=m?j+m:""},E=(f=R,m)=>{let x=f.filter(j=>!m?.includes(j));return[S&&x.length>0?`@layer ${x.map(b).filter(Z).join(", ")};`:void 0,...x.map(j=>U(j)||"")].filter(Boolean).join(a)};return{get css(){return E()},layers:R,matched:g,getLayers:E,getLayer:U,setLayer:async(f,m)=>{let x=await m(U(f));return V[f]=x,x}}}async matchVariants(e,t){let r={rawSelector:e,theme:this.config.theme,generator:this},s=async i=>{let u=!0,[,,l,o]=i;for(;u;){u=!1;let p=i[1];for(let a of this.config.variants){if(!a.multiPass&&o.has(a))continue;let c=await a.match(p,r);if(c){if(P(c)){if(c===p)continue;c={matcher:c}}if(Array.isArray(c)){if(!c.length)continue;if(c.length===1)c=c[0];else{if(a.multiPass)throw new Error("multiPass can not be used together with array return variants");let g=c.map(h=>{let v=h.matcher??p,w=[h,...l],R=new Set(o);return R.add(a),[i[0],v,w,R]});return(await Promise.all(g.map(h=>s(h)))).flat()}}i[1]=c.matcher??p,l.unshift(c),o.add(a),u=!0;break}}if(!u)break;if(l.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await s([e,t||e,[],new Set])}applyVariants(e,t=e[4],r=e[1]){let i=t.slice().sort((p,a)=>(p.order||0)-(a.order||0)).reduceRight((p,a)=>c=>{let g=a.body?.(c.entries)||c.entries,h=Array.isArray(a.parent)?a.parent:[a.parent,void 0];return(a.handle??Ze)({...c,entries:g,selector:a.selector?.(c.selector,g)||c.selector,parent:h[0]||c.parent,parentOrder:h[1]||c.parentOrder,layer:a.layer||c.layer,sort:a.sort||c.sort},p)},p=>p)({prefix:"",selector:qe(r),pseudo:"",entries:e[2]}),{parent:u,parentOrder:l}=i;u!=null&&l!=null&&this.parentOrders.set(u,l);let o={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:u,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=I(t);if(P(s))return s;let{selector:i,entries:u,parent:l}=this.applyVariants([0,r||e.rawSelector,s,void 0,e.variantHandlers]),o=`${i}{${ee(u)}}`;return l?`${l}{${o}}`:o}async parseUtil(e,t,r=!1,s){let i=P(e)?await this.matchVariants(e):[e],u=async([o,p,a])=>{this.config.details&&(t.rules=t.rules??[]);let c=this.config.rulesStaticMap[p];if(c&&c[1]&&(r||!c[2]?.internal)){t.generator.activatedRules.add(c),this.config.details&&t.rules.push(c);let h=this.config.rules.indexOf(c),v=I(c[1]),w=c[2];return P(v)?[[h,v,w]]:[[h,o,v,w,a]]}t.variantHandlers=a;let{rulesDynamic:g}=this.config;for(let h of g){let[v,w,R]=h;if(R?.internal&&!r)continue;let V=p;if(R?.prefix){let E=$(R.prefix);if(s){let d=$(s);if(!E.some(f=>d.includes(f)))continue}else{let d=E.find(f=>p.startsWith(f));if(d==null)continue;V=p.slice(d.length)}}let S=V.match(v);if(!S)continue;let b=await w(S,t);if(!b)continue;if(t.generator.activatedRules.add(h),this.config.details&&t.rules.push(h),typeof b!="string")if(Symbol.asyncIterator in b){let E=[];for await(let d of b)d&&E.push(d);b=E}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(Z));let U=me(b).filter(E=>E.length);if(U.length){let E=this.config.rules.indexOf(h);return U.map(d=>{if(P(d))return[E,d,R];let f=a,m=R;for(let x of d)x[0]===K.variants?f=[...$(x[1]),...f]:x[0]===K.parent?f=[{parent:x[1]},...f]:x[0]===K.selector?f=[{selector:x[1]},...f]:x[0]===K.layer?f=[{layer:x[1]},...f]:x[0]===K.sort&&(m={...m,sort:x[1]});return[E,o,d,m,f]})}}},l=(await Promise.all(i.map(o=>u(o)))).flat().filter(o=>!!o);if(l.length)return l}stringifyUtil(e,t){if(!e)return;if(ie(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:u,sort:l,noMerge:o}=this.applyVariants(e),p=ee(s);if(!p)return;let{layer:a,sort:c,...g}=e[3]??{},h={...g,layer:u??a,sort:l??c};return[e[0],r,p,i,h,this.config.details?t:void 0,o]}async expandShortcut(e,t,r=5){if(r===0)return;let s=this.config.details?l=>{t.shortcuts=t.shortcuts??[],t.shortcuts.push(l)}:de,i,u;for(let l of this.config.shortcuts){let o=e;if(l[2]?.prefix){let a=$(l[2].prefix).find(c=>e.startsWith(c));if(a==null)continue;o=e.slice(a.length)}if(he(l)){if(l[0]===o){i=i||l[2],u=l[1],s(l);break}}else{let p=o.match(l[0]);if(p&&(u=l[1](p,t)),u){i=i||l[2],s(l);break}}}if(u&&(u=$(u).map(l=>P(l)?ye(l.trim()).split(/\s+/g):l).flat()),!u){let l=P(e)?await this.matchVariants(e):[e];for(let o of l){let[p,a]=o;if(p!==a){let c=await this.expandShortcut(a,t,r-1);c&&(u=c[0].map(g=>P(g)?p.replace(a,g):g))}}}if(u)return[(await Promise.all(u.map(async l=>(P(l)?(await this.expandShortcut(l,t,r-1))?.[0]:void 0)||[l]))).flat(1).filter(l=>!!l),i]}async stringifyShortcuts(e,t,r,s={layer:this.config.shortcutsLayer}){let i=new Q,u=(await Promise.all(L(r).map(async a=>{let c=P(a)?await this.parseUtil(a,t,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",I(a),void 0,[]]];return!c&&this.config.warn&&Se(`unmatched utility "${a}" in shortcut "${e[1]}"`),c||[]}))).flat(1).filter(Boolean).sort((a,c)=>a[0]-c[0]),[l,,o]=e,p=[];for(let a of u){if(ie(a)){p.push([a[0],void 0,a[1],void 0,a[2],t,void 0]);continue}let{selector:c,entries:g,parent:h,sort:v,noMerge:w,layer:R}=this.applyVariants(a,[...a[4],...o],l);i.getFallback(R??s.layer,new J).getFallback(c,h,[[],a[0]])[0].push([g,!!(w??a[3]?.noMerge),v??0])}return p.concat(i.flatMap((a,c)=>a.map(([g,h],v,w)=>{let R=(S,b,U)=>{let E=Math.max(...U.map(f=>f[1])),d=U.map(f=>f[0]);return(S?[d.flat(1)]:d).map(f=>{let m=ee(f);if(m)return[h,v,m,w,{...s,noMerge:b,sort:E,layer:c},t,void 0]})};return[[g.filter(([,S])=>S).map(([S,,b])=>[S,b]),!0],[g.filter(([,S])=>!S).map(([S,,b])=>[S,b]),!1]].map(([S,b])=>[...R(!1,b,S.filter(([U])=>U.some(E=>E[0]===K.shortcutsNoMerge))),...R(!0,b,S.filter(([U])=>U.every(E=>E[0]!==K.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(t=>Array.isArray(t)?t[0]:t).some(t=>typeof t=="function"?t(e):P(t)?t===e:t.test(e))}getBlocked(e){let t=this.config.blocklist.find(r=>{let s=Array.isArray(r)?r[0]:r;return typeof s=="function"?s(e):P(s)?s===e:s.test(e)});return t?Array.isArray(t)?t:[t,void 0]:void 0}};async function Me(n,e){return await le.create(n,e)}var Ae=/\s\$\$\s+/g;function We(n){return Ae.test(n)}function Ye(n,e){return We(n)?n.replace(Ae,e?` ${e} `:" "):e?`${e} ${n}`:n}var we=/^\[(.+?)(~?=)"(.*)"\]$/;function qe(n){return we.test(n)?n.replace(we,(e,t,r,s)=>`[${q(t)}${r}"${q(s)}"]`):`.${q(n)}`}function Ze(n,e){return e(n)}function Je(n){return n.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():"")}function Pe(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Ue(n){return n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Ve=["Webkit","Moz","ms"];function $e(n){let e={};function t(r){let s=e[r];if(s)return s;let i=Je(r);if(i!=="filter"&&i in n)return e[r]=Ue(i);i=Pe(i);for(let u=0;u<Ve.length;u++){let l=`${Ve[u]}${i}`;if(l in n)return e[r]=Ue(Pe(l))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=t(s[0]))})}function Oe(n){return n.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}async function ce(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),u=i.defaults||{},l=i.cloakAttribute??"un-cloak";i.autoPrefix&&(u.postprocess=$(u.postprocess)).unshift($e(t.createElement("div").style)),i.configResolved?.(s,u);let o=await Me(s,u),p=y=>i.inject?i.inject(y):r().prepend(y),a=()=>i.rootElement?i.rootElement():t.body,c=new Map,g=!0,h=new Set,v,w,R=[],V=()=>new Promise(y=>{R.push(y),w!=null&&clearTimeout(w),w=setTimeout(()=>U().then(()=>{let T=R;R=[],T.forEach(M=>M())}),0)});function S(y,T=!1){if(y.nodeType!==1)return;let M=y;M.hasAttribute(l)&&M.removeAttribute(l),T&&M.querySelectorAll(`[${l}]`).forEach(A=>{A.removeAttribute(l)})}function b(y,T){let M=c.get(y);if(!M)if(M=t.createElement("style"),M.setAttribute("data-unocss-runtime-layer",y),c.set(y,M),T==null)p(M);else{let A=b(T),C=A.parentNode;C?C.insertBefore(M,A.nextSibling):p(M)}return M}async function U(){let y=[...h],T=await o.generate(y);return T.layers.reduce((A,C)=>(b(C,A).innerHTML=T.getLayer(C)??"",C),void 0),y.filter(A=>!T.matched.has(A)).forEach(A=>h.delete(A)),{...T,getStyleElement:A=>c.get(A),getStyleElements:()=>c}}async function E(y){let T=h.size;await o.applyExtractors(y,void 0,h),T!==h.size&&await V()}async function d(y=a()){let T=y&&y.outerHTML;T&&(await E(`${T} ${Oe(T)}`),S(r()),S(y,!0))}let f=new MutationObserver(y=>{g||y.forEach(async T=>{if(T.target.nodeType!==1)return;let M=T.target;for(let A of c)if(M===A[1])return;if(T.type==="childList")T.addedNodes.forEach(async A=>{if(A.nodeType!==1)return;let C=A;v&&!v(C)||(await E(C.outerHTML),S(C))});else{if(v&&!v(M))return;if(T.attributeName!==l){let A=Array.from(M.attributes).map(O=>O.value?`${O.name}="${O.value}"`:O.name).join(" "),C=`<${M.tagName.toLowerCase()} ${A}>`;await E(C)}S(M)}})}),m=!1;function x(){if(m)return;let y=i.observer?.target?i.observer.target():a();y&&(f.observe(y,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),m=!0)}function j(){i.bypassDefined&&Qe(o.blocked),d(),x()}function _(){t.readyState==="loading"?e.addEventListener("DOMContentLoaded",j):j()}let k=e.__unocss_runtime=e.__unocss_runtime={version:o.version,uno:o,async extract(y){P(y)||(y.forEach(T=>h.add(T)),y=""),await E(y)},extractAll:d,inspect(y){v=y},toggleObserver(y){y===void 0?g=!g:g=!!y,!m&&!g&&_()},update:U,presets:e.__unocss_runtime?.presets??{}};i.ready?.(k)!==!1&&(g=!1,_())}function Qe(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}ce();})();
|
package/full.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var pl=Object.defineProperty;var dl=(e,t)=>{for(var r in t)pl(e,r,{get:t[r],enumerable:!0})};var Fe="default",ct="preflights",ml="shortcuts",gl="imports",Yn={[gl]:-200,[ct]:-100,[ml]:-10,[Fe]:0};var ut=/[\\:]?[\s'"`;{}]+/g;function hl(e){return e.split(ut)}var ft={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return hl(e)}};function V(e=[]){return Array.isArray(e)?e:[e]}function ee(e){return Array.from(new Set(e))}function Kr(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 _e=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 pt(e){return e instanceof _e}function fe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(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 dt=se;var bl=/^\[(.+?)~?="(.*)"\]$/;var xl=/[\w\u00A0-\uFFFF%-?]/;function Xn(e){return e.match(bl)}function Le(e=""){return xl.test(e)}function Zn(e){return typeof e=="function"?{match:e}:e}function Gr(e){return e.length===3}function mt(e){return e!=null}function Jn(){}var gt=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)))}},ht=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 $e(e){return P(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Qn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>$e(t)):[e]:[$e(e)]}function yl(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 Se(e){return e==null?"":yl(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function bt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function We(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 bt(n)&&bt(o)&&Object.keys(o).forEach(s=>{bt(n[s])&&bt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=We(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Ue(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"?Ue(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Ue(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Ue(n):n;return r}return e}function eo(e){return P(e[0])}function to(e){return P(e[0])}var xt={};function vl(e=["-",":"]){let t=e.join("|");return xt[t]||(xt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),xt[t].lastIndex=0,xt[t]}function wl(e,t=["-",":"],r=5){let n=vl(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,f,p,d,m)=>{if(!t.includes(p))return u;o=!0,s.add(f+p);let g=m+f.length+p.length+1,x={length:u.length,items:[]};a.set(m,x);for(let w of[...d.matchAll(/\S+/g)]){let j=g+w.index,y=a.get(j)?.items;y?a.delete(j):y=[{offset:j,length:w[0].length,className:w[0]}];for(let $ of y)$.className=$.className==="~"?f:$.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),x.items.push($)}return"$".repeat(u.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let u=0;for(let[f,p]of a)l+=e.slice(u,f),l+=p.items.map(d=>d.className).join(" "),u=f+p.length;l+=e.slice(u)}else{l=e;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 ro(e,t=["-",":"],r=5){let n=wl(e,t,r);return typeof e=="string"?n.expanded:e}var no=new Set;function oo(e){no.has(e)||(console.warn("[unocss]",e),no.add(e))}function ao(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var io="_uno_resolved";async function kl(e){let t=typeof e=="function"?await e():await e;if(io in t)return t;t={...t},Object.defineProperty(t,io,{value:!0,enumerable:!1});let r=t.shortcuts?ao(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}async function lo(e){let t=await kl(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(V).flatMap(lo))).flat();return[t,...r]}function $l(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:ee(so(...t)),exclude:ee(so(...r))}};return o.length&&(a.filesystem=ee(o.flat())),i.length&&(a.inline=ee(i.flat())),s.length&&(a.plain=ee(s.flat())),a}async function Hr(e={},t={}){let r=Object.assign({},t,e),n=Kr((await Promise.all((r.presets||[]).flatMap(V).flatMap(lo))).flat(),(b,h)=>b.name===h.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Yn,...i.map(b=>b.layers));function l(b){return ee(i.flatMap(h=>V(h[b]||[])))}let u=l("extractors"),f=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=ft),f&&!u.includes(f)&&u.unshift(f),u.sort((b,h)=>(b.order||0)-(h.order||0));let p=l("rules"),d={},m=p.length,g=p.filter(b=>eo(b)?(V(b[2]?.prefix||"").forEach(k=>{d[k+b[0]]=b}),!1):!0).reverse(),x=Sl(i.map(b=>b.theme)),w=l("extendTheme");for(let b of w)x=b(x)||x;let j={templates:ee(i.flatMap(b=>V(b.autocomplete?.templates))),extractors:i.flatMap(b=>V(b.autocomplete?.extractors)).sort((b,h)=>(b.order||0)-(h.order||0)),shorthands:Cl(i.map(b=>b.autocomplete?.shorthands||{}))},y=l("separators");y.length||(y=[":","-"]);let $=l("content"),L=$l($),E={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:x,rules:p,rulesSize:m,rulesDynamic:g,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:j,variants:l("variants").map(Zn).sort((b,h)=>(b.order||0)-(h.order||0)),shortcuts:ao(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:y,details:r.details??r.envMode==="dev",content:L,transformers:Kr(l("transformers"),(b,h)=>b.name===h.name)};for(let b of i)b?.configResolved?.(E);return E}function Sl(e){return e.map(t=>t?Ue(t):{}).reduce((t,r)=>We(t,r),{})}function Cl(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 so(...e){return e.flatMap(Rl)}function Rl(e){return Array.isArray(e)?e:e?[e]:[]}var co="0.65.0";function uo(){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",sort:"$$symbol-sort"},qr=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=co;_cache=new Map;config=void 0;blocked=new Set;parentOrders=new Map;activatedRules=new Set;events=uo();static async create(t={},r={}){let n=new e(t,r);return n.config=await Hr(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this._cache.clear(),this.config=await Hr(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(pt(s)&&pt(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 l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(t),this._cache.set(n,null);return}let s=async l=>{let u=this.makeContext(t,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(u.variants=[...l[3]]);let f=await this.expandShortcut(u.currentSelector,u);return f?await this.stringifyShortcuts(u.variantMatch,u,f[0],f[1]):(await this.parseUtil(u.variantMatch,u))?.map(d=>this.stringifyUtil(d,u)).filter(mt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this._cache.set(n,a),a;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,u=P(t)?await this.applyExtractors(t,n,l?new _e:new Set):Array.isArray(t)?new Set(t):t;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(k=>typeof k=="function"?k(h):k).forEach(k=>{u.has(k)||u.add(k)})}let f=a?"":`
|
|
2
|
-
`,p=new Set([Fe]),d=l?new Map:new Set,m=new Map,g={},x=Array.from(u).map(async h=>{if(d.has(h))return;let k=await this.parseToken(h);if(k!=null){d instanceof Map?d.set(h,{data:k,count:pt(u)?u.getCount(h):-1}):d.add(h);for(let R of k){let H=R[3]||"",q=R[4]?.layer;m.has(H)||m.set(H,[]),m.get(H).push(R),q&&p.add(q)}}});await Promise.all(x),await(async()=>{if(!i)return;let h={generator:this,theme:this.config.theme},k=new Set([]);this.config.preflights.forEach(({layer:R=ct})=>{p.add(R),k.add(R)}),g=Object.fromEntries(await Promise.all(Array.from(k).map(async R=>{let q=(await Promise.all(this.config.preflights.filter(Q=>(Q.layer||ct)===R).map(async Q=>await Q.getCSS(h)))).filter(Boolean).join(f);return[R,q]})))})();let w=this.config.sortLayers(Array.from(p).sort((h,k)=>(this.config.layers[h]??0)-(this.config.layers[k]??0)||h.localeCompare(k))),j={},y=this.config.outputToCssLayers,$=h=>{let k=h;return typeof y=="object"&&(k=y.cssLayerName?.(h)),k===null?null:k??h},L=(h=Fe)=>{if(j[h])return j[h];let k=Array.from(m).sort((q,Q)=>(this.parentOrders.get(q[0])??0)-(this.parentOrders.get(Q[0])??0)||q[0]?.localeCompare(Q[0]||"")||0).map(([q,Q])=>{let C=Q.length,O=Q.filter(z=>(z[4]?.layer||Fe)===h).sort((z,D)=>z[0]-D[0]||(z[4]?.sort||0)-(D[4]?.sort||0)||z[5]?.currentSelector?.localeCompare(D[5]?.currentSelector??"")||z[1]?.localeCompare(D[1]||"")||z[2]?.localeCompare(D[2]||"")||0).map(([,z,D,,lt,,Dr])=>[[[(z&&jl(z,o))??"",lt?.sort??0]],D,!!(Dr??lt?.noMerge)]);if(!O.length)return;let F=O.reverse().map(([z,D,lt],Dr)=>{if(!lt&&this.config.mergeSelectors)for(let ue=Dr+1;ue<C;ue++){let re=O[ue];if(re&&!re[2]&&(z&&re[0]||z==null&&re[0]==null)&&re[1]===D)return z&&re[0]&&re[0].push(...z),null}let Ir=z?ee(z.sort((ue,re)=>ue[1]-re[1]||ue[0]?.localeCompare(re[0]||"")||0).map(ue=>ue[0]).filter(Boolean)):[];return Ir.length?`${Ir.join(`,${f}`)}{${D}}`:D}).filter(Boolean).reverse().join(f);if(!q)return F;let U=q.split(" $$ ");return`${U.join("{")}{${f}${F}${f}${"}".repeat(U.length)}`}).filter(Boolean).join(f);i&&(k=[g[h],k].filter(Boolean).join(f));let R;y&&k&&(R=$(h),R!==null&&(k=`@layer ${R}{${f}${k}${f}}`));let H=a?"":`/* layer: ${h}${R&&R!==h?`, alias: ${R}`:""} */${f}`;return j[h]=k?H+k:""},E=(h=w,k)=>{let R=h.filter(H=>!k?.includes(H));return[y&&R.length>0?`@layer ${R.map($).filter(mt).join(", ")};`:void 0,...R.map(H=>L(H)||"")].filter(Boolean).join(f)};return{get css(){return E()},layers:w,matched:d,getLayers:E,getLayer:L,setLayer:async(h,k)=>{let R=await k(L(h));return j[h]=R,R}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,l]=i;for(;s;){s=!1;let u=i[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(u,n);if(p){if(P(p)){if(p===u)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(m=>{let g=m.matcher??u,x=[m,...a],w=new Set(l);return w.add(f),[i[0],g,x,w]});return(await Promise.all(d.map(m=>o(m)))).flat()}}i[1]=p.matcher??u,a.unshift(p),l.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((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??zl)({...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:Yr(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 u of this.config.postprocess)u(l);return l}constructCustomCSS(t,r,n){let o=$e(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}{${Se(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1,o){let i=P(t)?await this.matchVariants(t):[t],s=async([l,u,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[u];if(p&&p[1]&&(n||!p[2]?.internal)){r.generator.activatedRules.add(p),this.config.details&&r.rules.push(p);let m=this.config.rules.indexOf(p),g=$e(p[1]),x=p[2];return P(g)?[[m,g,x]]:[[m,l,g,x,f]]}r.variantHandlers=f;let{rulesDynamic:d}=this.config;for(let m of d){let[g,x,w]=m;if(w?.internal&&!n)continue;let j=u;if(w?.prefix){let E=V(w.prefix);if(o){let b=V(o);if(!E.some(h=>b.includes(h)))continue}else{let b=E.find(h=>u.startsWith(h));if(b==null)continue;j=u.slice(b.length)}}let y=j.match(g);if(!y)continue;let $=await x(y,r);if(!$)continue;if(r.generator.activatedRules.add(m),this.config.details&&r.rules.push(m),typeof $!="string")if(Symbol.asyncIterator in $){let E=[];for await(let b of $)b&&E.push(b);$=E}else Symbol.iterator in $&&!Array.isArray($)&&($=Array.from($).filter(mt));let L=Qn($).filter(E=>E.length);if(L.length){let E=this.config.rules.indexOf(m);return L.map(b=>{if(P(b))return[E,b,w];let h=f,k=w;for(let R of b)R[0]===pe.variants?h=[...V(R[1]),...h]:R[0]===pe.parent?h=[{parent:R[1]},...h]:R[0]===pe.selector?h=[{selector:R[1]},...h]:R[0]===pe.layer?h=[{layer:R[1]},...h]:R[0]===pe.sort&&(k={...k,sort:R[1]});return[E,l,b,k,h]})}}},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}stringifyUtil(t,r){if(!t)return;if(Gr(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),u=Se(o);if(!u)return;let{layer:f,sort:p,...d}=t[3]??{},m={...d,layer:s??f,sort:a??p};return[t[0],n,u,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 f=V(a[2].prefix).find(p=>t.startsWith(p));if(f==null)continue;l=t.slice(f.length)}if(to(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=V(s).map(a=>P(a)?ro(a.trim()).split(/\s+/g):a).flat()),!s){let a=P(t)?await this.matchVariants(t):[t];for(let l of a){let[u,f]=l;if(u!==f){let p=await this.expandShortcut(f,r,n-1);p&&(s=p[0].map(d=>P(d)?u.replace(f,d):d))}}}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(a=>!!a),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new ht,s=(await Promise.all(ee(n).map(async f=>{let p=P(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",$e(f),void 0,[]]];return!p&&this.config.warn&&oo(`unmatched utility "${f}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=t,u=[];for(let f of s){if(Gr(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:g,noMerge:x,layer:w}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(w??o.layer,new gt).getFallback(p,m,[[],f[0]])[0].push([d,!!(x??f[3]?.noMerge),g??0])}return u.concat(i.flatMap((f,p)=>f.map(([d,m],g,x)=>{let w=(y,$,L)=>{let E=Math.max(...L.map(h=>h[1])),b=L.map(h=>h[0]);return(y?[b.flat(1)]:b).map(h=>{let k=Se(h);if(k)return[m,g,k,x,{...o,noMerge:$,sort:E,layer:p},r,void 0]})};return[[d.filter(([,y])=>y).map(([y,,$])=>[y,$]),!0],[d.filter(([,y])=>!y).map(([y,,$])=>[y,$]),!1]].map(([y,$])=>[...w(!1,$,y.filter(([L])=>L.some(E=>E[0]===pe.shortcutsNoMerge))),...w(!0,$,y.filter(([L])=>L.every(E=>E[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}};async function po(e,t){return await qr.create(e,t)}var mo=/\s\$\$\s+/g;function Tl(e){return mo.test(e)}function jl(e,t){return Tl(e)?e.replace(mo,t?` ${t} `:" "):t?`${t} ${e}`:e}var fo=/^\[(.+?)(~?=)"(.*)"\]$/;function Yr(e){return fo.test(e)?e.replace(fo,(t,r,n,o)=>`[${dt(r)}${n}"${dt(o)}"]`):`.${dt(e)}`}function zl(e,t){return t(e)}var Xr=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function go(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Xn(i);if(!a)return;let l=a[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let u=a[2],[,f="",p=u]=u.match(Xr)||[];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}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),m=d.pop()+p,g=d.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${g}${l}-${m}`}]}return`${f}${l}-${p}`}}}var Ol=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Al=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,ho=/[\s'"`;>]+/;function bo(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(Ol),o,i=0;for(let y of n){let[,$,L]=y,E=y.index+$.length;if(r>E&&r<=E+L.length){i=E,o=L;break}}if(!o)return null;let s=o.matchAll(Al),a=0,l,u;for(let y of s){let[$,L,E]=y,b=i+y.index;if(r>b&&r<=b+$.length){a=b,l=L,u=E?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!e?.prefix&&l.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let p=f?l.slice(e.prefix.length):l;if(u===void 0)return{extracted:p,resolveReplacement(y){let $=f?e.prefix.length:0;return{start:a+$,end:a+l.length,replacement:y}}};let d=a+l.length+2,m=ho.exec(u),g=0,x;for(;m;){let[y]=m;if(r>d+g&&r<=d+g+m.index){x=u.slice(g,g+m.index);break}g+=m.index+y.length,m=ho.exec(u.slice(g))}x===void 0&&(x=u.slice(g));let[,w="",j]=x.match(Xr)||[];return{extracted:`${w}${p}-${j}`,transformSuggestions(y){return y.filter($=>$.startsWith(`${w}${p}-`)).map($=>w+$.slice(w.length+p.length+1))},resolveReplacement(y){return{start:g+d,end:g+d+x.length,replacement:w+y.slice(w.length+p.length+1)}}}}}}var Vl=["v-bind:",":"],xo=/[\s'"`;]+/g,Zr=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Pl=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Jr=["placeholder","fill","opacity","stroke-opacity"];function yo(e){let t=e?.ignoreAttributes??Jr,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Zr)).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 Vl)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(Le(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(xo).filter(Le):Zr.test(a)?(Zr.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(xo).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var Ml=(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??Jr;let t=[go(e)],r=[yo(e)],n=[bo(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},vo=Ml;var yt="__TAGIFY__",Fl=/<([\w:-]+)/g;function wo(e){let{prefix:t="",excludedTags:r=["b",/^h\d+$/,"table"]}=e;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(Fl)).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])=>`${yt}${o}`)}}}function ko(e){let{extraProperties:t}=e,r=`${yt}${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(yt.length+1)};return t&&(typeof t=="function"?i.body=s=>[...s,...Object.entries(t(o)??{})]:i.body=s=>[...s,...Object.entries(t)]),i}}}var _l=(e={})=>{let{defaultExtractor:t=!0}=e,r=[ko(e)],n=[wo(e)];return{name:"@unocss/preset-tagify",variants:r,extractors:n,extractorDefault:t?void 0:!1}},$o=_l;function Qr(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 So(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],u=`:not(:where(.not-${n},.not-${n} *))`,f=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})${u}${m}`).join(",")}return null}).filter(p=>p);f.length?t+=f.join(","):t+=r.map(p=>s?a.split(",").map(d=>`${p} ${d}`).join(","):`${p} :where(${a})${u}`).join(","),t+="{";for(let p in l){let d=l[p];t+=`${p}:${d};`}t+="}"}return t}function Co(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})`]),So(o?{escapedSelector:s,selectorName:n,preflights:We(Qr(e.theme),o),compatibility:i}:{escapedSelector:s,selectorName:n,preflights:Qr(e.theme),compatibility:i})}var Ll=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(Yr(l)),{color:"var(--un-prose-body)","max-width":"65ch"}),{layer:"typography"}],[o,([,a],{theme:l})=>{let u=l.colors?.[a];if(u==null)return;let f=typeof u=="object"?u:{};return{"--un-prose-body":f[700]??u,"--un-prose-headings":f[900]??u,"--un-prose-links":f[900]??u,"--un-prose-lists":f[400]??u,"--un-prose-hr":f[200]??u,"--un-prose-captions":f[500]??u,"--un-prose-code":f[900]??u,"--un-prose-borders":f[200]??u,"--un-prose-bg-soft":f[100]??u,"--un-prose-invert-body":f[200]??u,"--un-prose-invert-headings":f[100]??u,"--un-prose-invert-links":f[100]??u,"--un-prose-invert-lists":f[500]??u,"--un-prose-invert-hr":f[700]??u,"--un-prose-invert-captions":f[400]??u,"--un-prose-invert-code":f[100]??u,"--un-prose-invert-borders":f[700]??u,"--un-prose-invert-bg-soft":f[800]??u}},{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 Co(a,{escapedSelectors:t,selectorName:r,cssExtend:l,compatibility:s})}}}]}},Ro=Ll;function Ul(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 Eo(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${Ul(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function To(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var Wl=/\/\/#\s*sourceMappingURL=.*\n?/g;function jo(e){return e.includes("sourceMappingURL=")?e.replace(Wl,""):e}var Nl=/(?:[\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,Dl=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Il(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(Nl))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=Eo(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(ut).forEach(o=>{o.includes(n)&&(o=To(o,r)),Le(o)&&!Dl.test(o)&&t.push(o)}),t}function zo(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Il(jo(e))}}}function Oo(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Se(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),V(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function Ce(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 de(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 xe(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=de(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var en=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Ao=["%alpha","<alpha-value>"],Kl=new RegExp(Ao.map(e=>fe(e)).join("|"));function Y(e=""){let t=Gl(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(en.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 ae(e){let t=e.alpha??1;return typeof t=="string"&&Ao.includes(t)?1:t}function M(e,t){if(typeof e=="string")return e.replace(Kl,`${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}`,en.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Gl(e){if(!e)return;let t=Hl(e);if(t!=null||(t=ql(e),t!=null)||(t=Yl(e),t!=null)||(t=Zl(e),t!=null)||(t=Jl(e),t!=null))return t}function Hl(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 ql(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Yl(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=xe(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 Xl=new RegExp(`^(${en.join("|")})\\((.+)\\)$`,"i");function Zl(e){let t=e.match(Xl);if(!t)return;let[,r,n]=t,o=Vo(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Jl(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Vo(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Vo(e){let t=xe(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=xe(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 vt(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 Po="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_o=new Uint8Array(64),Ql=new Uint8Array(128);for(let e=0;e<Po.length;e++){let t=Po.charCodeAt(e);_o[e]=t,Ql[t]=e}function Ne(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(_o[o])}while(n>0);return t}var Mo=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}},tn=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Mo)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===Mo&&(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 Lo(e){let t=new tn,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 u=0;u<a.length;u++){let f=a[u];u>0&&t.write(44),l=Ne(t,f[0],l),f.length!==1&&(r=Ne(t,f[1],r),n=Ne(t,f[2],n),o=Ne(t,f[3],o),f.length!==4&&(i=Ne(t,f[4],i)))}}return t.flush()}var wt=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))}},kt=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 ec(){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 tc=ec(),rn=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Lo(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,"+tc(this.toString())}};function rc(e){let t=e.split(`
|
|
1
|
+
"use strict";(()=>{var pl=Object.defineProperty;var dl=(e,t)=>{for(var r in t)pl(e,r,{get:t[r],enumerable:!0})};var Fe="default",ct="preflights",ml="shortcuts",gl="imports",Yn={[gl]:-200,[ct]:-100,[ml]:-10,[Fe]:0};var ut=/[\\:]?[\s'"`;{}]+/g;function hl(e){return e.split(ut)}var ft={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return hl(e)}};function V(e=[]){return Array.isArray(e)?e:[e]}function ee(e){return Array.from(new Set(e))}function Kr(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 _e=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 pt(e){return e instanceof _e}function fe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(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 dt=se;var bl=/^\[(.+?)~?="(.*)"\]$/;var xl=/[\w\u00A0-\uFFFF%-?]/;function Xn(e){return e.match(bl)}function Le(e=""){return xl.test(e)}function Zn(e){return typeof e=="function"?{match:e}:e}function Gr(e){return e.length===3}function mt(e){return e!=null}function Jn(){}var gt=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)))}},ht=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 $e(e){return P(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Qn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>$e(t)):[e]:[$e(e)]}function yl(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 Se(e){return e==null?"":yl(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function bt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function We(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 bt(n)&&bt(o)&&Object.keys(o).forEach(s=>{bt(n[s])&&bt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=We(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Ue(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"?Ue(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Ue(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Ue(n):n;return r}return e}function eo(e){return P(e[0])}function to(e){return P(e[0])}var xt={};function vl(e=["-",":"]){let t=e.join("|");return xt[t]||(xt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),xt[t].lastIndex=0,xt[t]}function wl(e,t=["-",":"],r=5){let n=vl(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,f,p,d,m)=>{if(!t.includes(p))return u;o=!0,s.add(f+p);let g=m+f.length+p.length+1,x={length:u.length,items:[]};a.set(m,x);for(let w of[...d.matchAll(/\S+/g)]){let j=g+w.index,y=a.get(j)?.items;y?a.delete(j):y=[{offset:j,length:w[0].length,className:w[0]}];for(let $ of y)$.className=$.className==="~"?f:$.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),x.items.push($)}return"$".repeat(u.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let u=0;for(let[f,p]of a)l+=e.slice(u,f),l+=p.items.map(d=>d.className).join(" "),u=f+p.length;l+=e.slice(u)}else{l=e;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 ro(e,t=["-",":"],r=5){let n=wl(e,t,r);return typeof e=="string"?n.expanded:e}var no=new Set;function oo(e){no.has(e)||(console.warn("[unocss]",e),no.add(e))}function ao(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var io="_uno_resolved";async function kl(e){let t=typeof e=="function"?await e():await e;if(io in t)return t;t={...t},Object.defineProperty(t,io,{value:!0,enumerable:!1});let r=t.shortcuts?ao(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}async function lo(e){let t=await kl(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(V).flatMap(lo))).flat();return[t,...r]}function $l(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:ee(so(...t)),exclude:ee(so(...r))}};return o.length&&(a.filesystem=ee(o.flat())),i.length&&(a.inline=ee(i.flat())),s.length&&(a.plain=ee(s.flat())),a}async function Hr(e={},t={}){let r=Object.assign({},t,e),n=Kr((await Promise.all((r.presets||[]).flatMap(V).flatMap(lo))).flat(),(b,h)=>b.name===h.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Yn,...i.map(b=>b.layers));function l(b){return ee(i.flatMap(h=>V(h[b]||[])))}let u=l("extractors"),f=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=ft),f&&!u.includes(f)&&u.unshift(f),u.sort((b,h)=>(b.order||0)-(h.order||0));let p=l("rules"),d={},m=p.length,g=p.filter(b=>eo(b)?(V(b[2]?.prefix||"").forEach(k=>{d[k+b[0]]=b}),!1):!0).reverse(),x=Sl(i.map(b=>b.theme)),w=l("extendTheme");for(let b of w)x=b(x)||x;let j={templates:ee(i.flatMap(b=>V(b.autocomplete?.templates))),extractors:i.flatMap(b=>V(b.autocomplete?.extractors)).sort((b,h)=>(b.order||0)-(h.order||0)),shorthands:Cl(i.map(b=>b.autocomplete?.shorthands||{}))},y=l("separators");y.length||(y=[":","-"]);let $=l("content"),L=$l($),E={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:x,rules:p,rulesSize:m,rulesDynamic:g,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:j,variants:l("variants").map(Zn).sort((b,h)=>(b.order||0)-(h.order||0)),shortcuts:ao(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:y,details:r.details??r.envMode==="dev",content:L,transformers:Kr(l("transformers"),(b,h)=>b.name===h.name)};for(let b of i)b?.configResolved?.(E);return E}function Sl(e){return e.map(t=>t?Ue(t):{}).reduce((t,r)=>We(t,r),{})}function Cl(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 so(...e){return e.flatMap(Rl)}function Rl(e){return Array.isArray(e)?e:e?[e]:[]}var co="0.65.1";function uo(){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",sort:"$$symbol-sort"},qr=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=co;_cache=new Map;config=void 0;blocked=new Set;parentOrders=new Map;activatedRules=new Set;events=uo();static async create(t={},r={}){let n=new e(t,r);return n.config=await Hr(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this._cache.clear(),this.config=await Hr(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(pt(s)&&pt(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 l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(t),this._cache.set(n,null);return}let s=async l=>{let u=this.makeContext(t,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(u.variants=[...l[3]]);let f=await this.expandShortcut(u.currentSelector,u);return f?await this.stringifyShortcuts(u.variantMatch,u,f[0],f[1]):(await this.parseUtil(u.variantMatch,u))?.map(d=>this.stringifyUtil(d,u)).filter(mt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this._cache.set(n,a),a;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,u=P(t)?await this.applyExtractors(t,n,l?new _e:new Set):Array.isArray(t)?new Set(t):t;if(s){let h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(k=>typeof k=="function"?k(h):k).forEach(k=>{u.has(k)||u.add(k)})}let f=a?"":`
|
|
2
|
+
`,p=new Set([Fe]),d=l?new Map:new Set,m=new Map,g={},x=Array.from(u).map(async h=>{if(d.has(h))return;let k=await this.parseToken(h);if(k!=null){d instanceof Map?d.set(h,{data:k,count:pt(u)?u.getCount(h):-1}):d.add(h);for(let R of k){let H=R[3]||"",q=R[4]?.layer;m.has(H)||m.set(H,[]),m.get(H).push(R),q&&p.add(q)}}});await Promise.all(x),await(async()=>{if(!i)return;let h={generator:this,theme:this.config.theme},k=new Set([]);this.config.preflights.forEach(({layer:R=ct})=>{p.add(R),k.add(R)}),g=Object.fromEntries(await Promise.all(Array.from(k).map(async R=>{let q=(await Promise.all(this.config.preflights.filter(Q=>(Q.layer||ct)===R).map(async Q=>await Q.getCSS(h)))).filter(Boolean).join(f);return[R,q]})))})();let w=this.config.sortLayers(Array.from(p).sort((h,k)=>(this.config.layers[h]??0)-(this.config.layers[k]??0)||h.localeCompare(k))),j={},y=this.config.outputToCssLayers,$=h=>{let k=h;return typeof y=="object"&&(k=y.cssLayerName?.(h)),k===null?null:k??h},L=(h=Fe)=>{if(j[h])return j[h];let k=Array.from(m).sort((q,Q)=>(this.parentOrders.get(q[0])??0)-(this.parentOrders.get(Q[0])??0)||q[0]?.localeCompare(Q[0]||"")||0).map(([q,Q])=>{let C=Q.length,O=Q.filter(z=>(z[4]?.layer||Fe)===h).sort((z,D)=>z[0]-D[0]||(z[4]?.sort||0)-(D[4]?.sort||0)||z[5]?.currentSelector?.localeCompare(D[5]?.currentSelector??"")||z[1]?.localeCompare(D[1]||"")||z[2]?.localeCompare(D[2]||"")||0).map(([,z,D,,lt,,Dr])=>[[[(z&&jl(z,o))??"",lt?.sort??0]],D,!!(Dr??lt?.noMerge)]);if(!O.length)return;let F=O.reverse().map(([z,D,lt],Dr)=>{if(!lt&&this.config.mergeSelectors)for(let ue=Dr+1;ue<C;ue++){let re=O[ue];if(re&&!re[2]&&(z&&re[0]||z==null&&re[0]==null)&&re[1]===D)return z&&re[0]&&re[0].push(...z),null}let Ir=z?ee(z.sort((ue,re)=>ue[1]-re[1]||ue[0]?.localeCompare(re[0]||"")||0).map(ue=>ue[0]).filter(Boolean)):[];return Ir.length?`${Ir.join(`,${f}`)}{${D}}`:D}).filter(Boolean).reverse().join(f);if(!q)return F;let U=q.split(" $$ ");return`${U.join("{")}{${f}${F}${f}${"}".repeat(U.length)}`}).filter(Boolean).join(f);i&&(k=[g[h],k].filter(Boolean).join(f));let R;y&&k&&(R=$(h),R!==null&&(k=`@layer ${R}{${f}${k}${f}}`));let H=a?"":`/* layer: ${h}${R&&R!==h?`, alias: ${R}`:""} */${f}`;return j[h]=k?H+k:""},E=(h=w,k)=>{let R=h.filter(H=>!k?.includes(H));return[y&&R.length>0?`@layer ${R.map($).filter(mt).join(", ")};`:void 0,...R.map(H=>L(H)||"")].filter(Boolean).join(f)};return{get css(){return E()},layers:w,matched:d,getLayers:E,getLayer:L,setLayer:async(h,k)=>{let R=await k(L(h));return j[h]=R,R}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,l]=i;for(;s;){s=!1;let u=i[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(u,n);if(p){if(P(p)){if(p===u)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(m=>{let g=m.matcher??u,x=[m,...a],w=new Set(l);return w.add(f),[i[0],g,x,w]});return(await Promise.all(d.map(m=>o(m)))).flat()}}i[1]=p.matcher??u,a.unshift(p),l.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((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??zl)({...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:Yr(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 u of this.config.postprocess)u(l);return l}constructCustomCSS(t,r,n){let o=$e(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}{${Se(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1,o){let i=P(t)?await this.matchVariants(t):[t],s=async([l,u,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[u];if(p&&p[1]&&(n||!p[2]?.internal)){r.generator.activatedRules.add(p),this.config.details&&r.rules.push(p);let m=this.config.rules.indexOf(p),g=$e(p[1]),x=p[2];return P(g)?[[m,g,x]]:[[m,l,g,x,f]]}r.variantHandlers=f;let{rulesDynamic:d}=this.config;for(let m of d){let[g,x,w]=m;if(w?.internal&&!n)continue;let j=u;if(w?.prefix){let E=V(w.prefix);if(o){let b=V(o);if(!E.some(h=>b.includes(h)))continue}else{let b=E.find(h=>u.startsWith(h));if(b==null)continue;j=u.slice(b.length)}}let y=j.match(g);if(!y)continue;let $=await x(y,r);if(!$)continue;if(r.generator.activatedRules.add(m),this.config.details&&r.rules.push(m),typeof $!="string")if(Symbol.asyncIterator in $){let E=[];for await(let b of $)b&&E.push(b);$=E}else Symbol.iterator in $&&!Array.isArray($)&&($=Array.from($).filter(mt));let L=Qn($).filter(E=>E.length);if(L.length){let E=this.config.rules.indexOf(m);return L.map(b=>{if(P(b))return[E,b,w];let h=f,k=w;for(let R of b)R[0]===pe.variants?h=[...V(R[1]),...h]:R[0]===pe.parent?h=[{parent:R[1]},...h]:R[0]===pe.selector?h=[{selector:R[1]},...h]:R[0]===pe.layer?h=[{layer:R[1]},...h]:R[0]===pe.sort&&(k={...k,sort:R[1]});return[E,l,b,k,h]})}}},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}stringifyUtil(t,r){if(!t)return;if(Gr(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),u=Se(o);if(!u)return;let{layer:f,sort:p,...d}=t[3]??{},m={...d,layer:s??f,sort:a??p};return[t[0],n,u,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 f=V(a[2].prefix).find(p=>t.startsWith(p));if(f==null)continue;l=t.slice(f.length)}if(to(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=V(s).map(a=>P(a)?ro(a.trim()).split(/\s+/g):a).flat()),!s){let a=P(t)?await this.matchVariants(t):[t];for(let l of a){let[u,f]=l;if(u!==f){let p=await this.expandShortcut(f,r,n-1);p&&(s=p[0].map(d=>P(d)?u.replace(f,d):d))}}}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(a=>!!a),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new ht,s=(await Promise.all(ee(n).map(async f=>{let p=P(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",$e(f),void 0,[]]];return!p&&this.config.warn&&oo(`unmatched utility "${f}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=t,u=[];for(let f of s){if(Gr(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:g,noMerge:x,layer:w}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(w??o.layer,new gt).getFallback(p,m,[[],f[0]])[0].push([d,!!(x??f[3]?.noMerge),g??0])}return u.concat(i.flatMap((f,p)=>f.map(([d,m],g,x)=>{let w=(y,$,L)=>{let E=Math.max(...L.map(h=>h[1])),b=L.map(h=>h[0]);return(y?[b.flat(1)]:b).map(h=>{let k=Se(h);if(k)return[m,g,k,x,{...o,noMerge:$,sort:E,layer:p},r,void 0]})};return[[d.filter(([,y])=>y).map(([y,,$])=>[y,$]),!0],[d.filter(([,y])=>!y).map(([y,,$])=>[y,$]),!1]].map(([y,$])=>[...w(!1,$,y.filter(([L])=>L.some(E=>E[0]===pe.shortcutsNoMerge))),...w(!0,$,y.filter(([L])=>L.every(E=>E[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}};async function po(e,t){return await qr.create(e,t)}var mo=/\s\$\$\s+/g;function Tl(e){return mo.test(e)}function jl(e,t){return Tl(e)?e.replace(mo,t?` ${t} `:" "):t?`${t} ${e}`:e}var fo=/^\[(.+?)(~?=)"(.*)"\]$/;function Yr(e){return fo.test(e)?e.replace(fo,(t,r,n,o)=>`[${dt(r)}${n}"${dt(o)}"]`):`.${dt(e)}`}function zl(e,t){return t(e)}var Xr=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function go(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Xn(i);if(!a)return;let l=a[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let u=a[2],[,f="",p=u]=u.match(Xr)||[];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}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),m=d.pop()+p,g=d.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${g}${l}-${m}`}]}return`${f}${l}-${p}`}}}var Ol=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Al=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,ho=/[\s'"`;>]+/;function bo(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(Ol),o,i=0;for(let y of n){let[,$,L]=y,E=y.index+$.length;if(r>E&&r<=E+L.length){i=E,o=L;break}}if(!o)return null;let s=o.matchAll(Al),a=0,l,u;for(let y of s){let[$,L,E]=y,b=i+y.index;if(r>b&&r<=b+$.length){a=b,l=L,u=E?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!e?.prefix&&l.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let p=f?l.slice(e.prefix.length):l;if(u===void 0)return{extracted:p,resolveReplacement(y){let $=f?e.prefix.length:0;return{start:a+$,end:a+l.length,replacement:y}}};let d=a+l.length+2,m=ho.exec(u),g=0,x;for(;m;){let[y]=m;if(r>d+g&&r<=d+g+m.index){x=u.slice(g,g+m.index);break}g+=m.index+y.length,m=ho.exec(u.slice(g))}x===void 0&&(x=u.slice(g));let[,w="",j]=x.match(Xr)||[];return{extracted:`${w}${p}-${j}`,transformSuggestions(y){return y.filter($=>$.startsWith(`${w}${p}-`)).map($=>w+$.slice(w.length+p.length+1))},resolveReplacement(y){return{start:g+d,end:g+d+x.length,replacement:w+y.slice(w.length+p.length+1)}}}}}}var Vl=["v-bind:",":"],xo=/[\s'"`;]+/g,Zr=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Pl=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Jr=["placeholder","fill","opacity","stroke-opacity"];function yo(e){let t=e?.ignoreAttributes??Jr,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Zr)).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 Vl)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(Le(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(xo).filter(Le):Zr.test(a)?(Zr.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(xo).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var Ml=(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??Jr;let t=[go(e)],r=[yo(e)],n=[bo(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},vo=Ml;var yt="__TAGIFY__",Fl=/<([\w:-]+)/g;function wo(e){let{prefix:t="",excludedTags:r=["b",/^h\d+$/,"table"]}=e;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(Fl)).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])=>`${yt}${o}`)}}}function ko(e){let{extraProperties:t}=e,r=`${yt}${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(yt.length+1)};return t&&(typeof t=="function"?i.body=s=>[...s,...Object.entries(t(o)??{})]:i.body=s=>[...s,...Object.entries(t)]),i}}}var _l=(e={})=>{let{defaultExtractor:t=!0}=e,r=[ko(e)],n=[wo(e)];return{name:"@unocss/preset-tagify",variants:r,extractors:n,extractorDefault:t?void 0:!1}},$o=_l;function Qr(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 So(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],u=`:not(:where(.not-${n},.not-${n} *))`,f=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})${u}${m}`).join(",")}return null}).filter(p=>p);f.length?t+=f.join(","):t+=r.map(p=>s?a.split(",").map(d=>`${p} ${d}`).join(","):`${p} :where(${a})${u}`).join(","),t+="{";for(let p in l){let d=l[p];t+=`${p}:${d};`}t+="}"}return t}function Co(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})`]),So(o?{escapedSelector:s,selectorName:n,preflights:We(Qr(e.theme),o),compatibility:i}:{escapedSelector:s,selectorName:n,preflights:Qr(e.theme),compatibility:i})}var Ll=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(Yr(l)),{color:"var(--un-prose-body)","max-width":"65ch"}),{layer:"typography"}],[o,([,a],{theme:l})=>{let u=l.colors?.[a];if(u==null)return;let f=typeof u=="object"?u:{};return{"--un-prose-body":f[700]??u,"--un-prose-headings":f[900]??u,"--un-prose-links":f[900]??u,"--un-prose-lists":f[400]??u,"--un-prose-hr":f[200]??u,"--un-prose-captions":f[500]??u,"--un-prose-code":f[900]??u,"--un-prose-borders":f[200]??u,"--un-prose-bg-soft":f[100]??u,"--un-prose-invert-body":f[200]??u,"--un-prose-invert-headings":f[100]??u,"--un-prose-invert-links":f[100]??u,"--un-prose-invert-lists":f[500]??u,"--un-prose-invert-hr":f[700]??u,"--un-prose-invert-captions":f[400]??u,"--un-prose-invert-code":f[100]??u,"--un-prose-invert-borders":f[700]??u,"--un-prose-invert-bg-soft":f[800]??u}},{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 Co(a,{escapedSelectors:t,selectorName:r,cssExtend:l,compatibility:s})}}}]}},Ro=Ll;function Ul(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 Eo(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${Ul(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function To(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var Wl=/\/\/#\s*sourceMappingURL=.*\n?/g;function jo(e){return e.includes("sourceMappingURL=")?e.replace(Wl,""):e}var Nl=/(?:[\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,Dl=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Il(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(Nl))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=Eo(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(ut).forEach(o=>{o.includes(n)&&(o=To(o,r)),Le(o)&&!Dl.test(o)&&t.push(o)}),t}function zo(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Il(jo(e))}}}function Oo(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Se(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),V(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function Ce(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 de(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 xe(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=de(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var en=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Ao=["%alpha","<alpha-value>"],Kl=new RegExp(Ao.map(e=>fe(e)).join("|"));function Y(e=""){let t=Gl(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(en.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 ae(e){let t=e.alpha??1;return typeof t=="string"&&Ao.includes(t)?1:t}function M(e,t){if(typeof e=="string")return e.replace(Kl,`${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}`,en.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Gl(e){if(!e)return;let t=Hl(e);if(t!=null||(t=ql(e),t!=null)||(t=Yl(e),t!=null)||(t=Zl(e),t!=null)||(t=Jl(e),t!=null))return t}function Hl(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 ql(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Yl(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=xe(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 Xl=new RegExp(`^(${en.join("|")})\\((.+)\\)$`,"i");function Zl(e){let t=e.match(Xl);if(!t)return;let[,r,n]=t,o=Vo(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Jl(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Vo(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Vo(e){let t=xe(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=xe(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 vt(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 Po="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_o=new Uint8Array(64),Ql=new Uint8Array(128);for(let e=0;e<Po.length;e++){let t=Po.charCodeAt(e);_o[e]=t,Ql[t]=e}function Ne(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(_o[o])}while(n>0);return t}var Mo=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}},tn=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Mo)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===Mo&&(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 Lo(e){let t=new tn,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 u=0;u<a.length;u++){let f=a[u];u>0&&t.write(44),l=Ne(t,f[0],l),f.length!==1&&(r=Ne(t,f[1],r),n=Ne(t,f[2],n),o=Ne(t,f[3],o),f.length!==4&&(i=Ne(t,f[4],i)))}}return t.flush()}var wt=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))}},kt=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 ec(){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 tc=ec(),rn=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Lo(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+tc(this.toString())}};function rc(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 nc(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 oc=Object.prototype.toString;function ic(e){return oc.call(e)==="[object Object]"}function Uo(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 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 sc=/\w/,nn=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(`
|
|
5
5
|
`,0),a=-1;for(;s>=0&&i>s;){let u=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&u.push(o),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=s,s=r.indexOf(`
|