@unocss/runtime 66.5.6 → 66.5.7

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.
@@ -1,10 +1,10 @@
1
- "use strict";(()=>{var xo=Object.defineProperty;var yo=(e,t)=>{for(var r in t)xo(e,r,{get:t[r],enumerable:!0})};var Ee=/[\\:]?[\s'"`;{}]+/g;function C(e=[]){return Array.isArray(e)?e:[e]}function at(e){return typeof e=="string"}function k(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function V(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var wo=/[\w\u00A0-\uFFFF%-?]/;function lt(e=""){return wo.test(e)}function So(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})}var vo="__virtual_key__";function ct(e){return e==null?"":So(e).map(([t,r])=>r!=null&&typeof r!="function"?t!==vo?`${t}:${r};`:r:void 0).filter(Boolean).join("")}function ko(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function ut(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${ko(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function ft(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var Co=/\/\/#\s*sourceMappingURL=.*\n?/g;function pt(e){return e.includes("sourceMappingURL=")?e.replace(Co,""):e}var Ro=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,To=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,jo=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Eo(e){let t=[];for(let o of e.matchAll(To))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(Ro))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=ut(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Ee).forEach(o=>{o.includes(n)&&(o=ft(o,r)),lt(o)&&!jo.test(o)&&t.push(o)}),t}function dt(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Eo(pt(e))}}}function ht(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=ct(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),C(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function I(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function K(e,t,r,n){if(e===""||(at(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function H(e,t,r,n="(",o=")"){r=r??10;let i=[],s=0;for(;e!=="";){if(++s>r)return;let a=K(e,n,o,t);if(!a)return;let[c,u]=a;i.push(c),e=u}if(i.length>0)return i}var Oe=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var mt=["%alpha","<alpha-value>"],Oo=new RegExp(mt.map(e=>k(e)).join("|"),"g");function _(e=""){let t=zo(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Oe.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function J(e){let t=e.alpha??1;return typeof t=="string"&&mt.includes(t)?1:t}function R(e,t){if(typeof e=="string")return e.replace(Oo,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,Oe.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function zo(e){if(!e)return;let t=Po(e);if(t!=null||(t=Ao(e),t!=null)||(t=Vo(e),t!=null)||(t=Fo(e),t!=null)||(t=Mo(e),t!=null))return t}function Po(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function Ao(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Vo(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=H(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 Lo=new RegExp(`^(${Oe.join("|")})\\((.+)\\)$`,"i");function Fo(e){let t=e.match(Lo);if(!t)return;let[,r,n]=t,o=gt(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Mo(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=gt(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function gt(e){let t=H(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=H(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}var Wo=44,Io=59,bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t=new Uint8Array(64),_o=new Uint8Array(128);for(let e=0;e<bt.length;e++){let t=bt.charCodeAt(e);$t[e]=t,_o[t]=e}function Q(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write($t[o])}while(n>0);return t}var xt=1024*16,yt=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},Bo=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(xt)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===xt&&(this.out+=yt.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:r}=this;return r>0?t+yt.decode(e.subarray(0,r)):t}};function wt(e){let t=new Bo,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(Io),a.length===0)continue;let c=0;for(let u=0;u<a.length;u++){let f=a[u];u>0&&t.write(Wo),c=Q(t,f[0],c),f.length!==1&&(r=Q(t,f[1],r),n=Q(t,f[2],n),o=Q(t,f[3],o),f.length!==4&&(i=Q(t,f[4],i)))}}return t.flush()}var pe=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},de=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function Uo(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var No=Uo(),ze=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=wt(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+No(this.toString())}};function Do(e){let t=e.split(`
2
- `),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function Ko(e,t){let r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var Ho=Object.prototype.toString;function qo(e){return Ho.call(e)==="[object Object]"}function St(e){let t=e.split(`
3
- `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let u=i+s>>1;o<r[u]?s=u:i=u+1}let a=i-1,c=o-r[a];return{line:a,column:c}}}var Go=/\w/,Pe=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
1
+ "use strict";(()=>{var xo=Object.defineProperty;var yo=(e,t)=>{for(var r in t)xo(e,r,{get:t[r],enumerable:!0})};var je=/[\\:]?[\s'"`;{}]+/g;function C(e=[]){return Array.isArray(e)?e:[e]}function st(e){return typeof e=="string"}function k(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function V(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var wo=/[\w\u00A0-\uFFFF%-?]/;function at(e=""){return wo.test(e)}function So(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})}var vo="__virtual_key__";function lt(e){return e==null?"":So(e).map(([t,r])=>r!=null&&typeof r!="function"?t!==vo?`${t}:${r};`:r:void 0).filter(Boolean).join("")}function ko(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function ct(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${ko(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function ut(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var Co=/\/\/#\s*sourceMappingURL=.*\n?/g;function ft(e){return e.includes("sourceMappingURL=")?e.replace(Co,""):e}var Ro=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,To=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,jo=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Eo(e){let t=[];for(let o of e.matchAll(To))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(Ro))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=ct(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(je).forEach(o=>{o.includes(n)&&(o=ut(o,r)),at(o)&&!jo.test(o)&&t.push(o)}),t}function pt(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Eo(ft(e))}}}function dt(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=lt(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),C(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function I(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function K(e,t,r,n){if(e===""||(st(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function H(e,t,r,n="(",o=")"){r=r??10;let i=[],s=0;for(;e!=="";){if(++s>r)return;let a=K(e,n,o,t);if(!a)return;let[c,u]=a;i.push(c),e=u}if(i.length>0)return i}var Ee=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var ht=["%alpha","<alpha-value>"],Oo=new RegExp(ht.map(e=>k(e)).join("|"),"g");function _(e=""){let t=zo(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Ee.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function J(e){let t=e.alpha??1;return typeof t=="string"&&ht.includes(t)?1:t}function R(e,t){if(typeof e=="string")return e.replace(Oo,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,Ee.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function zo(e){if(!e)return;let t=Po(e);if(t!=null||(t=Ao(e),t!=null)||(t=Vo(e),t!=null)||(t=Fo(e),t!=null)||(t=Mo(e),t!=null))return t}function Po(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function Ao(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Vo(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=H(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 Lo=new RegExp(`^(${Ee.join("|")})\\((.+)\\)$`,"i");function Fo(e){let t=e.match(Lo);if(!t)return;let[,r,n]=t,o=mt(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Mo(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=mt(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function mt(e){let t=H(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=H(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}var Wo=44,Io=59,gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yt=new Uint8Array(64),_o=new Uint8Array(128);for(let e=0;e<gt.length;e++){let t=gt.charCodeAt(e);yt[e]=t,_o[t]=e}function Q(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(yt[o])}while(n>0);return t}var bt=1024*16,xt=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},Bo=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(bt)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===bt&&(this.out+=xt.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:r}=this;return r>0?t+xt.decode(e.subarray(0,r)):t}};function $t(e){let t=new Bo,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(Io),a.length===0)continue;let c=0;for(let u=0;u<a.length;u++){let f=a[u];u>0&&t.write(Wo),c=Q(t,f[0],c),f.length!==1&&(r=Q(t,f[1],r),n=Q(t,f[2],n),o=Q(t,f[3],o),f.length!==4&&(i=Q(t,f[4],i)))}}return t.flush()}var pe=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},de=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function Uo(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var No=Uo(),Oe=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=$t(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+No(this.toString())}};function Do(e){let t=e.split(`
2
+ `),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function Ko(e,t){let r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var Ho=Object.prototype.toString;function qo(e){return Ho.call(e)==="[object Object]"}function wt(e){let t=e.split(`
3
+ `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let u=i+s>>1;o<r[u]?s=u:i=u+1}let a=i-1,c=o-r[a];return{line:a,column:c}}}var Go=/\w/,ze=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
4
4
  `,0),a=-1;for(;s>=0&&i>s;){let u=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&u.push(o),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=s,s=r.indexOf(`
5
5
  `,s+1)}let c=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&c.push(o),this.rawSegments.push(c),this.advance(r.slice(a+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(t,r,n,o,i){let s=r.start,a=!0,c=!1;for(;s<r.end;){if(n[s]===`
6
6
  `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=!0,c=!1;else{if(this.hires||a||i.has(s)){let u=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?Go.test(n[s])?c||(this.rawSegments.push(u),c=!0):(this.rawSegments.push(u),c=!1):this.rawSegments.push(u)}o.column+=1,this.generatedCodeColumn+=1,a=!1}s+=1}this.pending=null}advance(t){if(!t)return;let r=t.split(`
7
7
  `);if(r.length>1){for(let n=0;n<r.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}},ee=`
8
- `,q={insertLeft:!1,insertRight:!1,storeName:!1},he=class e{constructor(t,r={}){let n=new de(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new pe},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList},offset:{writable:!0,value:r.offset||0}}),this.byStart[0]=n,this.byEnd[t.length]=n}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.appendLeft(r):this.intro+=r,this}appendRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.appendRight(r):this.outro+=r,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),r=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=r.clone();for(;r;){t.byStart[n.start]=n,t.byEnd[n.end]=n;let o=r.next,i=o&&o.clone();i&&(n.next=i,i.previous=n,n=i),r=o}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new pe(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let r=0,n=Object.keys(this.storedNames),o=new Pe(t.hires),i=St(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let a=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(r,s.content,a,s.storeName?n.indexOf(s.original):-1):o.addUneditedChunk(r,s,this.original,a,this.sourcemapLocations),s.outro.length&&o.advance(s.outro)}),this.outro&&o.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?Ko(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:n,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(t){return new ze(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=Do(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,r){let n=/^[^\r\n]/gm;if(qo(t)&&(r=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;r=r||{};let o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(f=>{for(let d=f[0];d<f[1];d+=1)o[d]=!0});let i=r.indentStart!==!1,s=u=>i?`${t}${u}`:(i=!0,u);this.intro=this.intro.replace(n,s);let a=0,c=this.firstChunk;for(;c;){let u=c.end;if(c.edited)o[a]||(c.content=c.content.replace(n,s),c.content.length&&(i=c.content[c.content.length-1]===`
8
+ `,q={insertLeft:!1,insertRight:!1,storeName:!1},he=class e{constructor(t,r={}){let n=new de(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new pe},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList},offset:{writable:!0,value:r.offset||0}}),this.byStart[0]=n,this.byEnd[t.length]=n}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.appendLeft(r):this.intro+=r,this}appendRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.appendRight(r):this.outro+=r,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),r=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=r.clone();for(;r;){t.byStart[n.start]=n,t.byEnd[n.end]=n;let o=r.next,i=o&&o.clone();i&&(n.next=i,i.previous=n,n=i),r=o}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new pe(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let r=0,n=Object.keys(this.storedNames),o=new ze(t.hires),i=wt(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let a=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(r,s.content,a,s.storeName?n.indexOf(s.original):-1):o.addUneditedChunk(r,s,this.original,a,this.sourcemapLocations),s.outro.length&&o.advance(s.outro)}),this.outro&&o.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?Ko(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:n,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(t){return new Oe(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=Do(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,r){let n=/^[^\r\n]/gm;if(qo(t)&&(r=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;r=r||{};let o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(f=>{for(let d=f[0];d<f[1];d+=1)o[d]=!0});let i=r.indentStart!==!1,s=u=>i?`${t}${u}`:(i=!0,u);this.intro=this.intro.replace(n,s);let a=0,c=this.firstChunk;for(;c;){let u=c.end;if(c.edited)o[a]||(c.content=c.content.replace(n,s),c.content.length&&(i=c.content[c.content.length-1]===`
9
9
  `));else for(a=c.start;a<u;){if(!o[a]){let f=this.original[a];f===`
10
- `?i=!0:f!=="\r"&&i&&(i=!1,a===c.start||(this._splitChunk(c,a),c=c.next),c.prependRight(t))}a+=1}a=c.end,c=c.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,r){return q.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),q.insertLeft=!0),this.appendLeft(t,r)}insertRight(t,r){return q.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),q.insertRight=!0),this.prependRight(t,r)}move(t,r,n){if(t=t+this.offset,r=r+this.offset,n=n+this.offset,n>=t&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(n);let o=this.byStart[t],i=this.byEnd[r],s=o.previous,a=i.next,c=this.byStart[n];if(!c&&i===this.lastChunk)return this;let u=c?c.previous:this.lastChunk;return s&&(s.next=a),a&&(a.previous=s),u&&(u.next=o),c&&(c.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=u,i.next=c||null,u||(this.firstChunk=o),c||(this.lastChunk=i),this}overwrite(t,r,n,o){return o=o||{},this.update(t,r,n,{...o,overwrite:!o.contentOnly})}update(t,r,n,o){if(t=t+this.offset,r=r+this.offset,typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(r),o===!0&&(q.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),q.storeName=!0),o={storeName:!0});let i=o!==void 0?o.storeName:!1,s=o!==void 0?o.overwrite:!1;if(i){let u=this.original.slice(t,r);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}let a=this.byStart[t],c=this.byEnd[r];if(a){let u=a;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}a.edit(n,i,!s)}else{let u=new de(t,r,"").edit(n,i);c.next=u,u.previous=c}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}reset(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.reset(),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(ee);if(t!==-1)return this.outro.substr(t+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(ee),t!==-1)return n.outro.substr(t+1)+r;r=n.outro+r}if(n.content.length>0){if(t=n.content.lastIndexOf(ee),t!==-1)return n.content.substr(t+1)+r;r=n.content+r}if(n.intro.length>0){if(t=n.intro.lastIndexOf(ee),t!==-1)return n.intro.substr(t+1)+r;r=n.intro+r}}while(n=n.previous);return t=this.intro.lastIndexOf(ee),t!==-1?this.intro.substr(t+1)+r:this.intro+r}slice(t=0,r=this.original.length-this.offset){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}let n="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<r&&o.end>=r)return n;o=o.next}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(n+=o.intro);let s=o.start<r&&o.end>=r;if(s&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let a=i===o?t-o.start:0,c=s?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(a,c),o.outro&&(!s||o.end===r)&&(n+=o.outro),s)break;o=o.next}return n}snip(t,r){let n=this.clone();return n.remove(0,t),n.remove(r,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let r=this.lastSearchedChunk,n=r,o=t>r.end;for(;r;){if(r.contains(t))return this._splitChunk(r,t);if(r=o?this.byStart[r.end]:this.byEnd[r.start],r===n)return;n=r}}_splitChunk(t,r){if(t.edited&&t.content.length){let o=St(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let n=t.split(r);return this.byEnd[r]=t,this.byStart[r]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,r=this.firstChunk;for(;r;)t+=r.toString(),r=r.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{let o=n.end,i=n.trimEnd(r);if(n.end!==o&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{let o=n.end,i=n.trimStart(r);if(n.end!==o&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,r){function n(i,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(a,c)=>c==="$"?"$":c==="&"?i[0]:+c<i.length?i[+c]:`$${c}`):r(...i,i.index,s,i.groups)}function o(i,s){let a,c=[];for(;a=i.exec(s);)c.push(a);return c}if(t.global)o(t,this.original).forEach(s=>{if(s.index!=null){let a=n(s,this.original);a!==s[0]&&this.overwrite(s.index,s.index+s[0].length,a)}});else{let i=this.original.match(t);if(i&&i.index!=null){let s=n(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s)}}return this}_replaceString(t,r){let{original:n}=this,o=n.indexOf(t);return o!==-1&&(typeof r=="function"&&(r=r(t,o,n)),t!==r&&this.overwrite(o,o+t.length,r)),this}replace(t,r){return typeof t=="string"?this._replaceString(t,r):this._replaceRegexp(t,r)}_replaceAllString(t,r){let{original:n}=this,o=t.length;for(let i=n.indexOf(t);i!==-1;i=n.indexOf(t,i+o)){let s=n.slice(i,i+o),a=r;typeof r=="function"&&(a=r(s,i,n)),s!==a&&this.overwrite(i,i+o,a)}return this}replaceAll(t,r){if(typeof t=="string")return this._replaceAllString(t,r);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,r)}};var Yo=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function vt(e){return e.includes("theme(")&&e.includes(")")}function kt(e,t,r=!0){let n=Array.from(e.toString().matchAll(Yo));if(!n.length)return e;let o=new he(e);for(let i of n){let s=i[2];if(!s)throw new Error("theme() expect exact one argument, but got 0");let a=Xo(s,t,r);a&&o.overwrite(i.index,i.index+i[0].length,a)}return o.toString()}function Xo(e,t,r=!0){let[n,o]=e.split("/"),s=n.trim().split(".").reduce((a,c)=>a?.[c],t);if(typeof s=="object"&&(s=s.DEFAULT),typeof s=="string"){if(o){let a=_(s);a&&(s=R(a,o))}return s}else if(r)throw new Error(`theme of "${e}" did not found`)}function Ae(e){let t=e.match(/^-?\d+\.?\d*/)?.[0]||"",r=e.slice(t.length);if(r==="px"){let n=Number.parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`}return`calc(${e} - 0.1px)`}function Ct(e){let t=function(n,o){let i=this.__options?.sequence||[];this.__options.sequence=[];for(let s of i){let a=e[s](n,o);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var te="__pseudo_placeholder__",G=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${te})`],["nth-last",`:nth-last-child(${te})`],["nth-last-of-type",`:nth-last-of-type(${te})`],["nth-of-type",`:nth-of-type(${te})`],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Et=Object.keys(G),Y=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Ot=Object.keys(Y),Zo=["not","is","where","has"],zt=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),Ve=Object.entries(G).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),Le=Object.entries(Y).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),U=Zo.join("|"),Rt=Object.keys(zt).sort((e,t)=>t.length-e.length).join("|"),Jo=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],Tt=Object.entries(G).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),jt=Object.entries(Y).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function Qo(e,t,r,n){let{h:o,variantGetBracket:i}=n,s=new RegExp(`^(${k(t)}:)(\\S+)${k(r)}\\1`),a,c,u,f,d=p=>{let g=i(`${e}-`,p,[]);if(!g)return;let[E,v]=g,$=o.bracket(E);if($==null)return;let y=v.split(a,1)?.[0]??"",P=`${t}${V(y)}`;return[y,p.slice(p.length-(v.length-y.length-1)),$.includes("&")?$.replace(/&/g,P):`${P}${$}`]},m=p=>{let g=p.match(c)||p.match(u);if(!g)return;let[E,v,$]=g,y=g[3]??"",P=G[$]||Y[$]||`:${$}`;return v&&(P=`:${v}(${P})`),[y,p.slice(E.length),`${t}${V(y)}${P}`,$]},h=p=>{let g=p.match(f);if(!g)return;let[E,v,$]=g,y=g[3]??"",P=`:${v}(${$})`;return[y,p.slice(E.length),`${t}${V(y)}${P}`]};return{name:`pseudo:${e}`,match(p,g){if(a&&c&&u||(a=new RegExp(`(?:${g.generator.config.separators.join("|")})`),c=new RegExp(`^${e}-(?:(?:(${U})-)?(${Ve}))(?:(/[\\w-]+))?(?:${g.generator.config.separators.join("|")})`),u=new RegExp(`^${e}-(?:(?:(${U})-)?(${Le}))(?:(/[\\w-]+))?(?:${g.generator.config.separators.filter(D=>D!=="-").join("|")})`),f=new RegExp(`^${e}-(?:(${U})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${g.generator.config.separators.filter(D=>D!=="-").join("|")})`)),!p.startsWith(e))return;let E=d(p)||m(p)||h(p);if(!E)return;let[v,$,y,P=""]=E;return{matcher:$,handle:(D,bo)=>bo({...D,prefix:`${y}${r}${D.prefix}`.replace(s,"$1$2:"),sort:Et.indexOf(P)??Ot.indexOf(P)})}},multiPass:!0}}function Pt(e){let{h:t}=e,r,n,o;return[{name:"pseudo",match(i,s){r&&n||(r=new RegExp(`^(${Tt})(?:-(\\d+|\\[(\\w|[+-.])+\\]))?(?:${s.generator.config.separators.join("|")})`),n=new RegExp(`^(${jt})(?:${s.generator.config.separators.filter(c=>c!=="-").join("|")})`));let a=i.match(r)||i.match(n);if(a){let c=G[a[1]]||Y[a[1]]||`:${a[1]}`;if(a[2]){let f;a[2].startsWith("[")&&a[2].endsWith("]")?f=t.bracket(a[2]):f=a[2],f&&(c=c.replace(te,f))}let u=Et.indexOf(a[1]);return u===-1&&(u=Ot.indexOf(a[1])),u===-1&&(u=void 0),{matcher:i.slice(a[0].length),handle:(f,d)=>{let m=c.includes("::")&&!Jo.includes(c)?{pseudo:`${f.pseudo}${c}`}:{selector:`${f.selector}${c}`};return d({...f,...m,sort:u,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${Tt}|${jt}):`},{name:"pseudo:multi",match(i,s){o||(o=new RegExp(`^(${Rt})(?:${s.generator.config.separators.join("|")})`));let a=i.match(o);if(a)return zt[a[1]].map(u=>({matcher:i.slice(a[0].length),handle:(f,d)=>d({...f,pseudo:`${f.pseudo}${u}`})}))},multiPass:!1,autocomplete:`(${Rt}):`}]}function At(e){let{getBracket:t,h:r}=e,n,o,i;return{match(s,a){n&&o||(n=new RegExp(`^(${U})-(${Ve})(?:${a.generator.config.separators.join("|")})`),o=new RegExp(`^(${U})-(${Le})(?:${a.generator.config.separators.filter(u=>u!=="-").join("|")})`),i=new RegExp(`^(${U})-(\\[.+\\])(?:${a.generator.config.separators.filter(u=>u!=="-").join("|")})`));let c=s.match(n)||s.match(o)||s.match(i);if(c){let u=c[1],d=t(c[2],"[","]")?r.bracket(c[2]):G[c[2]]||Y[c[2]]||`:${c[2]}`;return{matcher:s.slice(c[0].length),selector:m=>`${m}:${u}(${d})`}}},multiPass:!0,autocomplete:`(${U})-(${Ve}|${Le}):`}}function Vt(e,t){let r=!!e?.attributifyPseudo,n=e?.prefix??"";n=(Array.isArray(n)?n:[n]).filter(Boolean)[0]??"";let o=(i,s)=>Qo(i,r?`[${n}${i}=""]`:`.${n}${i}`,s,t);return[o("group"," "),o("peer","~"),o("parent",">"),o("previous","+")]}var ei=/(part-\[(.+)\]:)(.+)/;function Lt(){return{match(e){let t=e.match(ei);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0}}function B(e,t,r={}){let n;return{name:e,match(o,i){n||(n=new RegExp(`^${k(e)}(?:${i.generator.config.separators.join("|")})`));let s=o.match(n);if(s){let a=o.slice(s[0].length),c=C(t).map(u=>({matcher:a,handle:(f,d)=>d({...f,...u(f)}),...r}));return c.length===1?c[0]:c}},autocomplete:`${e}:`}}function re(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${k(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function L(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=I(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function S(e,t,r){for(let n of C(e))if(t.startsWith(n)){let o=L(n,t,r);if(o){let[i="",s=o[1]]=S("/",o[1],r)??[];return[o[0],s,i]}for(let i of r.filter(s=>s!=="/")){let s=t.indexOf(i,n.length);if(s!==-1){let a=t.indexOf("/",n.length),c=a===-1||s<=a;return[t.slice(n.length,c?s:a),t.slice(s+i.length),c?"":t.slice(a+1,s)]}}}}var Be={};yo(Be,{auto:()=>ni,bracket:()=>ci,bracketOfColor:()=>ui,bracketOfLength:()=>fi,bracketOfPosition:()=>pi,cssvar:()=>di,degree:()=>mi,fraction:()=>li,global:()=>gi,number:()=>si,numberWithUnit:()=>ri,percent:()=>ai,position:()=>xi,properties:()=>bi,px:()=>ii,rem:()=>oi,time:()=>hi});var T={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"]},Fe={...T,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Me={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Mt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Wt=["x","y","z"],Ft=["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"],ne=Object.assign({},...Ft.map(e=>({[e.replace(/ /,"-")]:e})),...Ft.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),b=["inherit","initial","revert","revert-layer","unset"],oe=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,me=/^(var)\s*\((.+)\)(.*)/;var X=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,We=/^(-?\d*(?:\.\d+)?)$/,Ie=/^(px|[sld]?v[wh])$/i,_e={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},ge=/^\[(color|image|length|size|position|quoted|string):/i,It=/,(?![^()]*\))/g;var ti=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","border","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function O(e){return+e.toFixed(10)}function ri(e){let t=e.match(X);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${O(o)}${n}`}function ni(e){if(e==="auto"||e==="a")return"auto"}function oi(e){if(!e)return;if(Ie.test(e))return`${_e[e]}${e}`;let t=e.match(X);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${O(o)}${n}`:`${O(o/4)}rem`}function ii(e){if(Ie.test(e))return`${_e[e]}${e}`;let t=e.match(X);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return n?`${O(o)}${n}`:`${O(o)}px`}function si(e){if(!We.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return O(t)}function ai(e){if(e.endsWith("%")&&(e=e.slice(0,-1)),!We.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return`${O(t/100)}`}function li(e){if(!e)return;if(e==="full")return"100%";let[t,r]=e.split("/"),n=Number.parseFloat(t)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${O(n*100)}%`}function be(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n,o=e.match(ge);if(o?(t||(n=o[1]),r=e.slice(o[0].length,-1)):r=e.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let i=0;for(let s of r)if(s==="[")i+=1;else if(s==="]"&&(i-=1,i<0))return;if(i)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{let a=[];return s.replace(/var\((--.+?)[,)]/g,(c,u)=>(a.push(u),c.replace(u,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function ci(e){return be(e)}function ui(e){return be(e,"color")}function fi(e){return be(e,"length")}function pi(e){return be(e,"position")}function di(e){if(/^\$[^\s'"`;{}]/.test(e)){let[t,r]=e.slice(1).split(",");return`var(--${V(t)}${r?`, ${r}`:""})`}}function hi(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0&&!n?"0s":n?`${O(o)}${n}`:`${O(o)}ms`}function mi(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0deg":n?`${O(o)}${n}`:`${O(o)}deg`}function gi(e){if(b.includes(e))return e}function bi(e){if(e.split(",").every(t=>ti.includes(t)))return e}function xi(e){if(["top","left","right","bottom","center"].includes(e))return e}var yi=Ct(Be),l=yi;var _t={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",start:"top",middle:"middle",bottom:"bottom",end:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(b.map(e=>[e,e]))},Ut=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":_t[e]??l.bracket.cssvar.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(_t).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Bt=["center","left","right","justify","start","end"],Nt=[...Bt.map(e=>[`text-${e}`,{"text-align":e}]),...[...b,...Bt].map(e=>[`text-align-${e}`,{"text-align":e}])];var qt="$$mini-no-negative";function j(e){return([t,r,n],{theme:o})=>{let i=o.spacing?.[n||"DEFAULT"]??l.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return T[r].map(s=>[`${e}${s}`,i]);if(n?.startsWith("-")){let s=o.spacing?.[n.slice(1)];if(s!=null)return T[r].map(a=>[`${e}${a}`,`calc(${s} * -1)`])}}}function Dt(e,t,r="colors"){let n=e[r],o=-1;for(let i of t){if(o+=1,n&&typeof n!="string"){let s=t.slice(o).join("-").replace(/(-[a-z])/g,a=>a.slice(1).toUpperCase());if(n[s])return n[s];if(n[i]){n=n[i];continue}}return}return n}function Kt(e,t,r){return Dt(e,t,r)||Dt(e,t,"colors")}function Ne(e,t){let[r,n]=K(e,"[","]",["/",":"])??[];if(r!=null){let o=(r.match(ge)??[])[1];if(o==null||o===t)return[r,n]}}function xe(e,t,r){let n=Ne(e,"color");if(!n)return;let[o,i]=n,s=o.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[a]=s;if(!a)return;let c,u=l.bracketOfColor(o),f=u||o;if(l.numberWithUnit(f))return;if(/^#[\da-f]+$/i.test(f)?c=f:/^hex-[\da-fA-F]+$/.test(f)?c=`#${f.slice(4)}`:o.startsWith("$")&&(c=l.cssvar(o)),c=c||u,!c){let m=Kt(t,[o],r);typeof m=="string"&&(c=m)}let d="DEFAULT";if(!c){let m=s,h,[p]=s.slice(-1);/^\d+$/.test(p)&&(d=h=p,m=s.slice(0,-1));let g=Kt(t,m,r);typeof g=="object"?c=g[h??d]:typeof g=="string"&&!h&&(c=g)}return{opacity:i,name:a,no:d,color:c,cssColor:_(c),alpha:l.bracket.cssvar.percent(i??"")}}function w(e,t,r,n){return([,o],{theme:i,generator:s})=>{let a=xe(o??"",i,r);if(!a)return;let{alpha:c,color:u,cssColor:f}=a,m=s.config.envMode==="dev"&&u?` /* ${u} */`:"",h={};if(f)if(c!=null)h[e]=R(f,c)+m;else{let p=`--un-${t}-opacity`,g=R(f,`var(${p})`);g.includes(p)&&(h[p]=J(f)),h[e]=g+m}else if(u)if(c!=null)h[e]=R(u,c)+m;else{let p=`--un-${t}-opacity`,g=R(u,`var(${p})`);g.includes(p)&&(h[p]=1),h[e]=g+m}if(n?.(h)!==!1)return h}}function ye(e,t){let r=[];e=C(e);for(let n=0;n<e.length;n++){let o=H(e[n]," ",6);if(!o||o.length<3)return e;let i=!1,s=o.indexOf("inset");s!==-1&&(o.splice(s,1),i=!0);let a="",c=o.at(-1);if(_(o.at(0))){let u=_(o.shift());u&&(a=`, ${R(u)}`)}else if(_(c)){let u=_(o.pop());u&&(a=`, ${R(u)}`)}else c&&me.test(c)&&(a=`, ${o.pop()}`);r.push(`${i?"inset ":""}${o.join(" ")} var(${t}${a})`)}return r}function $e(e,t,r){return e!=null&&!!xe(e,t,r)?.color}var Ht=/[a-z]+/gi,Ue=new WeakMap;function we({theme:e,generator:t},r="breakpoints"){let n=t?.userConfig?.theme?.[r]||e[r];if(!n)return;if(Ue.has(e))return Ue.get(e);let o=Object.entries(n).sort((i,s)=>Number.parseInt(i[1].replace(Ht,""))-Number.parseInt(s[1].replace(Ht,""))).map(([i,s])=>({point:i,size:s}));return Ue.set(e,o),o}function x(e,t){return b.map(r=>[`${e}-${r}`,{[t??e]:r}])}function z(e){return e!=null&&oe.test(e)}function Gt(e){return e[0]==="["&&e.slice(-1)==="]"&&(e=e.slice(1,-1)),oe.test(e)||X.test(e)}function Se(e,t,r){let n=t.split(It);return e||!e&&n.length===1?Mt[e].map(o=>[`--un-${r}${o}`,t]):n.map((o,i)=>[`--un-${r}-${Wt[i]}`,o])}var Yt=[[/^outline-(?:width-|size-)?(.+)$/,Xt,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,$i,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...b].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]];function Xt([,e],{theme:t}){return{"outline-width":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}}function $i(e,t){return z(l.bracket(e[1]))?Xt(e,t):w("outline-color","outline-color","borderColor")(e,t)}var Zt=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function wi(e){return l.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}var Jt=[[/^will-change-(.+)/,([,e])=>({"will-change":wi(e)})]];var ce=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...b],er=[[/^(?:border|b)()(?:-(.+))?$/,A,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,A],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,A],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,A],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,A],[/^(?:border|b)-()(?:width|size)-(.+)$/,A,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,A],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,A],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,A],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,A],[/^(?:border|b)-()(?:color-)?(.+)$/,ie,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ie],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ie],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ie],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ie],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,se,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,se],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,se],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,se],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,se],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ae,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,ae],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ae],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,ae],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ae],[/^(?:border|b)-(?:style-)?()(.+)$/,le,{autocomplete:["(border|b)-style",`(border|b)-(${ce.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ce.join("|")})`,`(border|b)-<directions>-style-(${ce.join("|")})`,`(border|b)-style-(${ce.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,le],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,le],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,le],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,le]];function Qt(e,t,r){if(t!=null)return{[`border${r}-color`]:R(e,t)};if(r===""){let n={},o="--un-border-opacity",i=R(e,`var(${o})`);return i.includes(o)&&(n[o]=typeof e=="string"?1:J(e)),n["border-color"]=i,n}else{let n={},o="--un-border-opacity",i=`--un-border${r}-opacity`,s=R(e,`var(${i})`);return s.includes(i)&&(n[o]=typeof e=="string"?1:J(e),n[i]=`var(${o})`),n[`border${r}-color`]=s,n}}function Si(e){return([,t],r)=>{let n=xe(t,r,"borderColor");if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return Qt(s,o,e);if(i)return Qt(i,o,e)}}function A([,e="",t],{theme:r}){let n=r.lineWidth?.[t||"DEFAULT"]??l.bracket.cssvar.global.px(t||"1");if(e in T&&n!=null)return T[e].map(o=>[`border${o}-width`,n])}function ie([,e="",t],r){if(e in T){if(z(l.bracket(t)))return A(["",e,t],r);if($e(t,r.theme,"borderColor"))return Object.assign({},...T[e].map(n=>Si(n)(["",t],r.theme)))}}function se([,e="",t]){let r=l.bracket.percent.cssvar(t);if(e in T&&r!=null)return T[e].map(n=>[`--un-border${n}-opacity`,r])}function ae([,e="",t],{theme:r}){let n=r.borderRadius?.[t||"DEFAULT"]||l.bracket.cssvar.global.fraction.rem(t||"1");if(e in Me&&n!=null)return Me[e].map(o=>[`border${o}-radius`,n])}function le([,e="",t]){if(ce.includes(t)&&e in T)return T[e].map(r=>[`border${r}-style`,t])}var tr=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:l.bracket.percent.cssvar(e)})]],vi=/^\[url\(.+\)\]$/,ki=/^\[(?:length|size):.+\]$/,Ci=/^\[position:.+\]$/,Ri=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,Ti=/^\[image:.+\]$/,rr=[[/^bg-(.+)$/,(...e)=>{let t=e[0][1];if(vi.test(t))return{"--un-url":l.bracket(t),"background-image":"var(--un-url)"};if(ki.test(t)&&l.bracketOfLength(t)!=null)return{"background-size":l.bracketOfLength(t).split(" ").map(r=>l.fraction.auto.px.cssvar(r)??r).join(" ")};if((Gt(t)||Ci.test(t))&&l.bracketOfPosition(t)!=null)return{"background-position":l.bracketOfPosition(t).split(" ").map(r=>l.position.fraction.auto.px.cssvar(r)??r).join(" ")};if(Ri.test(t)||Ti.test(t)){let r=l.bracket(t);if(r)return{"background-image":(r.startsWith("http")?`url(${r})`:l.cssvar(r))??r}}return w("background-color","bg","backgroundColor")(...e)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],nr=[[/^color-scheme-(\w+)$/,([,e])=>({"color-scheme":e})]];var or=[[/^@container(?:\/(\w+))?(?:-(normal|inline-size|size))?$/,([,e,t])=>({"container-type":t??"inline-size","container-name":e})]];var ir=["solid","double","dotted","dashed","wavy",...b],sr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,ar,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,ji,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??l.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...ir.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...ir.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function ar([,e],{theme:t}){return{"text-decoration-thickness":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}}function ji(e,t){if(z(l.bracket(e[1])))return ar(e,t);let r=w("text-decoration-color","line","borderColor")(e,t);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}}var lr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:l.bracket(e)!=null?l.bracket(e).split(" ").map(t=>l.cssvar.fraction(t)??t).join(" "):l.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,e=""])=>({"flex-shrink":l.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":l.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??l.bracket.cssvar.auto.fraction.rem(e)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var Ei={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function De([,e="",t],{theme:r}){let n=r.spacing?.[t]??l.bracket.cssvar.global.rem(t);if(n!=null)return{[`${Ei[e]}gap`]:n}}var cr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,De,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,De,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,De,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function F(e){return e.replace("col","column")}function Ke(e){return e[0]==="r"?"Row":"Column"}function Oi(e,t,r){let n=t[`gridAuto${Ke(e)}`]?.[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return l.bracket.cssvar.auto.rem(r)}var ur=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>({[`grid-${F(e)}`]:r[`grid${Ke(e)}`]?.[t]??l.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${F(e)}`]:"1/-1"};let r=l.bracket.number(t);if(r!=null)return{[`grid-${F(e)}`]:`span ${r}/span ${r}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${F(e)}-start`]:l.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${F(e)}-end`]:l.bracket.cssvar(t)??t}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${F(e)}`]:Oi(e,r,t)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":l.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":F(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-template-${F(e)}`]:r[`gridTemplate${Ke(e)}`]?.[t]??l.bracket.cssvar(t)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${F(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${F(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":l.cssvar(t)??t.split("-").map(r=>`"${l.bracket(r)}"`).join(" ")}:{"grid-area":l.bracket.cssvar(t)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}],["grid-rows-subgrid",{"grid-template-rows":"subgrid"}],["grid-cols-subgrid",{"grid-template-columns":"subgrid"}]];var ve=["auto","hidden","clip","visible","scroll","overlay",...b],fr=[[/^(?:overflow|of)-(.+)$/,([,e])=>ve.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${ve.join("|")})`,`(overflow|of)-(x|y)-(${ve.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>ve.includes(t)?{[`overflow-${e}`]:t}:void 0]];var pr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>b.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],qe=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-stretch",{"justify-content":"stretch"}],["justify-left",{"justify-content":"left"}],["justify-right",{"justify-content":"right"}],["justify-center-safe",{"justify-content":"safe center"}],["justify-end-safe",{"justify-content":"safe flex-end"}],["justify-normal",{"justify-content":"normal"}],...x("justify","justify-content"),["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-items-center-safe",{"justify-items":"safe center"}],["justify-items-end-safe",{"justify-items":"safe flex-end"}],...x("justify-items"),["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}],["justify-self-baseline",{"justify-self":"baseline"}],["justify-self-center-safe",{"justify-self":"safe center"}],["justify-self-end-safe",{"justify-self":"safe flex-end"}],...x("justify-self")],dr=[[/^order-(.+)$/,([,e])=>({order:l.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Ge=[["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"}],["content-baseline",{"align-content":"baseline"}],["content-center-safe",{"align-content":"safe center"}],["content-end-safe",{"align-content":"safe flex-end"}],["content-stretch",{"align-content":"stretch"}],["content-normal",{"align-content":"normal"}],...x("content","align-content"),["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["items-baseline-last",{"align-items":"last baseline"}],["items-center-safe",{"align-items":"safe center"}],["items-end-safe",{"align-items":"safe flex-end"}],...x("items","align-items"),["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}],["self-baseline-last",{"align-self":"last baseline"}],["self-center-safe",{"align-self":"safe center"}],["self-end-safe",{"align-self":"safe flex-end"}],...x("self","align-self")],Ye=[["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-content-baseline",{"place-content":"baseline"}],["place-content-center-safe",{"place-content":"safe center"}],["place-content-end-safe",{"place-content":"safe flex-end"}],...x("place-content"),["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-items-baseline",{"place-items":"baseline"}],["place-items-center-safe",{"place-items":"safe center"}],["place-items-end-safe",{"place-items":"safe flex-end"}],...x("place-items"),["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}],["place-self-center-safe",{"place-self":"safe center"}],["place-self-end-safe",{"place-self":"safe flex-end"}],...x("place-self")],hr=[...qe,...Ge,...Ye].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function He(e,{theme:t}){return t.spacing?.[e]??l.bracket.cssvar.global.auto.fraction.rem(e)}function ue([,e,t],r){let n=He(t,r);if(n!=null&&e in Fe)return Fe[e].map(o=>[o.slice(1),n])}var mr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:He(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,ue],[/^(?: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]:He(t,r)})]],gr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...x("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-start",{clear:"inline-start"}],["clear-end",{clear:"inline-end"}],["clear-none",{clear:"none"}],...x("clear")],br=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":l.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??l.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],xr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...x("box","box-sizing")];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}} ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var zi=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"],Pi=["none","strict","content","size","inline-size","layout","style","paint"],ke=" ",$r=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:l.bracket.cssvar.global(e)})]],wr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...x("backface","backface-visibility")],Sr=[[/^cursor-(.+)$/,([,e])=>({cursor:l.bracket.cssvar.global(e)})],...zi.map(e=>[`cursor-${e}`,{cursor:e}])],vr=[[/^contain-(.*)$/,([,e])=>l.bracket(e)!=null?{contain:l.bracket(e).split(" ").map(t=>l.cssvar.fraction(t)??t).join(" ")}:Pi.includes(e)?{contain:e}:void 0]],kr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...x("pointer-events")],Cr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...x("resize")],Rr=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...x("select","user-select")],Tr=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...b].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],jr=[[/^intrinsic-size-(.+)$/,([,e])=>({"contain-intrinsic-size":l.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...x("content-visibility")],Er=[[/^content-(.+)$/,([,e])=>({content:l.bracket.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],Or=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}],["break-keep",{"word-break":"keep-all"}],["break-anywhere",{"overflow-wrap":"anywhere"}]],zr=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],Pr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Ar=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...x("case","text-transform")],Vr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Lr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],Fr=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]];var Xe={"--un-ring-inset":ke,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgb(147 197 253 / 0.5)","--un-shadow":"0 0 rgb(0 0 0 / 0)"},Ai=Object.keys(Xe),Mr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.ringWidth?.[e||"DEFAULT"]??l.px(e||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{custom:{preflightKeys:Ai},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,Wr,{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"--un-ring-offset-width":t.lineWidth?.[e]??l.bracket.cssvar.px(e)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,Vi,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,w("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function Wr([,e],{theme:t}){return{"--un-ring-width":t.ringWidth?.[e]??l.bracket.cssvar.px(e)}}function Vi(e,t){return z(l.bracket(e[1]))?Wr(e,t):w("--un-ring-color","ring","borderColor")(e,t)}var Ze={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":ke,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},Li=Object.keys(Ze),Ir=[[/^shadow(?:-(.+))?$/,(e,t)=>{let[,r]=e,{theme:n}=t,o=n.boxShadow?.[r||"DEFAULT"],i=r?l.bracket.cssvar(r):void 0;return(o!=null||i!=null)&&!$e(i,n,"shadowColor")?{"--un-shadow":ye(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:w("--un-shadow-color","shadow","shadowColor")(e,t)},{custom:{preflightKeys:Li},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Fi={h:"height",w:"width",inline:"inline-size",block:"block-size"};function N(e,t){return`${e||""}${Fi[t]}`}function Ce(e,t,r,n){let o=N(e,t).replace(/-(\w)/g,(s,a)=>a.toUpperCase()),i=r[o]?.[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return l.bracket.cssvar.global.auto.fraction.rem(n)}var Br=[[/^size-(min-|max-)?(.+)$/,([,e,t],{theme:r})=>({[N(e,"w")]:Ce(e,"w",r,t),[N(e,"h")]:Ce(e,"h",r,t)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[N(e,t)]:Ce(e,t,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[N(e,t)]:Ce(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>({[N(e,t)]:_r(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>({[N(e,t)]:_r(n,r)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function _r(e,t,r="breakpoints"){let n=we(e,r);if(n)return n.find(o=>o.point===t)?.size}function Mi(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return l.bracket.cssvar.global.auto.number(e)}var Ur=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Mi(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var Nr=[[/^pa?()-?(.+)$/,j("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,j("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,j("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,j("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,j("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,j("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Dr=[[/^ma?()-?(.+)$/,j("margin")],[/^m-?xy()()$/,j("margin")],[/^m-?([xy])(?:-?(.+))?$/,j("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,j("margin")],[/^m-(block|inline)(?:-(.+))?$/,j("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,j("margin")]];var Kr=[[/^fill-(.+)$/,w("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,Hr,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":l.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??l.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,Wi,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];function Hr([,e],{theme:t}){return{"stroke-width":t.lineWidth?.[e]??l.bracket.cssvar.fraction.px.number(e)}}function Wi(e,t){return z(l.bracket(e[1]))?Hr(e,t):w("stroke","stroke","borderColor")(e,t)}var Re=["translate","rotate","scale"],Ii=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","rotate(var(--un-rotate))","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))"].join(" "),Z=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),_i=["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(" "),Je={"--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},M=Object.keys(Je),Zr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":ne[e]??l.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(ne).join("|")})`,`origin-(${Object.keys(ne).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=l.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=l.bracket.cssvar(e)??(e.length>=3?ne[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,qr,{custom:{preflightKeys:M}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,qr,{custom:{preflightKeys:M}}],[/^(?:transform-)?rotate-()(.+)$/,Yr,{custom:{preflightKeys:M}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Yr,{custom:{preflightKeys:M}}],[/^(?:transform-)?skew-()(.+)$/,Xr,{custom:{preflightKeys:M}}],[/^(?:transform-)?skew-([xy])-(.+)$/,Xr,{custom:{preflightKeys:M},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Gr,{custom:{preflightKeys:M}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,Gr,{custom:{preflightKeys:M},autocomplete:[`transform-(${Re.join("|")})-<percent>`,`transform-(${Re.join("|")})-(x|y|z)-<percent>`,`(${Re.join("|")})-<percent>`,`(${Re.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:Z},{custom:{preflightKeys:M}}],["transform-cpu",{transform:Ii},{custom:{preflightKeys:["--un-translate-x","--un-translate-y","--un-rotate","--un-rotate-z","--un-skew-x","--un-skew-y","--un-scale-x","--un-scale-y"]}}],["transform-gpu",{transform:_i},{custom:{preflightKeys:M}}],["transform-none",{transform:"none"}],...x("transform")];function qr([,e,t],{theme:r}){let n=r.spacing?.[t]??l.bracket.cssvar.fraction.rem(t);if(n!=null)return[...Se(e,n,"translate"),["transform",Z]]}function Gr([,e,t]){let r=l.bracket.cssvar.fraction.percent(t);if(r!=null)return[...Se(e,r,"scale"),["transform",Z]]}function Yr([,e="",t]){let r=l.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:Z}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:Z}}function Xr([,e,t]){let r=l.bracket.cssvar.degree(t);if(r!=null)return[...Se(e,r,"skew"),["transform",Z]]}function Jr(e,t){let r;if(l.cssvar(e)!=null)r=l.cssvar(e);else{e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1));let n=e.split(",").map(o=>t.transitionProperty?.[o]??l.properties(o));n.every(Boolean)&&(r=n.join(","))}return r}var Qr=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{if(!e&&!t)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.DEFAULT??l.time("150")};if(e!=null){let n=Jr(e,r),o=r.duration?.[t||"DEFAULT"]??l.time(t||"150");if(n)return{"transition-property":n,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":o}}else if(t!=null)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.[t]??l.time(t)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||"DEFAULT"]??l.bracket.cssvar.time(e)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||"DEFAULT"]??l.bracket.cssvar.time(e)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||"DEFAULT"]??l.bracket.cssvar(e)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e],{theme:t})=>{let r=l.global(e)||Jr(e,t);if(r)return{"transition-property":r}},{autocomplete:[`transition-property-(${[...b].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...x("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]];var en=[[/^text-(.+)$/,Ui,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,sn,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,Bi,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,w("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,e])=>b.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${b.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||l.bracket.global.number(e)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>({"line-height":Qe(e,t,"lineHeight")}),{autocomplete:"(leading|lh|line-height)-$lineHeight"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":l.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||l.bracket.cssvar.global.rem(e)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||l.bracket.cssvar.global.rem(e)}),{autocomplete:"word-spacing-$wordSpacing"}],["font-stretch-normal",{"font-stretch":"normal"}],["font-stretch-ultra-condensed",{"font-stretch":"ultra-condensed"}],["font-stretch-extra-condensed",{"font-stretch":"extra-condensed"}],["font-stretch-condensed",{"font-stretch":"condensed"}],["font-stretch-semi-condensed",{"font-stretch":"semi-condensed"}],["font-stretch-semi-expanded",{"font-stretch":"semi-expanded"}],["font-stretch-expanded",{"font-stretch":"expanded"}],["font-stretch-extra-expanded",{"font-stretch":"extra-expanded"}],["font-stretch-ultra-expanded",{"font-stretch":"ultra-expanded"}],[/^font-stretch-(.+)$/,([,e])=>({"font-stretch":l.bracket.cssvar.fraction.global(e)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||l.bracket.cssvar.global(e)}),{autocomplete:"font-$fontFamily"}]],tn=[[/^tab(?:-(.+))?$/,([,e])=>{let t=l.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],rn=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||"DEFAULT"]||l.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"indent-$textIndent"}]],nn=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||"DEFAULT"]||l.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,w("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],on=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.textShadow?.[e||"DEFAULT"];return r!=null?{"--un-text-shadow":ye(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":l.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,w("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function Qe(e,t,r){return t[r]?.[e]||l.bracket.cssvar.global.rem(e)}function sn([,e],{theme:t}){let n=C(t.fontSize?.[e])?.[0]??l.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}}function Bi(e,t){return z(l.bracket(e[1]))?sn(e,t):w("color","text","textColor")(e,t)}function Ui([,e="base"],{theme:t}){let r=Ne(e,"length");if(!r)return;let[n,o]=r,i=C(t.fontSize?.[n]),s=o?Qe(o,t,"lineHeight"):void 0;if(i?.[0]){let[c,u,f]=i;return typeof u=="object"?{"font-size":c,...u}:{"font-size":c,"line-height":s??u??"1","letter-spacing":f?Qe(f,t,"letterSpacing"):void 0}}let a=l.bracketOfLength.rem(n);return s&&a?{"font-size":a,"line-height":s}:{"font-size":l.bracketOfLength.rem(e)}}var Ni={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},an=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Ni[e];if(r)return{[r]:l.cssvar(t)}}]],ln=[[/^\[(.*)\]$/,([e,t])=>{if(!t.includes(":"))return;let[r,...n]=t.split(":"),o=n.join(":");if(!Ki(t)&&/^[\w-]+$/.test(r)&&Di(o)){let i=l.bracket(`[${o}]`);if(i)return{[r]:i}}}]];function Di(e){let t=0;function r(n){for(;t<e.length;)if(t+=1,e[t]===n)return!0;return!1}for(t=0;t<e.length;t++){let n=e[t];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function Ki(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}var cn=[an,ln,vr,kr,wr,pr,mr,br,dr,ur,gr,Dr,xr,$r,Ur,Br,lr,Zr,Sr,Rr,Cr,Zt,Ye,Ge,qe,cr,hr,fr,Pr,Tr,Or,er,rr,nr,Kr,Nr,Nt,rn,zr,Ut,en,Ar,Vr,sr,Lr,tn,nn,on,tr,Ir,Yt,Mr,Qr,Jt,jr,Er,or,Fr,yr].flat(1);var un={position:["relative","absolute","fixed","sticky","static"],globalKeyword:b};var et={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3",950:"#d8dcdf"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f",950:"#080808"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values(et).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var fn={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},pn={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],sm:"0 1px 1px rgb(0 0 0 / 0.05)",md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 rgb(0 0 0 / 0)"};var dn={sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},hn={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"]},mn={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},gn={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},bn={DEFAULT:["0 0 1px rgb(0 0 0 / 0.2)","0 0 1px rgb(1 0 5 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"1px 1px 3px rgb(36 37 47 / 0.25)",md:["0 1px 2px rgb(30 29 39 / 0.19)","1px 2px 4px rgb(54 64 147 / 0.18)"],lg:["3px 3px 6px rgb(0 0 0 / 0.26)","0 0 5px rgb(15 3 86 / 0.22)"],xl:["1px 1px 3px rgb(0 0 0 / 0.29)","2px 4px 7px rgb(73 64 125 / 0.35)"]},xn={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},tt={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},yn={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},$n=tt;var rt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},wn={...rt},Sn={DEFAULT:"1px",none:"0"},vn={DEFAULT:"1rem",none:"0",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},kn={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Cn={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Rn={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},Tn={DEFAULT:"3px",none:"0"},jn={auto:"auto"},En={mouse:"(hover) and (pointer: fine)"};var On={...Je,...Ze,...Xe};var W={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},zn={auto:"auto",...W,screen:"100vw"},nt={none:"none",...W,screen:"100vw"},Pn={auto:"auto",...W,screen:"100vb"},An={auto:"auto",...W,screen:"100vi"},Vn={auto:"auto",...W,screen:"100vh"},ot={none:"none",...W,screen:"100vh"},it={none:"none",...W,screen:"100vb"},st={none:"none",...W,screen:"100vi"},Ln={...W};var Fn={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)"},Mn={none:"none",all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform",get DEFAULT(){return[this.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",")}};var Wn={width:zn,height:Vn,maxWidth:nt,maxHeight:ot,minWidth:nt,minHeight:ot,inlineSize:An,blockSize:Pn,maxInlineSize:st,maxBlockSize:it,minInlineSize:st,minBlockSize:it,colors:et,fontFamily:dn,fontSize:hn,fontWeight:yn,breakpoints:rt,verticalBreakpoints:wn,borderRadius:Cn,lineHeight:xn,letterSpacing:tt,wordSpacing:$n,boxShadow:Rn,textIndent:mn,textShadow:bn,textStrokeWidth:gn,blur:fn,dropShadow:pn,easing:Fn,transitionProperty:Mn,lineWidth:Sn,spacing:vn,duration:kn,ringWidth:Tn,preflightBase:On,containers:Ln,zIndex:jn,media:En};var In={name:"aria",match(e,t){let r=S("aria-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.aria?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[aria-${i}]`}}},multiPass:!0};function Te(e,t,r={}){return{name:`${e}-aria`,match(n,o){let i=S(`${e}-aria-`,n,o.generator.config.separators);if(i){let[s,a,c]=i,u=l.bracket(s)??o.theme.aria?.[s]??"";if(u){let f=!!r?.attributifyPseudo,d=r?.prefix??"";d=(Array.isArray(d)?d:[d]).filter(Boolean)[0]??"";let m=`${f?`[${d}${e}=""]`:`.${d}${e}`}`,h=V(c?`/${c}`:"");return{matcher:a,handle:(p,g)=>{let E=new RegExp(`${k(m)}${k(h)}(?:\\[.+?\\])+`),v=p.prefix.match(E),$;if(v){let y=(v.index??0)+m.length+h.length;$=[p.prefix.slice(0,y),`[aria-${u}]`,p.prefix.slice(y)].join("")}else{let y=Math.max(p.prefix.indexOf(m),0);$=[p.prefix.slice(0,y),m,h,`[aria-${u}]`,t,p.prefix.slice(y)].join("")}return g({...p,prefix:$})}}}}},multiPass:!0}}function Hi(){return{name:"has-aria",match(e,t){let r=S("has-aria-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.aria?.[n]??"";if(i)return{matcher:o,handle:(s,a)=>a({...s,pseudo:`${s.pseudo}:has([aria-${i}])`})}}},multiPass:!0}}function _n(e={}){return[Te("group"," ",e),Te("peer","~",e),Te("parent",">",e),Te("previous","+",e),Hi()]}var Bn=/(max|min)-\[([^\]]*)\]:/;function Un(){let e={};return{name:"breakpoints",match(t,r){if(Bn.test(t)){let o=t.match(Bn);return{matcher:t.replace(o[0],""),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media (${o[1]}-width: ${o[2]})`})}}let n=(we(r)??[]).map(({point:o,size:i},s)=>[o,i,s]);for(let[o,i,s]of n){e[o]||(e[o]=new RegExp(`^((?:([al]t-|[<~]|max-))?${o}(?:${r.generator.config.separators.join("|")}))`));let a=t.match(e[o]);if(!a)continue;let[,c]=a,u=t.slice(c.length);if(u==="container")continue;let f=c.startsWith("lt-")||c.startsWith("<")||c.startsWith("max-"),d=c.startsWith("at-")||c.startsWith("~"),m=3e3;return f?(m-=s+1,{matcher:u,handle:(h,p)=>p({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (max-width: ${Ae(i)})`,parentOrder:m})}):(m+=s+1,d&&s<n.length-1?{matcher:u,handle:(h,p)=>p({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${Ae(n[s+1][1])})`,parentOrder:m})}:{matcher:u,handle:(h,p)=>p({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:m})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var Nn=[B("*",e=>({selector:`${e.selector} > *`}),{order:-1})];function fe(e,t){return{name:`combinator:${e}`,match(r,n){if(!r.startsWith(e))return;let o=n.generator.config.separators,i=L(`${e}-`,r,o);if(!i){for(let a of o)if(r.startsWith(`${e}${a}`)){i=["",r.slice(e.length+a.length)];break}if(!i)return}let s=l.bracket(i[0])??"";return s===""&&(s="*"),{matcher:i[1],selector:a=>`${a}${t}${s}`}},multiPass:!0}}var Dn=[fe("all"," "),fe("children",">"),fe("next","+"),fe("sibling","+"),fe("siblings","~")];var Kn={name:"@",match(e,t){if(e.startsWith("@container"))return;let r=S("@",e,t.generator.config.separators);if(r){let[n,o,i]=r,s=l.bracket(n),a;if(s?a=l.numberWithUnit(s):a=t.theme.containers?.[n]??"",a){let c=1e3+Object.keys(t.theme.containers??{}).indexOf(n);return i&&(c+=1e3),{matcher:o,handle:(u,f)=>f({...u,parent:`${u.parent?`${u.parent} $$ `:""}@container${i?` ${i} `:" "}(min-width: ${a})`,parentOrder:c})}}}},multiPass:!0};function Hn(e={}){if(e?.dark==="class"||typeof e.dark=="object"){let{dark:t=".dark",light:r=".light"}=typeof e.dark=="string"?{}:e.dark;return[B("dark",C(t).map(n=>o=>({prefix:`${n} $$ ${o.prefix}`}))),B("light",C(r).map(n=>o=>({prefix:`${n} $$ ${o.prefix}`})))]}return[re("dark","@media (prefers-color-scheme: dark)"),re("light","@media (prefers-color-scheme: light)")]}var qn={name:"data",match(e,t){let r=S("data-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.data?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[data-${i}]`}}},multiPass:!0};function je(e,t,r={}){return{name:`${e}-data`,match(n,o){let i=S(`${e}-data-`,n,o.generator.config.separators);if(i){let[s,a,c]=i,u=l.bracket(s)??o.theme.data?.[s]??"";if(u){let f=!!r?.attributifyPseudo,d=r?.prefix??"";d=(Array.isArray(d)?d:[d]).filter(Boolean)[0]??"";let m=`${f?`[${d}${e}=""]`:`.${d}${e}`}`,h=V(c?`/${c}`:"");return{matcher:a,handle:(p,g)=>{let E=new RegExp(`${k(m)}${k(h)}(?:\\[.+?\\])+`),v=p.prefix.match(E),$;if(v){let y=(v.index??0)+m.length+h.length;$=[p.prefix.slice(0,y),`[data-${u}]`,p.prefix.slice(y)].join("")}else{let y=Math.max(p.prefix.indexOf(m),0);$=[p.prefix.slice(0,y),m,h,`[data-${u}]`,t,p.prefix.slice(y)].join("")}return g({...p,prefix:$})}}}}},multiPass:!0}}function qi(){return{name:"has-data",match(e,t){let r=S("has-data-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.data?.[n]??"";if(i)return{matcher:o,handle:(s,a)=>a({...s,pseudo:`${s.pseudo}:has([data-${i}])`})}}},multiPass:!0}}function Gn(e={}){return[je("group"," ",e),je("peer","~",e),je("parent",">",e),je("previous","+",e),qi()]}var Yn=[B("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),B("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];function Xn(){let e;return{name:"important",match(t,r){e||(e=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,o=t.match(e);if(o?n=t.slice(o[0].length):t.endsWith("!")&&(n=t.slice(0,-1)),n)return{matcher:n,body:i=>(i.forEach(s=>{s[1]!=null&&(s[1]+=" !important")}),i)}}}}var Zn=re("print","@media print"),Jn={name:"media",match(e,t){let r=S("media-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??"";if(i===""&&(i=t.theme.media?.[n]??""),i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${i}`})}}},multiPass:!0};var Qn={name:"selector",match(e,t){let r=L("selector-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n);if(i)return{matcher:o,selector:()=>i}}}},eo={name:"layer",match(e,t){let r=S("layer-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??n;if(i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${i}`})}}}},to={name:"uno-layer",match(e,t){let r=S("uno-layer-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??n;if(i)return{matcher:o,layer:i}}}},ro={name:"scope",match(e,t){let r=L("scope-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n);if(i)return{matcher:o,selector:s=>`${i} $$ ${s}`}}}},no={name:"variables",match(e,t){if(!e.startsWith("["))return;let[r,n]=I(e,"[","]")??[];if(!(r&&n))return;let o;for(let a of t.generator.config.separators)if(n.startsWith(a)){o=n.slice(a.length);break}if(o==null)return;let i=l.bracket(r)??"",s=i.startsWith("@");if(s||i.includes("&"))return{matcher:o,handle(a,c){let u=s?{parent:`${a.parent?`${a.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,a.selector)};return c({...a,...u})}}},multiPass:!0},oo={name:"theme-variables",match(e,t){if(vt(e))return{matcher:e,handle(r,n){return n({...r,entries:JSON.parse(kt(JSON.stringify(r.entries),t.theme))})}}}};var io=/^-?[0-9.]+(?:[a-z]+|%)?$/,so=/-?[0-9.]+(?:[a-z]+|%)?/,Gi=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function Yi(e){let t=e.match(oe)||e.match(me);if(t){let[r,n]=K(`(${t[2]})${t[3]}`,"(",")"," ")??[];if(r)return`calc(${t[1]}${r} * -1)${n?` ${n}`:""}`}}var Xi=/\b(hue-rotate)\s*(\(.*)/;function Zi(e){let t=e.match(Xi);if(t){let[r,n]=K(t[2],"(",")"," ")??[];if(r){let o=io.test(r.slice(1,-1))?r.replace(so,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${r} * -1))`;return`${t[1]}${o}${n?` ${n}`:""}`}}}var ao={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===qt))return;let r=!1;return t.forEach(n=>{let o=n[1]?.toString();if(!o||o==="0"||Gi.some(a=>a.test(n[0])))return;let i=Yi(o);if(i){n[1]=i,r=!0;return}let s=Zi(o);if(s){n[1]=s,r=!0;return}io.test(o)&&(n[1]=o.replace(so,a=>a.startsWith("-")?a.slice(1):`-${a}`),r=!0)}),r?t:[]}}}};function lo(){return Pt({getBracket:I,h:l,variantGetBracket:L})}function co(){return At({getBracket:I,h:l,variantGetBracket:L})}function uo(e={}){return Vt(e,{getBracket:I,h:l,variantGetBracket:L})}var fo=Lt();var po={name:"starting",match(e){if(e.startsWith("starting:"))return{matcher:e.slice(9),handle:(t,r)=>r({...t,parent:"@starting-style"})}}};var ho={name:"supports",match(e,t){let r=S("supports-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??"";if(i===""&&(i=t.theme.supports?.[n]??""),i)return i.startsWith("(")&&i.endsWith(")")||(i=`(${i})`),{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};function mo(e){return[In,qn,eo,Qn,to,ao,po,Xn(),ho,Zn,Jn,Un(),...Dn,...lo(),co(),...uo(e),fo,...Hn(e),...Yn,ro,...Nn,Kn,no,...Gn(e),..._n(e),oo]}var Ji=(e={})=>(e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.preflight=e.preflight??!0,e.variablePrefix=e.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:Wn,rules:cn,variants:mo(e),options:e,prefix:e.prefix,postprocess:Qi(e.variablePrefix),preflights:ht(e),extractorDefault:e.arbitraryVariants===!1?void 0:dt(),autocomplete:{shorthands:un}}),go=Ji;function Qi(e){if(e!=="un-")return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetMini:e=>go(e)});})();
10
+ `?i=!0:f!=="\r"&&i&&(i=!1,a===c.start||(this._splitChunk(c,a),c=c.next),c.prependRight(t))}a+=1}a=c.end,c=c.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,r){return q.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),q.insertLeft=!0),this.appendLeft(t,r)}insertRight(t,r){return q.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),q.insertRight=!0),this.prependRight(t,r)}move(t,r,n){if(t=t+this.offset,r=r+this.offset,n=n+this.offset,n>=t&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(n);let o=this.byStart[t],i=this.byEnd[r],s=o.previous,a=i.next,c=this.byStart[n];if(!c&&i===this.lastChunk)return this;let u=c?c.previous:this.lastChunk;return s&&(s.next=a),a&&(a.previous=s),u&&(u.next=o),c&&(c.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=u,i.next=c||null,u||(this.firstChunk=o),c||(this.lastChunk=i),this}overwrite(t,r,n,o){return o=o||{},this.update(t,r,n,{...o,overwrite:!o.contentOnly})}update(t,r,n,o){if(t=t+this.offset,r=r+this.offset,typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(r),o===!0&&(q.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),q.storeName=!0),o={storeName:!0});let i=o!==void 0?o.storeName:!1,s=o!==void 0?o.overwrite:!1;if(i){let u=this.original.slice(t,r);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}let a=this.byStart[t],c=this.byEnd[r];if(a){let u=a;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}a.edit(n,i,!s)}else{let u=new de(t,r,"").edit(n,i);c.next=u,u.previous=c}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}reset(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.reset(),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(ee);if(t!==-1)return this.outro.substr(t+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(ee),t!==-1)return n.outro.substr(t+1)+r;r=n.outro+r}if(n.content.length>0){if(t=n.content.lastIndexOf(ee),t!==-1)return n.content.substr(t+1)+r;r=n.content+r}if(n.intro.length>0){if(t=n.intro.lastIndexOf(ee),t!==-1)return n.intro.substr(t+1)+r;r=n.intro+r}}while(n=n.previous);return t=this.intro.lastIndexOf(ee),t!==-1?this.intro.substr(t+1)+r:this.intro+r}slice(t=0,r=this.original.length-this.offset){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}let n="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<r&&o.end>=r)return n;o=o.next}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(n+=o.intro);let s=o.start<r&&o.end>=r;if(s&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let a=i===o?t-o.start:0,c=s?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(a,c),o.outro&&(!s||o.end===r)&&(n+=o.outro),s)break;o=o.next}return n}snip(t,r){let n=this.clone();return n.remove(0,t),n.remove(r,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let r=this.lastSearchedChunk,n=r,o=t>r.end;for(;r;){if(r.contains(t))return this._splitChunk(r,t);if(r=o?this.byStart[r.end]:this.byEnd[r.start],r===n)return;n=r}}_splitChunk(t,r){if(t.edited&&t.content.length){let o=wt(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let n=t.split(r);return this.byEnd[r]=t,this.byStart[r]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,r=this.firstChunk;for(;r;)t+=r.toString(),r=r.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{let o=n.end,i=n.trimEnd(r);if(n.end!==o&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{let o=n.end,i=n.trimStart(r);if(n.end!==o&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,r){function n(i,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(a,c)=>c==="$"?"$":c==="&"?i[0]:+c<i.length?i[+c]:`$${c}`):r(...i,i.index,s,i.groups)}function o(i,s){let a,c=[];for(;a=i.exec(s);)c.push(a);return c}if(t.global)o(t,this.original).forEach(s=>{if(s.index!=null){let a=n(s,this.original);a!==s[0]&&this.overwrite(s.index,s.index+s[0].length,a)}});else{let i=this.original.match(t);if(i&&i.index!=null){let s=n(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s)}}return this}_replaceString(t,r){let{original:n}=this,o=n.indexOf(t);return o!==-1&&(typeof r=="function"&&(r=r(t,o,n)),t!==r&&this.overwrite(o,o+t.length,r)),this}replace(t,r){return typeof t=="string"?this._replaceString(t,r):this._replaceRegexp(t,r)}_replaceAllString(t,r){let{original:n}=this,o=t.length;for(let i=n.indexOf(t);i!==-1;i=n.indexOf(t,i+o)){let s=n.slice(i,i+o),a=r;typeof r=="function"&&(a=r(s,i,n)),s!==a&&this.overwrite(i,i+o,a)}return this}replaceAll(t,r){if(typeof t=="string")return this._replaceAllString(t,r);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,r)}};var Yo=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function St(e){return e.includes("theme(")&&e.includes(")")}function vt(e,t,r=!0){let n=Array.from(e.toString().matchAll(Yo));if(!n.length)return e;let o=new he(e);for(let i of n){let s=i[2];if(!s)throw new Error("theme() expect exact one argument, but got 0");let a=Xo(s,t,r);a&&o.overwrite(i.index,i.index+i[0].length,a)}return o.toString()}function Xo(e,t,r=!0){let[n,o]=e.split("/"),s=n.trim().split(".").reduce((a,c)=>a?.[c],t);if(typeof s=="object"&&(s=s.DEFAULT),typeof s=="string"){if(o){let a=_(s);a&&(s=R(a,o))}return s}else if(r)throw new Error(`theme of "${e}" did not found`)}function Pe(e){let t=e.match(/^-?\d+\.?\d*/)?.[0]||"",r=e.slice(t.length);if(r==="px"){let n=Number.parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`}return`calc(${e} - 0.1px)`}function kt(e){let t=function(n,o){let i=this.__options?.sequence||[];this.__options.sequence=[];for(let s of i){let a=e[s](n,o);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var te="__pseudo_placeholder__",G=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${te})`],["nth-last",`:nth-last-child(${te})`],["nth-last-of-type",`:nth-last-of-type(${te})`],["nth-of-type",`:nth-of-type(${te})`],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),jt=Object.keys(G),Y=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Et=Object.keys(Y),Zo=["not","is","where","has"],Ot=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),Ae=Object.entries(G).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),Ve=Object.entries(Y).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),U=Zo.join("|"),Ct=Object.keys(Ot).sort((e,t)=>t.length-e.length).join("|"),Jo=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],Rt=Object.entries(G).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),Tt=Object.entries(Y).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function Qo(e,t,r,n){let{h:o,variantGetBracket:i}=n,s=new RegExp(`^(${k(t)}:)(\\S+)${k(r)}\\1`),a,c,u,f,d=p=>{let g=i(`${e}-`,p,[]);if(!g)return;let[E,v]=g,$=o.bracket(E);if($==null)return;let y=v.split(a,1)?.[0]??"",P=`${t}${V(y)}`;return[y,p.slice(p.length-(v.length-y.length-1)),$.includes("&")?$.replace(/&/g,P):`${P}${$}`]},m=p=>{let g=p.match(c)||p.match(u);if(!g)return;let[E,v,$]=g,y=g[3]??"",P=G[$]||Y[$]||`:${$}`;return v&&(P=`:${v}(${P})`),[y,p.slice(E.length),`${t}${V(y)}${P}`,$]},h=p=>{let g=p.match(f);if(!g)return;let[E,v,$]=g,y=g[3]??"",P=`:${v}(${$})`;return[y,p.slice(E.length),`${t}${V(y)}${P}`]};return{name:`pseudo:${e}`,match(p,g){if(a&&c&&u||(a=new RegExp(`(?:${g.generator.config.separators.join("|")})`),c=new RegExp(`^${e}-(?:(?:(${U})-)?(${Ae}))(?:(/[\\w-]+))?(?:${g.generator.config.separators.join("|")})`),u=new RegExp(`^${e}-(?:(?:(${U})-)?(${Ve}))(?:(/[\\w-]+))?(?:${g.generator.config.separators.filter(D=>D!=="-").join("|")})`),f=new RegExp(`^${e}-(?:(${U})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${g.generator.config.separators.filter(D=>D!=="-").join("|")})`)),!p.startsWith(e))return;let E=d(p)||m(p)||h(p);if(!E)return;let[v,$,y,P=""]=E;return{matcher:$,handle:(D,bo)=>bo({...D,prefix:`${y}${r}${D.prefix}`.replace(s,"$1$2:"),sort:jt.indexOf(P)??Et.indexOf(P)})}},multiPass:!0}}function zt(e){let{h:t}=e,r,n,o;return[{name:"pseudo",match(i,s){r&&n||(r=new RegExp(`^(${Rt})(?:-(\\d+|\\[(\\w|[+-.])+\\]))?(?:${s.generator.config.separators.join("|")})`),n=new RegExp(`^(${Tt})(?:${s.generator.config.separators.filter(c=>c!=="-").join("|")})`));let a=i.match(r)||i.match(n);if(a){let c=G[a[1]]||Y[a[1]]||`:${a[1]}`;if(a[2]){let f;a[2].startsWith("[")&&a[2].endsWith("]")?f=t.bracket(a[2]):f=a[2],f&&(c=c.replace(te,f))}let u=jt.indexOf(a[1]);return u===-1&&(u=Et.indexOf(a[1])),u===-1&&(u=void 0),{matcher:i.slice(a[0].length),handle:(f,d)=>{let m=c.includes("::")&&!Jo.includes(c)?{pseudo:`${f.pseudo}${c}`}:{selector:`${f.selector}${c}`};return d({...f,...m,sort:u,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${Rt}|${Tt}):`},{name:"pseudo:multi",match(i,s){o||(o=new RegExp(`^(${Ct})(?:${s.generator.config.separators.join("|")})`));let a=i.match(o);if(a)return Ot[a[1]].map(u=>({matcher:i.slice(a[0].length),handle:(f,d)=>d({...f,pseudo:`${f.pseudo}${u}`})}))},multiPass:!1,autocomplete:`(${Ct}):`}]}function Pt(e){let{getBracket:t,h:r}=e,n,o,i;return{match(s,a){n&&o||(n=new RegExp(`^(${U})-(${Ae})(?:${a.generator.config.separators.join("|")})`),o=new RegExp(`^(${U})-(${Ve})(?:${a.generator.config.separators.filter(u=>u!=="-").join("|")})`),i=new RegExp(`^(${U})-(\\[.+\\])(?:${a.generator.config.separators.filter(u=>u!=="-").join("|")})`));let c=s.match(n)||s.match(o)||s.match(i);if(c){let u=c[1],d=t(c[2],"[","]")?r.bracket(c[2]):G[c[2]]||Y[c[2]]||`:${c[2]}`;return{matcher:s.slice(c[0].length),selector:m=>`${m}:${u}(${d})`}}},multiPass:!0,autocomplete:`(${U})-(${Ae}|${Ve}):`}}function At(e,t){let r=!!e?.attributifyPseudo,n=e?.prefix??"";n=(Array.isArray(n)?n:[n]).filter(Boolean)[0]??"";let o=(i,s)=>Qo(i,r?`[${n}${i}=""]`:`.${n}${i}`,s,t);return[o("group"," "),o("peer","~"),o("parent",">"),o("previous","+")]}var ei=/(part-\[(.+)\]:)(.+)/;function Vt(){return{match(e){let t=e.match(ei);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0}}function B(e,t,r={}){let n;return{name:e,match(o,i){n||(n=new RegExp(`^${k(e)}(?:${i.generator.config.separators.join("|")})`));let s=o.match(n);if(s){let a=o.slice(s[0].length),c=C(t).map(u=>({matcher:a,handle:(f,d)=>d({...f,...u(f)}),...r}));return c.length===1?c[0]:c}},autocomplete:`${e}:`}}function re(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${k(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function L(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=I(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function S(e,t,r){for(let n of C(e))if(t.startsWith(n)){let o=L(n,t,r);if(o){let[i="",s=o[1]]=S("/",o[1],r)??[];return[o[0],s,i]}for(let i of r.filter(s=>s!=="/")){let s=t.indexOf(i,n.length);if(s!==-1){let a=t.indexOf("/",n.length),c=a===-1||s<=a;return[t.slice(n.length,c?s:a),t.slice(s+i.length),c?"":t.slice(a+1,s)]}}}}var _e={};yo(_e,{auto:()=>ni,bracket:()=>ci,bracketOfColor:()=>ui,bracketOfLength:()=>fi,bracketOfPosition:()=>pi,cssvar:()=>di,degree:()=>mi,fraction:()=>li,global:()=>gi,number:()=>si,numberWithUnit:()=>ri,percent:()=>ai,position:()=>xi,properties:()=>bi,px:()=>ii,rem:()=>oi,time:()=>hi});var T={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"]},Le={...T,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Fe={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Ft={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Mt=["x","y","z"],Lt=["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"],ne=Object.assign({},...Lt.map(e=>({[e.replace(/ /,"-")]:e})),...Lt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),b=["inherit","initial","revert","revert-layer","unset"],oe=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,Wt=/^(var)\s*\((.+)\)(.*)/;var X=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Me=/^(-?\d*(?:\.\d+)?)$/,We=/^(px|[sld]?v[wh])$/i,Ie={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},me=/^\[(color|image|length|size|position|quoted|string):/i,It=/,(?![^()]*\))/g;var ti=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","border","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function O(e){return+e.toFixed(10)}function ri(e){let t=e.match(X);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${O(o)}${n}`}function ni(e){if(e==="auto"||e==="a")return"auto"}function oi(e){if(!e)return;if(We.test(e))return`${Ie[e]}${e}`;let t=e.match(X);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${O(o)}${n}`:`${O(o/4)}rem`}function ii(e){if(We.test(e))return`${Ie[e]}${e}`;let t=e.match(X);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return n?`${O(o)}${n}`:`${O(o)}px`}function si(e){if(!Me.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return O(t)}function ai(e){if(e.endsWith("%")&&(e=e.slice(0,-1)),!Me.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return`${O(t/100)}`}function li(e){if(!e)return;if(e==="full")return"100%";let[t,r]=e.split("/"),n=Number.parseFloat(t)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${O(n*100)}%`}function ge(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n,o=e.match(me);if(o?(t||(n=o[1]),r=e.slice(o[0].length,-1)):r=e.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let i=0;for(let s of r)if(s==="[")i+=1;else if(s==="]"&&(i-=1,i<0))return;if(i)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{let a=[];return s.replace(/var\((--.+?)[,)]/g,(c,u)=>(a.push(u),c.replace(u,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function ci(e){return ge(e)}function ui(e){return ge(e,"color")}function fi(e){return ge(e,"length")}function pi(e){return ge(e,"position")}function di(e){if(/^\$[^\s'"`;{}]/.test(e)){let[t,r]=e.slice(1).split(",");return`var(--${V(t)}${r?`, ${r}`:""})`}}function hi(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0&&!n?"0s":n?`${O(o)}${n}`:`${O(o)}ms`}function mi(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0deg":n?`${O(o)}${n}`:`${O(o)}deg`}function gi(e){if(b.includes(e))return e}function bi(e){if(e.split(",").every(t=>ti.includes(t)))return e}function xi(e){if(["top","left","right","bottom","center"].includes(e))return e}var yi=kt(_e),l=yi;var _t={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",start:"top",middle:"middle",bottom:"bottom",end:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(b.map(e=>[e,e]))},Ut=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":_t[e]??l.bracket.cssvar.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(_t).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Bt=["center","left","right","justify","start","end"],Nt=[...Bt.map(e=>[`text-${e}`,{"text-align":e}]),...[...b,...Bt].map(e=>[`text-align-${e}`,{"text-align":e}])];var qt="$$mini-no-negative";function j(e){return([t,r,n],{theme:o})=>{let i=o.spacing?.[n||"DEFAULT"]??l.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return T[r].map(s=>[`${e}${s}`,i]);if(n?.startsWith("-")){let s=o.spacing?.[n.slice(1)];if(s!=null)return T[r].map(a=>[`${e}${a}`,`calc(${s} * -1)`])}}}function Dt(e,t,r="colors"){let n=e[r],o=-1;for(let i of t){if(o+=1,n&&typeof n!="string"){let s=t.slice(o).join("-").replace(/(-[a-z])/g,a=>a.slice(1).toUpperCase());if(n[s])return n[s];if(n[i]){n=n[i];continue}}return}return n}function Kt(e,t,r){return Dt(e,t,r)||Dt(e,t,"colors")}function Ue(e,t){let[r,n]=K(e,"[","]",["/",":"])??[];if(r!=null){let o=(r.match(me)??[])[1];if(o==null||o===t)return[r,n]}}function be(e,t,r){let n=Ue(e,"color");if(!n)return;let[o,i]=n,s=o.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[a]=s;if(!a)return;let c,u=l.bracketOfColor(o),f=u||o;if(l.numberWithUnit(f))return;if(/^#[\da-f]+$/i.test(f)?c=f:/^hex-[\da-fA-F]+$/.test(f)?c=`#${f.slice(4)}`:o.startsWith("$")&&(c=l.cssvar(o)),c=c||u,!c){let m=Kt(t,[o],r);typeof m=="string"&&(c=m)}let d="DEFAULT";if(!c){let m=s,h,[p]=s.slice(-1);/^\d+$/.test(p)&&(d=h=p,m=s.slice(0,-1));let g=Kt(t,m,r);typeof g=="object"?c=g[h??d]:typeof g=="string"&&!h&&(c=g)}return{opacity:i,name:a,no:d,color:c,cssColor:_(c),alpha:l.bracket.cssvar.percent(i??"")}}function w(e,t,r,n){return([,o],{theme:i,generator:s})=>{let a=be(o??"",i,r);if(!a)return;let{alpha:c,color:u,cssColor:f}=a,m=s.config.envMode==="dev"&&u?` /* ${u} */`:"",h={};if(f)if(c!=null)h[e]=R(f,c)+m;else{let p=`--un-${t}-opacity`,g=R(f,`var(${p})`);g.includes(p)&&(h[p]=J(f)),h[e]=g+m}else if(u)if(c!=null)h[e]=R(u,c)+m;else{let p=`--un-${t}-opacity`,g=R(u,`var(${p})`);g.includes(p)&&(h[p]=1),h[e]=g+m}if(n?.(h)!==!1)return h}}function xe(e,t){let r=[];e=C(e);for(let n=0;n<e.length;n++){let o=H(e[n]," ",6);if(!o||o.length<3)return e;let i=!1,s=o.indexOf("inset");s!==-1&&(o.splice(s,1),i=!0);let a="",c=o.at(-1);if(_(o.at(0))){let u=_(o.shift());u&&(a=`, ${R(u)}`)}else if(_(c)){let u=_(o.pop());u&&(a=`, ${R(u)}`)}else c&&c.startsWith("var(")&&(a=`, ${o.pop()}`);r.push(`${i?"inset ":""}${o.join(" ")} var(${t}${a})`)}return r}function ye(e,t,r){return e!=null&&!!be(e,t,r)?.color}var Ht=/[a-z]+/gi,Be=new WeakMap;function $e({theme:e,generator:t},r="breakpoints"){let n=t?.userConfig?.theme?.[r]||e[r];if(!n)return;if(Be.has(e))return Be.get(e);let o=Object.entries(n).sort((i,s)=>Number.parseInt(i[1].replace(Ht,""))-Number.parseInt(s[1].replace(Ht,""))).map(([i,s])=>({point:i,size:s}));return Be.set(e,o),o}function x(e,t){return b.map(r=>[`${e}-${r}`,{[t??e]:r}])}function z(e){return e!=null&&oe.test(e)}function Gt(e){return e[0]==="["&&e.slice(-1)==="]"&&(e=e.slice(1,-1)),oe.test(e)||X.test(e)}function we(e,t,r){let n=t.split(It);return e||!e&&n.length===1?Ft[e].map(o=>[`--un-${r}${o}`,t]):n.map((o,i)=>[`--un-${r}-${Mt[i]}`,o])}var Yt=[[/^outline-(?:width-|size-)?(.+)$/,Xt,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,$i,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...b].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]];function Xt([,e],{theme:t}){return{"outline-width":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}}function $i(e,t){return z(l.bracket(e[1]))?Xt(e,t):w("outline-color","outline-color","borderColor")(e,t)}var Zt=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function wi(e){return l.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}var Jt=[[/^will-change-(.+)/,([,e])=>({"will-change":wi(e)})]];var ce=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...b],er=[[/^(?:border|b)()(?:-(.+))?$/,A,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,A],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,A],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,A],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,A],[/^(?:border|b)-()(?:width|size)-(.+)$/,A,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,A],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,A],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,A],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,A],[/^(?:border|b)-()(?:color-)?(.+)$/,ie,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ie],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ie],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ie],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ie],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,se,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,se],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,se],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,se],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,se],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ae,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,ae],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ae],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,ae],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ae],[/^(?:border|b)-(?:style-)?()(.+)$/,le,{autocomplete:["(border|b)-style",`(border|b)-(${ce.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ce.join("|")})`,`(border|b)-<directions>-style-(${ce.join("|")})`,`(border|b)-style-(${ce.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,le],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,le],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,le],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,le]];function Qt(e,t,r){if(t!=null)return{[`border${r}-color`]:R(e,t)};if(r===""){let n={},o="--un-border-opacity",i=R(e,`var(${o})`);return i.includes(o)&&(n[o]=typeof e=="string"?1:J(e)),n["border-color"]=i,n}else{let n={},o="--un-border-opacity",i=`--un-border${r}-opacity`,s=R(e,`var(${i})`);return s.includes(i)&&(n[o]=typeof e=="string"?1:J(e),n[i]=`var(${o})`),n[`border${r}-color`]=s,n}}function Si(e){return([,t],r)=>{let n=be(t,r,"borderColor");if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return Qt(s,o,e);if(i)return Qt(i,o,e)}}function A([,e="",t],{theme:r}){let n=r.lineWidth?.[t||"DEFAULT"]??l.bracket.cssvar.global.px(t||"1");if(e in T&&n!=null)return T[e].map(o=>[`border${o}-width`,n])}function ie([,e="",t],r){if(e in T){if(z(l.bracket(t)))return A(["",e,t],r);if(ye(t,r.theme,"borderColor"))return Object.assign({},...T[e].map(n=>Si(n)(["",t],r.theme)))}}function se([,e="",t]){let r=l.bracket.percent.cssvar(t);if(e in T&&r!=null)return T[e].map(n=>[`--un-border${n}-opacity`,r])}function ae([,e="",t],{theme:r}){let n=r.borderRadius?.[t||"DEFAULT"]||l.bracket.cssvar.global.fraction.rem(t||"1");if(e in Fe&&n!=null)return Fe[e].map(o=>[`border${o}-radius`,n])}function le([,e="",t]){if(ce.includes(t)&&e in T)return T[e].map(r=>[`border${r}-style`,t])}var tr=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:l.bracket.percent.cssvar(e)})]],vi=/^\[url\(.+\)\]$/,ki=/^\[(?:length|size):.+\]$/,Ci=/^\[position:.+\]$/,Ri=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,Ti=/^\[image:.+\]$/,rr=[[/^bg-(.+)$/,(...e)=>{let t=e[0][1];if(vi.test(t))return{"--un-url":l.bracket(t),"background-image":"var(--un-url)"};if(ki.test(t)&&l.bracketOfLength(t)!=null)return{"background-size":l.bracketOfLength(t).split(" ").map(r=>l.fraction.auto.px.cssvar(r)??r).join(" ")};if((Gt(t)||Ci.test(t))&&l.bracketOfPosition(t)!=null)return{"background-position":l.bracketOfPosition(t).split(" ").map(r=>l.position.fraction.auto.px.cssvar(r)??r).join(" ")};if(Ri.test(t)||Ti.test(t)){let r=l.bracket(t);if(r)return{"background-image":(r.startsWith("http")?`url(${r})`:l.cssvar(r))??r}}return w("background-color","bg","backgroundColor")(...e)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],nr=[[/^color-scheme-(\w+)$/,([,e])=>({"color-scheme":e})]];var or=[[/^@container(?:\/(\w+))?(?:-(normal|inline-size|size))?$/,([,e,t])=>({"container-type":t??"inline-size","container-name":e})]];var ir=["solid","double","dotted","dashed","wavy",...b],sr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,ar,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,ji,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??l.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...ir.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...ir.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function ar([,e],{theme:t}){return{"text-decoration-thickness":t.lineWidth?.[e]??l.bracket.cssvar.global.px(e)}}function ji(e,t){if(z(l.bracket(e[1])))return ar(e,t);let r=w("text-decoration-color","line","borderColor")(e,t);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}}var lr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:l.bracket(e)!=null?l.bracket(e).split(" ").map(t=>l.cssvar.fraction(t)??t).join(" "):l.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,e=""])=>({"flex-shrink":l.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":l.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??l.bracket.cssvar.auto.fraction.rem(e)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var Ei={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function Ne([,e="",t],{theme:r}){let n=r.spacing?.[t]??l.bracket.cssvar.global.rem(t);if(n!=null)return{[`${Ei[e]}gap`]:n}}var cr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ne,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ne,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,Ne,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function F(e){return e.replace("col","column")}function De(e){return e[0]==="r"?"Row":"Column"}function Oi(e,t,r){let n=t[`gridAuto${De(e)}`]?.[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return l.bracket.cssvar.auto.rem(r)}var ur=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>({[`grid-${F(e)}`]:r[`grid${De(e)}`]?.[t]??l.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${F(e)}`]:"1/-1"};let r=l.bracket.number(t);if(r!=null)return{[`grid-${F(e)}`]:`span ${r}/span ${r}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${F(e)}-start`]:l.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${F(e)}-end`]:l.bracket.cssvar(t)??t}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${F(e)}`]:Oi(e,r,t)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":l.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":F(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-template-${F(e)}`]:r[`gridTemplate${De(e)}`]?.[t]??l.bracket.cssvar(t)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${F(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${F(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":l.cssvar(t)??t.split("-").map(r=>`"${l.bracket(r)}"`).join(" ")}:{"grid-area":l.bracket.cssvar(t)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}],["grid-rows-subgrid",{"grid-template-rows":"subgrid"}],["grid-cols-subgrid",{"grid-template-columns":"subgrid"}]];var Se=["auto","hidden","clip","visible","scroll","overlay",...b],fr=[[/^(?:overflow|of)-(.+)$/,([,e])=>Se.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Se.join("|")})`,`(overflow|of)-(x|y)-(${Se.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Se.includes(t)?{[`overflow-${e}`]:t}:void 0]];var pr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>b.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],He=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-stretch",{"justify-content":"stretch"}],["justify-left",{"justify-content":"left"}],["justify-right",{"justify-content":"right"}],["justify-center-safe",{"justify-content":"safe center"}],["justify-end-safe",{"justify-content":"safe flex-end"}],["justify-normal",{"justify-content":"normal"}],...x("justify","justify-content"),["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-items-center-safe",{"justify-items":"safe center"}],["justify-items-end-safe",{"justify-items":"safe flex-end"}],...x("justify-items"),["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}],["justify-self-baseline",{"justify-self":"baseline"}],["justify-self-center-safe",{"justify-self":"safe center"}],["justify-self-end-safe",{"justify-self":"safe flex-end"}],...x("justify-self")],dr=[[/^order-(.+)$/,([,e])=>({order:l.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],qe=[["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"}],["content-baseline",{"align-content":"baseline"}],["content-center-safe",{"align-content":"safe center"}],["content-end-safe",{"align-content":"safe flex-end"}],["content-stretch",{"align-content":"stretch"}],["content-normal",{"align-content":"normal"}],...x("content","align-content"),["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["items-baseline-last",{"align-items":"last baseline"}],["items-center-safe",{"align-items":"safe center"}],["items-end-safe",{"align-items":"safe flex-end"}],...x("items","align-items"),["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}],["self-baseline-last",{"align-self":"last baseline"}],["self-center-safe",{"align-self":"safe center"}],["self-end-safe",{"align-self":"safe flex-end"}],...x("self","align-self")],Ge=[["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-content-baseline",{"place-content":"baseline"}],["place-content-center-safe",{"place-content":"safe center"}],["place-content-end-safe",{"place-content":"safe flex-end"}],...x("place-content"),["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-items-baseline",{"place-items":"baseline"}],["place-items-center-safe",{"place-items":"safe center"}],["place-items-end-safe",{"place-items":"safe flex-end"}],...x("place-items"),["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}],["place-self-center-safe",{"place-self":"safe center"}],["place-self-end-safe",{"place-self":"safe flex-end"}],...x("place-self")],hr=[...He,...qe,...Ge].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function Ke(e,{theme:t}){return t.spacing?.[e]??l.bracket.cssvar.global.auto.fraction.rem(e)}function ue([,e,t],r){let n=Ke(t,r);if(n!=null&&e in Le)return Le[e].map(o=>[o.slice(1),n])}var mr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Ke(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,ue],[/^(?: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]:Ke(t,r)})]],gr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...x("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-start",{clear:"inline-start"}],["clear-end",{clear:"inline-end"}],["clear-none",{clear:"none"}],...x("clear")],br=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":l.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??l.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],xr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...x("box","box-sizing")];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}} ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var zi=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"],Pi=["none","strict","content","size","inline-size","layout","style","paint"],ve=" ",$r=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:l.bracket.cssvar.global(e)})]],wr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...x("backface","backface-visibility")],Sr=[[/^cursor-(.+)$/,([,e])=>({cursor:l.bracket.cssvar.global(e)})],...zi.map(e=>[`cursor-${e}`,{cursor:e}])],vr=[[/^contain-(.*)$/,([,e])=>l.bracket(e)!=null?{contain:l.bracket(e).split(" ").map(t=>l.cssvar.fraction(t)??t).join(" ")}:Pi.includes(e)?{contain:e}:void 0]],kr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...x("pointer-events")],Cr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...x("resize")],Rr=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...x("select","user-select")],Tr=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...b].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],jr=[[/^intrinsic-size-(.+)$/,([,e])=>({"contain-intrinsic-size":l.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...x("content-visibility")],Er=[[/^content-(.+)$/,([,e])=>({content:l.bracket.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],Or=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}],["break-keep",{"word-break":"keep-all"}],["break-anywhere",{"overflow-wrap":"anywhere"}]],zr=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],Pr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Ar=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...x("case","text-transform")],Vr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Lr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],Fr=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]];var Ye={"--un-ring-inset":ve,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgb(147 197 253 / 0.5)","--un-shadow":"0 0 rgb(0 0 0 / 0)"},Ai=Object.keys(Ye),Mr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.ringWidth?.[e||"DEFAULT"]??l.px(e||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{custom:{preflightKeys:Ai},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,Wr,{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"--un-ring-offset-width":t.lineWidth?.[e]??l.bracket.cssvar.px(e)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,Vi,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,w("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function Wr([,e],{theme:t}){return{"--un-ring-width":t.ringWidth?.[e]??l.bracket.cssvar.px(e)}}function Vi(e,t){return z(l.bracket(e[1]))?Wr(e,t):w("--un-ring-color","ring","borderColor")(e,t)}var Xe={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":ve,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},Li=Object.keys(Xe),Ir=[[/^shadow(?:-(.+))?$/,(e,t)=>{let[,r]=e,{theme:n}=t,o=n.boxShadow?.[r||"DEFAULT"],i=r?l.bracket.cssvar(r):void 0;return(o!=null||i!=null)&&!ye(i,n,"shadowColor")?{"--un-shadow":xe(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:w("--un-shadow-color","shadow","shadowColor")(e,t)},{custom:{preflightKeys:Li},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Fi={h:"height",w:"width",inline:"inline-size",block:"block-size"};function N(e,t){return`${e||""}${Fi[t]}`}function ke(e,t,r,n){let o=N(e,t).replace(/-(\w)/g,(s,a)=>a.toUpperCase()),i=r[o]?.[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return l.bracket.cssvar.global.auto.fraction.rem(n)}var Br=[[/^size-(min-|max-)?(.+)$/,([,e,t],{theme:r})=>({[N(e,"w")]:ke(e,"w",r,t),[N(e,"h")]:ke(e,"h",r,t)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[N(e,t)]:ke(e,t,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[N(e,t)]:ke(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>({[N(e,t)]:_r(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>({[N(e,t)]:_r(n,r)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function _r(e,t,r="breakpoints"){let n=$e(e,r);if(n)return n.find(o=>o.point===t)?.size}function Mi(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return l.bracket.cssvar.global.auto.number(e)}var Ur=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Mi(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var Nr=[[/^pa?()-?(.+)$/,j("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,j("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,j("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,j("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,j("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,j("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Dr=[[/^ma?()-?(.+)$/,j("margin")],[/^m-?xy()()$/,j("margin")],[/^m-?([xy])(?:-?(.+))?$/,j("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,j("margin")],[/^m-(block|inline)(?:-(.+))?$/,j("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,j("margin")]];var Kr=[[/^fill-(.+)$/,w("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,Hr,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":l.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??l.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,Wi,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];function Hr([,e],{theme:t}){return{"stroke-width":t.lineWidth?.[e]??l.bracket.cssvar.fraction.px.number(e)}}function Wi(e,t){return z(l.bracket(e[1]))?Hr(e,t):w("stroke","stroke","borderColor")(e,t)}var Ce=["translate","rotate","scale"],Ii=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","rotate(var(--un-rotate))","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))"].join(" "),Z=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),_i=["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(" "),Ze={"--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},M=Object.keys(Ze),Zr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":ne[e]??l.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(ne).join("|")})`,`origin-(${Object.keys(ne).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=l.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=l.bracket.cssvar(e)??(e.length>=3?ne[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,qr,{custom:{preflightKeys:M}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,qr,{custom:{preflightKeys:M}}],[/^(?:transform-)?rotate-()(.+)$/,Yr,{custom:{preflightKeys:M}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Yr,{custom:{preflightKeys:M}}],[/^(?:transform-)?skew-()(.+)$/,Xr,{custom:{preflightKeys:M}}],[/^(?:transform-)?skew-([xy])-(.+)$/,Xr,{custom:{preflightKeys:M},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Gr,{custom:{preflightKeys:M}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,Gr,{custom:{preflightKeys:M},autocomplete:[`transform-(${Ce.join("|")})-<percent>`,`transform-(${Ce.join("|")})-(x|y|z)-<percent>`,`(${Ce.join("|")})-<percent>`,`(${Ce.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:Z},{custom:{preflightKeys:M}}],["transform-cpu",{transform:Ii},{custom:{preflightKeys:["--un-translate-x","--un-translate-y","--un-rotate","--un-rotate-z","--un-skew-x","--un-skew-y","--un-scale-x","--un-scale-y"]}}],["transform-gpu",{transform:_i},{custom:{preflightKeys:M}}],["transform-none",{transform:"none"}],...x("transform")];function qr([,e,t],{theme:r}){let n=r.spacing?.[t]??l.bracket.cssvar.fraction.rem(t);if(n!=null)return[...we(e,n,"translate"),["transform",Z]]}function Gr([,e,t]){let r=l.bracket.cssvar.fraction.percent(t);if(r!=null)return[...we(e,r,"scale"),["transform",Z]]}function Yr([,e="",t]){let r=l.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:Z}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:Z}}function Xr([,e,t]){let r=l.bracket.cssvar.degree(t);if(r!=null)return[...we(e,r,"skew"),["transform",Z]]}function Jr(e,t){let r;if(l.cssvar(e)!=null)r=l.cssvar(e);else{e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1));let n=e.split(",").map(o=>t.transitionProperty?.[o]??l.properties(o));n.every(Boolean)&&(r=n.join(","))}return r}var Qr=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{if(!e&&!t)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.DEFAULT??l.time("150")};if(e!=null){let n=Jr(e,r),o=r.duration?.[t||"DEFAULT"]??l.time(t||"150");if(n)return{"transition-property":n,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":o}}else if(t!=null)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.[t]??l.time(t)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||"DEFAULT"]??l.bracket.cssvar.time(e)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||"DEFAULT"]??l.bracket.cssvar.time(e)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||"DEFAULT"]??l.bracket.cssvar(e)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e],{theme:t})=>{let r=l.global(e)||Jr(e,t);if(r)return{"transition-property":r}},{autocomplete:[`transition-property-(${[...b].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...x("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]];var en=[[/^text-(.+)$/,Ui,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,sn,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,Bi,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,w("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,e])=>b.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${b.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||l.bracket.global.number(e)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>({"line-height":Je(e,t,"lineHeight")}),{autocomplete:"(leading|lh|line-height)-$lineHeight"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":l.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||l.bracket.cssvar.global.rem(e)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||l.bracket.cssvar.global.rem(e)}),{autocomplete:"word-spacing-$wordSpacing"}],["font-stretch-normal",{"font-stretch":"normal"}],["font-stretch-ultra-condensed",{"font-stretch":"ultra-condensed"}],["font-stretch-extra-condensed",{"font-stretch":"extra-condensed"}],["font-stretch-condensed",{"font-stretch":"condensed"}],["font-stretch-semi-condensed",{"font-stretch":"semi-condensed"}],["font-stretch-semi-expanded",{"font-stretch":"semi-expanded"}],["font-stretch-expanded",{"font-stretch":"expanded"}],["font-stretch-extra-expanded",{"font-stretch":"extra-expanded"}],["font-stretch-ultra-expanded",{"font-stretch":"ultra-expanded"}],[/^font-stretch-(.+)$/,([,e])=>({"font-stretch":l.bracket.cssvar.fraction.global(e)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||l.bracket.cssvar.global(e)}),{autocomplete:"font-$fontFamily"}]],tn=[[/^tab(?:-(.+))?$/,([,e])=>{let t=l.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],rn=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||"DEFAULT"]||l.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"indent-$textIndent"}]],nn=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||"DEFAULT"]||l.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,w("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],on=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.textShadow?.[e||"DEFAULT"];return r!=null?{"--un-text-shadow":xe(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":l.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,w("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":l.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function Je(e,t,r){return t[r]?.[e]||l.bracket.cssvar.global.rem(e)}function sn([,e],{theme:t}){let n=C(t.fontSize?.[e])?.[0]??l.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}}function Bi(e,t){return z(l.bracket(e[1]))?sn(e,t):w("color","text","textColor")(e,t)}function Ui([,e="base"],{theme:t}){let r=Ue(e,"length");if(!r)return;let[n,o]=r,i=C(t.fontSize?.[n]),s=o?Je(o,t,"lineHeight"):void 0;if(i?.[0]){let[c,u,f]=i;return typeof u=="object"?{"font-size":c,...u}:{"font-size":c,"line-height":s??u??"1","letter-spacing":f?Je(f,t,"letterSpacing"):void 0}}let a=l.bracketOfLength.rem(n);return s&&a?{"font-size":a,"line-height":s}:{"font-size":l.bracketOfLength.rem(e)}}var Ni={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},an=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Ni[e];if(r)return{[r]:l.cssvar(t)}}]],ln=[[/^\[(.*)\]$/,([e,t])=>{if(!t.includes(":"))return;let[r,...n]=t.split(":"),o=n.join(":");if(!Ki(t)&&/^[\w-]+$/.test(r)&&Di(o)){let i=l.bracket(`[${o}]`);if(i)return{[r]:i}}}]];function Di(e){let t=0;function r(n){for(;t<e.length;)if(t+=1,e[t]===n)return!0;return!1}for(t=0;t<e.length;t++){let n=e[t];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function Ki(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}var cn=[an,ln,vr,kr,wr,pr,mr,br,dr,ur,gr,Dr,xr,$r,Ur,Br,lr,Zr,Sr,Rr,Cr,Zt,Ge,qe,He,cr,hr,fr,Pr,Tr,Or,er,rr,nr,Kr,Nr,Nt,rn,zr,Ut,en,Ar,Vr,sr,Lr,tn,nn,on,tr,Ir,Yt,Mr,Qr,Jt,jr,Er,or,Fr,yr].flat(1);var un={position:["relative","absolute","fixed","sticky","static"],globalKeyword:b};var Qe={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3",950:"#d8dcdf"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f",950:"#080808"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values(Qe).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var fn={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},pn={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],sm:"0 1px 1px rgb(0 0 0 / 0.05)",md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 rgb(0 0 0 / 0)"};var dn={sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},hn={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"]},mn={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},gn={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},bn={DEFAULT:["0 0 1px rgb(0 0 0 / 0.2)","0 0 1px rgb(1 0 5 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"1px 1px 3px rgb(36 37 47 / 0.25)",md:["0 1px 2px rgb(30 29 39 / 0.19)","1px 2px 4px rgb(54 64 147 / 0.18)"],lg:["3px 3px 6px rgb(0 0 0 / 0.26)","0 0 5px rgb(15 3 86 / 0.22)"],xl:["1px 1px 3px rgb(0 0 0 / 0.29)","2px 4px 7px rgb(73 64 125 / 0.35)"]},xn={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},et={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},yn={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},$n=et;var tt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},wn={...tt},Sn={DEFAULT:"1px",none:"0"},vn={DEFAULT:"1rem",none:"0",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},kn={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Cn={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Rn={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},Tn={DEFAULT:"3px",none:"0"},jn={auto:"auto"},En={mouse:"(hover) and (pointer: fine)"};var On={...Ze,...Xe,...Ye};var W={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},zn={auto:"auto",...W,screen:"100vw"},rt={none:"none",...W,screen:"100vw"},Pn={auto:"auto",...W,screen:"100vb"},An={auto:"auto",...W,screen:"100vi"},Vn={auto:"auto",...W,screen:"100vh"},nt={none:"none",...W,screen:"100vh"},ot={none:"none",...W,screen:"100vb"},it={none:"none",...W,screen:"100vi"},Ln={...W};var Fn={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)"},Mn={none:"none",all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform",get DEFAULT(){return[this.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",")}};var Wn={width:zn,height:Vn,maxWidth:rt,maxHeight:nt,minWidth:rt,minHeight:nt,inlineSize:An,blockSize:Pn,maxInlineSize:it,maxBlockSize:ot,minInlineSize:it,minBlockSize:ot,colors:Qe,fontFamily:dn,fontSize:hn,fontWeight:yn,breakpoints:tt,verticalBreakpoints:wn,borderRadius:Cn,lineHeight:xn,letterSpacing:et,wordSpacing:$n,boxShadow:Rn,textIndent:mn,textShadow:bn,textStrokeWidth:gn,blur:fn,dropShadow:pn,easing:Fn,transitionProperty:Mn,lineWidth:Sn,spacing:vn,duration:kn,ringWidth:Tn,preflightBase:On,containers:Ln,zIndex:jn,media:En};var In={name:"aria",match(e,t){let r=S("aria-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.aria?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[aria-${i}]`}}},multiPass:!0};function Re(e,t,r={}){return{name:`${e}-aria`,match(n,o){let i=S(`${e}-aria-`,n,o.generator.config.separators);if(i){let[s,a,c]=i,u=l.bracket(s)??o.theme.aria?.[s]??"";if(u){let f=!!r?.attributifyPseudo,d=r?.prefix??"";d=(Array.isArray(d)?d:[d]).filter(Boolean)[0]??"";let m=`${f?`[${d}${e}=""]`:`.${d}${e}`}`,h=V(c?`/${c}`:"");return{matcher:a,handle:(p,g)=>{let E=new RegExp(`${k(m)}${k(h)}(?:\\[.+?\\])+`),v=p.prefix.match(E),$;if(v){let y=(v.index??0)+m.length+h.length;$=[p.prefix.slice(0,y),`[aria-${u}]`,p.prefix.slice(y)].join("")}else{let y=Math.max(p.prefix.indexOf(m),0);$=[p.prefix.slice(0,y),m,h,`[aria-${u}]`,t,p.prefix.slice(y)].join("")}return g({...p,prefix:$})}}}}},multiPass:!0}}function Hi(){return{name:"has-aria",match(e,t){let r=S("has-aria-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.aria?.[n]??"";if(i)return{matcher:o,handle:(s,a)=>a({...s,pseudo:`${s.pseudo}:has([aria-${i}])`})}}},multiPass:!0}}function _n(e={}){return[Re("group"," ",e),Re("peer","~",e),Re("parent",">",e),Re("previous","+",e),Hi()]}var Bn=/(max|min)-\[([^\]]*)\]:/;function Un(){let e={};return{name:"breakpoints",match(t,r){if(Bn.test(t)){let o=t.match(Bn);return{matcher:t.replace(o[0],""),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media (${o[1]}-width: ${o[2]})`})}}let n=($e(r)??[]).map(({point:o,size:i},s)=>[o,i,s]);for(let[o,i,s]of n){e[o]||(e[o]=new RegExp(`^((?:([al]t-|[<~]|max-))?${o}(?:${r.generator.config.separators.join("|")}))`));let a=t.match(e[o]);if(!a)continue;let[,c]=a,u=t.slice(c.length);if(u==="container")continue;let f=c.startsWith("lt-")||c.startsWith("<")||c.startsWith("max-"),d=c.startsWith("at-")||c.startsWith("~"),m=3e3;return f?(m-=s+1,{matcher:u,handle:(h,p)=>p({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (max-width: ${Pe(i)})`,parentOrder:m})}):(m+=s+1,d&&s<n.length-1?{matcher:u,handle:(h,p)=>p({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${Pe(n[s+1][1])})`,parentOrder:m})}:{matcher:u,handle:(h,p)=>p({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:m})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var Nn=[B("*",e=>({selector:`${e.selector} > *`}),{order:-1})];function fe(e,t){return{name:`combinator:${e}`,match(r,n){if(!r.startsWith(e))return;let o=n.generator.config.separators,i=L(`${e}-`,r,o);if(!i){for(let a of o)if(r.startsWith(`${e}${a}`)){i=["",r.slice(e.length+a.length)];break}if(!i)return}let s=l.bracket(i[0])??"";return s===""&&(s="*"),{matcher:i[1],selector:a=>`${a}${t}${s}`}},multiPass:!0}}var Dn=[fe("all"," "),fe("children",">"),fe("next","+"),fe("sibling","+"),fe("siblings","~")];var Kn={name:"@",match(e,t){if(e.startsWith("@container"))return;let r=S("@",e,t.generator.config.separators);if(r){let[n,o,i]=r,s=l.bracket(n),a;if(s?a=l.numberWithUnit(s):a=t.theme.containers?.[n]??"",a){let c=1e3+Object.keys(t.theme.containers??{}).indexOf(n);return i&&(c+=1e3),{matcher:o,handle:(u,f)=>f({...u,parent:`${u.parent?`${u.parent} $$ `:""}@container${i?` ${i} `:" "}(min-width: ${a})`,parentOrder:c})}}}},multiPass:!0};function Hn(e={}){if(e?.dark==="class"||typeof e.dark=="object"){let{dark:t=".dark",light:r=".light"}=typeof e.dark=="string"?{}:e.dark;return[B("dark",C(t).map(n=>o=>({prefix:`${n} $$ ${o.prefix}`}))),B("light",C(r).map(n=>o=>({prefix:`${n} $$ ${o.prefix}`})))]}return[re("dark","@media (prefers-color-scheme: dark)"),re("light","@media (prefers-color-scheme: light)")]}var qn={name:"data",match(e,t){let r=S("data-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.data?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[data-${i}]`}}},multiPass:!0};function Te(e,t,r={}){return{name:`${e}-data`,match(n,o){let i=S(`${e}-data-`,n,o.generator.config.separators);if(i){let[s,a,c]=i,u=l.bracket(s)??o.theme.data?.[s]??"";if(u){let f=!!r?.attributifyPseudo,d=r?.prefix??"";d=(Array.isArray(d)?d:[d]).filter(Boolean)[0]??"";let m=`${f?`[${d}${e}=""]`:`.${d}${e}`}`,h=V(c?`/${c}`:"");return{matcher:a,handle:(p,g)=>{let E=new RegExp(`${k(m)}${k(h)}(?:\\[.+?\\])+`),v=p.prefix.match(E),$;if(v){let y=(v.index??0)+m.length+h.length;$=[p.prefix.slice(0,y),`[data-${u}]`,p.prefix.slice(y)].join("")}else{let y=Math.max(p.prefix.indexOf(m),0);$=[p.prefix.slice(0,y),m,h,`[data-${u}]`,t,p.prefix.slice(y)].join("")}return g({...p,prefix:$})}}}}},multiPass:!0}}function qi(){return{name:"has-data",match(e,t){let r=S("has-data-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??t.theme.data?.[n]??"";if(i)return{matcher:o,handle:(s,a)=>a({...s,pseudo:`${s.pseudo}:has([data-${i}])`})}}},multiPass:!0}}function Gn(e={}){return[Te("group"," ",e),Te("peer","~",e),Te("parent",">",e),Te("previous","+",e),qi()]}var Yn=[B("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),B("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];function Xn(){let e;return{name:"important",match(t,r){e||(e=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,o=t.match(e);if(o?n=t.slice(o[0].length):t.endsWith("!")&&(n=t.slice(0,-1)),n)return{matcher:n,body:i=>(i.forEach(s=>{s[1]!=null&&(s[1]+=" !important")}),i)}}}}var Zn=re("print","@media print"),Jn={name:"media",match(e,t){let r=S("media-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??"";if(i===""&&(i=t.theme.media?.[n]??""),i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${i}`})}}},multiPass:!0};var Qn={name:"selector",match(e,t){let r=L("selector-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n);if(i)return{matcher:o,selector:()=>i}}}},eo={name:"layer",match(e,t){let r=S("layer-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??n;if(i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${i}`})}}}},to={name:"uno-layer",match(e,t){let r=S("uno-layer-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??n;if(i)return{matcher:o,layer:i}}}},ro={name:"scope",match(e,t){let r=L("scope-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n);if(i)return{matcher:o,selector:s=>`${i} $$ ${s}`}}}},no={name:"variables",match(e,t){if(!e.startsWith("["))return;let[r,n]=I(e,"[","]")??[];if(!(r&&n))return;let o;for(let a of t.generator.config.separators)if(n.startsWith(a)){o=n.slice(a.length);break}if(o==null)return;let i=l.bracket(r)??"",s=i.startsWith("@");if(s||i.includes("&"))return{matcher:o,handle(a,c){let u=s?{parent:`${a.parent?`${a.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,a.selector)};return c({...a,...u})}}},multiPass:!0},oo={name:"theme-variables",match(e,t){if(St(e))return{matcher:e,handle(r,n){return n({...r,entries:JSON.parse(vt(JSON.stringify(r.entries),t.theme))})}}}};var io=/^-?[0-9.]+(?:[a-z]+|%)?$/,so=/-?[0-9.]+(?:[a-z]+|%)?/,Gi=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function Yi(e){let t=e.match(oe)||e.match(Wt);if(t){let[r,n]=K(`(${t[2]})${t[3]}`,"(",")"," ")??[];if(r)return`calc(${t[1]}${r} * -1)${n?` ${n}`:""}`}}var Xi=/\b(hue-rotate)\s*(\(.*)/;function Zi(e){let t=e.match(Xi);if(t){let[r,n]=K(t[2],"(",")"," ")??[];if(r){let o=io.test(r.slice(1,-1))?r.replace(so,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${r} * -1))`;return`${t[1]}${o}${n?` ${n}`:""}`}}}var ao={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===qt))return;let r=!1;return t.forEach(n=>{let o=n[1]?.toString();if(!o||o==="0"||Gi.some(a=>a.test(n[0])))return;let i=Yi(o);if(i){n[1]=i,r=!0;return}let s=Zi(o);if(s){n[1]=s,r=!0;return}io.test(o)&&(n[1]=o.replace(so,a=>a.startsWith("-")?a.slice(1):`-${a}`),r=!0)}),r?t:[]}}}};function lo(){return zt({getBracket:I,h:l,variantGetBracket:L})}function co(){return Pt({getBracket:I,h:l,variantGetBracket:L})}function uo(e={}){return At(e,{getBracket:I,h:l,variantGetBracket:L})}var fo=Vt();var po={name:"starting",match(e){if(e.startsWith("starting:"))return{matcher:e.slice(9),handle:(t,r)=>r({...t,parent:"@starting-style"})}}};var ho={name:"supports",match(e,t){let r=S("supports-",e,t.generator.config.separators);if(r){let[n,o]=r,i=l.bracket(n)??"";if(i===""&&(i=t.theme.supports?.[n]??""),i)return i.startsWith("(")&&i.endsWith(")")||(i=`(${i})`),{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};function mo(e){return[In,qn,eo,Qn,to,ao,po,Xn(),ho,Zn,Jn,Un(),...Dn,...lo(),co(),...uo(e),fo,...Hn(e),...Yn,ro,...Nn,Kn,no,...Gn(e),..._n(e),oo]}var Ji=(e={})=>(e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.preflight=e.preflight??!0,e.variablePrefix=e.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:Wn,rules:cn,variants:mo(e),options:e,prefix:e.prefix,postprocess:Qi(e.variablePrefix),preflights:dt(e),extractorDefault:e.arbitraryVariants===!1?void 0:pt(),autocomplete:{shorthands:un}}),go=Ji;function Qi(e){if(e!=="un-")return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetMini:e=>go(e)});})();