@unocss/runtime 0.56.2 → 0.56.4
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 +3 -3
- package/core.global.js +2 -2
- package/full.global.js +2 -2
- package/mini.global.js +2 -2
- package/package.json +4 -4
- package/uno.global.js +2 -2
package/mini.global.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";(()=>{var Co=Object.defineProperty;var Ro=(e,t)=>{for(var r in t)Co(e,r,{get:t[r],enumerable:!0})};function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(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 Ee=Y;function j(e=[]){return Array.isArray(e)?e:[e]}function Q(e){return Array.from(new Set(e))}function wt(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function A(e){return typeof e=="string"}function ee(e){return A(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function St(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ee(t)):[e]:[ee(e)]}function To(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 te(e){return e==null?"":To(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function je(e){return e&&typeof e=="object"&&!Array.isArray(e)}function qe(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 je(n)&&je(o)&&Object.keys(o).forEach(s=>{je(n[s])&&je(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=qe(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function le(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?le(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:le(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?le(n):n;return r}return e}function kt(e){return A(e[0])}function Ct(e){return A(e[0])}var Eo=/^\[(.+?)~?="(.*)"\]$/;var jo=/[\w\u00A0-\uFFFF-_:%-?]/,Ye="$$shortcut-no-merge";function Rt(e){return e.match(Eo)}function fe(e=""){return jo.test(e)}function Tt(e){return typeof e=="function"?{match:e}:e}function Ze(e){return e.length===3}function Et(e){return e!=null}function jt(){}var Ae=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}};var ue=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 Ve(e){return e instanceof ue}var ze={};function Ao(e=["-",":"]){let t=e.join("|");return ze[t]||(ze[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),ze[t].lastIndex=0,ze[t]}function Vo(e,t=["-",":"],r=5){let n=Ao(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,f,p,d,g)=>{if(!t.includes(p))return u;o=!0,s.add(f+p);let y=g+f.length+p.length+1,w={length:u.length,items:[]};a.set(g,w);for(let b of[...d.matchAll(/\S+/g)]){let S=y+b.index,h=a.get(S)?.items;h?a.delete(S):h=[{offset:S,length:b[0].length,className:b[0]}];for(let k of h)k.className=k.className==="~"?f:k.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),w.items.push(k)}return"$".repeat(u.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let u=0;for(let[f,p]of a)c+=e.slice(u,f),c+=p.items.map(d=>d.className).join(" "),u=f+p.length;c+=e.slice(u)}else{c=e;for(let[u,f]of a)c.overwrite(u,u+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function At(e,t=["-",":"],r=5){let n=Vo(e,t,r);return typeof e=="string"?n.expanded:e}var Vt=new Set;function G(e){Vt.has(e)||(console.warn("[unocss]",e),Vt.add(e))}var Pe=/[\\:]?[\s'"`;{}]+/g;function zo(e){return e.split(Pe)}var Oe={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return zo(e)}};function zt(){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 Me="default",Ue="preflights",Po="shortcuts",Oo="imports",Pt={[Oo]:-200,[Ue]:-100,[Po]:-10,[Me]:0};function Mt(e){return j(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ot="_uno_resolved";function Mo(e){let t=typeof e=="function"?e():e;if(Ot in t)return t;t={...t},Object.defineProperty(t,Ot,{value:!0,enumerable:!1});let r=t.shortcuts?Mt(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=j(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function Ut(e){let t=Mo(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(j).flatMap(Ut);return[t,...r]}function Xe(e={},t={}){let r=Object.assign({},t,e),n=wt((r.presets||[]).flatMap(j).flatMap(Ut),(m,$)=>m.name===$.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Pt,...i.map(m=>m.layers));function c(m){return Q(i.flatMap($=>j($[m]||[])))}let u=c("extractors"),f=s.find(m=>m.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Oe),f&&!u.includes(f)&&u.unshift(f),u.sort((m,$)=>(m.order||0)-($.order||0));let p=c("rules"),d={},g=p.length,y=p.map((m,$)=>{if(kt(m)){j(m[2]?.prefix||"").forEach(z=>{d[z+m[0]]=[$,m[1],m[2],m]});return}return[$,...m]}).filter(Boolean).reverse(),w=Uo(i.map(m=>m.theme)),b=c("extendTheme");for(let m of b)w=m(w)||w;let S={templates:Q(i.flatMap(m=>j(m.autocomplete?.templates))),extractors:i.flatMap(m=>j(m.autocomplete?.extractors)).sort((m,$)=>(m.order||0)-($.order||0)),shorthands:Fo(i.map(m=>m.autocomplete?.shorthands||{}))},h=c("separators");h.length||(h=[":","-"]);let k={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:w,rulesSize:g,rulesDynamic:y,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:S,variants:c("variants").map(Tt).sort((m,$)=>(m.order||0)-($.order||0)),shortcuts:Mt(c("shortcuts")).reverse(),extractors:u,safelist:c("safelist"),separators:h,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(k);return k}function Uo(e){return e.map(t=>t?le(t):{}).reduce((t,r)=>qe(t,r),{})}function Fo(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}var Ft="0.56.
|
|
2
|
-
`,p=new Set([Me]),d=c?new Map:new Set,g=new Map,y={},w=Array.from(u).map(async m=>{if(d.has(m))return;let $=await this.parseToken(m);if($!=null){d instanceof Map?d.set(m,{data:$,count:Ve(u)?u.getCount(m):-1}):d.add(m);for(let R of $){let z=R[3]||"",U=R[4]?.layer;g.has(z)||g.set(z,[]),g.get(z).push(R),U&&p.add(U)}}});await Promise.all(w),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},$=new Set([]);this.config.preflights.forEach(({layer:R=Ue})=>{p.add(R),$.add(R)}),y=Object.fromEntries(await Promise.all(Array.from($).map(async R=>{let U=(await Promise.all(this.config.preflights.filter(B=>(B.layer||Ue)===R).map(async B=>await B.getCSS(m)))).filter(Boolean).join(f);return[R,U]})))})();let b=this.config.sortLayers(Array.from(p).sort((m,$)=>(this.config.layers[m]??0)-(this.config.layers[$]??0)||m.localeCompare($))),S={},h=m=>{if(S[m])return S[m];let $=Array.from(g).sort((z,U)=>(this.parentOrders.get(z[0])??0)-(this.parentOrders.get(U[0])??0)||z[0]?.localeCompare(U[0]||"")||0).map(([z,U])=>{let B=U.length,J=U.filter(x=>(x[4]?.layer||Me)===m).sort((x,C)=>x[0]-C[0]||(x[4]?.sort||0)-(C[4]?.sort||0)||x[5]?.currentSelector?.localeCompare(C[5]?.currentSelector??"")||x[1]?.localeCompare(C[1]||"")||x[2]?.localeCompare(C[2]||"")||0).map(([,x,C,,O,,F])=>[[[(x&&Lo(x,o))??"",O?.sort??0]],C,!!(F??O?.noMerge)]);if(!J.length)return;let Te=J.reverse().map(([x,C,O],F)=>{if(!O&&this.config.mergeSelectors)for(let H=F+1;H<B;H++){let D=J[H];if(D&&!D[2]&&(x&&D[0]||x==null&&D[0]==null)&&D[1]===C)return x&&D[0]&&D[0].push(...x),null}let K=x?Q(x.sort((H,D)=>H[1]-D[1]||H[0]?.localeCompare(D[0]||"")||0).map(H=>H[0]).filter(Boolean)):[];return K.length?`${K.join(`,${f}`)}{${C}}`:C}).filter(Boolean).reverse().join(f);if(!z)return Te;let v=z.split(" $$ ");return`${v.join("{")}{${f}${Te}${f}${"}".repeat(v.length)}`}).filter(Boolean).join(f);i&&($=[y[m],$].filter(Boolean).join(f));let R=a?"":`/* layer: ${m} */${f}`;return S[m]=$?R+$:""},k=(m=b,$)=>m.filter(R=>!$?.includes(R)).map(R=>h(R)||"").filter(Boolean).join(f);return{get css(){return k()},layers:b,matched:d,getLayers:k,getLayer:h}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!0,a={rawSelector:t,theme:this.config.theme,generator:this};for(;s;){s=!1;for(let c of this.config.variants){if(!c.multiPass&&n.has(c))continue;let u=await c.match(i,a);if(u){if(A(u)){if(u===i)continue;u={matcher:u}}i=u.matcher,o.unshift(u),n.add(c),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((u,f)=>(u.order||0)-(f.order||0)).reduceRight((u,f)=>p=>{let d=f.body?.(p.entries)||p.entries,g=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??Bo)({...p,entries:d,selector:f.selector?.(p.selector,d)||p.selector,parent:g[0]||p.parent,parentOrder:g[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},u)},u=>u)({prefix:"",selector:No(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let u of this.config.postprocess)u(c);return c}constructCustomCSS(t,r,n){let o=ee(r);if(A(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${te(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let[i,s,a]=A(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);let c=this.config.rulesStaticMap[s];if(c&&c[1]&&(n||!c[2]?.internal)){this.config.details&&r.rules.push(c[3]);let f=c[0],p=ee(c[1]),d=c[2];return A(p)?[[f,p,d]]:[[f,i,p,d,a]]}r.variantHandlers=a;let{rulesDynamic:u}=this.config;for(let[f,p,d,g]of u){if(g?.internal&&!n)continue;let y=s;if(g?.prefix){let h=j(g.prefix);if(o){let k=j(o);if(!h.some(m=>k.includes(m)))continue}else{let k=h.find(m=>s.startsWith(m));if(k==null)continue;y=s.slice(k.length)}}let w=y.match(p);if(!w)continue;let b=await d(w,r);if(!b)continue;this.config.details&&r.rules.push([p,d,g]);let S=St(b).filter(h=>h.length);if(S.length)return S.map(h=>A(h)?[f,h,g]:[f,i,h,g,a])}}stringifyUtil(t,r){if(!t)return;if(Ze(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(t),u=te(o);if(!u)return;let{layer:f,sort:p,...d}=t[3]??{},g={...d,layer:s??f,sort:a??p};return[t[0],n,u,i,g,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:jt,i,s;for(let a of this.config.shortcuts){let c=t;if(a[2]?.prefix){let f=j(a[2].prefix).find(p=>t.startsWith(p));if(f==null)continue;c=t.slice(f.length)}if(Ct(a)){if(a[0]===c){i=i||a[2],s=a[1],o(a);break}}else{let u=c.match(a[0]);if(u&&(s=a[1](u,r)),s){i=i||a[2],o(a);break}}}if(A(s)&&(s=At(s.trim()).split(/\s+/g)),!s){let[a,c]=A(t)?await this.matchVariants(t):t;if(a!==c){let u=await this.expandShortcut(c,r,n-1);u&&(s=u[0].map(f=>A(f)?a.replace(c,f):f))}}if(s)return[(await Promise.all(s.map(async a=>(A(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Ae,s=(await Promise.all(Q(n).map(async f=>{let p=A(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ee(f),void 0,[]]];return p||G(`unmatched utility "${f}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,c]=t,u=[];for(let f of s){if(Ze(f)){u.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:g,sort:y,noMerge:w}=this.applyVariants(f,[...f[4],...c],a);i.getFallback(p,g,[[],f[0]])[0].push([d,!!(w??f[3]?.noMerge),y??0])}return u.concat(i.map(([f,p],d,g)=>{let y=(b,S,h)=>{let k=Math.max(...h.map($=>$[1])),m=h.map($=>$[0]);return(b?[m.flat(1)]:m).map($=>{let R=te($);if(R)return[p,d,R,g,{...o,noMerge:S,sort:k},r,void 0]})};return[[f.filter(([,b])=>b).map(([b,,S])=>[b,S]),!0],[f.filter(([,b])=>!b).map(([b,,S])=>[b,S]),!1]].map(([b,S])=>[...y(!1,S,b.filter(([h])=>h.some(k=>k[0]===Ye))),...y(!0,S,b.filter(([h])=>h.every(k=>k[0]!==Ye)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="function"?r(t):A(r)?r===t:r.test(t))}};function Wt(e,t){return new Je(e,t)}var Wo=/\s\$\$\s+/g;function Do(e){return e.match(/\s\$\$\s/)}function Lo(e,t){return Do(e)?e.replace(Wo,t?` ${t} `:" "):t?`${t} ${e}`:e}var _t=/^\[(.+?)(~?=)"(.*)"\]$/;function No(e){return _t.test(e)?e.replace(_t,(t,r,n,o)=>`[${Ee(r)}${n}"${Ee(o)}"]`):`.${Ee(e)}`}function Bo(e,t){return t(e)}var Ko=/\/\/#\s*sourceMappingURL=.*\n?/g;function Dt(e){return e.includes("sourceMappingURL=")?e.replace(Ko,""):e}var Ho=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,Io=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,Go=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function qo(e){let t=[];for(let r of e.matchAll(Io))e[r.index-1]?.match(/^[\s'"`]/)&&t.push(r[0]);for(let r of e.matchAll(Ho))t.push(r[0]);return e.split(Pe).forEach(r=>{fe(r)&&!Go.test(r)&&t.push(r)}),t}var Lt={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return qo(Dt(e))}};var Nt=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=te(Object.entries(e.theme.preflightBase));return j(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];var _={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Qe={..._,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},et={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Fe={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Bt=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],pe=Object.assign({},...Bt.map(e=>({[e.replace(/ /,"-")]:e})),...Bt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),T=["inherit","initial","revert","revert-layer","unset"];function re(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function tt(e,t,r,n){if(e===""||(A(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function ne(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=tt(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var rt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Kt=["%alpha","<alpha-value>"],Yo=new RegExp(Kt.map(e=>I(e)).join("|"));function nt(e=""){let t=Zo(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!(rt.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 me(e){let t=e.alpha??1;return typeof t=="string"&&Kt.includes(t)?1:t}function L(e,t){if(typeof e=="string")return e.replace(Yo,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,rt.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Zo(e){if(!e)return;let t=Xo(e);if(t!=null||(t=Jo(e),t!=null)||(t=Qo(e),t!=null)||(t=ti(e),t!=null)||(t=ri(e),t!=null))return t}function Xo(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 Jo(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Qo(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=ne(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 ei=new RegExp(`^(${rt.join("|")})\\((.+)\\)$`,"i");function ti(e){let t=e.match(ei);if(!t)return;let[,r,n]=t,o=Ht(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function ri(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Ht(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Ht(e){let t=ne(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=ne(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 It(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,get(){return r(this,n)}});return t}function oe(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${I(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,a)=>a({...s,...t(s)})}},autocomplete:`${e}:`}}function de(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${I(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function q(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=re(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function P(e,t,r){if(t.startsWith(e)){let n=q(e,t,r);if(n){let[o="",i=n[1]]=P("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=t.indexOf(o,e.length);if(i!==-1){let s=t.indexOf("/",e.length),a=s===-1||i<=s;return[t.slice(e.length,a?i:s),t.slice(i+o.length),a?"":t.slice(s+1,i)]}}}}var st={};Ro(st,{auto:()=>ii,bracket:()=>pi,bracketOfColor:()=>mi,bracketOfLength:()=>di,bracketOfPosition:()=>gi,cssvar:()=>hi,degree:()=>xi,fraction:()=>fi,global:()=>yi,number:()=>ci,numberWithUnit:()=>oi,percent:()=>li,position:()=>vi,properties:()=>$i,px:()=>ai,rem:()=>si,time:()=>bi});var ie=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,ot=/^(-?\d*(?:\.\d+)?)$/i,it=/^(px)$/i;var ni=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function W(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function oi(e){let t=e.match(ie);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${W(o)}${n}`}function ii(e){if(e==="auto"||e==="a")return"auto"}function si(e){if(e.match(it))return`1${e}`;let t=e.match(ie);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${W(o)}${n}`:`${W(o/4)}rem`}function ai(e){if(e.match(it))return`1${e}`;let t=e.match(ie);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${W(o)}${n}`:`${W(o)}px`}function ci(e){if(!ot.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return W(t)}function li(e){if(e.endsWith("%")&&(e=e.slice(0,-1)),!ot.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return`${W(t/100)}`}function fi(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=Number.parseFloat(t)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${W(n*100)}%`}var ui=/^\[(color|length|position|quoted|string):/i;function _e(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n,o=e.match(ui);if(o?(t||(n=o[1]),r=e.slice(o[0].length,-1)):r=e.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let i=0;for(let s of r)if(s==="[")i+=1;else if(s==="]"&&(i-=1,i<0))return;if(i)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{let a=[];return s.replace(/var\((--.+?)[,)]/g,(c,u)=>(a.push(u),c.replace(u,"--un-calc"))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function pi(e){return _e(e)}function mi(e){return _e(e,"color")}function di(e){return _e(e,"length")}function gi(e){return _e(e,"position")}function hi(e){if(e.match(/^\$[^\s'"`;{}]/))return`var(--${Y(e.slice(1))})`}function bi(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0&&!n?"0s":n?`${W(o)}${n}`:`${W(o)}ms`}function xi(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${W(o)}${n}`:`${W(o)}deg`}function yi(e){if(T.includes(e))return e}function $i(e){if(e.split(",").every(t=>ni.includes(t)))return e}function vi(e){if(["top","left","right","bottom","center"].includes(e))return e}var wi=It(st),l=wi;var Gt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",start:"top",middle:"middle",bottom:"bottom",end:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(T.map(e=>[e,e]))},qt=[[/^(?:vertical|align|v)-([-\w]+%?)$/,([,e])=>({"vertical-align":Gt[e]??l.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Gt).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Yt=["center","left","right","justify","start","end"].map(e=>[`text-${e}`,{"text-align":e}]);var Zt="$$mini-no-negative";function M(e){return([t,r,n],{theme:o})=>{let i=o.spacing?.[n||"DEFAULT"]??l.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return _[r].map(s=>[`${e}${s}`,i])}}function We(e,t){let r=e.colors,n=-1;for(let o of t){if(n+=1,r&&typeof r!="string"){let i=t.slice(n).join("-").replace(/(-[a-z])/g,s=>s.slice(1).toUpperCase());if(r[i])return r[i];if(r[o]){r=r[o];continue}}return}return r}function at(e,t){let r=e.split(/(?:\/|:)/);return r[0]===`[${t}`?[r.slice(0,2).join(":"),r[2]]:r}function De(e,t){let[r,n]=at(e,"color"),o=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=o;if(!i)return;let s,a=l.bracketOfColor(r),c=a||r;if(l.numberWithUnit(c))return;if(c.match(/^#[\da-fA-F]+/g)?s=c:c.match(/^hex-[\da-fA-F]+/g)?s=`#${c.slice(4)}`:r.startsWith("$")&&(s=l.cssvar(r)),s=s||a,!s){let f=We(t,[r]);typeof f=="string"&&(s=f)}let u="DEFAULT";if(!s){let f,[p]=o.slice(-1);p.match(/^\d+$/)?(u=p,f=We(t,o.slice(0,-1)),!f||typeof f=="string"?s=void 0:s=f[u]):(f=We(t,o),!f&&o.length<=2&&([,u=u]=o,f=We(t,[i])),typeof f=="string"?s=f:u&&f&&(s=f[u]))}return{opacity:n,name:i,no:u,color:s,cssColor:nt(s),alpha:l.bracket.cssvar.percent(n??"")}}function V(e,t,r){return([,n],{theme:o})=>{let i=De(n,o);if(!i)return;let{alpha:s,color:a,cssColor:c}=i,u={};if(c?s!=null?u[e]=L(c,s):(u[`--un-${t}-opacity`]=me(c),u[e]=L(c,`var(--un-${t}-opacity)`)):a&&(u[e]=L(a,s)),r?.(u)!==!1)return u}}function Le(e,t){let r=[];e=j(e);for(let n=0;n<e.length;n++){let o=ne(e[n]," ",6);if(!o||o.length<3)return e;let i=nt(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${L(i)})`)}return r}function Ne(e,t){return e!=null&&!!De(e,t)?.color}function Be({theme:e,generator:t}){let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r}function Xt({theme:e,generator:t}){let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r}function E(e,t){return T.map(r=>[`${e}-${r}`,{[t??e]:r}])}var Jt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"outline-width":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,V("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...T].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Qt=[["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function Si(e){return l.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}var er=[[/^will-change-(.+)/,([,e])=>({"will-change":Si(e)})]];var $e=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...T],tr=[[/^(?:border|b)()(?:-(.+))?$/,ge,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ge],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ge],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ge],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ge],[/^(?:border|b)-()(?:width|size)-(.+)$/,se,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,se],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-()(?:color-)?(.+)$/,he,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,he],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,he],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,he],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,he],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,be,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,be],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,be],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,be],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,be],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,xe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,xe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,xe],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,xe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,xe],[/^(?:border|b)-(?:style-)?()(.+)$/,ye,{autocomplete:["(border|b)-style",`(border|b)-(${$e.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${$e.join("|")})`,`(border|b)-<directions>-style-(${$e.join("|")})`,`(border|b)-style-(${$e.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,ye],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ye],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ye],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ye]];function ki(e){return([,t],r)=>{let n=De(t,r);if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return o!=null?{[`border${e}-color`]:L(s,o)}:e===""?{"--un-border-opacity":me(s),"border-color":L(s,"var(--un-border-opacity)")}:{"--un-border-opacity":me(s),[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:L(s,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:L(i,o)}}}function ge(e,t){return se(e,t)}function se([,e="",t],{theme:r}){let n=r.lineWidth?.[t||"DEFAULT"]??l.bracket.cssvar.global.px(t||"1");if(e in _&&n!=null)return _[e].map(o=>[`border${o}-width`,n])}function he([,e="",t],{theme:r}){if(e in _&&Ne(t,r))return Object.assign({},..._[e].map(n=>ki(n)(["",t],r)))}function be([,e="",t]){let r=l.bracket.percent.cssvar(t);if(e in _&&r!=null)return _[e].map(n=>[`--un-border${n}-opacity`,r])}function xe([,e="",t],{theme:r}){let n=r.borderRadius?.[t||"DEFAULT"]||l.bracket.cssvar.global.fraction.rem(t||"1");if(e in et&&n!=null)return et[e].map(o=>[`border${o}-radius`,n])}function ye([,e="",t]){if($e.includes(t)&&e in _)return _[e].map(r=>[`border${r}-style`,t])}var rr=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:l.bracket.percent.cssvar(e)})]],nr=[[/^(?:color|c)-(.+)$/,V("color","text"),{autocomplete:"(color|c)-$colors"}],[/^text-(.+)$/,V("color","text",e=>!e.color?.toString().match(ie)),{autocomplete:"text-$colors"}],[/^(?:text|color|c)-(.+)$/,([,e])=>T.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${T.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],or=[[/^bg-(.+)$/,V("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],ir=[[/^color-scheme-(\w+)$/,([,e])=>({"color-scheme":e})]];var sr=[[/^@container(?:\/(\w+))?(?:-(normal))?$/,([,e,t])=>(G("The container query rule is experimental and may not follow semver."),{"container-type":t??"inline-size","container-name":e})]];var ar=["solid","double","dotted","dashed","wavy",...T],cr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>({"text-decoration-thickness":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=V("text-decoration-color","line")(e,t);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??l.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...ar.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...ar.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var Ke={all:"all",colors:["color","background-color","border-color","outline-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"};function lr(e){return l.properties(e)??Ke[e]}var fr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{let n=e!=null?lr(e):[Ke.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let o=r.duration?.[t||"DEFAULT"]??l.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":o}}},{autocomplete:`transition-(${Object.keys(Ke).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||"DEFAULT"]??l.bracket.cssvar.time(e)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||"DEFAULT"]??l.bracket.cssvar.time(e)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||"DEFAULT"]??l.bracket.cssvar(e)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":l.bracket.global(e)||lr(e)}),{autocomplete:[`transition-property-(${[...T,...Object.keys(Ke)].join("|")})`]}],["transition-none",{transition:"none"}],...E("transition")];var ur=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:l.bracket(e)!=null?l.bracket(e).split(" ").map(t=>l.cssvar.fraction(t)??t).join(" "):l.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,e=""])=>({"flex-shrink":l.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":l.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??l.bracket.cssvar.auto.fraction.rem(e)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];function pr(e,t){return t.lineHeight?.[e]||l.bracket.cssvar.global.rem(e)}var mr=[[/^text-(.+)$/,([,e="base"],{theme:t})=>{let[r,n]=at(e,"length"),o=j(t.fontSize?.[r]),i=n?pr(n,t):void 0;if(o?.[0]){let[a,c]=o;return{"font-size":a,"line-height":i??c??"1"}}let s=l.bracketOfLength.rem(r);return i&&s?{"font-size":s,"line-height":i}:{"font-size":l.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,([,e],{theme:t})=>{let n=j(t.fontSize?.[e])?.[0]??l.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||l.bracket.global.number(e)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>({"line-height":pr(e,t)}),{autocomplete:"(leading|lh|line-height)-$lineHeight"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":l.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||l.bracket.cssvar.global.rem(e)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||l.bracket.cssvar.global.rem(e)}),{autocomplete:"word-spacing-$wordSpacing"}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||l.bracket.cssvar.global(e)}),{autocomplete:"font-$fontFamily"}]],dr=[[/^tab(?:-(.+))?$/,([,e])=>{let t=l.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],gr=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||"DEFAULT"]||l.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"indent-$textIndent"}]],hr=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||"DEFAULT"]||l.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,V("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],br=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.textShadow?.[e||"DEFAULT"];return r!=null?{"--un-text-shadow":Le(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":l.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,V("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var Ci={"":"",x:"column-",y:"row-"};function xr([,e="",t],{theme:r}){let n=r.spacing?.[t]??l.bracket.cssvar.global.rem(t);if(n!=null)return{[`${Ci[e]}gap`]:n}}var yr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,xr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,xr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];function N(e){return e.replace("col","column")}function ct(e){return e[0]==="r"?"Row":"Column"}function Ri(e,t,r){let n=t[`gridAuto${ct(e)}`]?.[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return l.bracket.cssvar.auto.rem(r)}var $r=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>({[`grid-${N(e)}`]:r[`grid${ct(e)}`]?.[t]??l.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${N(e)}`]:"1/-1"};let r=l.bracket.number(t);if(r!=null)return{[`grid-${N(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${N(e)}-start`]:l.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${N(e)}-end`]:l.bracket.cssvar(t)??t}),{autocomplete:["grid-(row|col)-(start|end)-<num>"]}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${N(e)}`]:Ri(e,r,t)}),{autocomplete:["grid-auto-(rows|cols)-<num>"]}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":l.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":N(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-template-${N(e)}`]:r[`gridTemplate${ct(e)}`]?.[t]??l.bracket.cssvar(t)})],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${N(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${N(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:["grid-(rows|cols)-<num>","grid-(rows|cols)-none"]}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":l.cssvar(t)??t.split("-").map(r=>`"${l.bracket(r)}"`).join(" ")}:{"grid-area":l.bracket.cssvar(t)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var He=["auto","hidden","clip","visible","scroll","overlay",...T],vr=[[/^(?:overflow|of)-(.+)$/,([,e])=>He.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${He.join("|")})`,`(overflow|of)-(x|y)-(${He.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>He.includes(t)?{[`overflow-${e}`]:t}:void 0]];var wr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>T.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],ft=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-stretch",{"justify-content":"stretch"}],...E("justify","justify-content"),["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],...E("justify-items"),["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}],...E("justify-self")],Sr=[[/^order-(.+)$/,([,e])=>({order:l.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],ut=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],...E("content","align-content"),["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],...E("items","align-items"),["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}],...E("self","align-self")],kr=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],...E("place-content"),["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],...E("place-items"),["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}],...E("place-self")],Cr=[...ft,...ut].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function lt(e,{theme:t}){return t.spacing?.[e]??l.bracket.cssvar.global.auto.fraction.rem(e)}function ve([,e,t],r){let n=lt(t,r);if(n!=null&&e in Qe)return Qe[e].map(o=>[o.slice(1),n])}var Rr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:lt(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,ve],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,ve],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ve],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ve],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ve],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:lt(t,r)})]],Tr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],...E("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}],...E("clear")],Er=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":l.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??l.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],jr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...E("box","box-sizing")];var Ti=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"],Ei=["none","strict","content","size","inline-size","layout","style","paint"],Ie=" ",Ar=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:l.bracket.cssvar.global(e)||e})]],Vr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...E("backface","backface-visibility")],zr=[[/^cursor-(.+)$/,([,e])=>({cursor:l.bracket.cssvar.global(e)})],...Ti.map(e=>[`cursor-${e}`,{cursor:e}])],Pr=[[/^contain-(.*)$/,([,e])=>l.bracket(e)!=null?{contain:l.bracket(e).split(" ").map(t=>l.cssvar.fraction(t)??t).join(" ")}:Ei.includes(e)?{contain:e}:void 0]],Or=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...E("pointer-events")],Mr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...E("resize")],Ur=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...E("select","user-select")],Fr=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...T].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],_r=[[/^intrinsic-size-(.+)$/,([,e])=>({"contain-intrinsic-size":l.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...E("content-visibility")],Wr=[[/^content-(.+)$/,([,e])=>({content:l.bracket.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],Dr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}],["break-keep",{"word-break":"keep-all"}],["break-anywhere",{"overflow-wrap":"anywhere"}]],Lr=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}]],Nr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Br=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...E("case","text-transform")],Kr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Hr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]];var Ir={"--un-ring-inset":Ie,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)","--un-shadow":"0 0 rgba(0,0,0,0)"},Gr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.ringWidth?.[e||"DEFAULT"]??l.px(e||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>({"--un-ring-width":t.lineWidth?.[e]??l.bracket.cssvar.px(e)}),{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"--un-ring-offset-width":t.lineWidth?.[e]??l.bracket.cssvar.px(e)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,V("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,V("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var qr={"--un-ring-offset-shadow":"0 0 rgba(0,0,0,0)","--un-ring-shadow":"0 0 rgba(0,0,0,0)","--un-shadow-inset":Ie,"--un-shadow":"0 0 rgba(0,0,0,0)"},Yr=[[/^shadow(?:-(.+))?$/,(e,t)=>{let[,r]=e,{theme:n}=t,o=n.boxShadow?.[r||"DEFAULT"],i=r?l.bracket.cssvar(r):void 0;return(o!=null||i!=null)&&!Ne(i,n)?{"--un-shadow":Le(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:V("--un-shadow-color","shadow")(e,t)},{autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ji={h:"height",w:"width",inline:"inline-size",block:"block-size"};function we(e,t){return`${e||""}${ji[t]}`}function Zr(e,t,r,n){let o=we(e,t).replace(/-(\w)/g,(s,a)=>a.toUpperCase()),i=r[o]?.[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return l.bracket.cssvar.global.auto.fraction.rem(n)}var Xr=[[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[we(e,t)]:Zr(e,t,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[we(e,t)]:Zr(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>({[we(e,t)]:Xt(n)?.[r]})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>({[we(e,t)]:Be(n)?.[r]}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Ai(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return l.bracket.cssvar.global.auto.number(e)}var Jr=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Ai(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var Qr=[[/^pa?()-?(-?.+)$/,M("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,M("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,M("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,M("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,M("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,M("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],en=[[/^ma?()-?(-?.+)$/,M("margin")],[/^m-?xy()()$/,M("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,M("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,M("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,M("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,M("margin")]];var tn=["translate","rotate","scale"],Z=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Vi=["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),an={"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},cn=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":pe[e]??l.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(pe).join("|")})`,`origin-(${Object.keys(pe).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=l.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=l.bracket.cssvar(e)??(e.length>=3?pe[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,rn],[/^(?:transform-)?translate-([xyz])-(.+)$/,rn],[/^(?:transform-)?rotate-()(.+)$/,on],[/^(?:transform-)?rotate-([xyz])-(.+)$/,on],[/^(?:transform-)?skew-()(.+)$/,sn],[/^(?:transform-)?skew-([xy])-(.+)$/,sn,{autocomplete:["transform-skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,nn],[/^(?:transform-)?scale-([xyz])-(.+)$/,nn,{autocomplete:[`transform-(${tn.join("|")})-<percent>`,`transform-(${tn.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:Z}],["transform-cpu",{transform:Z}],["transform-gpu",{transform:Vi}],["transform-none",{transform:"none"}],...E("transform")];function rn([,e,t],{theme:r}){let n=r.spacing?.[t]??l.bracket.cssvar.fraction.rem(t);if(n!=null)return[...Fe[e].map(o=>[`--un-translate${o}`,n]),["transform",Z]]}function nn([,e,t]){let r=l.bracket.cssvar.fraction.percent(t);if(r!=null)return[...Fe[e].map(n=>[`--un-scale${n}`,r]),["transform",Z]]}function on([,e="",t]){let r=l.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:Z}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:Z}}function sn([,e,t]){let r=l.bracket.cssvar.degree(t);if(r!=null)return[...Fe[e].map(n=>[`--un-skew${n}`,r]),["transform",Z]]}var zi={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},ln=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=zi[e];if(r)return{[r]:l.cssvar(t)}}]],fn=[[/^\[(.*)\]$/,([e,t])=>{if(!t.includes(":"))return;let[r,...n]=t.split(":"),o=n.join(":");if(!Oi(t)&&r.match(/^[a-z-]+$/)&&Pi(o)){let i=l.bracket(`[${o}]`);if(i)return{[r]:i}}}]];function Pi(e){let t=0;function r(n){for(;t<e.length;)if(t+=1,e[t]===n)return!0;return!1}for(t=0;t<e.length;t++){let n=e[t];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function Oi(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}var un=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
|
|
1
|
+
"use strict";(()=>{var Co=Object.defineProperty;var Ro=(e,t)=>{for(var r in t)Co(e,r,{get:t[r],enumerable:!0})};function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(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 Ee=Y;function j(e=[]){return Array.isArray(e)?e:[e]}function Q(e){return Array.from(new Set(e))}function wt(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function A(e){return typeof e=="string"}function ee(e){return A(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function St(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ee(t)):[e]:[ee(e)]}function To(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 te(e){return e==null?"":To(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function je(e){return e&&typeof e=="object"&&!Array.isArray(e)}function qe(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 je(n)&&je(o)&&Object.keys(o).forEach(s=>{je(n[s])&&je(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=qe(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function le(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?le(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:le(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?le(n):n;return r}return e}function kt(e){return A(e[0])}function Ct(e){return A(e[0])}var Eo=/^\[(.+?)~?="(.*)"\]$/;var jo=/[\w\u00A0-\uFFFF-_:%-?]/,Ye="$$shortcut-no-merge";function Rt(e){return e.match(Eo)}function fe(e=""){return jo.test(e)}function Tt(e){return typeof e=="function"?{match:e}:e}function Ze(e){return e.length===3}function Et(e){return e!=null}function jt(){}var Ae=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}};var ue=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 Ve(e){return e instanceof ue}var ze={};function Ao(e=["-",":"]){let t=e.join("|");return ze[t]||(ze[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),ze[t].lastIndex=0,ze[t]}function Vo(e,t=["-",":"],r=5){let n=Ao(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,f,p,d,g)=>{if(!t.includes(p))return u;o=!0,s.add(f+p);let y=g+f.length+p.length+1,w={length:u.length,items:[]};a.set(g,w);for(let b of[...d.matchAll(/\S+/g)]){let S=y+b.index,h=a.get(S)?.items;h?a.delete(S):h=[{offset:S,length:b[0].length,className:b[0]}];for(let k of h)k.className=k.className==="~"?f:k.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),w.items.push(k)}return"$".repeat(u.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let u=0;for(let[f,p]of a)c+=e.slice(u,f),c+=p.items.map(d=>d.className).join(" "),u=f+p.length;c+=e.slice(u)}else{c=e;for(let[u,f]of a)c.overwrite(u,u+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function At(e,t=["-",":"],r=5){let n=Vo(e,t,r);return typeof e=="string"?n.expanded:e}var Vt=new Set;function G(e){Vt.has(e)||(console.warn("[unocss]",e),Vt.add(e))}var Pe=/[\\:]?[\s'"`;{}]+/g;function zo(e){return e.split(Pe)}var Oe={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return zo(e)}};function zt(){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 Me="default",Ue="preflights",Po="shortcuts",Oo="imports",Pt={[Oo]:-200,[Ue]:-100,[Po]:-10,[Me]:0};function Mt(e){return j(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ot="_uno_resolved";function Mo(e){let t=typeof e=="function"?e():e;if(Ot in t)return t;t={...t},Object.defineProperty(t,Ot,{value:!0,enumerable:!1});let r=t.shortcuts?Mt(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=j(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function Ut(e){let t=Mo(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(j).flatMap(Ut);return[t,...r]}function Xe(e={},t={}){let r=Object.assign({},t,e),n=wt((r.presets||[]).flatMap(j).flatMap(Ut),(m,$)=>m.name===$.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Pt,...i.map(m=>m.layers));function c(m){return Q(i.flatMap($=>j($[m]||[])))}let u=c("extractors"),f=s.find(m=>m.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Oe),f&&!u.includes(f)&&u.unshift(f),u.sort((m,$)=>(m.order||0)-($.order||0));let p=c("rules"),d={},g=p.length,y=p.map((m,$)=>{if(kt(m)){j(m[2]?.prefix||"").forEach(z=>{d[z+m[0]]=[$,m[1],m[2],m]});return}return[$,...m]}).filter(Boolean).reverse(),w=Uo(i.map(m=>m.theme)),b=c("extendTheme");for(let m of b)w=m(w)||w;let S={templates:Q(i.flatMap(m=>j(m.autocomplete?.templates))),extractors:i.flatMap(m=>j(m.autocomplete?.extractors)).sort((m,$)=>(m.order||0)-($.order||0)),shorthands:Fo(i.map(m=>m.autocomplete?.shorthands||{}))},h=c("separators");h.length||(h=[":","-"]);let k={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:w,rulesSize:g,rulesDynamic:y,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:S,variants:c("variants").map(Tt).sort((m,$)=>(m.order||0)-($.order||0)),shortcuts:Mt(c("shortcuts")).reverse(),extractors:u,safelist:c("safelist"),separators:h,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(k);return k}function Uo(e){return e.map(t=>t?le(t):{}).reduce((t,r)=>qe(t,r),{})}function Fo(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}var Ft="0.56.4";var Je=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Xe(t,r),this.events.emit("config",this.config)}version=Ft;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=zt();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Xe(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(Ve(s)&&Ve(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,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 u of this.config.preprocess)o=u(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=await this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=await this.expandShortcut(s.currentSelector,s),c=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(u=>this.stringifyUtil(u,s)).filter(Et);if(c?.length)return this._cache.set(n,c),c;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,u=A(t)?await this.applyExtractors(t,n,c?new ue:new Set):Array.isArray(t)?new Set(t):t;s&&this.config.safelist.forEach(m=>{u.has(m)||u.add(m)});let f=a?"":`
|
|
2
|
+
`,p=new Set([Me]),d=c?new Map:new Set,g=new Map,y={},w=Array.from(u).map(async m=>{if(d.has(m))return;let $=await this.parseToken(m);if($!=null){d instanceof Map?d.set(m,{data:$,count:Ve(u)?u.getCount(m):-1}):d.add(m);for(let R of $){let z=R[3]||"",U=R[4]?.layer;g.has(z)||g.set(z,[]),g.get(z).push(R),U&&p.add(U)}}});await Promise.all(w),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},$=new Set([]);this.config.preflights.forEach(({layer:R=Ue})=>{p.add(R),$.add(R)}),y=Object.fromEntries(await Promise.all(Array.from($).map(async R=>{let U=(await Promise.all(this.config.preflights.filter(B=>(B.layer||Ue)===R).map(async B=>await B.getCSS(m)))).filter(Boolean).join(f);return[R,U]})))})();let b=this.config.sortLayers(Array.from(p).sort((m,$)=>(this.config.layers[m]??0)-(this.config.layers[$]??0)||m.localeCompare($))),S={},h=m=>{if(S[m])return S[m];let $=Array.from(g).sort((z,U)=>(this.parentOrders.get(z[0])??0)-(this.parentOrders.get(U[0])??0)||z[0]?.localeCompare(U[0]||"")||0).map(([z,U])=>{let B=U.length,J=U.filter(x=>(x[4]?.layer||Me)===m).sort((x,C)=>x[0]-C[0]||(x[4]?.sort||0)-(C[4]?.sort||0)||x[5]?.currentSelector?.localeCompare(C[5]?.currentSelector??"")||x[1]?.localeCompare(C[1]||"")||x[2]?.localeCompare(C[2]||"")||0).map(([,x,C,,O,,F])=>[[[(x&&Lo(x,o))??"",O?.sort??0]],C,!!(F??O?.noMerge)]);if(!J.length)return;let Te=J.reverse().map(([x,C,O],F)=>{if(!O&&this.config.mergeSelectors)for(let H=F+1;H<B;H++){let D=J[H];if(D&&!D[2]&&(x&&D[0]||x==null&&D[0]==null)&&D[1]===C)return x&&D[0]&&D[0].push(...x),null}let K=x?Q(x.sort((H,D)=>H[1]-D[1]||H[0]?.localeCompare(D[0]||"")||0).map(H=>H[0]).filter(Boolean)):[];return K.length?`${K.join(`,${f}`)}{${C}}`:C}).filter(Boolean).reverse().join(f);if(!z)return Te;let v=z.split(" $$ ");return`${v.join("{")}{${f}${Te}${f}${"}".repeat(v.length)}`}).filter(Boolean).join(f);i&&($=[y[m],$].filter(Boolean).join(f));let R=a?"":`/* layer: ${m} */${f}`;return S[m]=$?R+$:""},k=(m=b,$)=>m.filter(R=>!$?.includes(R)).map(R=>h(R)||"").filter(Boolean).join(f);return{get css(){return k()},layers:b,matched:d,getLayers:k,getLayer:h}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!0,a={rawSelector:t,theme:this.config.theme,generator:this};for(;s;){s=!1;for(let c of this.config.variants){if(!c.multiPass&&n.has(c))continue;let u=await c.match(i,a);if(u){if(A(u)){if(u===i)continue;u={matcher:u}}i=u.matcher,o.unshift(u),n.add(c),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((u,f)=>(u.order||0)-(f.order||0)).reduceRight((u,f)=>p=>{let d=f.body?.(p.entries)||p.entries,g=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??Bo)({...p,entries:d,selector:f.selector?.(p.selector,d)||p.selector,parent:g[0]||p.parent,parentOrder:g[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},u)},u=>u)({prefix:"",selector:No(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let u of this.config.postprocess)u(c);return c}constructCustomCSS(t,r,n){let o=ee(r);if(A(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${te(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let[i,s,a]=A(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);let c=this.config.rulesStaticMap[s];if(c&&c[1]&&(n||!c[2]?.internal)){this.config.details&&r.rules.push(c[3]);let f=c[0],p=ee(c[1]),d=c[2];return A(p)?[[f,p,d]]:[[f,i,p,d,a]]}r.variantHandlers=a;let{rulesDynamic:u}=this.config;for(let[f,p,d,g]of u){if(g?.internal&&!n)continue;let y=s;if(g?.prefix){let h=j(g.prefix);if(o){let k=j(o);if(!h.some(m=>k.includes(m)))continue}else{let k=h.find(m=>s.startsWith(m));if(k==null)continue;y=s.slice(k.length)}}let w=y.match(p);if(!w)continue;let b=await d(w,r);if(!b)continue;this.config.details&&r.rules.push([p,d,g]);let S=St(b).filter(h=>h.length);if(S.length)return S.map(h=>A(h)?[f,h,g]:[f,i,h,g,a])}}stringifyUtil(t,r){if(!t)return;if(Ze(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(t),u=te(o);if(!u)return;let{layer:f,sort:p,...d}=t[3]??{},g={...d,layer:s??f,sort:a??p};return[t[0],n,u,i,g,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:jt,i,s;for(let a of this.config.shortcuts){let c=t;if(a[2]?.prefix){let f=j(a[2].prefix).find(p=>t.startsWith(p));if(f==null)continue;c=t.slice(f.length)}if(Ct(a)){if(a[0]===c){i=i||a[2],s=a[1],o(a);break}}else{let u=c.match(a[0]);if(u&&(s=a[1](u,r)),s){i=i||a[2],o(a);break}}}if(A(s)&&(s=At(s.trim()).split(/\s+/g)),!s){let[a,c]=A(t)?await this.matchVariants(t):t;if(a!==c){let u=await this.expandShortcut(c,r,n-1);u&&(s=u[0].map(f=>A(f)?a.replace(c,f):f))}}if(s)return[(await Promise.all(s.map(async a=>(A(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Ae,s=(await Promise.all(Q(n).map(async f=>{let p=A(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ee(f),void 0,[]]];return!p&&this.config.warn&&G(`unmatched utility "${f}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,c]=t,u=[];for(let f of s){if(Ze(f)){u.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:g,sort:y,noMerge:w}=this.applyVariants(f,[...f[4],...c],a);i.getFallback(p,g,[[],f[0]])[0].push([d,!!(w??f[3]?.noMerge),y??0])}return u.concat(i.map(([f,p],d,g)=>{let y=(b,S,h)=>{let k=Math.max(...h.map($=>$[1])),m=h.map($=>$[0]);return(b?[m.flat(1)]:m).map($=>{let R=te($);if(R)return[p,d,R,g,{...o,noMerge:S,sort:k},r,void 0]})};return[[f.filter(([,b])=>b).map(([b,,S])=>[b,S]),!0],[f.filter(([,b])=>!b).map(([b,,S])=>[b,S]),!1]].map(([b,S])=>[...y(!1,S,b.filter(([h])=>h.some(k=>k[0]===Ye))),...y(!0,S,b.filter(([h])=>h.every(k=>k[0]!==Ye)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="function"?r(t):A(r)?r===t:r.test(t))}};function Wt(e,t){return new Je(e,t)}var Wo=/\s\$\$\s+/g;function Do(e){return e.match(/\s\$\$\s/)}function Lo(e,t){return Do(e)?e.replace(Wo,t?` ${t} `:" "):t?`${t} ${e}`:e}var _t=/^\[(.+?)(~?=)"(.*)"\]$/;function No(e){return _t.test(e)?e.replace(_t,(t,r,n,o)=>`[${Ee(r)}${n}"${Ee(o)}"]`):`.${Ee(e)}`}function Bo(e,t){return t(e)}var Ko=/\/\/#\s*sourceMappingURL=.*\n?/g;function Dt(e){return e.includes("sourceMappingURL=")?e.replace(Ko,""):e}var Ho=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,Io=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,Go=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function qo(e){let t=[];for(let r of e.matchAll(Io))e[r.index-1]?.match(/^[\s'"`]/)&&t.push(r[0]);for(let r of e.matchAll(Ho))t.push(r[0]);return e.split(Pe).forEach(r=>{fe(r)&&!Go.test(r)&&t.push(r)}),t}var Lt={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return qo(Dt(e))}};var Nt=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=te(Object.entries(e.theme.preflightBase));return j(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];var _={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Qe={..._,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},et={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Fe={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Bt=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],pe=Object.assign({},...Bt.map(e=>({[e.replace(/ /,"-")]:e})),...Bt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),T=["inherit","initial","revert","revert-layer","unset"];function re(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function tt(e,t,r,n){if(e===""||(A(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function ne(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=tt(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var rt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Kt=["%alpha","<alpha-value>"],Yo=new RegExp(Kt.map(e=>I(e)).join("|"));function nt(e=""){let t=Zo(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!(rt.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 me(e){let t=e.alpha??1;return typeof t=="string"&&Kt.includes(t)?1:t}function L(e,t){if(typeof e=="string")return e.replace(Yo,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,rt.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Zo(e){if(!e)return;let t=Xo(e);if(t!=null||(t=Jo(e),t!=null)||(t=Qo(e),t!=null)||(t=ti(e),t!=null)||(t=ri(e),t!=null))return t}function Xo(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 Jo(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Qo(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=ne(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 ei=new RegExp(`^(${rt.join("|")})\\((.+)\\)$`,"i");function ti(e){let t=e.match(ei);if(!t)return;let[,r,n]=t,o=Ht(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function ri(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Ht(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Ht(e){let t=ne(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=ne(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 It(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,get(){return r(this,n)}});return t}function oe(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${I(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,a)=>a({...s,...t(s)})}},autocomplete:`${e}:`}}function de(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${I(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function q(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=re(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function P(e,t,r){if(t.startsWith(e)){let n=q(e,t,r);if(n){let[o="",i=n[1]]=P("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=t.indexOf(o,e.length);if(i!==-1){let s=t.indexOf("/",e.length),a=s===-1||i<=s;return[t.slice(e.length,a?i:s),t.slice(i+o.length),a?"":t.slice(s+1,i)]}}}}var st={};Ro(st,{auto:()=>ii,bracket:()=>pi,bracketOfColor:()=>mi,bracketOfLength:()=>di,bracketOfPosition:()=>gi,cssvar:()=>hi,degree:()=>xi,fraction:()=>fi,global:()=>yi,number:()=>ci,numberWithUnit:()=>oi,percent:()=>li,position:()=>vi,properties:()=>$i,px:()=>ai,rem:()=>si,time:()=>bi});var ie=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,ot=/^(-?\d*(?:\.\d+)?)$/i,it=/^(px)$/i;var ni=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function W(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function oi(e){let t=e.match(ie);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${W(o)}${n}`}function ii(e){if(e==="auto"||e==="a")return"auto"}function si(e){if(e.match(it))return`1${e}`;let t=e.match(ie);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${W(o)}${n}`:`${W(o/4)}rem`}function ai(e){if(e.match(it))return`1${e}`;let t=e.match(ie);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${W(o)}${n}`:`${W(o)}px`}function ci(e){if(!ot.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return W(t)}function li(e){if(e.endsWith("%")&&(e=e.slice(0,-1)),!ot.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return`${W(t/100)}`}function fi(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=Number.parseFloat(t)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${W(n*100)}%`}var ui=/^\[(color|length|position|quoted|string):/i;function _e(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n,o=e.match(ui);if(o?(t||(n=o[1]),r=e.slice(o[0].length,-1)):r=e.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let i=0;for(let s of r)if(s==="[")i+=1;else if(s==="]"&&(i-=1,i<0))return;if(i)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{let a=[];return s.replace(/var\((--.+?)[,)]/g,(c,u)=>(a.push(u),c.replace(u,"--un-calc"))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function pi(e){return _e(e)}function mi(e){return _e(e,"color")}function di(e){return _e(e,"length")}function gi(e){return _e(e,"position")}function hi(e){if(e.match(/^\$[^\s'"`;{}]/))return`var(--${Y(e.slice(1))})`}function bi(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0&&!n?"0s":n?`${W(o)}${n}`:`${W(o)}ms`}function xi(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${W(o)}${n}`:`${W(o)}deg`}function yi(e){if(T.includes(e))return e}function $i(e){if(e.split(",").every(t=>ni.includes(t)))return e}function vi(e){if(["top","left","right","bottom","center"].includes(e))return e}var wi=It(st),l=wi;var Gt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",start:"top",middle:"middle",bottom:"bottom",end:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(T.map(e=>[e,e]))},qt=[[/^(?:vertical|align|v)-([-\w]+%?)$/,([,e])=>({"vertical-align":Gt[e]??l.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Gt).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Yt=["center","left","right","justify","start","end"].map(e=>[`text-${e}`,{"text-align":e}]);var Zt="$$mini-no-negative";function M(e){return([t,r,n],{theme:o})=>{let i=o.spacing?.[n||"DEFAULT"]??l.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return _[r].map(s=>[`${e}${s}`,i])}}function We(e,t){let r=e.colors,n=-1;for(let o of t){if(n+=1,r&&typeof r!="string"){let i=t.slice(n).join("-").replace(/(-[a-z])/g,s=>s.slice(1).toUpperCase());if(r[i])return r[i];if(r[o]){r=r[o];continue}}return}return r}function at(e,t){let r=e.split(/(?:\/|:)/);return r[0]===`[${t}`?[r.slice(0,2).join(":"),r[2]]:r}function De(e,t){let[r,n]=at(e,"color"),o=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=o;if(!i)return;let s,a=l.bracketOfColor(r),c=a||r;if(l.numberWithUnit(c))return;if(c.match(/^#[\da-fA-F]+/g)?s=c:c.match(/^hex-[\da-fA-F]+/g)?s=`#${c.slice(4)}`:r.startsWith("$")&&(s=l.cssvar(r)),s=s||a,!s){let f=We(t,[r]);typeof f=="string"&&(s=f)}let u="DEFAULT";if(!s){let f,[p]=o.slice(-1);p.match(/^\d+$/)?(u=p,f=We(t,o.slice(0,-1)),!f||typeof f=="string"?s=void 0:s=f[u]):(f=We(t,o),!f&&o.length<=2&&([,u=u]=o,f=We(t,[i])),typeof f=="string"?s=f:u&&f&&(s=f[u]))}return{opacity:n,name:i,no:u,color:s,cssColor:nt(s),alpha:l.bracket.cssvar.percent(n??"")}}function V(e,t,r){return([,n],{theme:o})=>{let i=De(n,o);if(!i)return;let{alpha:s,color:a,cssColor:c}=i,u={};if(c?s!=null?u[e]=L(c,s):(u[`--un-${t}-opacity`]=me(c),u[e]=L(c,`var(--un-${t}-opacity)`)):a&&(u[e]=L(a,s)),r?.(u)!==!1)return u}}function Le(e,t){let r=[];e=j(e);for(let n=0;n<e.length;n++){let o=ne(e[n]," ",6);if(!o||o.length<3)return e;let i=nt(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${L(i)})`)}return r}function Ne(e,t){return e!=null&&!!De(e,t)?.color}function Be({theme:e,generator:t}){let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r}function Xt({theme:e,generator:t}){let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r}function E(e,t){return T.map(r=>[`${e}-${r}`,{[t??e]:r}])}var Jt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"outline-width":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,V("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...T].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Qt=[["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function Si(e){return l.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}var er=[[/^will-change-(.+)/,([,e])=>({"will-change":Si(e)})]];var $e=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...T],tr=[[/^(?:border|b)()(?:-(.+))?$/,ge,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ge],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ge],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ge],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ge],[/^(?:border|b)-()(?:width|size)-(.+)$/,se,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,se],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-()(?:color-)?(.+)$/,he,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,he],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,he],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,he],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,he],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,be,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,be],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,be],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,be],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,be],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,xe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,xe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,xe],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,xe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,xe],[/^(?:border|b)-(?:style-)?()(.+)$/,ye,{autocomplete:["(border|b)-style",`(border|b)-(${$e.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${$e.join("|")})`,`(border|b)-<directions>-style-(${$e.join("|")})`,`(border|b)-style-(${$e.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,ye],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ye],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ye],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ye]];function ki(e){return([,t],r)=>{let n=De(t,r);if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return o!=null?{[`border${e}-color`]:L(s,o)}:e===""?{"--un-border-opacity":me(s),"border-color":L(s,"var(--un-border-opacity)")}:{"--un-border-opacity":me(s),[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:L(s,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:L(i,o)}}}function ge(e,t){return se(e,t)}function se([,e="",t],{theme:r}){let n=r.lineWidth?.[t||"DEFAULT"]??l.bracket.cssvar.global.px(t||"1");if(e in _&&n!=null)return _[e].map(o=>[`border${o}-width`,n])}function he([,e="",t],{theme:r}){if(e in _&&Ne(t,r))return Object.assign({},..._[e].map(n=>ki(n)(["",t],r)))}function be([,e="",t]){let r=l.bracket.percent.cssvar(t);if(e in _&&r!=null)return _[e].map(n=>[`--un-border${n}-opacity`,r])}function xe([,e="",t],{theme:r}){let n=r.borderRadius?.[t||"DEFAULT"]||l.bracket.cssvar.global.fraction.rem(t||"1");if(e in et&&n!=null)return et[e].map(o=>[`border${o}-radius`,n])}function ye([,e="",t]){if($e.includes(t)&&e in _)return _[e].map(r=>[`border${r}-style`,t])}var rr=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:l.bracket.percent.cssvar(e)})]],nr=[[/^(?:color|c)-(.+)$/,V("color","text"),{autocomplete:"(color|c)-$colors"}],[/^text-(.+)$/,V("color","text",e=>!e.color?.toString().match(ie)),{autocomplete:"text-$colors"}],[/^(?:text|color|c)-(.+)$/,([,e])=>T.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${T.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],or=[[/^bg-(.+)$/,V("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],ir=[[/^color-scheme-(\w+)$/,([,e])=>({"color-scheme":e})]];var sr=[[/^@container(?:\/(\w+))?(?:-(normal))?$/,([,e,t])=>(G("The container query rule is experimental and may not follow semver."),{"container-type":t??"inline-size","container-name":e})]];var ar=["solid","double","dotted","dashed","wavy",...T],cr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>({"text-decoration-thickness":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=V("text-decoration-color","line")(e,t);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??l.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...ar.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...ar.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var Ke={all:"all",colors:["color","background-color","border-color","outline-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"};function lr(e){return l.properties(e)??Ke[e]}var fr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{let n=e!=null?lr(e):[Ke.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let o=r.duration?.[t||"DEFAULT"]??l.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":o}}},{autocomplete:`transition-(${Object.keys(Ke).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||"DEFAULT"]??l.bracket.cssvar.time(e)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||"DEFAULT"]??l.bracket.cssvar.time(e)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||"DEFAULT"]??l.bracket.cssvar(e)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":l.bracket.global(e)||lr(e)}),{autocomplete:[`transition-property-(${[...T,...Object.keys(Ke)].join("|")})`]}],["transition-none",{transition:"none"}],...E("transition")];var ur=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:l.bracket(e)!=null?l.bracket(e).split(" ").map(t=>l.cssvar.fraction(t)??t).join(" "):l.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,e=""])=>({"flex-shrink":l.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":l.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??l.bracket.cssvar.auto.fraction.rem(e)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];function pr(e,t){return t.lineHeight?.[e]||l.bracket.cssvar.global.rem(e)}var mr=[[/^text-(.+)$/,([,e="base"],{theme:t})=>{let[r,n]=at(e,"length"),o=j(t.fontSize?.[r]),i=n?pr(n,t):void 0;if(o?.[0]){let[a,c]=o;return{"font-size":a,"line-height":i??c??"1"}}let s=l.bracketOfLength.rem(r);return i&&s?{"font-size":s,"line-height":i}:{"font-size":l.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,([,e],{theme:t})=>{let n=j(t.fontSize?.[e])?.[0]??l.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||l.bracket.global.number(e)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>({"line-height":pr(e,t)}),{autocomplete:"(leading|lh|line-height)-$lineHeight"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":l.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||l.bracket.cssvar.global.rem(e)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||l.bracket.cssvar.global.rem(e)}),{autocomplete:"word-spacing-$wordSpacing"}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||l.bracket.cssvar.global(e)}),{autocomplete:"font-$fontFamily"}]],dr=[[/^tab(?:-(.+))?$/,([,e])=>{let t=l.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],gr=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||"DEFAULT"]||l.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"indent-$textIndent"}]],hr=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||"DEFAULT"]||l.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,V("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],br=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.textShadow?.[e||"DEFAULT"];return r!=null?{"--un-text-shadow":Le(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":l.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,V("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var Ci={"":"",x:"column-",y:"row-"};function xr([,e="",t],{theme:r}){let n=r.spacing?.[t]??l.bracket.cssvar.global.rem(t);if(n!=null)return{[`${Ci[e]}gap`]:n}}var yr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,xr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,xr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];function N(e){return e.replace("col","column")}function ct(e){return e[0]==="r"?"Row":"Column"}function Ri(e,t,r){let n=t[`gridAuto${ct(e)}`]?.[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return l.bracket.cssvar.auto.rem(r)}var $r=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>({[`grid-${N(e)}`]:r[`grid${ct(e)}`]?.[t]??l.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${N(e)}`]:"1/-1"};let r=l.bracket.number(t);if(r!=null)return{[`grid-${N(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${N(e)}-start`]:l.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${N(e)}-end`]:l.bracket.cssvar(t)??t}),{autocomplete:["grid-(row|col)-(start|end)-<num>"]}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${N(e)}`]:Ri(e,r,t)}),{autocomplete:["grid-auto-(rows|cols)-<num>"]}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":l.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":N(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-template-${N(e)}`]:r[`gridTemplate${ct(e)}`]?.[t]??l.bracket.cssvar(t)})],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${N(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${N(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:["grid-(rows|cols)-<num>","grid-(rows|cols)-none"]}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":l.cssvar(t)??t.split("-").map(r=>`"${l.bracket(r)}"`).join(" ")}:{"grid-area":l.bracket.cssvar(t)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var He=["auto","hidden","clip","visible","scroll","overlay",...T],vr=[[/^(?:overflow|of)-(.+)$/,([,e])=>He.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${He.join("|")})`,`(overflow|of)-(x|y)-(${He.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>He.includes(t)?{[`overflow-${e}`]:t}:void 0]];var wr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>T.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],ft=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-stretch",{"justify-content":"stretch"}],["justify-left",{"justify-content":"left"}],["justify-right",{"justify-content":"right"}],...E("justify","justify-content"),["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],...E("justify-items"),["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}],...E("justify-self")],Sr=[[/^order-(.+)$/,([,e])=>({order:l.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],ut=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],...E("content","align-content"),["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],...E("items","align-items"),["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}],...E("self","align-self")],kr=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],...E("place-content"),["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],...E("place-items"),["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}],...E("place-self")],Cr=[...ft,...ut].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function lt(e,{theme:t}){return t.spacing?.[e]??l.bracket.cssvar.global.auto.fraction.rem(e)}function ve([,e,t],r){let n=lt(t,r);if(n!=null&&e in Qe)return Qe[e].map(o=>[o.slice(1),n])}var Rr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:lt(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,ve],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,ve],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ve],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ve],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ve],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:lt(t,r)})]],Tr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],...E("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}],...E("clear")],Er=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":l.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??l.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],jr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...E("box","box-sizing")];var Ti=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"],Ei=["none","strict","content","size","inline-size","layout","style","paint"],Ie=" ",Ar=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:l.bracket.cssvar.global(e)})]],Vr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...E("backface","backface-visibility")],zr=[[/^cursor-(.+)$/,([,e])=>({cursor:l.bracket.cssvar.global(e)})],...Ti.map(e=>[`cursor-${e}`,{cursor:e}])],Pr=[[/^contain-(.*)$/,([,e])=>l.bracket(e)!=null?{contain:l.bracket(e).split(" ").map(t=>l.cssvar.fraction(t)??t).join(" ")}:Ei.includes(e)?{contain:e}:void 0]],Or=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...E("pointer-events")],Mr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...E("resize")],Ur=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...E("select","user-select")],Fr=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...T].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],_r=[[/^intrinsic-size-(.+)$/,([,e])=>({"contain-intrinsic-size":l.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...E("content-visibility")],Wr=[[/^content-(.+)$/,([,e])=>({content:l.bracket.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],Dr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}],["break-keep",{"word-break":"keep-all"}],["break-anywhere",{"overflow-wrap":"anywhere"}]],Lr=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}]],Nr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Br=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...E("case","text-transform")],Kr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Hr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]];var Ir={"--un-ring-inset":Ie,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)","--un-shadow":"0 0 rgba(0,0,0,0)"},Gr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.ringWidth?.[e||"DEFAULT"]??l.px(e||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>({"--un-ring-width":t.lineWidth?.[e]??l.bracket.cssvar.px(e)}),{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"--un-ring-offset-width":t.lineWidth?.[e]??l.bracket.cssvar.px(e)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,V("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,V("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var qr={"--un-ring-offset-shadow":"0 0 rgba(0,0,0,0)","--un-ring-shadow":"0 0 rgba(0,0,0,0)","--un-shadow-inset":Ie,"--un-shadow":"0 0 rgba(0,0,0,0)"},Yr=[[/^shadow(?:-(.+))?$/,(e,t)=>{let[,r]=e,{theme:n}=t,o=n.boxShadow?.[r||"DEFAULT"],i=r?l.bracket.cssvar(r):void 0;return(o!=null||i!=null)&&!Ne(i,n)?{"--un-shadow":Le(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:V("--un-shadow-color","shadow")(e,t)},{autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ji={h:"height",w:"width",inline:"inline-size",block:"block-size"};function we(e,t){return`${e||""}${ji[t]}`}function Zr(e,t,r,n){let o=we(e,t).replace(/-(\w)/g,(s,a)=>a.toUpperCase()),i=r[o]?.[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return l.bracket.cssvar.global.auto.fraction.rem(n)}var Xr=[[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[we(e,t)]:Zr(e,t,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[we(e,t)]:Zr(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>({[we(e,t)]:Xt(n)?.[r]})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>({[we(e,t)]:Be(n)?.[r]}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Ai(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return l.bracket.cssvar.global.auto.number(e)}var Jr=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Ai(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var Qr=[[/^pa?()-?(-?.+)$/,M("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,M("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,M("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,M("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,M("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,M("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],en=[[/^ma?()-?(-?.+)$/,M("margin")],[/^m-?xy()()$/,M("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,M("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,M("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,M("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,M("margin")]];var tn=["translate","rotate","scale"],Z=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Vi=["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),an={"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},cn=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":pe[e]??l.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(pe).join("|")})`,`origin-(${Object.keys(pe).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=l.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=l.bracket.cssvar(e)??(e.length>=3?pe[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,rn],[/^(?:transform-)?translate-([xyz])-(.+)$/,rn],[/^(?:transform-)?rotate-()(.+)$/,on],[/^(?:transform-)?rotate-([xyz])-(.+)$/,on],[/^(?:transform-)?skew-()(.+)$/,sn],[/^(?:transform-)?skew-([xy])-(.+)$/,sn,{autocomplete:["transform-skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,nn],[/^(?:transform-)?scale-([xyz])-(.+)$/,nn,{autocomplete:[`transform-(${tn.join("|")})-<percent>`,`transform-(${tn.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:Z}],["transform-cpu",{transform:Z}],["transform-gpu",{transform:Vi}],["transform-none",{transform:"none"}],...E("transform")];function rn([,e,t],{theme:r}){let n=r.spacing?.[t]??l.bracket.cssvar.fraction.rem(t);if(n!=null)return[...Fe[e].map(o=>[`--un-translate${o}`,n]),["transform",Z]]}function nn([,e,t]){let r=l.bracket.cssvar.fraction.percent(t);if(r!=null)return[...Fe[e].map(n=>[`--un-scale${n}`,r]),["transform",Z]]}function on([,e="",t]){let r=l.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:Z}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:Z}}function sn([,e,t]){let r=l.bracket.cssvar.degree(t);if(r!=null)return[...Fe[e].map(n=>[`--un-skew${n}`,r]),["transform",Z]]}var zi={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},ln=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=zi[e];if(r)return{[r]:l.cssvar(t)}}]],fn=[[/^\[(.*)\]$/,([e,t])=>{if(!t.includes(":"))return;let[r,...n]=t.split(":"),o=n.join(":");if(!Oi(t)&&r.match(/^[a-z-]+$/)&&Pi(o)){let i=l.bracket(`[${o}]`);if(i)return{[r]:i}}}]];function Pi(e){let t=0;function r(n){for(;t<e.length;)if(t+=1,e[t]===n)return!0;return!1}for(t=0;t<e.length;t++){let n=e[t];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function Oi(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}var un=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
|
|
3
3
|
${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var pn=[[/^fill-(.+)$/,V("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"stroke-width":t.lineWidth?.[e]??l.bracket.cssvar.fraction.px.number(e)}),{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":l.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??l.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,V("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var mn=[ln,fn,Qr,en,Ar,rr,or,ir,pn,tr,_r,Wr,mr,dr,gr,Nr,cr,hr,br,Br,Yt,nr,Kr,Hr,Yr,Gr,ur,$r,yr,wr,Xr,Jr,zr,Vr,Or,Mr,qt,Ur,Fr,Dr,vr,Jt,Qt,Sr,ft,ut,kr,Cr,Rr,Tr,Er,jr,fr,cn,er,sr,Pr,Lr,un].flat(1);var pt={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3",950:"#d8dcdf"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f",950:"#080808"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values(pt).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var dn={sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},gn={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},hn={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},bn={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},xn={DEFAULT:["0 0 1px rgba(0,0,0,0.2)","0 0 1px rgba(1,0,5,0.1)"],none:"0 0 rgba(0,0,0,0)",sm:"1px 1px 3px rgba(36,37,47,0.25)",md:["0 1px 2px rgba(30,29,39,0.19)","1px 2px 4px rgba(54,64,147,0.18)"],lg:["3px 3px 6px rgba(0,0,0,0.26)","0 0 5px rgba(15,3,86,0.22)"],xl:["1px 1px 3px rgba(0,0,0,0.29)","2px 4px 7px rgba(73,64,125,0.35)"]},yn={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},mt={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},$n={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},vn=mt;var dt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},wn={...dt},Sn={DEFAULT:"1px",none:"0"},kn={DEFAULT:"1rem",none:"0",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},Cn={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Rn={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Tn={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],none:"0 0 rgba(0,0,0,0)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)"},En={DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},jn={DEFAULT:"1px",none:"0"},An={auto:"auto"};var Vn={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},zn={DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],sm:"0 1px 1px rgba(0,0,0,0.05)",md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 rgba(0,0,0,0)"};var Se={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},gt={auto:"auto",...Se,screen:"100vw"},ke={none:"none",...Se,screen:"100vw"},ht={auto:"auto",...Se,screen:"100vh"},Ce={none:"none",...Se,screen:"100vh"},Pn=Object.fromEntries(Object.entries(Se).map(([e,t])=>[e,`(min-width: ${t})`]));var On={...an,...qr,...Ir};var Mn={width:gt,height:ht,maxWidth:ke,maxHeight:Ce,minWidth:ke,minHeight:Ce,inlineSize:gt,blockSize:ht,maxInlineSize:ke,maxBlockSize:Ce,minInlineSize:ke,minBlockSize:Ce,colors:pt,fontFamily:dn,fontSize:gn,fontWeight:$n,breakpoints:dt,verticalBreakpoints:wn,borderRadius:Rn,lineHeight:yn,letterSpacing:mt,wordSpacing:vn,boxShadow:Tn,textIndent:hn,textShadow:xn,textStrokeWidth:bn,blur:Vn,dropShadow:zn,easing:En,lineWidth:Sn,spacing:kn,duration:Cn,ringWidth:jn,preflightBase:On,containers:Pn,zIndex:An};var Un={name:"aria",match(e,t){let r=P("aria-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.aria?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[aria-${i}]`}}}};function Fn(e){let t=e.match(/^-?[0-9]+\.?[0-9]*/)?.[0]||"",r=e.slice(t.length);if(r==="px"){let n=Number.parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`}return`calc(${e} - 0.1px)`}function _n(){let e={};return{name:"breakpoints",match(t,r){let n=Object.entries(Be(r)??{}).map(([o,i],s)=>[o,i,s]);for(let[o,i,s]of n){e[o]||(e[o]=new RegExp(`^((?:([al]t-|[<~]|max-))?${o}(?:${r.generator.config.separators.join("|")}))`));let a=t.match(e[o]);if(!a)continue;let[,c]=a,u=t.slice(c.length);if(u==="container")continue;let f=c.startsWith("lt-")||c.startsWith("<")||c.startsWith("max-"),p=c.startsWith("at-")||c.startsWith("~"),d=1e3;return f?(d-=s+1,{matcher:u,handle:(g,y)=>y({...g,parent:`${g.parent?`${g.parent} $$ `:""}@media (max-width: ${Fn(i)})`,parentOrder:d})}):(d+=s+1,p&&s<n.length-1?{matcher:u,handle:(g,y)=>y({...g,parent:`${g.parent?`${g.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${Fn(n[s+1][1])})`,parentOrder:d})}:{matcher:u,handle:(g,y)=>y({...g,parent:`${g.parent?`${g.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:d})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}function Re(e,t){return{name:`combinator:${e}`,match(r,n){if(!r.startsWith(e))return;let o=n.generator.config.separators,i=q(`${e}-`,r,o);if(!i){for(let a of o)if(r.startsWith(`${e}${a}`)){i=["",r.slice(e.length+a.length)];break}if(!i)return}let s=l.bracket(i[0])??"";return s===""&&(s="*"),{matcher:i[1],selector:a=>`${a}${t}${s}`}},multiPass:!0}}var Wn=[Re("all"," "),Re("children",">"),Re("next","+"),Re("sibling","+"),Re("siblings","~")];var Dn={name:"@",match(e,t){if(e.startsWith("@container"))return;let r=P("@",e,t.generator.config.separators);if(r){let[n,o,i]=r,s=l.bracket(n),a;if(s){let c=l.numberWithUnit(s);c&&(a=`(min-width: ${c})`)}else a=t.theme.containers?.[n]??"";if(a)return G("The container query variant is experimental and may not follow semver."),{matcher:o,handle:(c,u)=>u({...c,parent:`${c.parent?`${c.parent} $$ `:""}@container${i?` ${i} `:" "}${a}`})}}},multiPass:!0};function Ln(e={}){if(e?.dark==="class"||typeof e.dark=="object"){let{dark:t=".dark",light:r=".light"}=typeof e.dark=="string"?{}:e.dark;return[oe("dark",n=>({prefix:`${t} $$ ${n.prefix}`})),oe("light",n=>({prefix:`${r} $$ ${n.prefix}`}))]}return[de("dark","@media (prefers-color-scheme: dark)"),de("light","@media (prefers-color-scheme: light)")]}var Nn={name:"data",match(e,t){let r=P("data-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.data?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[data-${i}]`}}}},Bn={name:"group-data",match(e,t){let r=P("group-data-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.data?.[n]??"";if(i)return{matcher:`group-[[data-${i}]]:${o}`}}}};var Kn=[oe("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),oe("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];var Hn={name:"selector",match(e,t){let r=q("selector-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n);if(i)return{matcher:o,selector:()=>i}}}},In={name:"layer",match(e,t){let r=P("layer-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??n;if(i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${i}`})}}}},Gn={name:"uno-layer",match(e,t){let r=P("uno-layer-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??n;if(i)return{matcher:o,layer:i}}}},qn={name:"scope",match(e,t){let r=q("scope-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n);if(i)return{matcher:o,selector:s=>`${i} $$ ${s}`}}}},Yn={name:"variables",match(e,t){if(!e.startsWith("["))return;let[r,n]=re(e,"[","]")??[];if(!(r&&n))return;let o;for(let a of t.generator.config.separators)if(n.startsWith(a)){o=n.slice(a.length);break}if(o==null)return;let i=l.bracket(r)??"",s=i.startsWith("@");if(s||i.includes("&"))return{matcher:o,handle(a,c){let u=s?{parent:`${a.parent?`${a.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,a.selector)};return c({...a,...u})}}},multiPass:!0};var Zn=/[0-9.]+(?:[a-z]+|%)?/,Mi=[/opacity|color|flex/];function Ui(e){let t=e.match(/^(calc|clamp|max|min)\s*(\(.*)/);if(t){let[r,n]=tt(t[2],"(",")"," ")??[];if(r)return`calc(${t[1]}${r} * -1)${n?` ${n}`:""}`}}var Xn={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===Zt))return;let r=!1;return t.forEach(n=>{let o=n[1]?.toString();if(!o||o==="0"||Mi.some(s=>n[0].match(s)))return;let i=Ui(o);i?(n[1]=i,r=!0):Zn.test(o)&&(n[1]=o.replace(Zn,s=>`-${s}`),r=!0)}),r?t:[]}}}};function Jn(){let e;return{name:"important",match(t,r){e||(e=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,o=t.match(e);if(o?n=t.slice(o[0].length):t.endsWith("!")&&(n=t.slice(0,-1)),n)return{matcher:n,body:i=>(i.forEach(s=>{s[1]&&(s[1]+=" !important")}),i)}}}}var Qn=de("print","@media print"),eo={name:"media",match(e,t){let r=P("media-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??"";if(i===""&&(i=t.theme.media?.[n]??""),i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${i}`})}}},multiPass:!0};var to={name:"supports",match(e,t){let r=P("supports-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??"";if(i===""&&(i=t.theme.supports?.[n]??""),i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};var ae=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),oo=Object.keys(ae),ce=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),io=Object.keys(ce),Fi=["not","is","where","has"],bt=Object.entries(ae).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),xt=Object.entries(ce).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),X=Fi.join("|");function Ge(e,t,r){let n=new RegExp(`^(${I(t)}:)(\\S+)${I(r)}\\1`),o,i,s,a,c=p=>{let d=q(`${e}-`,p,[]);if(!d)return;let[g,y]=d,w=l.bracket(g);if(w==null)return;let b=y.split(o,1)?.[0]??"",S=`${t}${Y(b)}`;return[b,p.slice(p.length-(y.length-b.length-1)),w.includes("&")?w.replace(/&/g,S):`${S}${w}`]},u=p=>{let d=p.match(i)||p.match(s);if(!d)return;let[g,y,w]=d,b=d[3]??"",S=ae[w]||ce[w]||`:${w}`;return y&&(S=`:${y}(${S})`),[b,p.slice(g.length),`${t}${Y(b)}${S}`,w]},f=p=>{let d=p.match(a);if(!d)return;let[g,y,w]=d,b=d[3]??"",S=`:${y}(${w})`;return[b,p.slice(g.length),`${t}${Y(b)}${S}`]};return{name:`pseudo:${e}`,match(p,d){if(o&&i&&s||(o=new RegExp(`(?:${d.generator.config.separators.join("|")})`),i=new RegExp(`^${e}-(?:(?:(${X})-)?(${bt}))(?:(/\\w+))?(?:${d.generator.config.separators.join("|")})`),s=new RegExp(`^${e}-(?:(?:(${X})-)?(${xt}))(?:(/\\w+))?(?:${d.generator.config.separators.filter(h=>h!=="-").join("|")})`),a=new RegExp(`^${e}-(?:(${X})-)?\\[(.+)\\](?:(/\\w+))?(?:${d.generator.config.separators.filter(h=>h!=="-").join("|")})`)),!p.startsWith(e))return;let g=c(p)||u(p)||f(p);if(!g)return;let[y,w,b,S=""]=g;return y!==""&&G("The labeled variant is experimental and may not follow semver."),{matcher:w,handle:(h,k)=>k({...h,prefix:`${b}${r}${h.prefix}`.replace(n,"$1$2:"),sort:oo.indexOf(S)??io.indexOf(S)})}},multiPass:!0}}var _i=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],ro=Object.entries(ae).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),no=Object.entries(ce).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function so(){let e,t;return{name:"pseudo",match(r,n){e&&e||(e=new RegExp(`^(${ro})(?:${n.generator.config.separators.join("|")})`),t=new RegExp(`^(${no})(?:${n.generator.config.separators.filter(i=>i!=="-").join("|")})`));let o=r.match(e)||r.match(t);if(o){let i=ae[o[1]]||ce[o[1]]||`:${o[1]}`,s=oo.indexOf(o[1]);return s===-1&&(s=io.indexOf(o[1])),s===-1&&(s=void 0),{matcher:r.slice(o[0].length),handle:(a,c)=>{let u=i.startsWith("::")&&!_i.includes(i)?{pseudo:`${a.pseudo}${i}`}:{selector:`${a.selector}${i}`};return c({...a,...u,sort:s,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${ro}|${no}):`}}function ao(){let e,t,r;return{match(n,o){e&&t||(e=new RegExp(`^(${X})-(${bt})(?:${o.generator.config.separators.join("|")})`),t=new RegExp(`^(${X})-(${xt})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${X})-(\\[.+\\])(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));let i=n.match(e)||n.match(t)||n.match(r);if(i){let s=i[1],c=re(i[2],"[","]")?l.bracket(i[2]):ae[i[2]]||ce[i[2]]||`:${i[2]}`;return{matcher:n.slice(i[0].length),selector:u=>`${u}:${s}(${c})`}}},multiPass:!0,autocomplete:`(${X})-(${bt}|${xt}):`}}function co(e={}){let t=!!e?.attributifyPseudo;return[Ge("group",t?'[group=""]':".group"," "),Ge("peer",t?'[peer=""]':".peer","~"),Ge("parent",t?'[parent=""]':".parent",">"),Ge("previous",t?'[previous=""]':".previous","+")]}var Wi=/(part-\[(.+)]:)(.+)/,lo={match(e){let t=e.match(Wi);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};function fo(e){return[Un,Nn,In,Hn,Gn,Xn,Jn(),to,Qn,eo,_n(),...Wn,so(),ao(),...co(e),lo,...Ln(e),...Kn,qn,Dn,Yn,Bn]}var uo={position:["relative","absolute","fixed","sticky","static"],globalKeyword:T};var Di=(e={})=>(e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.preflight=e.preflight??!0,e.variablePrefix=e.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:Mn,rules:mn,variants:fo(e),options:e,prefix:e.prefix,postprocess:Li(e.variablePrefix),preflights:e.preflight?Ni(Nt,e.variablePrefix):[],extractorDefault:e.arbitraryVariants===!1?void 0:Lt,autocomplete:{shorthands:uo}}),po=Di;function Li(e){if(e!=="un-")return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}function Ni(e,t){return t!=="un-"?e.map(r=>({...r,getCSS:(()=>async n=>{let o=await r.getCSS(n);if(o)return o.replace(/--un-/g,`--${t}`)})()})):e}var yt=/^(?!.*\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/;function mo(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Rt(i);if(!a)return;let c=a[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;let u=a[2],[,f="",p=u]=u.match(yt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${c}`;if(o==null){let d=s?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,g]=u.match(o)||[];if(g)return`${d}${f}${c}-${g}`}return`${f}${c}-${p}`}}}var Bi=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Ki=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,go=/[\s'"`;>]+/;function ho(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(Bi),o,i=0;for(let h of n){let[,k,m]=h,$=h.index+k.length;if(r>$&&r<=$+m.length){i=$,o=m;break}}if(!o)return null;let s=o.matchAll(Ki),a=0,c,u;for(let h of s){let[k,m,$]=h,R=i+h.index;if(r>R&&r<=R+k.length){a=R,c=m,u=$?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let f=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let p=f?c.slice(e.prefix.length):c;if(u===void 0)return{extracted:p,resolveReplacement(h){let k=f?e.prefix.length:0;return{start:a+k,end:a+c.length,replacement:h}}};let d=a+c.length+2,g=go.exec(u),y=0,w;for(;g;){let[h]=g;if(r>d+y&&r<=d+y+g.index){w=u.slice(y,y+g.index);break}y+=g.index+h.length,g=go.exec(u.slice(y))}w===void 0&&(w=u.slice(y));let[,b="",S]=w.match(yt)||[];return{extracted:`${b}${p}-${S}`,transformSuggestions(h){return h.filter(k=>k.startsWith(`${b}${p}-`)).map(k=>b+k.slice(b.length+p.length+1))},resolveReplacement(h){return{start:y+d,end:y+d+w.length,replacement:b+h.slice(b.length+p.length+1)}}}}}}var Hi=["v-bind:",":"],bo=/[\s'"`;]+/g,Ii=/<[^>\s]*\s((?:'.*?'|".*?"|`.*?`|\{.*?\}|[^>]*?)*)/g,Gi=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.~<]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms,$t=["placeholder","fill","opacity","stroke-opacity"];function xo(e){let t=e?.ignoreAttributes??$t,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Ii)).flatMap(i=>Array.from((i[1]||"").matchAll(Gi))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let c of Hi)if(i.startsWith(c)){i=i.slice(c.length);break}if(!a){if(fe(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?a.split(bo).filter(fe):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(bo).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}var qi=(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??$t;let t=[mo(e)],r=[xo(e)],n=[ho(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},yo=qi;function Yi(e){return e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():"")}function $o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function vo(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var wo=["Webkit","Moz","ms"];function So(e){let t={};function r(n){let o=t[n];if(o)return o;let i=Yi(n);if(i!=="filter"&&i in e)return t[n]=vo(i);i=$o(i);for(let s=0;s<wo.length;s++){let a=`${wo[s]}${i}`;if(a in e)return t[n]=vo($o(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function ko(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function vt(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window,r=window.document,n=()=>r.documentElement,o=t.__unocss||{},i=Object.assign({},e,o.runtime),s=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(s.postprocess=j(s.postprocess)).unshift(So(r.createElement("div").style)),i.configResolved?.(o,s);let c=Wt(o,s),u=v=>i.inject?i.inject(v):n().prepend(v),f=new Map,p=!0,d=new Set,g,y,w=[],b=()=>new Promise(v=>{w.push(v),y!=null&&clearTimeout(y),y=setTimeout(()=>k().then(()=>{let x=w;w=[],x.forEach(C=>C())}),0)});function S(v){if(v.nodeType!==1)return;let x=v;x.hasAttribute(a)&&x.removeAttribute(a),x.querySelectorAll(`[${a}]`).forEach(C=>{C.removeAttribute(a)})}function h(v,x){let C=f.get(v);if(!C)if(C=r.createElement("style"),C.setAttribute("data-unocss-runtime-layer",v),f.set(v,C),x==null)u(C);else{let O=h(x),F=O.parentNode;F?F.insertBefore(C,O.nextSibling):u(C)}return C}async function k(){let v=await c.generate(d);return v.layers.reduce((x,C)=>(h(C,x).innerHTML=v.getLayer(C)??"",C),void 0),d=v.matched,{...v,getStyleElement:x=>f.get(x),getStyleElements:()=>f}}async function m(v){let x=d.size;await c.applyExtractors(v,void 0,d),x!==d.size&&await b()}async function $(){let v=r.body,x=v&&v.outerHTML;x&&(await m(`${x} ${ko(x)}`),S(n()),S(v))}let R=new MutationObserver(v=>{p||v.forEach(async x=>{if(x.target.nodeType!==1)return;let C=x.target;for(let O of f)if(C===O[1])return;if(x.type==="childList")x.addedNodes.forEach(async O=>{if(O.nodeType!==1)return;let F=O;g&&!g(F)||(await m(F.outerHTML),S(F))});else{if(g&&!g(C))return;if(x.attributeName!==a){let O=Array.from(C.attributes).map(K=>K.value?`${K.name}="${K.value}"`:K.name).join(" "),F=`<${C.tagName.toLowerCase()} ${O}>`;await m(F)}C.hasAttribute(a)&&C.removeAttribute(a)}})}),z=!1;function U(){if(z)return;let v=i.observer?.target?i.observer.target():n()||r.body;v&&(R.observe(v,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),z=!0)}function B(){i.bypassDefined&&Zi(c.blocked),$(),U()}function J(){r.readyState==="loading"?t.addEventListener("DOMContentLoaded",B):B()}let Te=t.__unocss_runtime=t.__unocss_runtime={version:c.version,uno:c,async extract(v){A(v)||(v.forEach(x=>d.add(x)),v=""),await m(v)},extractAll:$,inspect(v){g=v},toggleObserver(v){v===void 0?p=!p:p=!!v,!z&&!p&&J()},update:k};i.ready?.(Te)!==!1&&(p=!1,J())}function Zi(e=new Set){for(let t=0;t<document.styleSheets.length;t++){let r=document.styleSheets[t],n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(o=>o.selectorText?.split(/,/g)||[]).forEach(o=>{o&&(o=o.trim(),o.startsWith(".")&&(o=o.slice(1)),e.add(o))})}catch{continue}}return e}vt({defaults:{presets:[po(),yo()]}});})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.4",
|
|
4
4
|
"description": "CSS-in-JS Runtime for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.56.
|
|
39
|
-
"@unocss/preset-attributify": "0.56.
|
|
40
|
-
"@unocss/preset-uno": "0.56.
|
|
38
|
+
"@unocss/core": "0.56.4",
|
|
39
|
+
"@unocss/preset-attributify": "0.56.4",
|
|
40
|
+
"@unocss/preset-uno": "0.56.4"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "pnpm run build:node && pnpm run build:cdn",
|