@unocss/runtime 0.27.5 → 0.27.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +1 -1
- package/core.global.js +1 -1
- package/full.global.js +1 -1
- package/mini.global.js +1 -1
- package/package.json +4 -4
- package/uno.global.js +1 -1
package/attributify.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var re=Object.defineProperty,bo=Object.defineProperties;var ho=Object.getOwnPropertyDescriptors;var dt=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var ee=(t,e,r)=>e in t?re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))ne.call(e,r)&&ee(t,r,e[r]);if(dt)for(var r of dt(e))oe.call(e,r)&&ee(t,r,e[r]);return t},z=(t,e)=>bo(t,ho(e));var ae=(t,e)=>{var r={};for(var n in t)ne.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&dt)for(var n of dt(t))e.indexOf(n)<0&&oe.call(t,n)&&(r[n]=t[n]);return r};var xo=(t,e)=>{for(var r in e)re(t,r,{get:e[r],enumerable:!0})};var wt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=yo(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,a=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(a)&&o==null)&&!(wt.includes(a)&&![1,3].includes(n.length)))return{type:a,components:n,alpha:o}}function O(t,e){let{components:r}=t,{alpha:n,type:o}=t;return n=e!=null?e:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,wt.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function yo(t){if(!t)return;let e=vo(t);if(e!=null||(e=ko(t),e!=null)||(e=$o(t),e!=null)||(e=So(t),e!=null)||(e=Co(t),e!=null))return e}function vo(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ko(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function $o(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=Q(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 wo=new RegExp(`^(${wt.join("|")})\\((.+)\\)$`,"i");function So(t){let e=t.match(wo);if(!e)return;let[,r,n]=e,o=ie(`${r} ${n}`);if(o){let{alpha:a,components:[s,...i]}=o;return{type:s,components:i,alpha:a}}}function Co(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ie(e[1]);if(r){let{alpha:n,components:[o,...a]}=r;return{type:o,components:a,alpha:n}}}function ie(t){let e=Q(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let n=Q(e[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function Ro(t,e){if(t=t.trim(),t==="")return;let r=t.length,n=0;for(let o=0;o<r;o++)switch(t[o]){case"(":n++;break;case")":if(--n<0)return;break;case e:if(n===0){let a=t.slice(0,o).trim();return a===""?void 0:[a,t.slice(o+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let a=Ro(t,e);if(!a)return;let[s,i]=a;n.push(s),t=i}if(n.length>0)return n}var A={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"]},St=z(S({},A),{s:["-inset-inline-start"],e:["-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"]}),Ct={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"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Rt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},se=["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"],F=Object.assign({},...se.map(t=>({[t.replace(/ /,"-")]:t})),...se.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tt(t){let e=t.length,r=-1,n,o="",a=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&a===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var mt=Tt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ce(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function To(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function gt(t){return t==null?"":To(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function zt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Et(t,e){let r=t,n=e;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=S({},r);return zt(r)&&zt(n)&&Object.keys(n).forEach(a=>{zt(n[a])?a in r?o[a]=Et(r[a],n[a]):Object.assign(o,{[a]:n[a]}):Object.assign(o,{[a]:n[a]})}),o}function et(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?et(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?et(n):n;return r}return t}function le(t){return typeof t[0]=="string"}function fe(t){return typeof t[0]=="string"}function j(t=[]){return Array.isArray(t)?t:[t]}function bt(t){return Array.from(new Set(t))}var zo=/^\[(.+?)~?="(.*)"\]$/,Eo=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function pe(t){return t.match(zo)}function nt(t=""){return Eo.test(t)}function ue(t){return typeof t=="function"?{match:t}:t}function Vt(t){return t.length===3}function de(t){return t!=null}var jt=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){var n;return(n=this._map.get(e))==null?void 0:n.has(r)}delete(e,r){var n;return((n=this._map.get(e))==null?void 0:n.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,a])=>e(a,r,o)))}};var me=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ge(t){return me.lastIndex=0,t.replace(me,(e,r,n,o)=>o.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var be=new Set;function he(t){be.has(t)||(console.warn("[unocss]",t),be.add(t))}function xe(t){let e=function(n){var a;let o=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of o){let i=t[s](n);if(i!=null)return i}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}var Vo=t=>t.split(/[\s'"`;>=]+/g).filter(nt),ot={name:"split",order:0,extract({code:t}){return new Set(Vo(t))}};function jo(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ao={shortcuts:-1,default:0};function At(t={},e={}){let r=Object.assign({},e,t),n=(r.presets||[]).flatMap(j),o=[...n.filter(u=>u.enforce==="pre"),...n.filter(u=>!u.enforce),...n.filter(u=>u.enforce==="post")],a=Object.assign(Ao,...n.map(u=>u.layers),t.layers);function s(u){return bt([...o.flatMap(x=>j(x[u]||[])),...j(r[u]||[])])}let i=s("extractors");i.length||i.push(ot),i.sort((u,x)=>(u.order||0)-(x.order||0));let l=s("rules"),p={},f=l.length;l.forEach((u,x)=>{le(u)&&(p[u[0]]=[x,u[1],u[2]],delete l[x])});let d=et([...o.map(u=>u.theme||{}),r.theme||{}].reduce((u,x)=>Et(u,x),{}));return s("extendTheme").forEach(u=>u(d)),z(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:d,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(ue),shortcuts:jo(s("shortcuts")),extractors:i})}var ye="0.27.5";var ke=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=At(e,r)}version=ye;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=At(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,n=new Set){let o={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(o);s==null||s.forEach(i=>n.add(i))}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){var p;if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`,o=this._cache.get(n);if(o)return o;let a=e;for(let f of this.config.preprocess)a=f(e);if(this.isBlocked(a)){this.blocked.add(e),this._cache.set(n,null);return}let s=this.matchVariants(e,a);if(!s||this.isBlocked(s[1])){this.blocked.add(e),this._cache.set(n,null);return}let i=this.makeContext(e,[r||s[0],s[1],s[2]]),l=this.expandShortcut(i.currentSelector,i);if(l){let f=await this.stringifyShortcuts(i.variantMatch,i,l[0],l[1]);if(f==null?void 0:f.length)return this._cache.set(n,f),f}else{let f=(p=await this.parseUtil(i.variantMatch,i))==null?void 0:p.map(d=>this.stringifyUtil(d)).filter(de);if(f==null?void 0:f.length)return this._cache.set(n,f),f}this._cache.set(n,null)}async generate(e,{id:r,scope:n,preflights:o=!0,safelist:a=!0,minify:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(m=>i.add(m));let l=s?"":`
|
|
1
|
+
(()=>{var re=Object.defineProperty,bo=Object.defineProperties;var ho=Object.getOwnPropertyDescriptors;var dt=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var ee=(t,e,r)=>e in t?re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))ne.call(e,r)&&ee(t,r,e[r]);if(dt)for(var r of dt(e))oe.call(e,r)&&ee(t,r,e[r]);return t},z=(t,e)=>bo(t,ho(e));var ae=(t,e)=>{var r={};for(var n in t)ne.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&dt)for(var n of dt(t))e.indexOf(n)<0&&oe.call(t,n)&&(r[n]=t[n]);return r};var xo=(t,e)=>{for(var r in e)re(t,r,{get:e[r],enumerable:!0})};var wt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=yo(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,a=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(a)&&o==null)&&!(wt.includes(a)&&![1,3].includes(n.length)))return{type:a,components:n,alpha:o}}function O(t,e){let{components:r}=t,{alpha:n,type:o}=t;return n=e!=null?e:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,wt.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function yo(t){if(!t)return;let e=vo(t);if(e!=null||(e=ko(t),e!=null)||(e=$o(t),e!=null)||(e=So(t),e!=null)||(e=Co(t),e!=null))return e}function vo(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ko(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function $o(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=Q(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 wo=new RegExp(`^(${wt.join("|")})\\((.+)\\)$`,"i");function So(t){let e=t.match(wo);if(!e)return;let[,r,n]=e,o=ie(`${r} ${n}`);if(o){let{alpha:a,components:[s,...i]}=o;return{type:s,components:i,alpha:a}}}function Co(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ie(e[1]);if(r){let{alpha:n,components:[o,...a]}=r;return{type:o,components:a,alpha:n}}}function ie(t){let e=Q(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let n=Q(e[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function Ro(t,e){if(t=t.trim(),t==="")return;let r=t.length,n=0;for(let o=0;o<r;o++)switch(t[o]){case"(":n++;break;case")":if(--n<0)return;break;case e:if(n===0){let a=t.slice(0,o).trim();return a===""?void 0:[a,t.slice(o+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let a=Ro(t,e);if(!a)return;let[s,i]=a;n.push(s),t=i}if(n.length>0)return n}var A={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"]},St=z(S({},A),{s:["-inset-inline-start"],e:["-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"]}),Ct={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"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Rt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},se=["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"],F=Object.assign({},...se.map(t=>({[t.replace(/ /,"-")]:t})),...se.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tt(t){let e=t.length,r=-1,n,o="",a=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&a===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var mt=Tt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ce(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function To(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function gt(t){return t==null?"":To(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function zt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Et(t,e){let r=t,n=e;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=S({},r);return zt(r)&&zt(n)&&Object.keys(n).forEach(a=>{zt(n[a])?a in r?o[a]=Et(r[a],n[a]):Object.assign(o,{[a]:n[a]}):Object.assign(o,{[a]:n[a]})}),o}function et(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?et(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?et(n):n;return r}return t}function le(t){return typeof t[0]=="string"}function fe(t){return typeof t[0]=="string"}function j(t=[]){return Array.isArray(t)?t:[t]}function bt(t){return Array.from(new Set(t))}var zo=/^\[(.+?)~?="(.*)"\]$/,Eo=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function pe(t){return t.match(zo)}function nt(t=""){return Eo.test(t)}function ue(t){return typeof t=="function"?{match:t}:t}function Vt(t){return t.length===3}function de(t){return t!=null}var jt=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){var n;return(n=this._map.get(e))==null?void 0:n.has(r)}delete(e,r){var n;return((n=this._map.get(e))==null?void 0:n.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,a])=>e(a,r,o)))}};var me=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ge(t){return me.lastIndex=0,t.replace(me,(e,r,n,o)=>o.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var be=new Set;function he(t){be.has(t)||(console.warn("[unocss]",t),be.add(t))}function xe(t){let e=function(n){var a;let o=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of o){let i=t[s](n);if(i!=null)return i}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}var Vo=t=>t.split(/[\s'"`;>=]+/g).filter(nt),ot={name:"split",order:0,extract({code:t}){return new Set(Vo(t))}};function jo(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ao={shortcuts:-1,default:0};function At(t={},e={}){let r=Object.assign({},e,t),n=(r.presets||[]).flatMap(j),o=[...n.filter(u=>u.enforce==="pre"),...n.filter(u=>!u.enforce),...n.filter(u=>u.enforce==="post")],a=Object.assign(Ao,...n.map(u=>u.layers),t.layers);function s(u){return bt([...o.flatMap(x=>j(x[u]||[])),...j(r[u]||[])])}let i=s("extractors");i.length||i.push(ot),i.sort((u,x)=>(u.order||0)-(x.order||0));let l=s("rules"),p={},f=l.length;l.forEach((u,x)=>{le(u)&&(p[u[0]]=[x,u[1],u[2]],delete l[x])});let d=et([...o.map(u=>u.theme||{}),r.theme||{}].reduce((u,x)=>Et(u,x),{}));return s("extendTheme").forEach(u=>u(d)),z(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:d,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(ue),shortcuts:jo(s("shortcuts")),extractors:i})}var ye="0.27.6";var ke=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=At(e,r)}version=ye;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=At(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,n=new Set){let o={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(o);s==null||s.forEach(i=>n.add(i))}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){var p;if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`,o=this._cache.get(n);if(o)return o;let a=e;for(let f of this.config.preprocess)a=f(e);if(this.isBlocked(a)){this.blocked.add(e),this._cache.set(n,null);return}let s=this.matchVariants(e,a);if(!s||this.isBlocked(s[1])){this.blocked.add(e),this._cache.set(n,null);return}let i=this.makeContext(e,[r||s[0],s[1],s[2]]),l=this.expandShortcut(i.currentSelector,i);if(l){let f=await this.stringifyShortcuts(i.variantMatch,i,l[0],l[1]);if(f==null?void 0:f.length)return this._cache.set(n,f),f}else{let f=(p=await this.parseUtil(i.variantMatch,i))==null?void 0:p.map(d=>this.stringifyUtil(d)).filter(de);if(f==null?void 0:f.length)return this._cache.set(n,f),f}this._cache.set(n,null)}async generate(e,{id:r,scope:n,preflights:o=!0,safelist:a=!0,minify:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(m=>i.add(m));let l=s?"":`
|
|
2
2
|
`,p=new Set(["default"]),f=new Set,d=new Map;await Promise.all(Array.from(i).map(async m=>{var y;if(f.has(m))return;let b=await this.parseToken(m);if(b!=null){f.add(m);for(let w of b){let R=w[3]||"";d.has(R)||d.set(R,[]),d.get(R).push(w),((y=w[4])==null?void 0:y.layer)&&p.add(w[4].layer)}}})),o&&this.config.preflights.forEach(m=>{m.layer&&p.add(m.layer)});let u={},x=this.config.sortLayers(Array.from(p).sort((m,b)=>{var y,w;return((y=this.config.layers[m])!=null?y:0)-((w=this.config.layers[b])!=null?w:0)||m.localeCompare(b)})),V={};if(o){let m={generator:this,theme:this.config.theme};V=Object.fromEntries(await Promise.all(x.map(async b=>{let w=(await Promise.all(this.config.preflights.filter(R=>(R.layer||"default")===b).map(async R=>await R.getCSS(m)))).filter(Boolean).join(l);return[b,w]})))}let L=m=>{if(u[m])return u[m];let b=Array.from(d).sort((y,w)=>{var R,U,g;return((R=this.parentOrders.get(y[0]))!=null?R:0)-((U=this.parentOrders.get(w[0]))!=null?U:0)||((g=y[0])==null?void 0:g.localeCompare(w[0]||""))||0}).map(([y,w])=>{let R=w.length,U=w.filter(v=>{var T;return(((T=v[4])==null?void 0:T.layer)||"default")===m}).sort((v,T)=>{var K,G,P;return v[0]-T[0]||(((K=v[4])==null?void 0:K.sort)||0)-(((G=T[4])==null?void 0:G.sort)||0)||((P=v[1])==null?void 0:P.localeCompare(T[1]||""))||0}).map(v=>{var T;return[v[1]?Uo(v[1],n):v[1],v[2],!!((T=v[4])==null?void 0:T.noMerge)]}).map(v=>[v[0]==null?v[0]:[v[0]],v[1],v[2]]);if(!U.length)return;let g=U.reverse().map(([v,T,K],G)=>{if(!K&&v&&this.config.mergeSelectors)for(let P=G+1;P<R;P++){let J=U[P];if(J&&!J[2]&&J[0]&&J[1]===T)return J[0].push(...v),null}return v?`${[...new Set(v)].join(`,${l}`)}{${T}}`:T}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${g}${l}}`:g}).filter(Boolean).join(l);return o&&(b=[V[m],b].filter(Boolean).join(l)),u[m]=!s&&b?`/* layer: ${m} */${l}${b}`:b},$=(m=x,b)=>m.filter(y=>!(b==null?void 0:b.includes(y))).map(y=>L(y)||"").filter(Boolean).join(l);return{get css(){return $()},layers:x,getLayers:$,getLayer:L,matched:f}}matchVariants(e,r){let n=new Set,o=[],a=r||e,s=!1,i={rawSelector:e,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let p=l.match(a,i);if(!!p&&(typeof p=="string"&&(p={matcher:p}),p)){a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),o.push(p),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,a,o]}applyVariants(e,r=e[4],n=e[1]){let o=[...r].sort((i,l)=>(i.order||0)-(l.order||0)),a=o.reduce((i,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,i))||i},e[2]),s={selector:o.reduce((i,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,i,a))||i},_o(n)),entries:a,parent:o.reduce((i,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||i,void 0),layer:o.reduce((i,l)=>l.layer||i,void 0),sort:o.reduce((i,l)=>l.sort||i,void 0)};for(let i of this.config.postprocess)i(s);return s}constructCustomCSS(e,r,n){r=rt(r);let{selector:o,entries:a,parent:s}=this.applyVariants([0,n||e.rawSelector,r,void 0,e.variantHandlers]),i=`${o}{${gt(a)}}`;return s?`${s}{${i}}`:i}async parseUtil(e,r,n=!1){var f,d;let[o,a,s]=typeof e=="string"?this.matchVariants(e):e,i=this.config.rulesStaticMap[a];if(i&&i[1]&&(n||!((f=i[2])==null?void 0:f.internal)))return[[i[0],o,rt(i[1]),i[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let u=p;u>=0;u--){let x=l[u];if(!x||((d=x[2])==null?void 0:d.internal)&&!n)continue;let[V,L,$]=x,m=a.match(V);if(!m)continue;let b=await L(m,r);if(!b)continue;if(typeof b=="string")return[[u,b,$]];let y=ce(b).filter(w=>w.length);if(y.length)return y.map(w=>[u,o,w,$,s])}}stringifyUtil(e){var u;if(!e)return;if(Vt(e))return[e[0],void 0,e[1],void 0,e[2]];let{selector:r,entries:n,parent:o,layer:a,sort:s}=this.applyVariants(e),i=gt(n);if(!i)return;let x=(u=e[3])!=null?u:{},{layer:l,sort:p}=x,f=ae(x,["layer","sort"]),d=z(S({},f),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,i,o,d]}expandShortcut(e,r,n=3){if(n===0)return;let o,a;for(let s of this.config.shortcuts)if(fe(s)){if(s[0]===e){o=o||s[2],a=s[1];break}}else{let i=e.match(s[0]);if(i&&(a=s[1](i,r)),a){o=o||s[2];break}}if(typeof a=="string"&&(a=ge(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var i;return((i=this.expandShortcut(s,r,n-1))==null?void 0:i[0])||[s]}).filter(s=>s!==""),o]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){var p;let a=new jt,s=(await Promise.all(bt(n).map(async f=>{let d=await this.parseUtil(f,r,!0);return d||he(`unmatched utility "${f}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((f,d)=>f[0]-d[0]),[i,,l]=e;for(let f of s){if(Vt(f))continue;let{selector:d,entries:u,parent:x,sort:V}=this.applyVariants(f,[...f[4],...l],i);a.getFallback(d,x,[[],f[0]])[0].push([u,!!((p=f[3])==null?void 0:p.noMerge),V!=null?V:0])}return a.map(([f,d],u,x)=>{let V=($,m,b)=>{let y=Math.max(...b.map(R=>R[1])),w=b.map(R=>R[0]);return($?[w.flat(1)]:w).map(R=>{let U=gt(R);if(U)return[d,u,U,x,z(S({},o),{noMerge:m,sort:y})]})};return[[f.filter(([,$])=>$).map(([$,,m])=>[$,m]),!0],[f.filter(([,$])=>!$).map(([$,,m])=>[$,m]),!1]].map(([$,m])=>[...V(!1,m,$.filter(([b])=>b.some(y=>y[0]===E))),...V(!0,m,$.filter(([b])=>b.every(y=>y[0]!==E)))])}).flat(2).filter(Boolean)}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function $e(t,e){return new ke(t,e)}var we=/ \$\$ /,Mo=t=>t.match(we);function Uo(t,e){return Mo(t)?t.replace(we,e?` ${e} `:" "):e?`${e} ${t}`:t}var ve=/^\[(.+?)(~?=)"(.*)"\]$/;function _o(t){return ve.test(t)?t.replace(ve,(e,r,n,o)=>`[${mt(r)}${n}"${mt(o)}"]`):`.${mt(t)}`}var Ut={};xo(Ut,{auto:()=>Lo,bracket:()=>Go,bracketOfColor:()=>Xo,bracketOfLength:()=>Yo,cssvar:()=>Io,degree:()=>Zo,fraction:()=>Ko,global:()=>Jo,number:()=>Ho,numberWithUnit:()=>Do,percent:()=>Bo,properties:()=>Qo,px:()=>Wo,rem:()=>No,time:()=>qo});var Po=["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","backround-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"],Ot=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Fo=/^(-?[0-9.]+)$/i,Se=/^(px)$/i;function _(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Do(t){let e=t.match(Ot);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${_(o)}${n}`}function Lo(t){if(t==="auto"||t==="a")return"auto"}function No(t){if(t.match(Se))return`1${t}`;let e=t.match(Ot);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${_(o)}${n}`:`${_(o/4)}rem`}function Wo(t){if(t.match(Se))return`1${t}`;let e=t.match(Ot);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${_(o)}${n}`:`${_(o)}px`}function Ho(t){if(!Fo.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return _(e)}function Bo(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${_(e/100)}`}function Ko(t){if(t==="full")return"100%";let[e,r]=t.split("/"),n=parseFloat(e)/parseFloat(r);if(!Number.isNaN(n))return`${_(n*100)}%`}function Mt(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n=t.match(/^\[(color|length):/i);if(n?e&&n[1]===e&&(r=t.slice(n[0].length,-1)):r=t.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,o=>o.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Go(t){return Mt(t)}function Xo(t){return Mt(t,"color")}function Yo(t){return Mt(t,"length")}function Io(t){if(t.match(/^\$\S/))return`var(--${Tt(t.slice(1))})`}function qo(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${_(o)}${n}`:`${_(o)}ms`}function Zo(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${_(o)}${n}`:`${_(o)}deg`}function Jo(t){if(["inherit","initial","revert","unset"].includes(t))return t}function Qo(t){for(let e of t.split(","))if(!Po.includes(e))return;return t}var c=xe(Ut);var D=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:e}}},M=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:e}}};var C=t=>([e,r,n],{theme:o})=>{var s,i;let a=(i=(s=o.spacing)==null?void 0:s[n||"DEFAULT"])!=null?i:c.bracket.cssvar.auto.fraction.rem(n);if(a!=null)return A[r].map(l=>[`${t}${l}`,a])},_t=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},Y=(t,e)=>{let r=t.split(/(?:\/|:)/),n,o;r[0]==="[color"?(n=r.slice(0,2).join(":"),o=r[2]):[n,o]=r;let a=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=a;if(!s)return;let i,l=c.bracketOfColor(n),p=l||n;p.startsWith("#")?i=p:p.startsWith("hex-")?i=`#${p.slice(4)}`:n.startsWith("$")&&(i=c.cssvar(n)),i=i||l;let f="DEFAULT";if(!i){let d,[u]=a.slice(-1);u.match(/^\d+$/)?(f=u,d=_t(e,a.slice(0,-1))):(d=_t(e,a),!d&&a.length<=2&&([,f=f]=a,d=_t(e,[s]))),typeof d=="string"?i=d:f&&d&&(i=d[f])}return{opacity:o,name:s,no:f,color:i,cssColor:X(i),alpha:c.bracket.cssvar.percent(o!=null?o:"")}},k=(t,e)=>([,r],{theme:n})=>{var l;let o=Y(r,n);if(!o)return;let{alpha:a,color:s,cssColor:i}=o;if(i)return a!=null?{[t]:O(i,a)}:{[`--un-${e}-opacity`]:(l=i.alpha)!=null?l:1,[t]:O(i,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},I=(t,e)=>{let r=[];t=j(t);for(let n=0;n<t.length;n++){let o=Q(t[n]," ",6);if(!o||o.length<3)return t;let a=X(o.pop());if(a==null)return t;r.push(`${o.join(" ")} var(${e}, ${O(a)})`)}return r},ht=(t,e)=>{var r;return t!=null&&!!((r=Y(t,e))==null?void 0:r.color)};var Ce=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var o,a;let n=(a=(o=e.animation)==null?void 0:o.keyframes)==null?void 0:a[t];if(n)return`@keyframes ${t}${n}
|
|
3
3
|
${r({animation:`${t}`})}`}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var o,a,s,i,l,p,f,d,u,x;let n=(a=(o=e.animation)==null?void 0:o.keyframes)==null?void 0:a[t];if(n){let V=(l=(i=(s=e.animation)==null?void 0:s.durations)==null?void 0:i[t])!=null?l:"1s",L=(d=(f=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:f[t])!=null?d:"linear",$=(x=(u=e.animation)==null?void 0:u.properties)==null?void 0:x[t];return`@keyframes ${t}${n}
|
|
4
4
|
${r(Object.assign({animation:`${t} ${V} ${L} infinite`},$))}`}return{animation:c.bracket.cssvar(t)}}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=c.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,n;return{"animation-duration":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar.time(t)}}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,n;return{"animation-delay":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar.time(t)}}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,n;return{"animation-timing-function":(n=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar(t)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=c.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var Pt=t=>([,e],{theme:r})=>{var l;let n=Y(e,r);if(!n)return;let{alpha:o,color:a,cssColor:s}=n;if(!a)return;let i=a;switch(s&&(o!=null?i=O(s,o):i=O(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":i,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${i}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":i}}},Re=[[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":c.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":c.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Pt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Pt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Pt("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":c.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in F)return{"--un-gradient-shape":`to ${F[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in F?`to ${F[t]}`:c.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":F[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Te=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":t}:{"list-style-type":t}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],ze=[[/^accent-(.+)$/,k("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":c.bracket.percent(t)})]],Ee=[[/^caret-(.+)$/,k("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":c.bracket.percent(t)})]],Ve=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],je=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],Ae=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Oe=[[/^columns-(.+)$/,([,t])=>({columns:c.bracket.global.number.auto.numberWithUnit(t)})],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var ta=/@media \(min-width: (.+)\)/,Me=[[/^__container$/,(t,{variantHandlers:e})=>{var n;let r="100%";for(let o of e){let a=j(o.parent||[])[0];if(typeof a=="string"){let s=(n=a.match(ta))==null?void 0:n[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Ue=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let n=r.map(o=>`${o}:__container`);return t||n.unshift("__container"),n}]];var ea={mid:"middle",base:"baseline",btm:"bottom"},_e=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":ea[t]||t})]],Pe=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Fe=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,n;return{"outline-width":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:c.bracket.cssvar.px(t)}}],[/^outline-(?:color-)?(.+)$/,k("outline-color","outline-color")],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,n;return{"outline-offset":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:c.bracket.cssvar.px(t)}}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t})],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],De=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ra=t=>{var e;return(e=c.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Le=[[/^will-change-(.+)/,([,t])=>({"will-change":ra(t)})]];var Ne=[[/^(?:border|b)()(?:-(.+))?$/,at],[/^(?:border|b)-([xy])(?:-(.+))?$/,at],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,at],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,at],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,at],[/^(?:border|b)-()(?:width|size)-(.+)$/,q],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-()(?:color-)?(.+)$/,it],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,it],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,it],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,it],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,it],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,st],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,st],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,st],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,st],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,st],[/^(?:border-)?(?:rounded|rd)()(?:-(.+))?$/,ct],[/^(?:border-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ct],[/^(?:border-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ct],[/^(?:border-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ct],[/^(?:border-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ct],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],na=t=>([,e],r)=>{var i,l;let n=Y(e,r);if(!n)return;let{alpha:o,color:a,cssColor:s}=n;if(s)return o!=null?{[`border${t}-color`]:O(s,o)}:t===""?{"--un-border-opacity":(i=s.alpha)!=null?i:1,[`border${t}-color`]:O(s,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:O(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${o!=null?o:1}`)}};function at(t,e){let r=q(t,e);if(r)return[...r,["border-style","solid"]]}function q([,t="",e],{theme:r}){var o,a;let n=(a=(o=r.lineWidth)==null?void 0:o[e||"DEFAULT"])!=null?a:c.bracket.cssvar.px(e||"1");if(t in A&&n!=null)return A[t].map(s=>[`border${s}-width`,n])}function it([,t="",e],{theme:r}){if(t in A&&ht(e,r))return Object.assign({},...A[t].map(n=>na(n)(["",e],r)))}function st([,t="",e]){let r=c.bracket.percent(e);if(t in A&&r!=null)return A[t].map(n=>[`--un-border${n}-opacity`,r])}function ct([,t="",e],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[e||"DEFAULT"])||c.bracket.cssvar.fraction.rem(e||"1");if(t in Ct&&n!=null)return Ct[t].map(a=>[`border${a}-radius`,n])}var We=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],He=[[/^(?:text|color|c)-(.+)$/,k("color","text")],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":c.bracket.percent(t)})]],Be=[[/^bg-(.+)$/,k("background-color","bg")],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":c.bracket.percent(t)})]];var Ge={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Ke=t=>{var e;return(e=c.properties(t))!=null?e:Ge[t]},Xe=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var o,a;let n=t!=null?Ke(t):[Ge.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let s=(a=(o=r.duration)==null?void 0:o[e||"DEFAULT"])!=null?a:c.time(e||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,n;return{"transition-duration":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar.time(t)}}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,n;return{"transition-delay":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar.time(t)}}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,n;return{"transition-timing-function":(n=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar(t)}}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":c.global(t)||Ke(t)})],["transition-none",{transition:"none"}]];var Ye=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^flex-(\[.+\])$/,([,t])=>({flex:c.bracket(t).replace(/\d+\/\d+/,e=>c.fraction(e))})],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,n;return{"flex-basis":(n=(r=e.spacing)==null?void 0:r[t])!=null?n:c.bracket.cssvar.auto.fraction.rem(t)}}],["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"}]];var oa={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Ie=[[/^font-(\w+)$/,([,t],{theme:e})=>{var r;return{"font-family":(r=e.fontFamily)==null?void 0:r[t]}}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var n;let r=j((n=e.fontSize)==null?void 0:n[t]);if(r==null?void 0:r[0]){let[o,a="1"]=r;return{"font-size":o,"line-height":a}}return{"font-size":c.bracketOfLength.rem(t)}}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var o,a;let r=j((o=e.fontSize)==null?void 0:o[t]),n=(a=r==null?void 0:r[0])!=null?a:c.bracket.cssvar.rem(t);if(n!=null)return{"font-size":n}}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":oa[t]||c.number(t)})],[/^(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||c.bracket.cssvar.rem(t)}}],[/^tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||c.bracket.cssvar.rem(t)}}],[/^word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||c.bracket.cssvar.rem(t)}}]],qe=[[/^tab(?:-(.+))?$/,([,t])=>{let e=c.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],Ze=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.fraction.rem(t)}}]],Je=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.px(t)}}],[/^text-stroke-(.+)$/,k("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":c.bracket.percent(t)})]],Qe=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var n;let r=(n=e.textShadow)==null?void 0:n[t||"DEFAULT"];return r!=null?{"--un-text-shadow":I(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(t)}}],[/^text-shadow-color-(.+)$/,k("--un-text-shadow-color","text-shadow")],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":c.bracket.percent(t)})]];var tr={"":"",x:"column-",y:"row-"},er=([,t="",e],{theme:r})=>{var o,a;let n=(a=(o=r.spacing)==null?void 0:o[e])!=null?a:c.bracket.cssvar.rem(e);if(n!=null)return{[`grid-${tr[t]}gap`]:n,[`${tr[t]}gap`]:n}},rr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,er],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,er]];var N=t=>t.replace("col","column"),Ft=t=>t[0]==="r"?"Row":"Column",aa=(t,e,r)=>{var o;let n=(o=e[`gridAuto${Ft(t)}`])==null?void 0:o[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 c.bracket.cssvar.auto.rem(r)},nr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var n,o;return{[`grid-${N(t)}`]:(o=(n=r[`grid${Ft(t)}`])==null?void 0:n[e])!=null?o:c.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${N(t)}`]:"1/-1"};let r=c.bracket.number(e);if(r!=null)return{[`grid-${N(t)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${N(t)}-start`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${N(t)}-end`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${N(t)}`]:aa(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":c.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":N(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var n,o;return{[`grid-template-${N(t)}`]:(o=(n=r[`gridTemplate${Ft(t)}`])==null?void 0:n[e])!=null?o:c.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${N(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${N(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var or=["auto","hidden","clip","visible","scroll"],ar=[[/^(?:overflow|of)-(.+)$/,([,t])=>or.includes(t)?{overflow:t}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>or.includes(e)?{[`overflow-${t}`]:e}:void 0]];var ir=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],sr=[["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-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["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"}]],cr=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],lr=[["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"}],["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"}],["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"}]],fr=[["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"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["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"}]];function Dt(t,{theme:e}){var r,n;return(n=(r=e.spacing)==null?void 0:r[t])!=null?n:c.bracket.cssvar.auto.fraction.rem(t)}function xt([,t,e],r){let n=Dt(e,r);if(n!=null&&t in St)return St[t].map(o=>[o.slice(1),n])}var pr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Dt(t,e)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,xt],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,xt],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,xt],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,xt],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Dt(e,r)})]],ur=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],dr=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)})]],mr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var h="var(--un-empty,/*!*/ /*!*/)",gr=[["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-(.+)$/,([,t])=>({display:c.bracket.cssvar(t)||t})]],br=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],hr=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],xr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],yr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],vr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],kr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t})]];var $r=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],wr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Sr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],Cr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var Rr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var n,o;let r=(o=(n=e.ringWidth)==null?void 0:n[t||"DEFAULT"])!=null?o:c.px(t||"1");if(r)return[{[E]:"","--un-ring-inset":h,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--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, 0 0 #0000)"}]}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,n;return{"--un-ring-width":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:c.bracket.cssvar.px(t)}}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,n;return{"--un-ring-offset-width":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:c.bracket.cssvar.px(t)}}],[/^ring-(.+)$/,k("--un-ring-color","ring")],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":c.bracket.percent(t)})],[/^ring-offset-(.+)$/,k("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":c.bracket.percent(t)})],["ring-inset",{"--un-ring-inset":"inset"}]];var Tr=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var n;let r=(n=e.boxShadow)==null?void 0:n[t||"DEFAULT"];if(r)return[{[E]:"","--un-shadow-inset":h,"--un-shadow":"0 0 #0000"},{"--un-shadow":I(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]}],[/^shadow-(.+)$/,k("--un-shadow-color","shadow")],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":c.bracket.percent(t)})],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ia={h:"height",w:"width",inline:"inline-size",block:"block-size"};function lt(t,e){return`${t||""}${ia[e]}`}function zr(t,e,r,n){var s;let o=lt(t,e).replace(/-(\w)/g,(i,l)=>l.toUpperCase()),a=(s=r[o])==null?void 0:s[n];if(a!=null)return a;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.auto.fraction.rem(n)}var Er=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[lt(t,e)]:zr(t,e,n,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[lt(t,e)]:zr(t,e,n,r)})],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:n})=>{var o;return{[lt(t,e)]:(o=n.verticalBreakpoints)==null?void 0:o[r]}}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:n})=>{var o;return{[lt(t,e)]:(o=n.breakpoints)==null?void 0:o[r]}}]];function sa(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(t)}var Vr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":sa(t)})]];var jr=[[/^pa?()-?(-?.+)$/,C("padding")],[/^p-?([xy])-?(-?.+)$/,C("padding")],[/^p-?([rltbse])-?(-?.+)$/,C("padding")],[/^p-(block|inline)-(-?.+)$/,C("padding")],[/^p-?([bi][se])-?(-?.+)$/,C("padding")]],Ar=[[/^ma?()-?(-?.+)$/,C("margin")],[/^m-?([xy])-?(-?.+)$/,C("margin")],[/^m-?([rltbse])-?(-?.+)$/,C("margin")],[/^m-(block|inline)-(-?.+)$/,C("margin")],[/^m-?([bi][se])-?(-?.+)$/,C("margin")]];var ca={"--un-transform":["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(" ")},_r={"--un-transform":["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(" ")},Z=z(S({"--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},_r),{[E]:""}),Pr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=F[t])!=null?e:c.bracket.cssvar(t)}}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=c.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=c.bracket.cssvar(t))!=null?r:t.length>=3?F[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Or],[/^(?:transform-)?translate-([xyz])-(.+)$/,Or],[/^(?:transform-)?rotate-()(.+)$/,Ur],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Ur],[/^(?:transform-)?skew-([xy])-(.+)$/,la],[/^(?:transform-)?scale-()(.+)$/,Mr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Mr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Z,{transform:"var(--un-transform)"}]],["transform-gpu",ca],["transform-cpu",_r],["transform-none",{transform:"none"}]];function Or([,t,e],{theme:r}){var o,a;let n=(a=(o=r.spacing)==null?void 0:o[e])!=null?a:c.bracket.cssvar.fraction.rem(e);if(n!=null)return[Z,[...Rt[t].map(s=>[`--un-translate${s}`,n]),["transform","var(--un-transform)"]]]}function Mr([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[Z,[...Rt[t].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function Ur([,t="",e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return t?[Z,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[Z,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function la([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return[Z,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var fa={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",flex:"flex",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"},Fr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=fa[t];if(r)return{[r]:c.cssvar(e)}}]],Dr=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var Lr=[[/^(where|\?)$/,(t,{constructCSS:e,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}}
|
package/core.global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var mt=Object.defineProperty,yt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var W=(n,t,e)=>t in n?mt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,$=(n,t)=>{for(var e in t||(t={}))N.call(t,e)&&W(n,e,t[e]);if(j)for(var e of j(t))Z.call(t,e)&&W(n,e,t[e]);return n},O=(n,t)=>yt(n,St(t));var J=(n,t)=>{var e={};for(var r in n)N.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&j)for(var r of j(n))t.indexOf(r)<0&&Z.call(n,r)&&(e[r]=n[r]);return e};function xt(n){let t=n.length,e=-1,r,s="",i=n.charCodeAt(0);for(;++e<t;){if(r=n.charCodeAt(e),r===0){s+="\uFFFD";continue}if(r===44){s+="\\2c ";continue}if(r>=1&&r<=31||r===127||e===0&&r>=48&&r<=57||e===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(e===0&&t===1&&r===45){s+=`\\${n.charAt(e)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(e);continue}s+=`\\${n.charAt(e)}`}return s}var D=xt;function v(n){return(Array.isArray(n)?n:Object.entries(n)).filter(t=>t[1]!=null)}function Q(n){return Array.isArray(n)?n.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?n.map(t=>v(t)):[n]:[v(n)]}function Ct(n){return n.filter(([t,e],r)=>{if(t.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===t&&n[s][1]===e)return!1;return!0})}function K(n){return n==null?"":Ct(n).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function L(n){return n&&typeof n=="object"&&!Array.isArray(n)}function F(n,t){let e=n,r=t;if(Array.isArray(e)&&Array.isArray(r))return[...e,...r];if(Array.isArray(e))return[...e];let s=$({},e);return L(e)&&L(r)&&Object.keys(r).forEach(i=>{L(r[i])?i in e?s[i]=F(e[i],r[i]):Object.assign(s,{[i]:r[i]}):Object.assign(s,{[i]:r[i]})}),s}function V(n){let t,e,r;if(Array.isArray(n)){for(e=Array(t=n.length);t--;)e[t]=(r=n[t])&&typeof r=="object"?V(r):r;return e}if(Object.prototype.toString.call(n)==="[object Object]"){e={};for(t in n)t==="__proto__"?Object.defineProperty(e,t,{value:V(n[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(r=n[t])&&typeof r=="object"?V(r):r;return e}return n}function X(n){return typeof n[0]=="string"}function Y(n){return typeof n[0]=="string"}function P(n=[]){return Array.isArray(n)?n:[n]}function k(n){return Array.from(new Set(n))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,G="$$shortcut-no-merge";function tt(n=""){return bt.test(n)}function et(n){return typeof n=="function"?{match:n}:n}function z(n){return n.length===3}function rt(n){return n!=null}var B=class{_map=new Map;get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(e)||s.set(e,r),s.get(e)}set(t,e,r){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.set(e,r),this}has(t,e){var r;return(r=this._map.get(t))==null?void 0:r.has(e)}delete(t,e){var r;return((r=this._map.get(t))==null?void 0:r.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([s,i])=>t(i,e,s)))}};var nt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function st(n){return nt.lastIndex=0,n.replace(nt,(t,e,r,s)=>s.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${e}${r}$2`)).join(" "))}var it=new Set;function ot(n){it.has(n)||(console.warn("[unocss]",n),it.add(n))}var Rt=n=>n.split(/[\s'"`;>=]+/g).filter(tt),H={name:"split",order:0,extract({code:n}){return new Set(Rt(n))}};function wt(n){return P(n).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(n={},t={}){let e=Object.assign({},t,n),r=(e.presets||[]).flatMap(P),s=[...r.filter(l=>l.enforce==="pre"),...r.filter(l=>!l.enforce),...r.filter(l=>l.enforce==="post")],i=Object.assign(Ut,...r.map(l=>l.layers),n.layers);function a(l){return k([...s.flatMap(y=>P(y[l]||[])),...P(e[l]||[])])}let o=a("extractors");o.length||o.push(H),o.sort((l,y)=>(l.order||0)-(y.order||0));let c=a("rules"),f={},u=c.length;c.forEach((l,y)=>{X(l)&&(f[l[0]]=[y,l[1],l[2]],delete c[y])});let S=V([...s.map(l=>l.theme||{}),e.theme||{}].reduce((l,y)=>F(l,y),{}));return a("extendTheme").forEach(l=>l(S)),O($({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:l=>l},e),{presets:s,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:i,theme:S,rulesSize:u,rulesDynamic:c,rulesStaticMap:f,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),variants:a("variants").map(et),shortcuts:wt(a("shortcuts")),extractors:o})}var at="0.27.
|
|
1
|
+
(()=>{var mt=Object.defineProperty,yt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var W=(n,t,e)=>t in n?mt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,$=(n,t)=>{for(var e in t||(t={}))N.call(t,e)&&W(n,e,t[e]);if(j)for(var e of j(t))Z.call(t,e)&&W(n,e,t[e]);return n},O=(n,t)=>yt(n,St(t));var J=(n,t)=>{var e={};for(var r in n)N.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&j)for(var r of j(n))t.indexOf(r)<0&&Z.call(n,r)&&(e[r]=n[r]);return e};function xt(n){let t=n.length,e=-1,r,s="",i=n.charCodeAt(0);for(;++e<t;){if(r=n.charCodeAt(e),r===0){s+="\uFFFD";continue}if(r===44){s+="\\2c ";continue}if(r>=1&&r<=31||r===127||e===0&&r>=48&&r<=57||e===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(e===0&&t===1&&r===45){s+=`\\${n.charAt(e)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(e);continue}s+=`\\${n.charAt(e)}`}return s}var D=xt;function v(n){return(Array.isArray(n)?n:Object.entries(n)).filter(t=>t[1]!=null)}function Q(n){return Array.isArray(n)?n.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?n.map(t=>v(t)):[n]:[v(n)]}function Ct(n){return n.filter(([t,e],r)=>{if(t.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===t&&n[s][1]===e)return!1;return!0})}function K(n){return n==null?"":Ct(n).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function L(n){return n&&typeof n=="object"&&!Array.isArray(n)}function F(n,t){let e=n,r=t;if(Array.isArray(e)&&Array.isArray(r))return[...e,...r];if(Array.isArray(e))return[...e];let s=$({},e);return L(e)&&L(r)&&Object.keys(r).forEach(i=>{L(r[i])?i in e?s[i]=F(e[i],r[i]):Object.assign(s,{[i]:r[i]}):Object.assign(s,{[i]:r[i]})}),s}function V(n){let t,e,r;if(Array.isArray(n)){for(e=Array(t=n.length);t--;)e[t]=(r=n[t])&&typeof r=="object"?V(r):r;return e}if(Object.prototype.toString.call(n)==="[object Object]"){e={};for(t in n)t==="__proto__"?Object.defineProperty(e,t,{value:V(n[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(r=n[t])&&typeof r=="object"?V(r):r;return e}return n}function X(n){return typeof n[0]=="string"}function Y(n){return typeof n[0]=="string"}function P(n=[]){return Array.isArray(n)?n:[n]}function k(n){return Array.from(new Set(n))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,G="$$shortcut-no-merge";function tt(n=""){return bt.test(n)}function et(n){return typeof n=="function"?{match:n}:n}function z(n){return n.length===3}function rt(n){return n!=null}var B=class{_map=new Map;get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(e)||s.set(e,r),s.get(e)}set(t,e,r){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.set(e,r),this}has(t,e){var r;return(r=this._map.get(t))==null?void 0:r.has(e)}delete(t,e){var r;return((r=this._map.get(t))==null?void 0:r.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([s,i])=>t(i,e,s)))}};var nt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function st(n){return nt.lastIndex=0,n.replace(nt,(t,e,r,s)=>s.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${e}${r}$2`)).join(" "))}var it=new Set;function ot(n){it.has(n)||(console.warn("[unocss]",n),it.add(n))}var Rt=n=>n.split(/[\s'"`;>=]+/g).filter(tt),H={name:"split",order:0,extract({code:n}){return new Set(Rt(n))}};function wt(n){return P(n).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(n={},t={}){let e=Object.assign({},t,n),r=(e.presets||[]).flatMap(P),s=[...r.filter(l=>l.enforce==="pre"),...r.filter(l=>!l.enforce),...r.filter(l=>l.enforce==="post")],i=Object.assign(Ut,...r.map(l=>l.layers),n.layers);function a(l){return k([...s.flatMap(y=>P(y[l]||[])),...P(e[l]||[])])}let o=a("extractors");o.length||o.push(H),o.sort((l,y)=>(l.order||0)-(y.order||0));let c=a("rules"),f={},u=c.length;c.forEach((l,y)=>{X(l)&&(f[l[0]]=[y,l[1],l[2]],delete c[y])});let S=V([...s.map(l=>l.theme||{}),e.theme||{}].reduce((l,y)=>F(l,y),{}));return a("extendTheme").forEach(l=>l(S)),O($({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:l=>l},e),{presets:s,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:i,theme:S,rulesSize:u,rulesDynamic:c,rulesStaticMap:f,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),variants:a("variants").map(et),shortcuts:wt(a("shortcuts")),extractors:o})}var at="0.27.6";var lt=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=I(t,e)}version=at;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.config=I(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,e,r=new Set){let s={get original(){return t},code:t,id:e};for(let i of this.config.extractors){let a=await i.extract(s);a==null||a.forEach(o=>r.add(o))}return r}makeContext(t,e){let r={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:e};return r}async parseToken(t,e){var f;if(this.blocked.has(t))return;let r=`${t}${e?` ${e}`:""}`,s=this._cache.get(r);if(s)return s;let i=t;for(let u of this.config.preprocess)i=u(t);if(this.isBlocked(i)){this.blocked.add(t),this._cache.set(r,null);return}let a=this.matchVariants(t,i);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(r,null);return}let o=this.makeContext(t,[e||a[0],a[1],a[2]]),c=this.expandShortcut(o.currentSelector,o);if(c){let u=await this.stringifyShortcuts(o.variantMatch,o,c[0],c[1]);if(u==null?void 0:u.length)return this._cache.set(r,u),u}else{let u=(f=await this.parseUtil(o.variantMatch,o))==null?void 0:f.map(S=>this.stringifyUtil(S)).filter(rt);if(u==null?void 0:u.length)return this._cache.set(r,u),u}this._cache.set(r,null)}async generate(t,{id:e,scope:r,preflights:s=!0,safelist:i=!0,minify:a=!1}={}){let o=typeof t=="string"?await this.applyExtractors(t,e):t;i&&this.config.safelist.forEach(p=>o.add(p));let c=a?"":`
|
|
2
2
|
`,f=new Set(["default"]),u=new Set,S=new Map;await Promise.all(Array.from(o).map(async p=>{var h;if(u.has(p))return;let g=await this.parseToken(p);if(g!=null){u.add(p);for(let x of g){let b=x[3]||"";S.has(b)||S.set(b,[]),S.get(b).push(x),((h=x[4])==null?void 0:h.layer)&&f.add(x[4].layer)}}})),s&&this.config.preflights.forEach(p=>{p.layer&&f.add(p.layer)});let l={},y=this.config.sortLayers(Array.from(f).sort((p,g)=>{var h,x;return((h=this.config.layers[p])!=null?h:0)-((x=this.config.layers[g])!=null?x:0)||p.localeCompare(g)})),w={};if(s){let p={generator:this,theme:this.config.theme};w=Object.fromEntries(await Promise.all(y.map(async g=>{let x=(await Promise.all(this.config.preflights.filter(b=>(b.layer||"default")===g).map(async b=>await b.getCSS(p)))).filter(Boolean).join(c);return[g,x]})))}let A=p=>{if(l[p])return l[p];let g=Array.from(S).sort((h,x)=>{var b,U,d;return((b=this.parentOrders.get(h[0]))!=null?b:0)-((U=this.parentOrders.get(x[0]))!=null?U:0)||((d=h[0])==null?void 0:d.localeCompare(x[0]||""))||0}).map(([h,x])=>{let b=x.length,U=x.filter(m=>{var R;return(((R=m[4])==null?void 0:R.layer)||"default")===p}).sort((m,R)=>{var M,T,E;return m[0]-R[0]||(((M=m[4])==null?void 0:M.sort)||0)-(((T=R[4])==null?void 0:T.sort)||0)||((E=m[1])==null?void 0:E.localeCompare(R[1]||""))||0}).map(m=>{var R;return[m[1]?$t(m[1],r):m[1],m[2],!!((R=m[4])==null?void 0:R.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!U.length)return;let d=U.reverse().map(([m,R,M],T)=>{if(!M&&m&&this.config.mergeSelectors)for(let E=T+1;E<b;E++){let _=U[E];if(_&&!_[2]&&_[0]&&_[1]===R)return _[0].push(...m),null}return m?`${[...new Set(m)].join(`,${c}`)}{${R}}`:R}).filter(Boolean).reverse().join(c);return h?`${h}{${c}${d}${c}}`:d}).filter(Boolean).join(c);return s&&(g=[w[p],g].filter(Boolean).join(c)),l[p]=!a&&g?`/* layer: ${p} */${c}${g}`:g},C=(p=y,g)=>p.filter(h=>!(g==null?void 0:g.includes(h))).map(h=>A(h)||"").filter(Boolean).join(c);return{get css(){return C()},layers:y,getLayers:C,getLayer:A,matched:u}}matchVariants(t,e){let r=new Set,s=[],i=e||t,a=!1,o={rawSelector:t,theme:this.config.theme,generator:this};for(;;){a=!1;for(let c of this.config.variants){if(!c.multiPass&&r.has(c))continue;let f=c.match(i,o);if(!!f&&(typeof f=="string"&&(f={matcher:f}),f)){i=f.matcher,Array.isArray(f.parent)&&this.parentOrders.set(f.parent[0],f.parent[1]),s.push(f),r.add(c),a=!0;break}}if(!a)break;if(s.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,s]}applyVariants(t,e=t[4],r=t[1]){let s=[...e].sort((o,c)=>(o.order||0)-(c.order||0)),i=s.reduce((o,c)=>{var f;return((f=c.body)==null?void 0:f.call(c,o))||o},t[2]),a={selector:s.reduce((o,c)=>{var f;return((f=c.selector)==null?void 0:f.call(c,o,i))||o},Mt(r)),entries:i,parent:s.reduce((o,c)=>Array.isArray(c.parent)?c.parent[0]:c.parent||o,void 0),layer:s.reduce((o,c)=>c.layer||o,void 0),sort:s.reduce((o,c)=>c.sort||o,void 0)};for(let o of this.config.postprocess)o(a);return a}constructCustomCSS(t,e,r){e=v(e);let{selector:s,entries:i,parent:a}=this.applyVariants([0,r||t.rawSelector,e,void 0,t.variantHandlers]),o=`${s}{${K(i)}}`;return a?`${a}{${o}}`:o}async parseUtil(t,e,r=!1){var u,S;let[s,i,a]=typeof t=="string"?this.matchVariants(t):t,o=this.config.rulesStaticMap[i];if(o&&o[1]&&(r||!((u=o[2])==null?void 0:u.internal)))return[[o[0],s,v(o[1]),o[2],a]];e.variantHandlers=a;let{rulesDynamic:c,rulesSize:f}=this.config;for(let l=f;l>=0;l--){let y=c[l];if(!y||((S=y[2])==null?void 0:S.internal)&&!r)continue;let[w,A,C]=y,p=i.match(w);if(!p)continue;let g=await A(p,e);if(!g)continue;if(typeof g=="string")return[[l,g,C]];let h=Q(g).filter(x=>x.length);if(h.length)return h.map(x=>[l,s,x,C,a])}}stringifyUtil(t){var l;if(!t)return;if(z(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:e,entries:r,parent:s,layer:i,sort:a}=this.applyVariants(t),o=K(r);if(!o)return;let y=(l=t[3])!=null?l:{},{layer:c,sort:f}=y,u=J(y,["layer","sort"]),S=O($({},u),{layer:i!=null?i:c,sort:a!=null?a:f});return[t[0],e,o,s,S]}expandShortcut(t,e,r=3){if(r===0)return;let s,i;for(let a of this.config.shortcuts)if(Y(a)){if(a[0]===t){s=s||a[2],i=a[1];break}}else{let o=t.match(a[0]);if(o&&(i=a[1](o,e)),i){s=s||a[2];break}}if(typeof i=="string"&&(i=st(i).split(/\s+/g)),!!i)return[i.flatMap(a=>{var o;return((o=this.expandShortcut(a,e,r-1))==null?void 0:o[0])||[a]}).filter(a=>a!==""),s]}async stringifyShortcuts(t,e,r,s={layer:this.config.shortcutsLayer}){var f;let i=new B,a=(await Promise.all(k(r).map(async u=>{let S=await this.parseUtil(u,e,!0);return S||ot(`unmatched utility "${u}" in shortcut "${t[1]}"`),S||[]}))).flat(1).filter(Boolean).sort((u,S)=>u[0]-S[0]),[o,,c]=t;for(let u of a){if(z(u))continue;let{selector:S,entries:l,parent:y,sort:w}=this.applyVariants(u,[...u[4],...c],o);i.getFallback(S,y,[[],u[0]])[0].push([l,!!((f=u[3])==null?void 0:f.noMerge),w!=null?w:0])}return i.map(([u,S],l,y)=>{let w=(C,p,g)=>{let h=Math.max(...g.map(b=>b[1])),x=g.map(b=>b[0]);return(C?[x.flat(1)]:x).map(b=>{let U=K(b);if(U)return[S,l,U,y,O($({},s),{noMerge:p,sort:h})]})};return[[u.filter(([,C])=>C).map(([C,,p])=>[C,p]),!0],[u.filter(([,C])=>!C).map(([C,,p])=>[C,p]),!1]].map(([C,p])=>[...w(!1,p,C.filter(([g])=>g.some(h=>h[0]===G))),...w(!0,p,C.filter(([g])=>g.every(h=>h[0]!==G)))])}).flat(2).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function ut(n,t){return new lt(n,t)}var ft=/ \$\$ /,At=n=>n.match(ft);function $t(n,t){return At(n)?n.replace(ft,t?` ${t} `:" "):t?`${t} ${n}`:n}var ct=/^\[(.+?)(~?=)"(.*)"\]$/;function Mt(n){return ct.test(n)?n.replace(ct,(t,e,r,s)=>`[${D(e)}${r}"${D(s)}"]`):`.${D(n)}`}var Tt=n=>n.replace(/-(\w)/g,(t,e)=>e?e.toUpperCase():""),pt=n=>n.charAt(0).toUpperCase()+n.slice(1),dt=n=>n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),gt=["Webkit","Moz","ms"];function ht(n){let t={};function e(r){let s=t[r];if(s)return s;let i=Tt(r);if(i!=="filter"&&i in n)return t[r]=dt(i);i=pt(i);for(let a=0;a<gt.length;a++){let o=`${gt[a]}${i}`;if(o in n)return t[r]=dt(pt(o))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=e(s[0]))})}function q(n={}){var b,U;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},e=t==null?void 0:t.runtime,r=Object.assign(n.defaults||{},e);if(e==null?void 0:e.autoPrefix){let d=r.postprocess;d||(d=[]),Array.isArray(d)||(d=[d]),d.unshift(ht(document.createElement("div").style)),r.postprocess=d}(b=e==null?void 0:e.configResolved)==null||b.call(e,t,r);let s,i=!0,a,o=ut(t,r),c=new Set,f,u=[],S=()=>new Promise(d=>{u.push(d),f!=null&&clearTimeout(f),f=setTimeout(()=>l().then(()=>{let m=u;u=[],m.forEach(R=>R())}),0)});async function l(){let d=await o.generate(c);s||(s=document.createElement("style"),document.documentElement.prepend(s)),s.innerHTML=d.css}async function y(d){await o.applyExtractors(d,void 0,c),await S()}async function w(){let d=document.body&&document.body.outerHTML;d&&await y(d)}let A=new MutationObserver(d=>{i||d.forEach(m=>{let R=m.target;if(R===s||a&&!a(R))return;let M=Array.from(R.attributes).map(E=>E.value?`${E.name}="${E.value}"`:E.name).join(" "),T=`<${R.tagName.toLowerCase()} ${M}>`;y(T)})}),C=!1;function p(){if(!C)return;let d=document.documentElement||document.body;!d||(A.observe(d,{childList:!0,subtree:!0,attributes:!0}),C=!0)}function g(){w(),p()}function h(){g(),window.addEventListener("load",g),window.addEventListener("DOMContentLoaded",g)}let x=window.__unocss_runtime=window.__unocss_runtime={version:o.version,uno:o,async extract(d){if(typeof d=="string")return await y(d);d.forEach(m=>c.add(m)),await l()},extractAll:w,inspect(d){a=d},toggleObserver(d){d===void 0?i=!i:i=!!d,!C&&!i&&h()}};((U=e==null?void 0:e.ready)==null?void 0:U.call(e,x))!==!1&&(i=!1,h())}q();})();
|
package/full.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var ne=Object.defineProperty,vo=Object.defineProperties;var ko=Object.getOwnPropertyDescriptors;var mt=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var re=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R=(t,e)=>{for(var r in e||(e={}))oe.call(e,r)&&re(t,r,e[r]);if(mt)for(var r of mt(e))ae.call(e,r)&&re(t,r,e[r]);return t},E=(t,e)=>vo(t,ko(e));var ie=(t,e)=>{var r={};for(var n in t)oe.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&mt)for(var n of mt(t))e.indexOf(n)<0&&ae.call(t,n)&&(r[n]=t[n]);return r};var $o=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})};function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function St(t){let e=t.length,r=-1,n,o="",a=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&a===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var gt=St;function et(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function se(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>et(e)):[t]:[et(t)]}function wo(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function bt(t){return t==null?"":wo(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ct(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e){let r=t,n=e;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=R({},r);return Ct(r)&&Ct(n)&&Object.keys(n).forEach(a=>{Ct(n[a])?a in r?o[a]=rt(r[a],n[a]):Object.assign(o,{[a]:n[a]}):Object.assign(o,{[a]:n[a]})}),o}function tt(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?tt(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:tt(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?tt(n):n;return r}return t}function ce(t){return typeof t[0]=="string"}function le(t){return typeof t[0]=="string"}function A(t=[]){return Array.isArray(t)?t:[t]}function ht(t){return Array.from(new Set(t))}var So=/^\[(.+?)~?="(.*)"\]$/,Co=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,V="$$shortcut-no-merge";function pe(t){return t.match(So)}function nt(t=""){return Co.test(t)}function fe(t){return typeof t=="function"?{match:t}:t}function Rt(t){return t.length===3}function ue(t){return t!=null}var Tt=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){var n;return(n=this._map.get(e))==null?void 0:n.has(r)}delete(e,r){var n;return((n=this._map.get(e))==null?void 0:n.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,a])=>e(a,r,o)))}};var de=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function me(t){return de.lastIndex=0,t.replace(de,(e,r,n,o)=>o.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var ge=new Set;function be(t){ge.has(t)||(console.warn("[unocss]",t),ge.add(t))}function he(t){let e=function(n){var a;let o=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of o){let i=t[s](n);if(i!=null)return i}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}var Ro=t=>t.split(/[\s'"`;>=]+/g).filter(nt),ot={name:"split",order:0,extract({code:t}){return new Set(Ro(t))}};function To(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var zo={shortcuts:-1,default:0};function zt(t={},e={}){let r=Object.assign({},e,t),n=(r.presets||[]).flatMap(A),o=[...n.filter(d=>d.enforce==="pre"),...n.filter(d=>!d.enforce),...n.filter(d=>d.enforce==="post")],a=Object.assign(zo,...n.map(d=>d.layers),t.layers);function s(d){return ht([...o.flatMap(h=>A(h[d]||[])),...A(r[d]||[])])}let i=s("extractors");i.length||i.push(ot),i.sort((d,h)=>(d.order||0)-(h.order||0));let l=s("rules"),f={},p=l.length;l.forEach((d,h)=>{ce(d)&&(f[d[0]]=[h,d[1],d[2]],delete l[h])});let u=tt([...o.map(d=>d.theme||{}),r.theme||{}].reduce((d,h)=>rt(d,h),{}));return s("extendTheme").forEach(d=>d(u)),E(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:d=>d},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:p,rulesDynamic:l,rulesStaticMap:f,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(fe),shortcuts:To(s("shortcuts")),extractors:i})}var xe="0.27.
|
|
1
|
+
(()=>{var ne=Object.defineProperty,vo=Object.defineProperties;var ko=Object.getOwnPropertyDescriptors;var mt=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var re=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R=(t,e)=>{for(var r in e||(e={}))oe.call(e,r)&&re(t,r,e[r]);if(mt)for(var r of mt(e))ae.call(e,r)&&re(t,r,e[r]);return t},E=(t,e)=>vo(t,ko(e));var ie=(t,e)=>{var r={};for(var n in t)oe.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&mt)for(var n of mt(t))e.indexOf(n)<0&&ae.call(t,n)&&(r[n]=t[n]);return r};var $o=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})};function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function St(t){let e=t.length,r=-1,n,o="",a=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&a===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var gt=St;function et(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function se(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>et(e)):[t]:[et(t)]}function wo(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function bt(t){return t==null?"":wo(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ct(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e){let r=t,n=e;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=R({},r);return Ct(r)&&Ct(n)&&Object.keys(n).forEach(a=>{Ct(n[a])?a in r?o[a]=rt(r[a],n[a]):Object.assign(o,{[a]:n[a]}):Object.assign(o,{[a]:n[a]})}),o}function tt(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?tt(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:tt(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?tt(n):n;return r}return t}function ce(t){return typeof t[0]=="string"}function le(t){return typeof t[0]=="string"}function A(t=[]){return Array.isArray(t)?t:[t]}function ht(t){return Array.from(new Set(t))}var So=/^\[(.+?)~?="(.*)"\]$/,Co=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,V="$$shortcut-no-merge";function pe(t){return t.match(So)}function nt(t=""){return Co.test(t)}function fe(t){return typeof t=="function"?{match:t}:t}function Rt(t){return t.length===3}function ue(t){return t!=null}var Tt=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){var n;return(n=this._map.get(e))==null?void 0:n.has(r)}delete(e,r){var n;return((n=this._map.get(e))==null?void 0:n.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,a])=>e(a,r,o)))}};var de=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function me(t){return de.lastIndex=0,t.replace(de,(e,r,n,o)=>o.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var ge=new Set;function be(t){ge.has(t)||(console.warn("[unocss]",t),ge.add(t))}function he(t){let e=function(n){var a;let o=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of o){let i=t[s](n);if(i!=null)return i}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}var Ro=t=>t.split(/[\s'"`;>=]+/g).filter(nt),ot={name:"split",order:0,extract({code:t}){return new Set(Ro(t))}};function To(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var zo={shortcuts:-1,default:0};function zt(t={},e={}){let r=Object.assign({},e,t),n=(r.presets||[]).flatMap(A),o=[...n.filter(d=>d.enforce==="pre"),...n.filter(d=>!d.enforce),...n.filter(d=>d.enforce==="post")],a=Object.assign(zo,...n.map(d=>d.layers),t.layers);function s(d){return ht([...o.flatMap(h=>A(h[d]||[])),...A(r[d]||[])])}let i=s("extractors");i.length||i.push(ot),i.sort((d,h)=>(d.order||0)-(h.order||0));let l=s("rules"),f={},p=l.length;l.forEach((d,h)=>{ce(d)&&(f[d[0]]=[h,d[1],d[2]],delete l[h])});let u=tt([...o.map(d=>d.theme||{}),r.theme||{}].reduce((d,h)=>rt(d,h),{}));return s("extendTheme").forEach(d=>d(u)),E(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:d=>d},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:p,rulesDynamic:l,rulesStaticMap:f,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(fe),shortcuts:To(s("shortcuts")),extractors:i})}var xe="0.27.6";var ve=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=zt(e,r)}version=xe;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=zt(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,n=new Set){let o={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(o);s==null||s.forEach(i=>n.add(i))}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){var f;if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`,o=this._cache.get(n);if(o)return o;let a=e;for(let p of this.config.preprocess)a=p(e);if(this.isBlocked(a)){this.blocked.add(e),this._cache.set(n,null);return}let s=this.matchVariants(e,a);if(!s||this.isBlocked(s[1])){this.blocked.add(e),this._cache.set(n,null);return}let i=this.makeContext(e,[r||s[0],s[1],s[2]]),l=this.expandShortcut(i.currentSelector,i);if(l){let p=await this.stringifyShortcuts(i.variantMatch,i,l[0],l[1]);if(p==null?void 0:p.length)return this._cache.set(n,p),p}else{let p=(f=await this.parseUtil(i.variantMatch,i))==null?void 0:f.map(u=>this.stringifyUtil(u)).filter(ue);if(p==null?void 0:p.length)return this._cache.set(n,p),p}this._cache.set(n,null)}async generate(e,{id:r,scope:n,preflights:o=!0,safelist:a=!0,minify:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(m=>i.add(m));let l=s?"":`
|
|
2
2
|
`,f=new Set(["default"]),p=new Set,u=new Map;await Promise.all(Array.from(i).map(async m=>{var y;if(p.has(m))return;let b=await this.parseToken(m);if(b!=null){p.add(m);for(let $ of b){let S=$[3]||"";u.has(S)||u.set(S,[]),u.get(S).push($),((y=$[4])==null?void 0:y.layer)&&f.add($[4].layer)}}})),o&&this.config.preflights.forEach(m=>{m.layer&&f.add(m.layer)});let d={},h=this.config.sortLayers(Array.from(f).sort((m,b)=>{var y,$;return((y=this.config.layers[m])!=null?y:0)-(($=this.config.layers[b])!=null?$:0)||m.localeCompare(b)})),z={};if(o){let m={generator:this,theme:this.config.theme};z=Object.fromEntries(await Promise.all(h.map(async b=>{let $=(await Promise.all(this.config.preflights.filter(S=>(S.layer||"default")===b).map(async S=>await S.getCSS(m)))).filter(Boolean).join(l);return[b,$]})))}let U=m=>{if(d[m])return d[m];let b=Array.from(u).sort((y,$)=>{var S,j,g;return((S=this.parentOrders.get(y[0]))!=null?S:0)-((j=this.parentOrders.get($[0]))!=null?j:0)||((g=y[0])==null?void 0:g.localeCompare($[0]||""))||0}).map(([y,$])=>{let S=$.length,j=$.filter(v=>{var C;return(((C=v[4])==null?void 0:C.layer)||"default")===m}).sort((v,C)=>{var W,H,O;return v[0]-C[0]||(((W=v[4])==null?void 0:W.sort)||0)-(((H=C[4])==null?void 0:H.sort)||0)||((O=v[1])==null?void 0:O.localeCompare(C[1]||""))||0}).map(v=>{var C;return[v[1]?jo(v[1],n):v[1],v[2],!!((C=v[4])==null?void 0:C.noMerge)]}).map(v=>[v[0]==null?v[0]:[v[0]],v[1],v[2]]);if(!j.length)return;let g=j.reverse().map(([v,C,W],H)=>{if(!W&&v&&this.config.mergeSelectors)for(let O=H+1;O<S;O++){let G=j[O];if(G&&!G[2]&&G[0]&&G[1]===C)return G[0].push(...v),null}return v?`${[...new Set(v)].join(`,${l}`)}{${C}}`:C}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${g}${l}}`:g}).filter(Boolean).join(l);return o&&(b=[z[m],b].filter(Boolean).join(l)),d[m]=!s&&b?`/* layer: ${m} */${l}${b}`:b},k=(m=h,b)=>m.filter(y=>!(b==null?void 0:b.includes(y))).map(y=>U(y)||"").filter(Boolean).join(l);return{get css(){return k()},layers:h,getLayers:k,getLayer:U,matched:p}}matchVariants(e,r){let n=new Set,o=[],a=r||e,s=!1,i={rawSelector:e,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let f=l.match(a,i);if(!!f&&(typeof f=="string"&&(f={matcher:f}),f)){a=f.matcher,Array.isArray(f.parent)&&this.parentOrders.set(f.parent[0],f.parent[1]),o.push(f),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,a,o]}applyVariants(e,r=e[4],n=e[1]){let o=[...r].sort((i,l)=>(i.order||0)-(l.order||0)),a=o.reduce((i,l)=>{var f;return((f=l.body)==null?void 0:f.call(l,i))||i},e[2]),s={selector:o.reduce((i,l)=>{var f;return((f=l.selector)==null?void 0:f.call(l,i,a))||i},Ao(n)),entries:a,parent:o.reduce((i,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||i,void 0),layer:o.reduce((i,l)=>l.layer||i,void 0),sort:o.reduce((i,l)=>l.sort||i,void 0)};for(let i of this.config.postprocess)i(s);return s}constructCustomCSS(e,r,n){r=et(r);let{selector:o,entries:a,parent:s}=this.applyVariants([0,n||e.rawSelector,r,void 0,e.variantHandlers]),i=`${o}{${bt(a)}}`;return s?`${s}{${i}}`:i}async parseUtil(e,r,n=!1){var p,u;let[o,a,s]=typeof e=="string"?this.matchVariants(e):e,i=this.config.rulesStaticMap[a];if(i&&i[1]&&(n||!((p=i[2])==null?void 0:p.internal)))return[[i[0],o,et(i[1]),i[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:f}=this.config;for(let d=f;d>=0;d--){let h=l[d];if(!h||((u=h[2])==null?void 0:u.internal)&&!n)continue;let[z,U,k]=h,m=a.match(z);if(!m)continue;let b=await U(m,r);if(!b)continue;if(typeof b=="string")return[[d,b,k]];let y=se(b).filter($=>$.length);if(y.length)return y.map($=>[d,o,$,k,s])}}stringifyUtil(e){var d;if(!e)return;if(Rt(e))return[e[0],void 0,e[1],void 0,e[2]];let{selector:r,entries:n,parent:o,layer:a,sort:s}=this.applyVariants(e),i=bt(n);if(!i)return;let h=(d=e[3])!=null?d:{},{layer:l,sort:f}=h,p=ie(h,["layer","sort"]),u=E(R({},p),{layer:a!=null?a:l,sort:s!=null?s:f});return[e[0],r,i,o,u]}expandShortcut(e,r,n=3){if(n===0)return;let o,a;for(let s of this.config.shortcuts)if(le(s)){if(s[0]===e){o=o||s[2],a=s[1];break}}else{let i=e.match(s[0]);if(i&&(a=s[1](i,r)),a){o=o||s[2];break}}if(typeof a=="string"&&(a=me(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var i;return((i=this.expandShortcut(s,r,n-1))==null?void 0:i[0])||[s]}).filter(s=>s!==""),o]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){var f;let a=new Tt,s=(await Promise.all(ht(n).map(async p=>{let u=await this.parseUtil(p,r,!0);return u||be(`unmatched utility "${p}" in shortcut "${e[1]}"`),u||[]}))).flat(1).filter(Boolean).sort((p,u)=>p[0]-u[0]),[i,,l]=e;for(let p of s){if(Rt(p))continue;let{selector:u,entries:d,parent:h,sort:z}=this.applyVariants(p,[...p[4],...l],i);a.getFallback(u,h,[[],p[0]])[0].push([d,!!((f=p[3])==null?void 0:f.noMerge),z!=null?z:0])}return a.map(([p,u],d,h)=>{let z=(k,m,b)=>{let y=Math.max(...b.map(S=>S[1])),$=b.map(S=>S[0]);return(k?[$.flat(1)]:$).map(S=>{let j=bt(S);if(j)return[u,d,j,h,E(R({},o),{noMerge:m,sort:y})]})};return[[p.filter(([,k])=>k).map(([k,,m])=>[k,m]),!0],[p.filter(([,k])=>!k).map(([k,,m])=>[k,m]),!1]].map(([k,m])=>[...z(!1,m,k.filter(([b])=>b.some(y=>y[0]===V))),...z(!0,m,k.filter(([b])=>b.every(y=>y[0]!==V)))])}).flat(2).filter(Boolean)}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function ke(t,e){return new ve(t,e)}var $e=/ \$\$ /,Vo=t=>t.match($e);function jo(t,e){return Vo(t)?t.replace($e,e?` ${e} `:" "):e?`${e} ${t}`:t}var ye=/^\[(.+?)(~?=)"(.*)"\]$/;function Ao(t){return ye.test(t)?t.replace(ye,(e,r,n,o)=>`[${gt(r)}${n}"${gt(o)}"]`):`.${gt(t)}`}var Oo=["v-bind:",":"],we=/[\s'"`;]+/g,Mo=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Uo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,Se=t=>{var n,o;let e=(n=t==null?void 0:t.ignoreAttributes)!=null?n:[],r=(o=t==null?void 0:t.nonValuedAttribute)!=null?o:!0;return{name:"attributify",extract({code:a}){let s=Array.from(a.matchAll(Mo)).flatMap(i=>Array.from((i[1]||"").matchAll(Uo))).flatMap(([,i,l,f])=>{if(e.includes(i))return[];for(let p of Oo)if(i.startsWith(p)){i=i.slice(p.length);break}return f?["class","className"].includes(i)?f.split(we).filter(nt):f.split(we).filter(Boolean).map(p=>`[${i}~="${p}"]`):nt(i)&&r!==!1?[`[${i}=""]`]:[]});return new Set(s)}}};var _o=/^(?!\[(?:[^:]+):(?:.+)\]$)(.+:!?)?(.*)$/,Ce=(t={})=>{var n,o;let e=(n=t.prefix)!=null?n:"un-",r=(o=t.prefixedOnly)!=null?o:!1;return a=>{let s=pe(a);if(!s)return;let i=s[1];if(i.startsWith(e))i=i.slice(e.length);else if(r)return;let l=s[2],[,f="",p=l]=l.match(_o)||[];return p==="~"||!p?`${f}${i}`:`${f}${i}-${p}`}};var Fo=(t={})=>{var n,o,a,s,i;t.strict=(n=t.strict)!=null?n:!1,t.prefix=(o=t.prefix)!=null?o:"un-",t.prefixedOnly=(a=t.prefixedOnly)!=null?a:!1,t.nonValuedAttribute=(s=t.nonValuedAttribute)!=null?s:!0,t.ignoreAttributes=(i=t.ignoreAttributes)!=null?i:[];let e=[Ce(t)],r=[Se(t)];return t.strict||r.unshift(ot),{name:"@unocss/preset-attributify",variants:e,extractors:r,options:t}},Re=Fo;var Et=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function Y(t=""){let e=Po(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,a=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(a)&&o==null)&&!(Et.includes(a)&&![1,3].includes(n.length)))return{type:a,components:n,alpha:o}}function _(t,e){let{components:r}=t,{alpha:n,type:o}=t;return n=e!=null?e:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,Et.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Po(t){if(!t)return;let e=Do(t);if(e!=null||(e=Lo(t),e!=null)||(e=No(t),e!=null)||(e=Ho(t),e!=null)||(e=Bo(t),e!=null))return e}function Do(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function Lo(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function No(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=at(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 Wo=new RegExp(`^(${Et.join("|")})\\((.+)\\)$`,"i");function Ho(t){let e=t.match(Wo);if(!e)return;let[,r,n]=e,o=Te(`${r} ${n}`);if(o){let{alpha:a,components:[s,...i]}=o;return{type:s,components:i,alpha:a}}}function Bo(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=Te(e[1]);if(r){let{alpha:n,components:[o,...a]}=r;return{type:o,components:a,alpha:n}}}function Te(t){let e=at(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let n=at(e[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function Ko(t,e){if(t=t.trim(),t==="")return;let r=t.length,n=0;for(let o=0;o<r;o++)switch(t[o]){case"(":n++;break;case")":if(--n<0)return;break;case e:if(n===0){let a=t.slice(0,o).trim();return a===""?void 0:[a,t.slice(o+1).trim()]}}return[t,""]}function at(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let a=Ko(t,e);if(!a)return;let[s,i]=a;n.push(s),t=i}if(n.length>0)return n}var M={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"]},Vt=E(R({},M),{s:["-inset-inline-start"],e:["-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"]}),jt={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"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},At={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},ze=["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"],D=Object.assign({},...ze.map(t=>({[t.replace(/ /,"-")]:t})),...ze.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));var Ut={};$o(Ut,{auto:()=>Io,bracket:()=>ea,bracketOfColor:()=>ra,bracketOfLength:()=>na,cssvar:()=>oa,degree:()=>ia,fraction:()=>ta,global:()=>sa,number:()=>Jo,numberWithUnit:()=>Yo,percent:()=>Qo,properties:()=>ca,px:()=>Zo,rem:()=>qo,time:()=>aa});var Go=["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","backround-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"],Ot=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Xo=/^(-?[0-9.]+)$/i,Ee=/^(px)$/i;function P(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Yo(t){let e=t.match(Ot);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${P(o)}${n}`}function Io(t){if(t==="auto"||t==="a")return"auto"}function qo(t){if(t.match(Ee))return`1${t}`;let e=t.match(Ot);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o/4)}rem`}function Zo(t){if(t.match(Ee))return`1${t}`;let e=t.match(Ot);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o)}px`}function Jo(t){if(!Xo.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return P(e)}function Qo(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${P(e/100)}`}function ta(t){if(t==="full")return"100%";let[e,r]=t.split("/"),n=parseFloat(e)/parseFloat(r);if(!Number.isNaN(n))return`${P(n*100)}%`}function Mt(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n=t.match(/^\[(color|length):/i);if(n?e&&n[1]===e&&(r=t.slice(n[0].length,-1)):r=t.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,o=>o.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function ea(t){return Mt(t)}function ra(t){return Mt(t,"color")}function na(t){return Mt(t,"length")}function oa(t){if(t.match(/^\$\S/))return`var(--${St(t.slice(1))})`}function aa(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o)}ms`}function ia(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o)}deg`}function sa(t){if(["inherit","initial","revert","unset"].includes(t))return t}function ca(t){for(let e of t.split(","))if(!Go.includes(e))return;return t}var c=he(Ut);var L=(t,e)=>{let r=new RegExp(`^${Q(t)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:e}}},F=(t,e)=>{let r=new RegExp(`^${Q(t)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:e}}};var T=t=>([e,r,n],{theme:o})=>{var s,i;let a=(i=(s=o.spacing)==null?void 0:s[n||"DEFAULT"])!=null?i:c.bracket.cssvar.auto.fraction.rem(n);if(a!=null)return M[r].map(l=>[`${t}${l}`,a])},_t=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},I=(t,e)=>{let r=t.split(/(?:\/|:)/),n,o;r[0]==="[color"?(n=r.slice(0,2).join(":"),o=r[2]):[n,o]=r;let a=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=a;if(!s)return;let i,l=c.bracketOfColor(n),f=l||n;f.startsWith("#")?i=f:f.startsWith("hex-")?i=`#${f.slice(4)}`:n.startsWith("$")&&(i=c.cssvar(n)),i=i||l;let p="DEFAULT";if(!i){let u,[d]=a.slice(-1);d.match(/^\d+$/)?(p=d,u=_t(e,a.slice(0,-1))):(u=_t(e,a),!u&&a.length<=2&&([,p=p]=a,u=_t(e,[s]))),typeof u=="string"?i=u:p&&u&&(i=u[p])}return{opacity:o,name:s,no:p,color:i,cssColor:Y(i),alpha:c.bracket.cssvar.percent(o!=null?o:"")}},w=(t,e)=>([,r],{theme:n})=>{var l;let o=I(r,n);if(!o)return;let{alpha:a,color:s,cssColor:i}=o;if(i)return a!=null?{[t]:_(i,a)}:{[`--un-${e}-opacity`]:(l=i.alpha)!=null?l:1,[t]:_(i,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},q=(t,e)=>{let r=[];t=A(t);for(let n=0;n<t.length;n++){let o=at(t[n]," ",6);if(!o||o.length<3)return t;let a=Y(o.pop());if(a==null)return t;r.push(`${o.join(" ")} var(${e}, ${_(a)})`)}return r},xt=(t,e)=>{var r;return t!=null&&!!((r=I(t,e))==null?void 0:r.color)};var Ve=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var o,a;let n=(a=(o=e.animation)==null?void 0:o.keyframes)==null?void 0:a[t];if(n)return`@keyframes ${t}${n}
|
|
3
3
|
${r({animation:`${t}`})}`}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var o,a,s,i,l,f,p,u,d,h;let n=(a=(o=e.animation)==null?void 0:o.keyframes)==null?void 0:a[t];if(n){let z=(l=(i=(s=e.animation)==null?void 0:s.durations)==null?void 0:i[t])!=null?l:"1s",U=(u=(p=(f=e.animation)==null?void 0:f.timingFns)==null?void 0:p[t])!=null?u:"linear",k=(h=(d=e.animation)==null?void 0:d.properties)==null?void 0:h[t];return`@keyframes ${t}${n}
|
|
4
4
|
${r(Object.assign({animation:`${t} ${z} ${U} infinite`},k))}`}return{animation:c.bracket.cssvar(t)}}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=c.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,n;return{"animation-duration":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar.time(t)}}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,n;return{"animation-delay":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar.time(t)}}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,n;return{"animation-timing-function":(n=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar(t)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=c.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var Ft=t=>([,e],{theme:r})=>{var l;let n=I(e,r);if(!n)return;let{alpha:o,color:a,cssColor:s}=n;if(!a)return;let i=a;switch(s&&(o!=null?i=_(s,o):i=_(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":i,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${i}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":i}}},je=[[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":c.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":c.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Ft("from")],[/^(?:bg-gradient-)?to-(.+)$/,Ft("to")],[/^(?:bg-gradient-)?via-(.+)$/,Ft("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":c.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in D)return{"--un-gradient-shape":`to ${D[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in D?`to ${D[t]}`:c.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":D[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Ae=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":t}:{"list-style-type":t}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Oe=[[/^accent-(.+)$/,w("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":c.bracket.percent(t)})]],Me=[[/^caret-(.+)$/,w("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":c.bracket.percent(t)})]],Ue=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],_e=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],Fe=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Pe=[[/^columns-(.+)$/,([,t])=>({columns:c.bracket.global.number.auto.numberWithUnit(t)})],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var la=/@media \(min-width: (.+)\)/,De=[[/^__container$/,(t,{variantHandlers:e})=>{var n;let r="100%";for(let o of e){let a=A(o.parent||[])[0];if(typeof a=="string"){let s=(n=a.match(la))==null?void 0:n[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Le=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let n=r.map(o=>`${o}:__container`);return t||n.unshift("__container"),n}]];var pa={mid:"middle",base:"baseline",btm:"bottom"},Ne=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":pa[t]||t})]],We=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var He=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,n;return{"outline-width":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:c.bracket.cssvar.px(t)}}],[/^outline-(?:color-)?(.+)$/,w("outline-color","outline-color")],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,n;return{"outline-offset":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:c.bracket.cssvar.px(t)}}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t})],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Be=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],fa=t=>{var e;return(e=c.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Ke=[[/^will-change-(.+)/,([,t])=>({"will-change":fa(t)})]];var Ge=[[/^(?:border|b)()(?:-(.+))?$/,it],[/^(?:border|b)-([xy])(?:-(.+))?$/,it],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,it],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,it],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,it],[/^(?:border|b)-()(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-()(?:color-)?(.+)$/,st],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,st],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,st],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,st],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,st],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ct],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ct],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ct],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ct],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ct],[/^(?:border-)?(?:rounded|rd)()(?:-(.+))?$/,lt],[/^(?:border-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,lt],[/^(?:border-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,lt],[/^(?:border-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,lt],[/^(?:border-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,lt],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],ua=t=>([,e],r)=>{var i,l;let n=I(e,r);if(!n)return;let{alpha:o,color:a,cssColor:s}=n;if(s)return o!=null?{[`border${t}-color`]:_(s,o)}:t===""?{"--un-border-opacity":(i=s.alpha)!=null?i:1,[`border${t}-color`]:_(s,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:_(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${o!=null?o:1}`)}};function it(t,e){let r=Z(t,e);if(r)return[...r,["border-style","solid"]]}function Z([,t="",e],{theme:r}){var o,a;let n=(a=(o=r.lineWidth)==null?void 0:o[e||"DEFAULT"])!=null?a:c.bracket.cssvar.px(e||"1");if(t in M&&n!=null)return M[t].map(s=>[`border${s}-width`,n])}function st([,t="",e],{theme:r}){if(t in M&&xt(e,r))return Object.assign({},...M[t].map(n=>ua(n)(["",e],r)))}function ct([,t="",e]){let r=c.bracket.percent(e);if(t in M&&r!=null)return M[t].map(n=>[`--un-border${n}-opacity`,r])}function lt([,t="",e],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[e||"DEFAULT"])||c.bracket.cssvar.fraction.rem(e||"1");if(t in jt&&n!=null)return jt[t].map(a=>[`border${a}-radius`,n])}var Xe=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],Ye=[[/^(?:text|color|c)-(.+)$/,w("color","text")],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":c.bracket.percent(t)})]],Ie=[[/^bg-(.+)$/,w("background-color","bg")],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":c.bracket.percent(t)})]];var Ze={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},qe=t=>{var e;return(e=c.properties(t))!=null?e:Ze[t]},Je=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var o,a;let n=t!=null?qe(t):[Ze.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let s=(a=(o=r.duration)==null?void 0:o[e||"DEFAULT"])!=null?a:c.time(e||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,n;return{"transition-duration":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar.time(t)}}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,n;return{"transition-delay":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar.time(t)}}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,n;return{"transition-timing-function":(n=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?n:c.bracket.cssvar(t)}}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":c.global(t)||qe(t)})],["transition-none",{transition:"none"}]];var Qe=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^flex-(\[.+\])$/,([,t])=>({flex:c.bracket(t).replace(/\d+\/\d+/,e=>c.fraction(e))})],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,n;return{"flex-basis":(n=(r=e.spacing)==null?void 0:r[t])!=null?n:c.bracket.cssvar.auto.fraction.rem(t)}}],["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"}]];var da={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},tr=[[/^font-(\w+)$/,([,t],{theme:e})=>{var r;return{"font-family":(r=e.fontFamily)==null?void 0:r[t]}}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var n;let r=A((n=e.fontSize)==null?void 0:n[t]);if(r==null?void 0:r[0]){let[o,a="1"]=r;return{"font-size":o,"line-height":a}}return{"font-size":c.bracketOfLength.rem(t)}}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var o,a;let r=A((o=e.fontSize)==null?void 0:o[t]),n=(a=r==null?void 0:r[0])!=null?a:c.bracket.cssvar.rem(t);if(n!=null)return{"font-size":n}}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":da[t]||c.number(t)})],[/^(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||c.bracket.cssvar.rem(t)}}],[/^tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||c.bracket.cssvar.rem(t)}}],[/^word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||c.bracket.cssvar.rem(t)}}]],er=[[/^tab(?:-(.+))?$/,([,t])=>{let e=c.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],rr=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.fraction.rem(t)}}]],nr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.px(t)}}],[/^text-stroke-(.+)$/,w("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":c.bracket.percent(t)})]],or=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var n;let r=(n=e.textShadow)==null?void 0:n[t||"DEFAULT"];return r!=null?{"--un-text-shadow":q(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(t)}}],[/^text-shadow-color-(.+)$/,w("--un-text-shadow-color","text-shadow")],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":c.bracket.percent(t)})]];var ar={"":"",x:"column-",y:"row-"},ir=([,t="",e],{theme:r})=>{var o,a;let n=(a=(o=r.spacing)==null?void 0:o[e])!=null?a:c.bracket.cssvar.rem(e);if(n!=null)return{[`grid-${ar[t]}gap`]:n,[`${ar[t]}gap`]:n}},sr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,ir],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,ir]];var N=t=>t.replace("col","column"),Pt=t=>t[0]==="r"?"Row":"Column",ma=(t,e,r)=>{var o;let n=(o=e[`gridAuto${Pt(t)}`])==null?void 0:o[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 c.bracket.cssvar.auto.rem(r)},cr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var n,o;return{[`grid-${N(t)}`]:(o=(n=r[`grid${Pt(t)}`])==null?void 0:n[e])!=null?o:c.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${N(t)}`]:"1/-1"};let r=c.bracket.number(e);if(r!=null)return{[`grid-${N(t)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${N(t)}-start`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${N(t)}-end`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${N(t)}`]:ma(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":c.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":N(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var n,o;return{[`grid-template-${N(t)}`]:(o=(n=r[`gridTemplate${Pt(t)}`])==null?void 0:n[e])!=null?o:c.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${N(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${N(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var lr=["auto","hidden","clip","visible","scroll"],pr=[[/^(?:overflow|of)-(.+)$/,([,t])=>lr.includes(t)?{overflow:t}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>lr.includes(e)?{[`overflow-${t}`]:e}:void 0]];var fr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],ur=[["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-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["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"}]],dr=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],mr=[["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"}],["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"}],["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"}]],gr=[["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"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["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"}]];function Dt(t,{theme:e}){var r,n;return(n=(r=e.spacing)==null?void 0:r[t])!=null?n:c.bracket.cssvar.auto.fraction.rem(t)}function yt([,t,e],r){let n=Dt(e,r);if(n!=null&&t in Vt)return Vt[t].map(o=>[o.slice(1),n])}var br=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Dt(t,e)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,yt],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,yt],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,yt],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,yt],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Dt(e,r)})]],hr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],xr=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)})]],yr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var x="var(--un-empty,/*!*/ /*!*/)",vr=[["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-(.+)$/,([,t])=>({display:c.bracket.cssvar(t)||t})]],kr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],$r=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],wr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Sr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Cr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Rr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t})]];var Tr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],zr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Er=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],Vr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var jr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var n,o;let r=(o=(n=e.ringWidth)==null?void 0:n[t||"DEFAULT"])!=null?o:c.px(t||"1");if(r)return[{[V]:"","--un-ring-inset":x,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--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, 0 0 #0000)"}]}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,n;return{"--un-ring-width":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:c.bracket.cssvar.px(t)}}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,n;return{"--un-ring-offset-width":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:c.bracket.cssvar.px(t)}}],[/^ring-(.+)$/,w("--un-ring-color","ring")],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":c.bracket.percent(t)})],[/^ring-offset-(.+)$/,w("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":c.bracket.percent(t)})],["ring-inset",{"--un-ring-inset":"inset"}]];var Ar=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var n;let r=(n=e.boxShadow)==null?void 0:n[t||"DEFAULT"];if(r)return[{[V]:"","--un-shadow-inset":x,"--un-shadow":"0 0 #0000"},{"--un-shadow":q(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]}],[/^shadow-(.+)$/,w("--un-shadow-color","shadow")],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":c.bracket.percent(t)})],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ga={h:"height",w:"width",inline:"inline-size",block:"block-size"};function pt(t,e){return`${t||""}${ga[e]}`}function Or(t,e,r,n){var s;let o=pt(t,e).replace(/-(\w)/g,(i,l)=>l.toUpperCase()),a=(s=r[o])==null?void 0:s[n];if(a!=null)return a;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.auto.fraction.rem(n)}var Mr=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[pt(t,e)]:Or(t,e,n,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[pt(t,e)]:Or(t,e,n,r)})],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:n})=>{var o;return{[pt(t,e)]:(o=n.verticalBreakpoints)==null?void 0:o[r]}}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:n})=>{var o;return{[pt(t,e)]:(o=n.breakpoints)==null?void 0:o[r]}}]];function ba(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(t)}var Ur=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":ba(t)})]];var _r=[[/^pa?()-?(-?.+)$/,T("padding")],[/^p-?([xy])-?(-?.+)$/,T("padding")],[/^p-?([rltbse])-?(-?.+)$/,T("padding")],[/^p-(block|inline)-(-?.+)$/,T("padding")],[/^p-?([bi][se])-?(-?.+)$/,T("padding")]],Fr=[[/^ma?()-?(-?.+)$/,T("margin")],[/^m-?([xy])-?(-?.+)$/,T("margin")],[/^m-?([rltbse])-?(-?.+)$/,T("margin")],[/^m-(block|inline)-(-?.+)$/,T("margin")],[/^m-?([bi][se])-?(-?.+)$/,T("margin")]];var ha={"--un-transform":["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(" ")},Nr={"--un-transform":["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(" ")},J=E(R({"--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},Nr),{[V]:""}),Wr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=D[t])!=null?e:c.bracket.cssvar(t)}}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=c.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=c.bracket.cssvar(t))!=null?r:t.length>=3?D[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Pr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Pr],[/^(?:transform-)?rotate-()(.+)$/,Lr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Lr],[/^(?:transform-)?skew-([xy])-(.+)$/,xa],[/^(?:transform-)?scale-()(.+)$/,Dr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Dr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[J,{transform:"var(--un-transform)"}]],["transform-gpu",ha],["transform-cpu",Nr],["transform-none",{transform:"none"}]];function Pr([,t,e],{theme:r}){var o,a;let n=(a=(o=r.spacing)==null?void 0:o[e])!=null?a:c.bracket.cssvar.fraction.rem(e);if(n!=null)return[J,[...At[t].map(s=>[`--un-translate${s}`,n]),["transform","var(--un-transform)"]]]}function Dr([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[J,[...At[t].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function Lr([,t="",e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return t?[J,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[J,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function xa([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return[J,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var ya={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",flex:"flex",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"},Hr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ya[t];if(r)return{[r]:c.cssvar(e)}}]],Br=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var Kr=[[/^(where|\?)$/,(t,{constructCSS:e,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}}
|
package/mini.global.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{var Ke=Object.defineProperty,xn=Object.defineProperties;var bn=Object.getOwnPropertyDescriptors;var ie=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var Ne=(e,t,r)=>t in e?Ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))Be.call(t,r)&&Ne(e,r,t[r]);if(ie)for(var r of ie(t))Ie.call(t,r)&&Ne(e,r,t[r]);return e},T=(e,t)=>xn(e,bn(t));var Ge=(e,t)=>{var r={};for(var n in e)Be.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ie)for(var n of ie(e))t.indexOf(n)<0&&Ie.call(e,n)&&(r[n]=e[n]);return r};var yn=(e,t)=>{for(var r in t)Ke(e,r,{get:t[r],enumerable:!0})};var $n={mid:"middle",base:"baseline",btm:"bottom"},qe=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":$n[e]||e})]],Ze=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var ge=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function xe(e=""){let t=wn(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)&&!(ge.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function _(e,t){let{components:r}=e,{alpha:n,type:o}=e;return n=t!=null?t:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,ge.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function wn(e){if(!e)return;let t=vn(e);if(t!=null||(t=Sn(e),t!=null)||(t=kn(e),t!=null)||(t=Rn(e),t!=null)||(t=Tn(e),t!=null))return t}function vn(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 Sn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function kn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=B(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 Cn=new RegExp(`^(${ge.join("|")})\\((.+)\\)$`,"i");function Rn(e){let t=e.match(Cn);if(!t)return;let[,r,n]=t,o=Xe(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Tn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Xe(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Xe(e){let t=B(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=B(t[r-1],"/",3);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 En(e,t){if(e=e.trim(),e==="")return;let r=e.length,n=0;for(let o=0;o<r;o++)switch(e[o]){case"(":n++;break;case")":if(--n<0)return;break;case t:if(n===0){let i=e.slice(0,o).trim();return i===""?void 0:[i,e.slice(o+1).trim()]}}return[e,""]}function B(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=En(e,t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var P={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"]},be=T(k({},P),{s:["-inset-inline-start"],e:["-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"]}),ye={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"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},$e={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ye=["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"],we=Object.assign({},...Ye.map(e=>({[e.replace(/ /,"-")]:e})),...Ye.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ve(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===44){o+="\\2c ";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 se=ve;function q(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Je(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>q(t)):[e]:[q(e)]}function An(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 ae(e){return e==null?"":An(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Se(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ke(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=k({},r);return Se(r)&&Se(n)&&Object.keys(n).forEach(i=>{Se(n[i])?i in r?o[i]=ke(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function G(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:G(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}return e}function Qe(e){return typeof e[0]=="string"}function et(e){return typeof e[0]=="string"}function E(e=[]){return Array.isArray(e)?e:[e]}function ce(e){return Array.from(new Set(e))}var jn=/^\[(.+?)~?="(.*)"\]$/,Vn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,U="$$shortcut-no-merge";function tt(e){return e.match(jn)}function Z(e=""){return Vn.test(e)}function rt(e){return typeof e=="function"?{match:e}:e}function Ce(e){return e.length===3}function nt(e){return e!=null}var Re=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){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.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 ot=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function it(e){return ot.lastIndex=0,e.replace(ot,(t,r,n,o)=>o.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var st=new Set;function at(e){st.has(e)||(console.warn("[unocss]",e),st.add(e))}function ct(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let a of o){let s=e[a](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}var zn=e=>e.split(/[\s'"`;>=]+/g).filter(Z),X={name:"split",order:0,extract({code:e}){return new Set(zn(e))}};function Pn(e){return E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var On={shortcuts:-1,default:0};function Te(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(E),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],i=Object.assign(On,...n.map(p=>p.layers),e.layers);function a(p){return ce([...o.flatMap(y=>E(y[p]||[])),...E(r[p]||[])])}let s=a("extractors");s.length||s.push(X),s.sort((p,y)=>(p.order||0)-(y.order||0));let l=a("rules"),u={},f=l.length;l.forEach((p,y)=>{Qe(p)&&(u[p[0]]=[y,p[1],p[2]],delete l[y])});let h=G([...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,y)=>ke(p,y),{}));return a("extendTheme").forEach(p=>p(h)),T(k({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:p=>p},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:h,rulesSize:f,rulesDynamic:l,rulesStaticMap:u,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),variants:a("variants").map(rt),shortcuts:Pn(a("shortcuts")),extractors:s})}var lt="0.27.5";var ut=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Te(t,r)}version=lt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Te(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let a=await i.extract(o);a==null||a.forEach(s=>n.add(s))}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var u;if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`,o=this._cache.get(n);if(o)return o;let i=t;for(let f of this.config.preprocess)i=f(t);if(this.isBlocked(i)){this.blocked.add(t),this._cache.set(n,null);return}let a=this.matchVariants(t,i);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(n,null);return}let s=this.makeContext(t,[r||a[0],a[1],a[2]]),l=this.expandShortcut(s.currentSelector,s);if(l){let f=await this.stringifyShortcuts(s.variantMatch,s,l[0],l[1]);if(f==null?void 0:f.length)return this._cache.set(n,f),f}else{let f=(u=await this.parseUtil(s.variantMatch,s))==null?void 0:u.map(h=>this.stringifyUtil(h)).filter(nt);if(f==null?void 0:f.length)return this._cache.set(n,f),f}this._cache.set(n,null)}async generate(t,{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:a=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(d=>s.add(d));let l=a?"":`
|
|
1
|
+
(()=>{var Ke=Object.defineProperty,xn=Object.defineProperties;var bn=Object.getOwnPropertyDescriptors;var ie=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var Ne=(e,t,r)=>t in e?Ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))Be.call(t,r)&&Ne(e,r,t[r]);if(ie)for(var r of ie(t))Ie.call(t,r)&&Ne(e,r,t[r]);return e},T=(e,t)=>xn(e,bn(t));var Ge=(e,t)=>{var r={};for(var n in e)Be.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ie)for(var n of ie(e))t.indexOf(n)<0&&Ie.call(e,n)&&(r[n]=e[n]);return r};var yn=(e,t)=>{for(var r in t)Ke(e,r,{get:t[r],enumerable:!0})};var $n={mid:"middle",base:"baseline",btm:"bottom"},qe=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":$n[e]||e})]],Ze=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var ge=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function xe(e=""){let t=wn(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)&&!(ge.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function _(e,t){let{components:r}=e,{alpha:n,type:o}=e;return n=t!=null?t:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,ge.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function wn(e){if(!e)return;let t=vn(e);if(t!=null||(t=Sn(e),t!=null)||(t=kn(e),t!=null)||(t=Rn(e),t!=null)||(t=Tn(e),t!=null))return t}function vn(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 Sn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function kn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=B(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 Cn=new RegExp(`^(${ge.join("|")})\\((.+)\\)$`,"i");function Rn(e){let t=e.match(Cn);if(!t)return;let[,r,n]=t,o=Xe(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Tn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Xe(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Xe(e){let t=B(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=B(t[r-1],"/",3);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 En(e,t){if(e=e.trim(),e==="")return;let r=e.length,n=0;for(let o=0;o<r;o++)switch(e[o]){case"(":n++;break;case")":if(--n<0)return;break;case t:if(n===0){let i=e.slice(0,o).trim();return i===""?void 0:[i,e.slice(o+1).trim()]}}return[e,""]}function B(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=En(e,t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var P={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"]},be=T(k({},P),{s:["-inset-inline-start"],e:["-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"]}),ye={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"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},$e={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ye=["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"],we=Object.assign({},...Ye.map(e=>({[e.replace(/ /,"-")]:e})),...Ye.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ve(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===44){o+="\\2c ";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 se=ve;function q(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Je(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>q(t)):[e]:[q(e)]}function An(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 ae(e){return e==null?"":An(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Se(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ke(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=k({},r);return Se(r)&&Se(n)&&Object.keys(n).forEach(i=>{Se(n[i])?i in r?o[i]=ke(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function G(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:G(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}return e}function Qe(e){return typeof e[0]=="string"}function et(e){return typeof e[0]=="string"}function E(e=[]){return Array.isArray(e)?e:[e]}function ce(e){return Array.from(new Set(e))}var jn=/^\[(.+?)~?="(.*)"\]$/,Vn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,U="$$shortcut-no-merge";function tt(e){return e.match(jn)}function Z(e=""){return Vn.test(e)}function rt(e){return typeof e=="function"?{match:e}:e}function Ce(e){return e.length===3}function nt(e){return e!=null}var Re=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){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.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 ot=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function it(e){return ot.lastIndex=0,e.replace(ot,(t,r,n,o)=>o.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var st=new Set;function at(e){st.has(e)||(console.warn("[unocss]",e),st.add(e))}function ct(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let a of o){let s=e[a](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}var zn=e=>e.split(/[\s'"`;>=]+/g).filter(Z),X={name:"split",order:0,extract({code:e}){return new Set(zn(e))}};function Pn(e){return E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var On={shortcuts:-1,default:0};function Te(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(E),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],i=Object.assign(On,...n.map(p=>p.layers),e.layers);function a(p){return ce([...o.flatMap(y=>E(y[p]||[])),...E(r[p]||[])])}let s=a("extractors");s.length||s.push(X),s.sort((p,y)=>(p.order||0)-(y.order||0));let l=a("rules"),u={},f=l.length;l.forEach((p,y)=>{Qe(p)&&(u[p[0]]=[y,p[1],p[2]],delete l[y])});let h=G([...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,y)=>ke(p,y),{}));return a("extendTheme").forEach(p=>p(h)),T(k({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:p=>p},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:h,rulesSize:f,rulesDynamic:l,rulesStaticMap:u,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),variants:a("variants").map(rt),shortcuts:Pn(a("shortcuts")),extractors:s})}var lt="0.27.6";var ut=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Te(t,r)}version=lt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Te(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let a=await i.extract(o);a==null||a.forEach(s=>n.add(s))}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var u;if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`,o=this._cache.get(n);if(o)return o;let i=t;for(let f of this.config.preprocess)i=f(t);if(this.isBlocked(i)){this.blocked.add(t),this._cache.set(n,null);return}let a=this.matchVariants(t,i);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(n,null);return}let s=this.makeContext(t,[r||a[0],a[1],a[2]]),l=this.expandShortcut(s.currentSelector,s);if(l){let f=await this.stringifyShortcuts(s.variantMatch,s,l[0],l[1]);if(f==null?void 0:f.length)return this._cache.set(n,f),f}else{let f=(u=await this.parseUtil(s.variantMatch,s))==null?void 0:u.map(h=>this.stringifyUtil(h)).filter(nt);if(f==null?void 0:f.length)return this._cache.set(n,f),f}this._cache.set(n,null)}async generate(t,{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:a=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(d=>s.add(d));let l=a?"":`
|
|
2
2
|
`,u=new Set(["default"]),f=new Set,h=new Map;await Promise.all(Array.from(s).map(async d=>{var x;if(f.has(d))return;let g=await this.parseToken(d);if(g!=null){f.add(d);for(let $ of g){let v=$[3]||"";h.has(v)||h.set(v,[]),h.get(v).push($),((x=$[4])==null?void 0:x.layer)&&u.add($[4].layer)}}})),o&&this.config.preflights.forEach(d=>{d.layer&&u.add(d.layer)});let p={},y=this.config.sortLayers(Array.from(u).sort((d,g)=>{var x,$;return((x=this.config.layers[d])!=null?x:0)-(($=this.config.layers[g])!=null?$:0)||d.localeCompare(g)})),R={};if(o){let d={generator:this,theme:this.config.theme};R=Object.fromEntries(await Promise.all(y.map(async g=>{let $=(await Promise.all(this.config.preflights.filter(v=>(v.layer||"default")===g).map(async v=>await v.getCSS(d)))).filter(Boolean).join(l);return[g,$]})))}let F=d=>{if(p[d])return p[d];let g=Array.from(h).sort((x,$)=>{var v,A,m;return((v=this.parentOrders.get(x[0]))!=null?v:0)-((A=this.parentOrders.get($[0]))!=null?A:0)||((m=x[0])==null?void 0:m.localeCompare($[0]||""))||0}).map(([x,$])=>{let v=$.length,A=$.filter(b=>{var S;return(((S=b[4])==null?void 0:S.layer)||"default")===d}).sort((b,S)=>{var L,D,V;return b[0]-S[0]||(((L=b[4])==null?void 0:L.sort)||0)-(((D=S[4])==null?void 0:D.sort)||0)||((V=b[1])==null?void 0:V.localeCompare(S[1]||""))||0}).map(b=>{var S;return[b[1]?Fn(b[1],n):b[1],b[2],!!((S=b[4])==null?void 0:S.noMerge)]}).map(b=>[b[0]==null?b[0]:[b[0]],b[1],b[2]]);if(!A.length)return;let m=A.reverse().map(([b,S,L],D)=>{if(!L&&b&&this.config.mergeSelectors)for(let V=D+1;V<v;V++){let K=A[V];if(K&&!K[2]&&K[0]&&K[1]===S)return K[0].push(...b),null}return b?`${[...new Set(b)].join(`,${l}`)}{${S}}`:S}).filter(Boolean).reverse().join(l);return x?`${x}{${l}${m}${l}}`:m}).filter(Boolean).join(l);return o&&(g=[R[d],g].filter(Boolean).join(l)),p[d]=!a&&g?`/* layer: ${d} */${l}${g}`:g},w=(d=y,g)=>d.filter(x=>!(g==null?void 0:g.includes(x))).map(x=>F(x)||"").filter(Boolean).join(l);return{get css(){return w()},layers:y,getLayers:w,getLayer:F,matched:f}}matchVariants(t,r){let n=new Set,o=[],i=r||t,a=!1,s={rawSelector:t,theme:this.config.theme,generator:this};for(;;){a=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let u=l.match(i,s);if(!!u&&(typeof u=="string"&&(u={matcher:u}),u)){i=u.matcher,Array.isArray(u.parent)&&this.parentOrders.set(u.parent[0],u.parent[1]),o.push(u),n.add(l),a=!0;break}}if(!a)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o]}applyVariants(t,r=t[4],n=t[1]){let o=[...r].sort((s,l)=>(s.order||0)-(l.order||0)),i=o.reduce((s,l)=>{var u;return((u=l.body)==null?void 0:u.call(l,s))||s},t[2]),a={selector:o.reduce((s,l)=>{var u;return((u=l.selector)==null?void 0:u.call(l,s,i))||s},_n(n)),entries:i,parent:o.reduce((s,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||s,void 0),layer:o.reduce((s,l)=>l.layer||s,void 0),sort:o.reduce((s,l)=>l.sort||s,void 0)};for(let s of this.config.postprocess)s(a);return a}constructCustomCSS(t,r,n){r=q(r);let{selector:o,entries:i,parent:a}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),s=`${o}{${ae(i)}}`;return a?`${a}{${s}}`:s}async parseUtil(t,r,n=!1){var f,h;let[o,i,a]=typeof t=="string"?this.matchVariants(t):t,s=this.config.rulesStaticMap[i];if(s&&s[1]&&(n||!((f=s[2])==null?void 0:f.internal)))return[[s[0],o,q(s[1]),s[2],a]];r.variantHandlers=a;let{rulesDynamic:l,rulesSize:u}=this.config;for(let p=u;p>=0;p--){let y=l[p];if(!y||((h=y[2])==null?void 0:h.internal)&&!n)continue;let[R,F,w]=y,d=i.match(R);if(!d)continue;let g=await F(d,r);if(!g)continue;if(typeof g=="string")return[[p,g,w]];let x=Je(g).filter($=>$.length);if(x.length)return x.map($=>[p,o,$,w,a])}}stringifyUtil(t){var p;if(!t)return;if(Ce(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:o,layer:i,sort:a}=this.applyVariants(t),s=ae(n);if(!s)return;let y=(p=t[3])!=null?p:{},{layer:l,sort:u}=y,f=Ge(y,["layer","sort"]),h=T(k({},f),{layer:i!=null?i:l,sort:a!=null?a:u});return[t[0],r,s,o,h]}expandShortcut(t,r,n=3){if(n===0)return;let o,i;for(let a of this.config.shortcuts)if(et(a)){if(a[0]===t){o=o||a[2],i=a[1];break}}else{let s=t.match(a[0]);if(s&&(i=a[1](s,r)),i){o=o||a[2];break}}if(typeof i=="string"&&(i=it(i).split(/\s+/g)),!!i)return[i.flatMap(a=>{var s;return((s=this.expandShortcut(a,r,n-1))==null?void 0:s[0])||[a]}).filter(a=>a!==""),o]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var u;let i=new Re,a=(await Promise.all(ce(n).map(async f=>{let h=await this.parseUtil(f,r,!0);return h||at(`unmatched utility "${f}" in shortcut "${t[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((f,h)=>f[0]-h[0]),[s,,l]=t;for(let f of a){if(Ce(f))continue;let{selector:h,entries:p,parent:y,sort:R}=this.applyVariants(f,[...f[4],...l],s);i.getFallback(h,y,[[],f[0]])[0].push([p,!!((u=f[3])==null?void 0:u.noMerge),R!=null?R:0])}return i.map(([f,h],p,y)=>{let R=(w,d,g)=>{let x=Math.max(...g.map(v=>v[1])),$=g.map(v=>v[0]);return(w?[$.flat(1)]:$).map(v=>{let A=ae(v);if(A)return[h,p,A,y,T(k({},o),{noMerge:d,sort:x})]})};return[[f.filter(([,w])=>w).map(([w,,d])=>[w,d]),!0],[f.filter(([,w])=>!w).map(([w,,d])=>[w,d]),!1]].map(([w,d])=>[...R(!1,d,w.filter(([g])=>g.some(x=>x[0]===U))),...R(!0,d,w.filter(([g])=>g.every(x=>x[0]!==U)))])}).flat(2).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function pt(e,t){return new ut(e,t)}var dt=/ \$\$ /,Mn=e=>e.match(dt);function Fn(e,t){return Mn(e)?e.replace(dt,t?` ${t} `:" "):t?`${t} ${e}`:e}var ft=/^\[(.+?)(~?=)"(.*)"\]$/;function _n(e){return ft.test(e)?e.replace(ft,(t,r,n,o)=>`[${se(r)}${n}"${se(o)}"]`):`.${se(e)}`}var je={};yn(je,{auto:()=>Hn,bracket:()=>qn,bracketOfColor:()=>Zn,bracketOfLength:()=>Xn,cssvar:()=>Yn,degree:()=>Qn,fraction:()=>Gn,global:()=>eo,number:()=>Bn,numberWithUnit:()=>Wn,percent:()=>In,properties:()=>to,px:()=>Kn,rem:()=>Nn,time:()=>Jn});var Ln=["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","backround-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"],Ee=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Dn=/^(-?[0-9.]+)$/i,mt=/^(px)$/i;function j(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Wn(e){let t=e.match(Ee);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${j(o)}${n}`}function Hn(e){if(e==="auto"||e==="a")return"auto"}function Nn(e){if(e.match(mt))return`1${e}`;let t=e.match(Ee);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${j(o)}${n}`:`${j(o/4)}rem`}function Kn(e){if(e.match(mt))return`1${e}`;let t=e.match(Ee);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${j(o)}${n}`:`${j(o)}px`}function Bn(e){if(!Dn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return j(t)}function In(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${j(t/100)}`}function Gn(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${j(n*100)}%`}function Ae(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n=e.match(/^\[(color|length):/i);if(n?t&&n[1]===t&&(r=e.slice(n[0].length,-1)):r=e.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,o=>o.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function qn(e){return Ae(e)}function Zn(e){return Ae(e,"color")}function Xn(e){return Ae(e,"length")}function Yn(e){if(e.match(/^\$\S/))return`var(--${ve(e.slice(1))})`}function Jn(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${j(o)}${n}`:`${j(o)}ms`}function Qn(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${j(o)}${n}`:`${j(o)}deg`}function eo(e){if(["inherit","initial","revert","unset"].includes(e))return e}function to(e){for(let t of e.split(","))if(!Ln.includes(t))return;return e}var c=ct(je);var W=(e,t)=>{let r=new RegExp(`^${I(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}}},Y=(e,t)=>{let r=new RegExp(`^${I(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}}};var z=e=>([t,r,n],{theme:o})=>{var a,s;let i=(s=(a=o.spacing)==null?void 0:a[n||"DEFAULT"])!=null?s:c.bracket.cssvar.auto.fraction.rem(n);if(i!=null)return P[r].map(l=>[`${e}${l}`,i])},Ve=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},le=(e,t)=>{let r=e.split(/(?:\/|:)/),n,o;r[0]==="[color"?(n=r.slice(0,2).join(":"),o=r[2]):[n,o]=r;let i=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[a]=i;if(!a)return;let s,l=c.bracketOfColor(n),u=l||n;u.startsWith("#")?s=u:u.startsWith("hex-")?s=`#${u.slice(4)}`:n.startsWith("$")&&(s=c.cssvar(n)),s=s||l;let f="DEFAULT";if(!s){let h,[p]=i.slice(-1);p.match(/^\d+$/)?(f=p,h=Ve(t,i.slice(0,-1))):(h=Ve(t,i),!h&&i.length<=2&&([,f=f]=i,h=Ve(t,[a]))),typeof h=="string"?s=h:f&&h&&(s=h[f])}return{opacity:o,name:a,no:f,color:s,cssColor:xe(s),alpha:c.bracket.cssvar.percent(o!=null?o:"")}},C=(e,t)=>([,r],{theme:n})=>{var l;let o=le(r,n);if(!o)return;let{alpha:i,color:a,cssColor:s}=o;if(s)return i!=null?{[e]:_(s,i)}:{[`--un-${t}-opacity`]:(l=s.alpha)!=null?l:1,[e]:_(s,`var(--un-${t}-opacity)`)};if(a)return{[e]:a.replace("%alpha",`${i!=null?i:1}`)}},fe=(e,t)=>{let r=[];e=E(e);for(let n=0;n<e.length;n++){let o=B(e[n]," ",6);if(!o||o.length<3)return e;let i=xe(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${_(i)})`)}return r},ht=(e,t)=>{var r;return e!=null&&!!((r=le(e,t))==null?void 0:r.color)};var gt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}}],[/^outline-(?:color-)?(.+)$/,C("outline-color","outline-color")],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e})],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],xt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ro=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},bt=[[/^will-change-(.+)/,([,e])=>({"will-change":ro(e)})]];var yt=[[/^(?:border|b)()(?:-(.+))?$/,J],[/^(?:border|b)-([xy])(?:-(.+))?$/,J],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,J],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,J],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,J],[/^(?:border|b)-()(?:width|size)-(.+)$/,H],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,H],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,H],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,H],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,H],[/^(?:border|b)-()(?:color-)?(.+)$/,Q],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,Q],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,Q],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,Q],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,Q],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ee],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ee],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ee],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ee],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ee],[/^(?:border-)?(?:rounded|rd)()(?:-(.+))?$/,te],[/^(?:border-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,te],[/^(?:border-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,te],[/^(?:border-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,te],[/^(?:border-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,te],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],no=e=>([,t],r)=>{var s,l;let n=le(t,r);if(!n)return;let{alpha:o,color:i,cssColor:a}=n;if(a)return o!=null?{[`border${e}-color`]:_(a,o)}:e===""?{"--un-border-opacity":(s=a.alpha)!=null?s:1,[`border${e}-color`]:_(a,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(l=a.alpha)!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:_(a,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:i.replace("%alpha",`${o!=null?o:1}`)}};function J(e,t){let r=H(e,t);if(r)return[...r,["border-style","solid"]]}function H([,e="",t],{theme:r}){var o,i;let n=(i=(o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])!=null?i:c.bracket.cssvar.px(t||"1");if(e in P&&n!=null)return P[e].map(a=>[`border${a}-width`,n])}function Q([,e="",t],{theme:r}){if(e in P&&ht(t,r))return Object.assign({},...P[e].map(n=>no(n)(["",t],r)))}function ee([,e="",t]){let r=c.bracket.percent(t);if(e in P&&r!=null)return P[e].map(n=>[`--un-border${n}-opacity`,r])}function te([,e="",t],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t||"DEFAULT"])||c.bracket.cssvar.fraction.rem(t||"1");if(e in ye&&n!=null)return ye[e].map(i=>[`border${i}-radius`,n])}var $t=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],wt=[[/^(?:text|color|c)-(.+)$/,C("color","text")],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent(e)})]],vt=[[/^bg-(.+)$/,C("background-color","bg")],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)})]];var kt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},St=e=>{var t;return(t=c.properties(e))!=null?t:kt[e]},Ct=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o,i;let n=e!=null?St(e):[kt.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let a=(i=(o=r.duration)==null?void 0:o[t||"DEFAULT"])!=null?i:c.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":a}}}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-duration":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:c.bracket.cssvar.time(e)}}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-delay":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:c.bracket.cssvar.time(e)}}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,n;return{"transition-timing-function":(n=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?n:c.bracket.cssvar(e)}}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||St(e)})],["transition-none",{transition:"none"}]];var Rt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^flex-(\[.+\])$/,([,e])=>({flex:c.bracket(e).replace(/\d+\/\d+/,t=>c.fraction(t))})],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>{var r,n;return{"flex-basis":(n=(r=t.spacing)==null?void 0:r[e])!=null?n:c.bracket.cssvar.auto.fraction.rem(e)}}],["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"}]];var oo={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Tt=[[/^font-(\w+)$/,([,e],{theme:t})=>{var r;return{"font-family":(r=t.fontFamily)==null?void 0:r[e]}}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=E((n=t.fontSize)==null?void 0:n[e]);if(r==null?void 0:r[0]){let[o,i="1"]=r;return{"font-size":o,"line-height":i}}return{"font-size":c.bracketOfLength.rem(e)}}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var o,i;let r=E((o=t.fontSize)==null?void 0:o[e]),n=(i=r==null?void 0:r[0])!=null?i:c.bracket.cssvar.rem(e);if(n!=null)return{"font-size":n}}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":oo[e]||c.number(e)})],[/^(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.bracket.cssvar.rem(e)}}],[/^tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||c.bracket.cssvar.rem(e)}}],[/^word-spacing-(.+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||c.bracket.cssvar.rem(e)}}]],Et=[[/^tab(?:-(.+))?$/,([,e])=>{let t=c.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],At=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.fraction.rem(e)}}]],jt=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.px(e)}}],[/^text-stroke-(.+)$/,C("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)})]],Vt=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":fe(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(e)}}],[/^text-shadow-color-(.+)$/,C("--un-text-shadow-color","text-shadow")],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent(e)})]];var zt={"":"",x:"column-",y:"row-"},Pt=([,e="",t],{theme:r})=>{var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:c.bracket.cssvar.rem(t);if(n!=null)return{[`grid-${zt[e]}gap`]:n,[`${zt[e]}gap`]:n}},Ot=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Pt],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Pt]];var O=e=>e.replace("col","column"),ze=e=>e[0]==="r"?"Row":"Column",io=(e,t,r)=>{var o;let n=(o=t[`gridAuto${ze(e)}`])==null?void 0:o[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 c.bracket.cssvar.auto.rem(r)},Ut=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-${O(e)}`]:(o=(n=r[`grid${ze(e)}`])==null?void 0:n[t])!=null?o:c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${O(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${O(e)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>{var r;return{[`grid-${O(e)}-start`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${O(e)}-end`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${O(e)}`]:io(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":c.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,e])=>({"grid-auto-flow":O(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-template-${O(e)}`]:(o=(n=r[`gridTemplate${ze(e)}`])==null?void 0:n[t])!=null?o:c.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${O(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${O(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Mt=["auto","hidden","clip","visible","scroll"],Ft=[[/^(?:overflow|of)-(.+)$/,([,e])=>Mt.includes(e)?{overflow:e}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Mt.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Oe=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],_t=[["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-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["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"}]],Lt=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Dt=[["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"}],["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"}],["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"}]],Wt=[["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"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["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"}]];function Pe(e,{theme:t}){var r,n;return(n=(r=t.spacing)==null?void 0:r[e])!=null?n:c.bracket.cssvar.auto.fraction.rem(e)}function ue([,e,t],r){let n=Pe(t,r);if(n!=null&&e in be)return be[e].map(o=>[o.slice(1),n])}var Ht=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Pe(e,t)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,ue],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ue],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ue],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ue],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Pe(t,r)})]],Nt=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],Kt=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)})]],Bt=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var pe="var(--un-empty,/*!*/ /*!*/)",It=[["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:c.bracket.cssvar(e)||e})]],Gt=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],qt=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],Zt=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Xt=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Yt=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Jt=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e})]],Qt=[[/^content-\[(.+)\]$/,([,e])=>({content:`"${e}"`})],["content-empty",{content:'""'}],["content-none",{content:'""'}]],er=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],tr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],rr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],nr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],or=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var ir=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var n,o;let r=(o=(n=t.ringWidth)==null?void 0:n[e||"DEFAULT"])!=null?o:c.px(e||"1");if(r)return[{[U]:"","--un-ring-inset":pe,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--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, 0 0 #0000)"}]}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>{var r,n;return{"--un-ring-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"--un-ring-offset-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}}],[/^ring-(.+)$/,C("--un-ring-color","ring")],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)})],[/^ring-offset-(.+)$/,C("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)})],["ring-inset",{"--un-ring-inset":"inset"}]];var sr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return[{[U]:"","--un-shadow-inset":pe,"--un-shadow":"0 0 #0000"},{"--un-shadow":fe(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]}],[/^shadow-(.+)$/,C("--un-shadow-color","shadow")],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent(e)})],["shadow-inset",{"--un-shadow-inset":"inset"}]];var so={h:"height",w:"width",inline:"inline-size",block:"block-size"};function re(e,t){return`${e||""}${so[t]}`}function ar(e,t,r,n){var a;let o=re(e,t).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),i=(a=r[o])==null?void 0:a[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.auto.fraction.rem(n)}var cr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[re(e,t)]:ar(e,t,n,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[re(e,t)]:ar(e,t,n,r)})],[/^(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[re(e,t)]:(o=n.verticalBreakpoints)==null?void 0:o[r]}}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[re(e,t)]:(o=n.breakpoints)==null?void 0:o[r]}}]];function ao(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(e)}var lr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":ao(e)})]];var fr=[[/^pa?()-?(-?.+)$/,z("padding")],[/^p-?([xy])-?(-?.+)$/,z("padding")],[/^p-?([rltbse])-?(-?.+)$/,z("padding")],[/^p-(block|inline)-(-?.+)$/,z("padding")],[/^p-?([bi][se])-?(-?.+)$/,z("padding")]],ur=[[/^ma?()-?(-?.+)$/,z("margin")],[/^m-?([xy])-?(-?.+)$/,z("margin")],[/^m-?([rltbse])-?(-?.+)$/,z("margin")],[/^m-(block|inline)-(-?.+)$/,z("margin")],[/^m-?([bi][se])-?(-?.+)$/,z("margin")]];var co={"--un-transform":["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(" ")},hr={"--un-transform":["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(" ")},N=T(k({"--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},hr),{[U]:""}),gr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=we[e])!=null?t:c.bracket.cssvar(e)}}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=c.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=c.bracket.cssvar(e))!=null?r:e.length>=3?we[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,pr],[/^(?:transform-)?translate-([xyz])-(.+)$/,pr],[/^(?:transform-)?rotate-()(.+)$/,mr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,mr],[/^(?:transform-)?skew-([xy])-(.+)$/,lo],[/^(?:transform-)?scale-()(.+)$/,dr],[/^(?:transform-)?scale-([xyz])-(.+)$/,dr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[N,{transform:"var(--un-transform)"}]],["transform-gpu",co],["transform-cpu",hr],["transform-none",{transform:"none"}]];function pr([,e,t],{theme:r}){var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:c.bracket.cssvar.fraction.rem(t);if(n!=null)return[N,[...$e[e].map(a=>[`--un-translate${a}`,n]),["transform","var(--un-transform)"]]]}function dr([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[N,[...$e[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function mr([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?[N,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[N,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function lo([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[N,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var fo={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",flex:"flex",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"},xr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=fo[e];if(r)return{[r]:c.cssvar(t)}}]],br=[[/^\[([^:]+):(.+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var yr=[[/^(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 $r=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e})],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"text-decoration-thickness":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e})],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=C("text-decoration-color","line")(e,t);if(r)return k({"-webkit-text-decoration-color":r["text-decoration-color"]},r)}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)})],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"text-underline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.auto.bracket.cssvar.px(e)}}],[/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)$/,([,e])=>({"text-decoration-style":e})],["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var wr=[[/^fill-(.+)$/,C("fill","fill")],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)})],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"stroke-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.fraction.px.number(e)}}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.cssvar.number(e)})],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"stroke-dashoffset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px.numberWithUnit(e)}}],[/^stroke-(.+)$/,C("stroke","stroke")],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)})],["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 vr=[xr,br,fr,ur,It,$t,vt,wr,yt,Qt,Tt,Et,At,tr,$r,jt,Vt,rr,Ze,wt,nr,or,sr,ir,Rt,Ut,Ot,Oe,cr,lr,qt,Gt,Zt,Xt,qe,Yt,Jt,er,Ft,gt,xt,Oe,Lt,_t,Dt,Wt,Ht,Nt,Kt,Bt,Ct,gr,bt,yr].flat(1);var Ue={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"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f"},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(Ue).forEach(e=>{typeof e!="string"&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var Sr={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(",")},kr={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"]},Cr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Rr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Tr={DEFAULT:["0 0 1px rgba(0,0,0,0.2)","0 0 1px rgba(1,0,5,0.1)"],none:"0 0 #0000",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)"]},Er={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Me={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Ar=Me;var Fe={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},jr=k({},Fe),Vr={DEFAULT:"1px",none:"0px"},zr={DEFAULT:"1rem",none:"0rem",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"},Pr={DEFAULT:"150ms",none:"0ms"},Or={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Ur={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 #0000",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)"},Mr={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)"},Fr={DEFAULT:"1px",none:"0px"};var _r={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Lr={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 #0000"};var de={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},_e=T(k({auto:"auto"},de),{screen:"100vw"}),ne=T(k({none:"none"},de),{screen:"100vw"}),Le=T(k({auto:"auto"},de),{screen:"100vh"}),oe=T(k({none:"none"},de),{screen:"100vh"});var Dr={width:_e,height:Le,maxWidth:ne,maxHeight:oe,minWidth:ne,minHeight:oe,inlineSize:_e,blockSize:Le,maxInlineSize:ne,maxBlockSize:oe,minInlineSize:ne,minBlockSize:oe,colors:Ue,fontFamily:Sr,fontSize:kr,breakpoints:Fe,verticalBreakpoints:jr,borderRadius:Or,lineHeight:Er,letterSpacing:Me,wordSpacing:Ar,boxShadow:Ur,textIndent:Cr,textShadow:Tr,textStrokeWidth:Rr,blur:_r,dropShadow:Lr,easing:Mr,lineWidth:Vr,spacing:zr,duration:Pr,ringWidth:Fr};var De={},Wr=(e,{theme:t})=>{let r=Object.entries(t.breakpoints||{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){De[n]||(De[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let a=e.match(De[n]);if(!a)continue;let[,s]=a,l=e.slice(s.length);if(l==="container")continue;let u="min",f=1e3;return s.startsWith("lt-")?(u="max",f-=i+1):f+=i+1,s.startsWith("at-")&&i<r.length-1?{matcher:l,parent:[`@media (min-width: ${o}) and (max-width: ${r[i+1][1]})`,f]}:{matcher:l,parent:[`@media (${u}-width: ${o})`,f]}}};var M=(e,t,r)=>{let n=e?new RegExp(`^${t}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${t}(?:-\\[(.+?)\\])?[:-]`);return o=>{let i=o.match(n);if(i)return{matcher:o.slice(i[0].length),selector:a=>{var s;return r.replace("&&-s",a).replace("&&-c",(s=i[1])!=null?s:"*")}}}},Hr=[M(!1,"all","&&-s &&-c"),M(!1,"children","&&-s>&&-c"),M(!1,"next","&&-s+&&-c"),M(!1,"sibling","&&-s+&&-c"),M(!1,"siblings","&&-s~&&-c"),M(!0,"group","&&-c &&-s"),M(!0,"parent","&&-c>&&-s"),M(!0,"previous","&&-c+&&-s"),M(!0,"peer","&&-c~&&-s")];var Nr=Y("print","@media print"),Kr=(e,{theme:t})=>{var n,o;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let i=(o=(n=t.media)==null?void 0:n[r[1]])!=null?o:`(--${r[1]})`;return{matcher:e.slice(r[0].length),parent:`@media ${i}`}}};var Br=(e={})=>(e==null?void 0:e.dark)==="class"?[W("dark",t=>`.dark $$ ${t}`),W("light",t=>`.light $$ ${t}`)]:[Y("dark","@media (prefers-color-scheme: dark)"),Y("light","@media (prefers-color-scheme: light)")];var Ir=[W("rtl",e=>`[dir="rtl"] $$ ${e}`),W("ltr",e=>`[dir="ltr"] $$ ${e}`)];var Gr={match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},qr={match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},Zr={match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},Xr={match(e){if(e.startsWith("!"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{r[1]&&(r[1]+=" !important")}),t)}}},Yr={match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{var n,o;r[0].startsWith("--un-scale")||((n=r[1])==null?void 0:n.toString())==="0"||(r[1]=(o=r[1])==null?void 0:o.toString().replace(/[0-9.]+(?:[a-z]+|%)?/,i=>`-${i}`))}),t)}}};var he=Object.fromEntries(["any-link","link","visited","target",["open","[open]"],"hover","active","focus-visible","focus-within","focus","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","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"].map(E)),Jr=Object.fromEntries(["placeholder","before","after","first-letter","first-line","selection","marker",["file","::file-selector-button"]].map(E)),uo=["not","is","where","has"],po=Object.keys(Jr).join("|"),We=Object.keys(he).join("|"),Qr=uo.join("|"),mo=/(part-\[(.+)]:)(.+)/,ho=new RegExp(`^(${po})[:-]`),go=new RegExp(`^(${We})[:-]`),xo=new RegExp(`^(${Qr})-(${We})[:-]`),en=e=>{if(e==="active")return 1},me=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${Qr})-)?(${We}))[:-]`),o=new RegExp(`^${I(t)}:`);return i=>{let a=i.match(n);if(a){let s=he[a[3]]||`:${a[3]}`;return a[2]&&(s=`:${a[2]}(${s})`),{matcher:i.slice(a[0].length),selector:l=>o.test(l)?l.replace(o,`${t}${s}:`):`${t}${s}${r}${l}`,sort:en(a[3])}}}},tn=e=>{let t=e.match(ho);if(t){let r=Jr[t[1]]||`::${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`}}},rn={match:e=>{let t=e.match(go);if(t){let r=he[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`,sort:en(t[1])}}},multiPass:!0},nn={match:e=>{let t=e.match(xo);if(t){let r=t[1],n=he[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0},on=(e={})=>{let t=!!(e==null?void 0:e.attributifyPseudo);return[{match:me("group",t?'[group=""]':".group"," "),multiPass:!0},{match:me("peer",t?'[peer=""]':".peer","~"),multiPass:!0},{match:me("parent",t?'[parent=""]':".parent",">"),multiPass:!0},{match:me("previous",t?'[previous=""]':".previous","+"),multiPass:!0}]},sn={match:e=>{let t=e.match(mo);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var an=e=>[Gr,qr,Yr,Xr,Nr,Kr,Wr,...Hr,rn,nn,...on(e),tn,sn,...Br(e),...Ir,Zr];var bo=(e={})=>{var t,r;return e.dark=(t=e.dark)!=null?t:"class",e.attributifyPseudo=(r=e.attributifyPseudo)!=null?r:!1,{name:"@unocss/preset-mini",theme:Dr,rules:vr,variants:an(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?yo(e.variablePrefix):void 0}},cn=bo;function yo(e){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}`))})}}var $o=["v-bind:",":"],ln=/[\s'"`;]+/g,wo=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,vo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,fn=e=>{var n,o;let t=(n=e==null?void 0:e.ignoreAttributes)!=null?n:[],r=(o=e==null?void 0:e.nonValuedAttribute)!=null?o:!0;return{name:"attributify",extract({code:i}){let a=Array.from(i.matchAll(wo)).flatMap(s=>Array.from((s[1]||"").matchAll(vo))).flatMap(([,s,l,u])=>{if(t.includes(s))return[];for(let f of $o)if(s.startsWith(f)){s=s.slice(f.length);break}return u?["class","className"].includes(s)?u.split(ln).filter(Z):u.split(ln).filter(Boolean).map(f=>`[${s}~="${f}"]`):Z(s)&&r!==!1?[`[${s}=""]`]:[]});return new Set(a)}}};var So=/^(?!\[(?:[^:]+):(?:.+)\]$)(.+:!?)?(.*)$/,un=(e={})=>{var n,o;let t=(n=e.prefix)!=null?n:"un-",r=(o=e.prefixedOnly)!=null?o:!1;return i=>{let a=tt(i);if(!a)return;let s=a[1];if(s.startsWith(t))s=s.slice(t.length);else if(r)return;let l=a[2],[,u="",f=l]=l.match(So)||[];return f==="~"||!f?`${u}${s}`:`${u}${s}-${f}`}};var ko=(e={})=>{var n,o,i,a,s;e.strict=(n=e.strict)!=null?n:!1,e.prefix=(o=e.prefix)!=null?o:"un-",e.prefixedOnly=(i=e.prefixedOnly)!=null?i:!1,e.nonValuedAttribute=(a=e.nonValuedAttribute)!=null?a:!0,e.ignoreAttributes=(s=e.ignoreAttributes)!=null?s:[];let t=[un(e)],r=[fn(e)];return e.strict||r.unshift(X),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e}},pn=ko;var Co=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),dn=e=>e.charAt(0).toUpperCase()+e.slice(1),mn=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),hn=["Webkit","Moz","ms"];function gn(e){let t={};function r(n){let o=t[n];if(o)return o;let i=Co(n);if(i!=="filter"&&i in e)return t[n]=mn(i);i=dn(i);for(let a=0;a<hn.length;a++){let s=`${hn[a]}${i}`;if(s in e)return t[n]=mn(dn(s))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function He(e={}){var v,A;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},r=t==null?void 0:t.runtime,n=Object.assign(e.defaults||{},r);if(r==null?void 0:r.autoPrefix){let m=n.postprocess;m||(m=[]),Array.isArray(m)||(m=[m]),m.unshift(gn(document.createElement("div").style)),n.postprocess=m}(v=r==null?void 0:r.configResolved)==null||v.call(r,t,n);let o,i=!0,a,s=pt(t,n),l=new Set,u,f=[],h=()=>new Promise(m=>{f.push(m),u!=null&&clearTimeout(u),u=setTimeout(()=>p().then(()=>{let b=f;f=[],b.forEach(S=>S())}),0)});async function p(){let m=await s.generate(l);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=m.css}async function y(m){await s.applyExtractors(m,void 0,l),await h()}async function R(){let m=document.body&&document.body.outerHTML;m&&await y(m)}let F=new MutationObserver(m=>{i||m.forEach(b=>{let S=b.target;if(S===o||a&&!a(S))return;let L=Array.from(S.attributes).map(V=>V.value?`${V.name}="${V.value}"`:V.name).join(" "),D=`<${S.tagName.toLowerCase()} ${L}>`;y(D)})}),w=!1;function d(){if(!w)return;let m=document.documentElement||document.body;!m||(F.observe(m,{childList:!0,subtree:!0,attributes:!0}),w=!0)}function g(){R(),d()}function x(){g(),window.addEventListener("load",g),window.addEventListener("DOMContentLoaded",g)}let $=window.__unocss_runtime=window.__unocss_runtime={version:s.version,uno:s,async extract(m){if(typeof m=="string")return await y(m);m.forEach(b=>l.add(b)),await p()},extractAll:R,inspect(m){a=m},toggleObserver(m){m===void 0?i=!i:i=!!m,!w&&!i&&x()}};((A=r==null?void 0:r.ready)==null?void 0:A.call(r,$))!==!1&&(i=!1,x())}He({defaults:{presets:[cn(),pn()]}});})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.6",
|
|
4
4
|
"description": "CSS-in-JS Runtime for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"unpkg": "./uno.global.js",
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@unocss/core": "0.27.
|
|
38
|
-
"@unocss/preset-attributify": "0.27.
|
|
39
|
-
"@unocss/preset-uno": "0.27.
|
|
37
|
+
"@unocss/core": "0.27.6",
|
|
38
|
+
"@unocss/preset-attributify": "0.27.6",
|
|
39
|
+
"@unocss/preset-uno": "0.27.6"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "pnpm run build:node && pnpm run build:cdn",
|
package/uno.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var ee=Object.defineProperty,fo=Object.defineProperties;var po=Object.getOwnPropertyDescriptors;var pt=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var te=(t,e,r)=>e in t?ee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))re.call(e,r)&&te(t,r,e[r]);if(pt)for(var r of pt(e))ne.call(e,r)&&te(t,r,e[r]);return t},z=(t,e)=>fo(t,po(e));var oe=(t,e)=>{var r={};for(var n in t)re.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&pt)for(var n of pt(t))e.indexOf(n)<0&&ne.call(t,n)&&(r[n]=t[n]);return r};var uo=(t,e)=>{for(var r in e)ee(t,r,{get:e[r],enumerable:!0})};var kt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=mo(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,a=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(a)&&o==null)&&!(kt.includes(a)&&![1,3].includes(n.length)))return{type:a,components:n,alpha:o}}function M(t,e){let{components:r}=t,{alpha:n,type:o}=t;return n=e!=null?e:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,kt.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function mo(t){if(!t)return;let e=go(t);if(e!=null||(e=bo(t),e!=null)||(e=ho(t),e!=null)||(e=yo(t),e!=null)||(e=vo(t),e!=null))return e}function go(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function bo(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function ho(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=Q(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 xo=new RegExp(`^(${kt.join("|")})\\((.+)\\)$`,"i");function yo(t){let e=t.match(xo);if(!e)return;let[,r,n]=e,o=ae(`${r} ${n}`);if(o){let{alpha:a,components:[s,...c]}=o;return{type:s,components:c,alpha:a}}}function vo(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ae(e[1]);if(r){let{alpha:n,components:[o,...a]}=r;return{type:o,components:a,alpha:n}}}function ae(t){let e=Q(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let n=Q(e[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function ko(t,e){if(t=t.trim(),t==="")return;let r=t.length,n=0;for(let o=0;o<r;o++)switch(t[o]){case"(":n++;break;case")":if(--n<0)return;break;case e:if(n===0){let a=t.slice(0,o).trim();return a===""?void 0:[a,t.slice(o+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let a=ko(t,e);if(!a)return;let[s,c]=a;n.push(s),t=c}if(n.length>0)return n}var O={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"]},$t=z(S({},O),{s:["-inset-inline-start"],e:["-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"]}),wt={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"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},St={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},ie=["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"],F=Object.assign({},...ie.map(t=>({[t.replace(/ /,"-")]:t})),...ie.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ct(t){let e=t.length,r=-1,n,o="",a=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&a===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var ut=Ct;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function se(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function $o(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function dt(t){return t==null?"":$o(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Rt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Tt(t,e){let r=t,n=e;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=S({},r);return Rt(r)&&Rt(n)&&Object.keys(n).forEach(a=>{Rt(n[a])?a in r?o[a]=Tt(r[a],n[a]):Object.assign(o,{[a]:n[a]}):Object.assign(o,{[a]:n[a]})}),o}function et(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?et(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?et(n):n;return r}return t}function ce(t){return typeof t[0]=="string"}function le(t){return typeof t[0]=="string"}function V(t=[]){return Array.isArray(t)?t:[t]}function mt(t){return Array.from(new Set(t))}var wo=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function fe(t=""){return wo.test(t)}function pe(t){return typeof t=="function"?{match:t}:t}function zt(t){return t.length===3}function ue(t){return t!=null}var Et=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){var n;return(n=this._map.get(e))==null?void 0:n.has(r)}delete(e,r){var n;return((n=this._map.get(e))==null?void 0:n.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,a])=>e(a,r,o)))}};var de=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function me(t){return de.lastIndex=0,t.replace(de,(e,r,n,o)=>o.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var ge=new Set;function be(t){ge.has(t)||(console.warn("[unocss]",t),ge.add(t))}function he(t){let e=function(n){var a;let o=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of o){let c=t[s](n);if(c!=null)return c}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}var So=t=>t.split(/[\s'"`;>=]+/g).filter(fe),jt={name:"split",order:0,extract({code:t}){return new Set(So(t))}};function Co(t){return V(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ro={shortcuts:-1,default:0};function Vt(t={},e={}){let r=Object.assign({},e,t),n=(r.presets||[]).flatMap(V),o=[...n.filter(u=>u.enforce==="pre"),...n.filter(u=>!u.enforce),...n.filter(u=>u.enforce==="post")],a=Object.assign(Ro,...n.map(u=>u.layers),t.layers);function s(u){return mt([...o.flatMap(x=>V(x[u]||[])),...V(r[u]||[])])}let c=s("extractors");c.length||c.push(jt),c.sort((u,x)=>(u.order||0)-(x.order||0));let l=s("rules"),p={},f=l.length;l.forEach((u,x)=>{ce(u)&&(p[u[0]]=[x,u[1],u[2]],delete l[x])});let d=et([...o.map(u=>u.theme||{}),r.theme||{}].reduce((u,x)=>Tt(u,x),{}));return s("extendTheme").forEach(u=>u(d)),z(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:d,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(pe),shortcuts:Co(s("shortcuts")),extractors:c})}var xe="0.27.5";var ve=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Vt(e,r)}version=xe;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Vt(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,n=new Set){let o={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(o);s==null||s.forEach(c=>n.add(c))}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){var p;if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`,o=this._cache.get(n);if(o)return o;let a=e;for(let f of this.config.preprocess)a=f(e);if(this.isBlocked(a)){this.blocked.add(e),this._cache.set(n,null);return}let s=this.matchVariants(e,a);if(!s||this.isBlocked(s[1])){this.blocked.add(e),this._cache.set(n,null);return}let c=this.makeContext(e,[r||s[0],s[1],s[2]]),l=this.expandShortcut(c.currentSelector,c);if(l){let f=await this.stringifyShortcuts(c.variantMatch,c,l[0],l[1]);if(f==null?void 0:f.length)return this._cache.set(n,f),f}else{let f=(p=await this.parseUtil(c.variantMatch,c))==null?void 0:p.map(d=>this.stringifyUtil(d)).filter(ue);if(f==null?void 0:f.length)return this._cache.set(n,f),f}this._cache.set(n,null)}async generate(e,{id:r,scope:n,preflights:o=!0,safelist:a=!0,minify:s=!1}={}){let c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(m=>c.add(m));let l=s?"":`
|
|
1
|
+
(()=>{var ee=Object.defineProperty,fo=Object.defineProperties;var po=Object.getOwnPropertyDescriptors;var pt=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var te=(t,e,r)=>e in t?ee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))re.call(e,r)&&te(t,r,e[r]);if(pt)for(var r of pt(e))ne.call(e,r)&&te(t,r,e[r]);return t},z=(t,e)=>fo(t,po(e));var oe=(t,e)=>{var r={};for(var n in t)re.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&pt)for(var n of pt(t))e.indexOf(n)<0&&ne.call(t,n)&&(r[n]=t[n]);return r};var uo=(t,e)=>{for(var r in e)ee(t,r,{get:e[r],enumerable:!0})};var kt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=mo(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,a=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(a)&&o==null)&&!(kt.includes(a)&&![1,3].includes(n.length)))return{type:a,components:n,alpha:o}}function M(t,e){let{components:r}=t,{alpha:n,type:o}=t;return n=e!=null?e:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,kt.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function mo(t){if(!t)return;let e=go(t);if(e!=null||(e=bo(t),e!=null)||(e=ho(t),e!=null)||(e=yo(t),e!=null)||(e=vo(t),e!=null))return e}function go(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function bo(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function ho(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=Q(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 xo=new RegExp(`^(${kt.join("|")})\\((.+)\\)$`,"i");function yo(t){let e=t.match(xo);if(!e)return;let[,r,n]=e,o=ae(`${r} ${n}`);if(o){let{alpha:a,components:[s,...c]}=o;return{type:s,components:c,alpha:a}}}function vo(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ae(e[1]);if(r){let{alpha:n,components:[o,...a]}=r;return{type:o,components:a,alpha:n}}}function ae(t){let e=Q(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let n=Q(e[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function ko(t,e){if(t=t.trim(),t==="")return;let r=t.length,n=0;for(let o=0;o<r;o++)switch(t[o]){case"(":n++;break;case")":if(--n<0)return;break;case e:if(n===0){let a=t.slice(0,o).trim();return a===""?void 0:[a,t.slice(o+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let a=ko(t,e);if(!a)return;let[s,c]=a;n.push(s),t=c}if(n.length>0)return n}var O={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"]},$t=z(S({},O),{s:["-inset-inline-start"],e:["-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"]}),wt={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"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},St={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},ie=["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"],F=Object.assign({},...ie.map(t=>({[t.replace(/ /,"-")]:t})),...ie.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ct(t){let e=t.length,r=-1,n,o="",a=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&a===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var ut=Ct;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function se(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function $o(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function dt(t){return t==null?"":$o(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Rt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Tt(t,e){let r=t,n=e;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=S({},r);return Rt(r)&&Rt(n)&&Object.keys(n).forEach(a=>{Rt(n[a])?a in r?o[a]=Tt(r[a],n[a]):Object.assign(o,{[a]:n[a]}):Object.assign(o,{[a]:n[a]})}),o}function et(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?et(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?et(n):n;return r}return t}function ce(t){return typeof t[0]=="string"}function le(t){return typeof t[0]=="string"}function V(t=[]){return Array.isArray(t)?t:[t]}function mt(t){return Array.from(new Set(t))}var wo=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function fe(t=""){return wo.test(t)}function pe(t){return typeof t=="function"?{match:t}:t}function zt(t){return t.length===3}function ue(t){return t!=null}var Et=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){var n;return(n=this._map.get(e))==null?void 0:n.has(r)}delete(e,r){var n;return((n=this._map.get(e))==null?void 0:n.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,a])=>e(a,r,o)))}};var de=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function me(t){return de.lastIndex=0,t.replace(de,(e,r,n,o)=>o.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var ge=new Set;function be(t){ge.has(t)||(console.warn("[unocss]",t),ge.add(t))}function he(t){let e=function(n){var a;let o=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of o){let c=t[s](n);if(c!=null)return c}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}var So=t=>t.split(/[\s'"`;>=]+/g).filter(fe),jt={name:"split",order:0,extract({code:t}){return new Set(So(t))}};function Co(t){return V(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ro={shortcuts:-1,default:0};function Vt(t={},e={}){let r=Object.assign({},e,t),n=(r.presets||[]).flatMap(V),o=[...n.filter(u=>u.enforce==="pre"),...n.filter(u=>!u.enforce),...n.filter(u=>u.enforce==="post")],a=Object.assign(Ro,...n.map(u=>u.layers),t.layers);function s(u){return mt([...o.flatMap(x=>V(x[u]||[])),...V(r[u]||[])])}let c=s("extractors");c.length||c.push(jt),c.sort((u,x)=>(u.order||0)-(x.order||0));let l=s("rules"),p={},f=l.length;l.forEach((u,x)=>{ce(u)&&(p[u[0]]=[x,u[1],u[2]],delete l[x])});let d=et([...o.map(u=>u.theme||{}),r.theme||{}].reduce((u,x)=>Tt(u,x),{}));return s("extendTheme").forEach(u=>u(d)),z(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:d,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(pe),shortcuts:Co(s("shortcuts")),extractors:c})}var xe="0.27.6";var ve=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Vt(e,r)}version=xe;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Vt(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,n=new Set){let o={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(o);s==null||s.forEach(c=>n.add(c))}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){var p;if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`,o=this._cache.get(n);if(o)return o;let a=e;for(let f of this.config.preprocess)a=f(e);if(this.isBlocked(a)){this.blocked.add(e),this._cache.set(n,null);return}let s=this.matchVariants(e,a);if(!s||this.isBlocked(s[1])){this.blocked.add(e),this._cache.set(n,null);return}let c=this.makeContext(e,[r||s[0],s[1],s[2]]),l=this.expandShortcut(c.currentSelector,c);if(l){let f=await this.stringifyShortcuts(c.variantMatch,c,l[0],l[1]);if(f==null?void 0:f.length)return this._cache.set(n,f),f}else{let f=(p=await this.parseUtil(c.variantMatch,c))==null?void 0:p.map(d=>this.stringifyUtil(d)).filter(ue);if(f==null?void 0:f.length)return this._cache.set(n,f),f}this._cache.set(n,null)}async generate(e,{id:r,scope:n,preflights:o=!0,safelist:a=!0,minify:s=!1}={}){let c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(m=>c.add(m));let l=s?"":`
|
|
2
2
|
`,p=new Set(["default"]),f=new Set,d=new Map;await Promise.all(Array.from(c).map(async m=>{var y;if(f.has(m))return;let b=await this.parseToken(m);if(b!=null){f.add(m);for(let w of b){let R=w[3]||"";d.has(R)||d.set(R,[]),d.get(R).push(w),((y=w[4])==null?void 0:y.layer)&&p.add(w[4].layer)}}})),o&&this.config.preflights.forEach(m=>{m.layer&&p.add(m.layer)});let u={},x=this.config.sortLayers(Array.from(p).sort((m,b)=>{var y,w;return((y=this.config.layers[m])!=null?y:0)-((w=this.config.layers[b])!=null?w:0)||m.localeCompare(b)})),j={};if(o){let m={generator:this,theme:this.config.theme};j=Object.fromEntries(await Promise.all(x.map(async b=>{let w=(await Promise.all(this.config.preflights.filter(R=>(R.layer||"default")===b).map(async R=>await R.getCSS(m)))).filter(Boolean).join(l);return[b,w]})))}let L=m=>{if(u[m])return u[m];let b=Array.from(d).sort((y,w)=>{var R,A,g;return((R=this.parentOrders.get(y[0]))!=null?R:0)-((A=this.parentOrders.get(w[0]))!=null?A:0)||((g=y[0])==null?void 0:g.localeCompare(w[0]||""))||0}).map(([y,w])=>{let R=w.length,A=w.filter(v=>{var T;return(((T=v[4])==null?void 0:T.layer)||"default")===m}).sort((v,T)=>{var K,G,P;return v[0]-T[0]||(((K=v[4])==null?void 0:K.sort)||0)-(((G=T[4])==null?void 0:G.sort)||0)||((P=v[1])==null?void 0:P.localeCompare(T[1]||""))||0}).map(v=>{var T;return[v[1]?Eo(v[1],n):v[1],v[2],!!((T=v[4])==null?void 0:T.noMerge)]}).map(v=>[v[0]==null?v[0]:[v[0]],v[1],v[2]]);if(!A.length)return;let g=A.reverse().map(([v,T,K],G)=>{if(!K&&v&&this.config.mergeSelectors)for(let P=G+1;P<R;P++){let J=A[P];if(J&&!J[2]&&J[0]&&J[1]===T)return J[0].push(...v),null}return v?`${[...new Set(v)].join(`,${l}`)}{${T}}`:T}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${g}${l}}`:g}).filter(Boolean).join(l);return o&&(b=[j[m],b].filter(Boolean).join(l)),u[m]=!s&&b?`/* layer: ${m} */${l}${b}`:b},$=(m=x,b)=>m.filter(y=>!(b==null?void 0:b.includes(y))).map(y=>L(y)||"").filter(Boolean).join(l);return{get css(){return $()},layers:x,getLayers:$,getLayer:L,matched:f}}matchVariants(e,r){let n=new Set,o=[],a=r||e,s=!1,c={rawSelector:e,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let p=l.match(a,c);if(!!p&&(typeof p=="string"&&(p={matcher:p}),p)){a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),o.push(p),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,a,o]}applyVariants(e,r=e[4],n=e[1]){let o=[...r].sort((c,l)=>(c.order||0)-(l.order||0)),a=o.reduce((c,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,c))||c},e[2]),s={selector:o.reduce((c,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,c,a))||c},jo(n)),entries:a,parent:o.reduce((c,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||c,void 0),layer:o.reduce((c,l)=>l.layer||c,void 0),sort:o.reduce((c,l)=>l.sort||c,void 0)};for(let c of this.config.postprocess)c(s);return s}constructCustomCSS(e,r,n){r=rt(r);let{selector:o,entries:a,parent:s}=this.applyVariants([0,n||e.rawSelector,r,void 0,e.variantHandlers]),c=`${o}{${dt(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(e,r,n=!1){var f,d;let[o,a,s]=typeof e=="string"?this.matchVariants(e):e,c=this.config.rulesStaticMap[a];if(c&&c[1]&&(n||!((f=c[2])==null?void 0:f.internal)))return[[c[0],o,rt(c[1]),c[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let u=p;u>=0;u--){let x=l[u];if(!x||((d=x[2])==null?void 0:d.internal)&&!n)continue;let[j,L,$]=x,m=a.match(j);if(!m)continue;let b=await L(m,r);if(!b)continue;if(typeof b=="string")return[[u,b,$]];let y=se(b).filter(w=>w.length);if(y.length)return y.map(w=>[u,o,w,$,s])}}stringifyUtil(e){var u;if(!e)return;if(zt(e))return[e[0],void 0,e[1],void 0,e[2]];let{selector:r,entries:n,parent:o,layer:a,sort:s}=this.applyVariants(e),c=dt(n);if(!c)return;let x=(u=e[3])!=null?u:{},{layer:l,sort:p}=x,f=oe(x,["layer","sort"]),d=z(S({},f),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,c,o,d]}expandShortcut(e,r,n=3){if(n===0)return;let o,a;for(let s of this.config.shortcuts)if(le(s)){if(s[0]===e){o=o||s[2],a=s[1];break}}else{let c=e.match(s[0]);if(c&&(a=s[1](c,r)),a){o=o||s[2];break}}if(typeof a=="string"&&(a=me(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var c;return((c=this.expandShortcut(s,r,n-1))==null?void 0:c[0])||[s]}).filter(s=>s!==""),o]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){var p;let a=new Et,s=(await Promise.all(mt(n).map(async f=>{let d=await this.parseUtil(f,r,!0);return d||be(`unmatched utility "${f}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((f,d)=>f[0]-d[0]),[c,,l]=e;for(let f of s){if(zt(f))continue;let{selector:d,entries:u,parent:x,sort:j}=this.applyVariants(f,[...f[4],...l],c);a.getFallback(d,x,[[],f[0]])[0].push([u,!!((p=f[3])==null?void 0:p.noMerge),j!=null?j:0])}return a.map(([f,d],u,x)=>{let j=($,m,b)=>{let y=Math.max(...b.map(R=>R[1])),w=b.map(R=>R[0]);return($?[w.flat(1)]:w).map(R=>{let A=dt(R);if(A)return[d,u,A,x,z(S({},o),{noMerge:m,sort:y})]})};return[[f.filter(([,$])=>$).map(([$,,m])=>[$,m]),!0],[f.filter(([,$])=>!$).map(([$,,m])=>[$,m]),!1]].map(([$,m])=>[...j(!1,m,$.filter(([b])=>b.some(y=>y[0]===E))),...j(!0,m,$.filter(([b])=>b.every(y=>y[0]!==E)))])}).flat(2).filter(Boolean)}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function ke(t,e){return new ve(t,e)}var $e=/ \$\$ /,zo=t=>t.match($e);function Eo(t,e){return zo(t)?t.replace($e,e?` ${e} `:" "):e?`${e} ${t}`:t}var ye=/^\[(.+?)(~?=)"(.*)"\]$/;function jo(t){return ye.test(t)?t.replace(ye,(e,r,n,o)=>`[${ut(r)}${n}"${ut(o)}"]`):`.${ut(t)}`}var Ut={};uo(Ut,{auto:()=>Uo,bracket:()=>Lo,bracketOfColor:()=>No,bracketOfLength:()=>Wo,cssvar:()=>Ho,degree:()=>Ko,fraction:()=>Do,global:()=>Go,number:()=>Po,numberWithUnit:()=>Mo,percent:()=>Fo,properties:()=>Xo,px:()=>_o,rem:()=>Ao,time:()=>Bo});var Vo=["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","backround-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"],Ot=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Oo=/^(-?[0-9.]+)$/i,we=/^(px)$/i;function _(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Mo(t){let e=t.match(Ot);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${_(o)}${n}`}function Uo(t){if(t==="auto"||t==="a")return"auto"}function Ao(t){if(t.match(we))return`1${t}`;let e=t.match(Ot);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${_(o)}${n}`:`${_(o/4)}rem`}function _o(t){if(t.match(we))return`1${t}`;let e=t.match(Ot);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${_(o)}${n}`:`${_(o)}px`}function Po(t){if(!Oo.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return _(e)}function Fo(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${_(e/100)}`}function Do(t){if(t==="full")return"100%";let[e,r]=t.split("/"),n=parseFloat(e)/parseFloat(r);if(!Number.isNaN(n))return`${_(n*100)}%`}function Mt(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n=t.match(/^\[(color|length):/i);if(n?e&&n[1]===e&&(r=t.slice(n[0].length,-1)):r=t.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,o=>o.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Lo(t){return Mt(t)}function No(t){return Mt(t,"color")}function Wo(t){return Mt(t,"length")}function Ho(t){if(t.match(/^\$\S/))return`var(--${Ct(t.slice(1))})`}function Bo(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${_(o)}${n}`:`${_(o)}ms`}function Ko(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,n]=e,o=parseFloat(r);if(!Number.isNaN(o))return n?`${_(o)}${n}`:`${_(o)}deg`}function Go(t){if(["inherit","initial","revert","unset"].includes(t))return t}function Xo(t){for(let e of t.split(","))if(!Vo.includes(e))return;return t}var i=he(Ut);var D=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:e}}},U=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:e}}};var C=t=>([e,r,n],{theme:o})=>{var s,c;let a=(c=(s=o.spacing)==null?void 0:s[n||"DEFAULT"])!=null?c:i.bracket.cssvar.auto.fraction.rem(n);if(a!=null)return O[r].map(l=>[`${t}${l}`,a])},At=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},Y=(t,e)=>{let r=t.split(/(?:\/|:)/),n,o;r[0]==="[color"?(n=r.slice(0,2).join(":"),o=r[2]):[n,o]=r;let a=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=a;if(!s)return;let c,l=i.bracketOfColor(n),p=l||n;p.startsWith("#")?c=p:p.startsWith("hex-")?c=`#${p.slice(4)}`:n.startsWith("$")&&(c=i.cssvar(n)),c=c||l;let f="DEFAULT";if(!c){let d,[u]=a.slice(-1);u.match(/^\d+$/)?(f=u,d=At(e,a.slice(0,-1))):(d=At(e,a),!d&&a.length<=2&&([,f=f]=a,d=At(e,[s]))),typeof d=="string"?c=d:f&&d&&(c=d[f])}return{opacity:o,name:s,no:f,color:c,cssColor:X(c),alpha:i.bracket.cssvar.percent(o!=null?o:"")}},k=(t,e)=>([,r],{theme:n})=>{var l;let o=Y(r,n);if(!o)return;let{alpha:a,color:s,cssColor:c}=o;if(c)return a!=null?{[t]:M(c,a)}:{[`--un-${e}-opacity`]:(l=c.alpha)!=null?l:1,[t]:M(c,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},I=(t,e)=>{let r=[];t=V(t);for(let n=0;n<t.length;n++){let o=Q(t[n]," ",6);if(!o||o.length<3)return t;let a=X(o.pop());if(a==null)return t;r.push(`${o.join(" ")} var(${e}, ${M(a)})`)}return r},gt=(t,e)=>{var r;return t!=null&&!!((r=Y(t,e))==null?void 0:r.color)};var Se=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var o,a;let n=(a=(o=e.animation)==null?void 0:o.keyframes)==null?void 0:a[t];if(n)return`@keyframes ${t}${n}
|
|
3
3
|
${r({animation:`${t}`})}`}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var o,a,s,c,l,p,f,d,u,x;let n=(a=(o=e.animation)==null?void 0:o.keyframes)==null?void 0:a[t];if(n){let j=(l=(c=(s=e.animation)==null?void 0:s.durations)==null?void 0:c[t])!=null?l:"1s",L=(d=(f=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:f[t])!=null?d:"linear",$=(x=(u=e.animation)==null?void 0:u.properties)==null?void 0:x[t];return`@keyframes ${t}${n}
|
|
4
4
|
${r(Object.assign({animation:`${t} ${j} ${L} infinite`},$))}`}return{animation:i.bracket.cssvar(t)}}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=i.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,n;return{"animation-duration":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:i.bracket.cssvar.time(t)}}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,n;return{"animation-delay":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:i.bracket.cssvar.time(t)}}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,n;return{"animation-timing-function":(n=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?n:i.bracket.cssvar(t)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=i.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var _t=t=>([,e],{theme:r})=>{var l;let n=Y(e,r);if(!n)return;let{alpha:o,color:a,cssColor:s}=n;if(!a)return;let c=a;switch(s&&(o!=null?c=M(s,o):c=M(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":c,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${c}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":c}}},Ce=[[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":i.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":i.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,_t("from")],[/^(?:bg-gradient-)?to-(.+)$/,_t("to")],[/^(?:bg-gradient-)?via-(.+)$/,_t("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":i.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":i.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":i.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in F)return{"--un-gradient-shape":`to ${F[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in F?`to ${F[t]}`:i.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":F[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Re=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":t}:{"list-style-type":t}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Te=[[/^accent-(.+)$/,k("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":i.bracket.percent(t)})]],ze=[[/^caret-(.+)$/,k("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":i.bracket.percent(t)})]],Ee=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],je=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],Ve=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Oe=[[/^columns-(.+)$/,([,t])=>({columns:i.bracket.global.number.auto.numberWithUnit(t)})],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var Yo=/@media \(min-width: (.+)\)/,Me=[[/^__container$/,(t,{variantHandlers:e})=>{var n;let r="100%";for(let o of e){let a=V(o.parent||[])[0];if(typeof a=="string"){let s=(n=a.match(Yo))==null?void 0:n[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Ue=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let n=r.map(o=>`${o}:__container`);return t||n.unshift("__container"),n}]];var Io={mid:"middle",base:"baseline",btm:"bottom"},Ae=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":Io[t]||t})]],_e=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Pe=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,n;return{"outline-width":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:i.bracket.cssvar.px(t)}}],[/^outline-(?:color-)?(.+)$/,k("outline-color","outline-color")],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,n;return{"outline-offset":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:i.bracket.cssvar.px(t)}}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t})],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Fe=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],qo=t=>{var e;return(e=i.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},De=[[/^will-change-(.+)/,([,t])=>({"will-change":qo(t)})]];var Le=[[/^(?:border|b)()(?:-(.+))?$/,nt],[/^(?:border|b)-([xy])(?:-(.+))?$/,nt],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,nt],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,nt],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,nt],[/^(?:border|b)-()(?:width|size)-(.+)$/,q],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-()(?:color-)?(.+)$/,ot],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ot],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ot],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ot],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ot],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,at],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,at],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,at],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,at],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,at],[/^(?:border-)?(?:rounded|rd)()(?:-(.+))?$/,it],[/^(?:border-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,it],[/^(?:border-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,it],[/^(?:border-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,it],[/^(?:border-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,it],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],Zo=t=>([,e],r)=>{var c,l;let n=Y(e,r);if(!n)return;let{alpha:o,color:a,cssColor:s}=n;if(s)return o!=null?{[`border${t}-color`]:M(s,o)}:t===""?{"--un-border-opacity":(c=s.alpha)!=null?c:1,[`border${t}-color`]:M(s,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:M(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${o!=null?o:1}`)}};function nt(t,e){let r=q(t,e);if(r)return[...r,["border-style","solid"]]}function q([,t="",e],{theme:r}){var o,a;let n=(a=(o=r.lineWidth)==null?void 0:o[e||"DEFAULT"])!=null?a:i.bracket.cssvar.px(e||"1");if(t in O&&n!=null)return O[t].map(s=>[`border${s}-width`,n])}function ot([,t="",e],{theme:r}){if(t in O&>(e,r))return Object.assign({},...O[t].map(n=>Zo(n)(["",e],r)))}function at([,t="",e]){let r=i.bracket.percent(e);if(t in O&&r!=null)return O[t].map(n=>[`--un-border${n}-opacity`,r])}function it([,t="",e],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[e||"DEFAULT"])||i.bracket.cssvar.fraction.rem(e||"1");if(t in wt&&n!=null)return wt[t].map(a=>[`border${a}-radius`,n])}var Ne=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:i.bracket.percent.cssvar(t)})]],We=[[/^(?:text|color|c)-(.+)$/,k("color","text")],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":i.bracket.percent(t)})]],He=[[/^bg-(.+)$/,k("background-color","bg")],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":i.bracket.percent(t)})]];var Ke={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Be=t=>{var e;return(e=i.properties(t))!=null?e:Ke[t]},Ge=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var o,a;let n=t!=null?Be(t):[Ke.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let s=(a=(o=r.duration)==null?void 0:o[e||"DEFAULT"])!=null?a:i.time(e||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,n;return{"transition-duration":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:i.bracket.cssvar.time(t)}}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,n;return{"transition-delay":(n=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?n:i.bracket.cssvar.time(t)}}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,n;return{"transition-timing-function":(n=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?n:i.bracket.cssvar(t)}}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":i.global(t)||Be(t)})],["transition-none",{transition:"none"}]];var Xe=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^flex-(\[.+\])$/,([,t])=>({flex:i.bracket(t).replace(/\d+\/\d+/,e=>i.fraction(e))})],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,n;return{"flex-basis":(n=(r=e.spacing)==null?void 0:r[t])!=null?n:i.bracket.cssvar.auto.fraction.rem(t)}}],["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"}]];var Jo={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Ye=[[/^font-(\w+)$/,([,t],{theme:e})=>{var r;return{"font-family":(r=e.fontFamily)==null?void 0:r[t]}}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var n;let r=V((n=e.fontSize)==null?void 0:n[t]);if(r==null?void 0:r[0]){let[o,a="1"]=r;return{"font-size":o,"line-height":a}}return{"font-size":i.bracketOfLength.rem(t)}}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var o,a;let r=V((o=e.fontSize)==null?void 0:o[t]),n=(a=r==null?void 0:r[0])!=null?a:i.bracket.cssvar.rem(t);if(n!=null)return{"font-size":n}}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":Jo[t]||i.number(t)})],[/^(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||i.bracket.cssvar.rem(t)}}],[/^tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||i.bracket.cssvar.rem(t)}}],[/^word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||i.bracket.cssvar.rem(t)}}]],Ie=[[/^tab(?:-(.+))?$/,([,t])=>{let e=i.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],qe=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||i.bracket.cssvar.fraction.rem(t)}}]],Ze=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||i.bracket.cssvar.px(t)}}],[/^text-stroke-(.+)$/,k("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":i.bracket.percent(t)})]],Je=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var n;let r=(n=e.textShadow)==null?void 0:n[t||"DEFAULT"];return r!=null?{"--un-text-shadow":I(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":i.bracket.cssvar(t)}}],[/^text-shadow-color-(.+)$/,k("--un-text-shadow-color","text-shadow")],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":i.bracket.percent(t)})]];var Qe={"":"",x:"column-",y:"row-"},tr=([,t="",e],{theme:r})=>{var o,a;let n=(a=(o=r.spacing)==null?void 0:o[e])!=null?a:i.bracket.cssvar.rem(e);if(n!=null)return{[`grid-${Qe[t]}gap`]:n,[`${Qe[t]}gap`]:n}},er=[[/^(?:flex-|grid-)?gap-?()(.+)$/,tr],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,tr]];var N=t=>t.replace("col","column"),Pt=t=>t[0]==="r"?"Row":"Column",Qo=(t,e,r)=>{var o;let n=(o=e[`gridAuto${Pt(t)}`])==null?void 0:o[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 i.bracket.cssvar.auto.rem(r)},rr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var n,o;return{[`grid-${N(t)}`]:(o=(n=r[`grid${Pt(t)}`])==null?void 0:n[e])!=null?o:i.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${N(t)}`]:"1/-1"};let r=i.bracket.number(e);if(r!=null)return{[`grid-${N(t)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${N(t)}-start`]:(r=i.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${N(t)}-end`]:(r=i.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${N(t)}`]:Qo(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":i.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":N(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var n,o;return{[`grid-template-${N(t)}`]:(o=(n=r[`gridTemplate${Pt(t)}`])==null?void 0:n[e])!=null?o:i.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${N(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${N(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var nr=["auto","hidden","clip","visible","scroll"],or=[[/^(?:overflow|of)-(.+)$/,([,t])=>nr.includes(t)?{overflow:t}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>nr.includes(e)?{[`overflow-${t}`]:e}:void 0]];var ar=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],ir=[["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-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["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"}]],sr=[[/^order-(.+)$/,([,t])=>({order:i.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],cr=[["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"}],["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"}],["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"}]],lr=[["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"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["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"}]];function Ft(t,{theme:e}){var r,n;return(n=(r=e.spacing)==null?void 0:r[t])!=null?n:i.bracket.cssvar.auto.fraction.rem(t)}function bt([,t,e],r){let n=Ft(e,r);if(n!=null&&t in $t)return $t[t].map(o=>[o.slice(1),n])}var fr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Ft(t,e)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,bt],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,bt],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,bt],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,bt],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Ft(e,r)})]],pr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],ur=[[/^z([\d.]+)$/,([,t])=>({"z-index":i.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":i.bracket.cssvar.auto.number(t)})]],dr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var h="var(--un-empty,/*!*/ /*!*/)",mr=[["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-(.+)$/,([,t])=>({display:i.bracket.cssvar(t)||t})]],gr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],br=[[/^cursor-(.+)$/,([,t])=>({cursor:i.bracket.cssvar(t)||t})]],hr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],xr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],yr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],vr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t})]];var kr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],$r=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var wr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],Sr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var Cr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var n,o;let r=(o=(n=e.ringWidth)==null?void 0:n[t||"DEFAULT"])!=null?o:i.px(t||"1");if(r)return[{[E]:"","--un-ring-inset":h,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--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, 0 0 #0000)"}]}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,n;return{"--un-ring-width":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:i.bracket.cssvar.px(t)}}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,n;return{"--un-ring-offset-width":(n=(r=e.lineWidth)==null?void 0:r[t])!=null?n:i.bracket.cssvar.px(t)}}],[/^ring-(.+)$/,k("--un-ring-color","ring")],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":i.bracket.percent(t)})],[/^ring-offset-(.+)$/,k("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":i.bracket.percent(t)})],["ring-inset",{"--un-ring-inset":"inset"}]];var Rr=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var n;let r=(n=e.boxShadow)==null?void 0:n[t||"DEFAULT"];if(r)return[{[E]:"","--un-shadow-inset":h,"--un-shadow":"0 0 #0000"},{"--un-shadow":I(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]}],[/^shadow-(.+)$/,k("--un-shadow-color","shadow")],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":i.bracket.percent(t)})],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ta={h:"height",w:"width",inline:"inline-size",block:"block-size"};function st(t,e){return`${t||""}${ta[e]}`}function Tr(t,e,r,n){var s;let o=st(t,e).replace(/-(\w)/g,(c,l)=>l.toUpperCase()),a=(s=r[o])==null?void 0:s[n];if(a!=null)return a;switch(n){case"fit":case"max":case"min":return`${n}-content`}return i.bracket.cssvar.auto.fraction.rem(n)}var zr=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[st(t,e)]:Tr(t,e,n,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[st(t,e)]:Tr(t,e,n,r)})],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:n})=>{var o;return{[st(t,e)]:(o=n.verticalBreakpoints)==null?void 0:o[r]}}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:n})=>{var o;return{[st(t,e)]:(o=n.breakpoints)==null?void 0:o[r]}}]];function ea(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return i.bracket.cssvar.auto.number(t)}var Er=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":ea(t)})]];var jr=[[/^pa?()-?(-?.+)$/,C("padding")],[/^p-?([xy])-?(-?.+)$/,C("padding")],[/^p-?([rltbse])-?(-?.+)$/,C("padding")],[/^p-(block|inline)-(-?.+)$/,C("padding")],[/^p-?([bi][se])-?(-?.+)$/,C("padding")]],Vr=[[/^ma?()-?(-?.+)$/,C("margin")],[/^m-?([xy])-?(-?.+)$/,C("margin")],[/^m-?([rltbse])-?(-?.+)$/,C("margin")],[/^m-(block|inline)-(-?.+)$/,C("margin")],[/^m-?([bi][se])-?(-?.+)$/,C("margin")]];var ra={"--un-transform":["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(" ")},Ar={"--un-transform":["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(" ")},Z=z(S({"--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},Ar),{[E]:""}),_r=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=F[t])!=null?e:i.bracket.cssvar(t)}}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=i.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=i.bracket.cssvar(t))!=null?r:t.length>=3?F[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Or],[/^(?:transform-)?translate-([xyz])-(.+)$/,Or],[/^(?:transform-)?rotate-()(.+)$/,Ur],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Ur],[/^(?:transform-)?skew-([xy])-(.+)$/,na],[/^(?:transform-)?scale-()(.+)$/,Mr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Mr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Z,{transform:"var(--un-transform)"}]],["transform-gpu",ra],["transform-cpu",Ar],["transform-none",{transform:"none"}]];function Or([,t,e],{theme:r}){var o,a;let n=(a=(o=r.spacing)==null?void 0:o[e])!=null?a:i.bracket.cssvar.fraction.rem(e);if(n!=null)return[Z,[...St[t].map(s=>[`--un-translate${s}`,n]),["transform","var(--un-transform)"]]]}function Mr([,t,e]){let r=i.bracket.cssvar.fraction.percent(e);if(r!=null)return[Z,[...St[t].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function Ur([,t="",e]){let r=i.bracket.cssvar.degree(e);if(r!=null)return t?[Z,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[Z,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function na([,t,e]){let r=i.bracket.cssvar.degree(e);if(r!=null)return[Z,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var oa={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",flex:"flex",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"},Pr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=oa[t];if(r)return{[r]:i.cssvar(e)}}]],Fr=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:i.bracket(`[${e}]`)})]];var Dr=[[/^(where|\?)$/,(t,{constructCSS:e,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}}
|