@unocss/runtime 0.57.4 → 0.57.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +8 -8
- package/core.global.js +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/full.global.js +9 -9
- package/mini.global.js +8 -8
- package/package.json +4 -4
- package/preset-icons.global.js +1 -1
- package/preset-mini.global.js +7 -7
- package/preset-uno.global.js +8 -8
- package/preset-wind.global.js +8 -8
- package/uno.global.js +8 -8
package/mini.global.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`,p=new Set([Fe]),m=l?new Map:new Set,h=new Map,y={},$=Array.from(c).map(async d=>{if(m.has(d))return;let w=await this.parseToken(d);if(w!=null){m instanceof Map?m.set(d,{data:w,count:Me(c)?c.getCount(d):-1}):m.add(d);for(let R of w){let z=R[3]||"",P=R[4]?.layer;h.has(z)||h.set(z,[]),h.get(z).push(R),P&&p.add(P)}}});await Promise.all($),await(async()=>{if(!o)return;let d={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:R=Ne})=>{p.add(R),w.add(R)}),y=Object.fromEntries(await Promise.all(Array.from(w).map(async R=>{let P=(await Promise.all(this.config.preflights.filter(q=>(q.layer||Ne)===R).map(async q=>await q.getCSS(d)))).filter(Boolean).join(f);return[R,P]})))})();let x=this.config.sortLayers(Array.from(p).sort((d,w)=>(this.config.layers[d]??0)-(this.config.layers[w]??0)||d.localeCompare(w))),v={},b=d=>{if(v[d])return v[d];let w=Array.from(h).sort((z,P)=>(this.parentOrders.get(z[0])??0)-(this.parentOrders.get(P[0])??0)||z[0]?.localeCompare(P[0]||"")||0).map(([z,P])=>{let q=P.length,J=P.filter(g=>(g[4]?.layer||Fe)===d).sort((g,S)=>g[0]-S[0]||(g[4]?.sort||0)-(S[4]?.sort||0)||g[5]?.currentSelector?.localeCompare(S[5]?.currentSelector??"")||g[1]?.localeCompare(S[1]||"")||g[2]?.localeCompare(S[2]||"")||0).map(([,g,S,,C,,M])=>[[[(g&&oo(g,i))??"",C?.sort??0]],S,!!(M??C?.noMerge)]);if(!J.length)return;let ce=J.reverse().map(([g,S,C],M)=>{if(!C&&this.config.mergeSelectors)for(let _=M+1;_<q;_++){let D=J[_];if(D&&!D[2]&&(g&&D[0]||g==null&&D[0]==null)&&D[1]===S)return g&&D[0]&&D[0].push(...g),null}let U=g?Q(g.sort((_,D)=>_[1]-D[1]||_[0]?.localeCompare(D[0]||"")||0).map(_=>_[0]).filter(Boolean)):[];return U.length?`${U.join(`,${f}`)}{${S}}`:S}).filter(Boolean).reverse().join(f);if(!z)return ce;let Oe=z.split(" $$ ");return`${Oe.join("{")}{${f}${ce}${f}${"}".repeat(Oe.length)}`}).filter(Boolean).join(f);o&&(w=[y[d],w].filter(Boolean).join(f));let R=a?"":`/* layer: ${d} */${f}`;return v[d]=w?R+w:""},k=(d=x,w)=>d.filter(R=>!w?.includes(R)).map(R=>b(R)||"").filter(Boolean).join(f);return{get css(){return k()},layers:x,matched:m,getLayers:k,getLayer:b}}async matchVariants(e,r){let n=new Set,i=[],o=r||e,s=!0,a={rawSelector:e,theme:this.config.theme,generator:this};for(;s;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let c=await l.match(o,a);if(c){if(A(c)){if(c===o)continue;c={matcher:c}}o=c.matcher,i.unshift(c),n.add(l),s=!0;break}}if(!s)break;if(i.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,o,i,n]}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let m=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??ao)({...p,entries:m,selector:f.selector?.(p.selector,m)||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:so(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=o;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:s,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(e,r,n){let i=ee(r);if(A(i))return i;let{selector:o,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),l=`${o}{${te(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,i){let[o,s,a]=A(e)?await this.matchVariants(e):e;this.config.details&&(r.rules=r.rules??[]);let l=this.config.rulesStaticMap[s];if(l&&l[1]&&(n||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);let f=l[0],p=ee(l[1]),m=l[2];return A(p)?[[f,p,m]]:[[f,o,p,m,a]]}r.variantHandlers=a;let{rulesDynamic:c}=this.config;for(let[f,p,m,h]of c){if(h?.internal&&!n)continue;let y=s;if(h?.prefix){let b=j(h.prefix);if(i){let k=j(i);if(!b.some(d=>k.includes(d)))continue}else{let k=b.find(d=>s.startsWith(d));if(k==null)continue;y=s.slice(k.length)}}let $=y.match(p);if(!$)continue;let x=await m($,r);if(!x)continue;this.config.details&&r.rules.push([p,m,h]);let v=Mt(x).filter(b=>b.length);if(v.length)return v.map(b=>A(b)?[f,b,h]:[f,o,b,h,a])}}stringifyUtil(e,r){if(!e)return;if(it(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:i,parent:o,layer:s,sort:a,noMerge:l}=this.applyVariants(e),c=te(i);if(!c)return;let{layer:f,sort:p,...m}=e[3]??{},h={...m,layer:s??f,sort:a??p};return[e[0],n,c,o,h,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let i=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Wt,o,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=j(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(Lt(a)){if(a[0]===l){o=o||a[2],s=a[1],i(a);break}}else{let c=l.match(a[0]);if(c&&(s=a[1](c,r)),s){o=o||a[2],i(a);break}}}if(A(s)&&(s=Dt(s.trim()).split(/\s+/g)),!s){let[a,l]=A(e)?await this.matchVariants(e):e;if(a!==l){let c=await this.expandShortcut(l,r,n-1);c&&(s=c[0].map(f=>A(f)?a.replace(l,f):f))}}if(s)return[(await Promise.all(s.map(async a=>(A(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){let o=new Pe,s=(await Promise.all(Q(n).map(async f=>{let p=A(f)?await this.parseUtil(f,r,!0,i.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ee(f),void 0,[]]];return!p&&this.config.warn&&K(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,c=[];for(let f of s){if(it(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:m,parent:h,sort:y,noMerge:$}=this.applyVariants(f,[...f[4],...l],a);o.getFallback(p,h,[[],f[0]])[0].push([m,!!($??f[3]?.noMerge),y??0])}return c.concat(o.map(([f,p],m,h)=>{let y=(x,v,b)=>{let k=Math.max(...b.map(w=>w[1])),d=b.map(w=>w[0]);return(x?[d.flat(1)]:d).map(w=>{let R=te(w);if(R)return[p,m,R,h,{...i,noMerge:v,sort:k},r,void 0]})};return[[f.filter(([,x])=>x).map(([x,,v])=>[x,v]),!0],[f.filter(([,x])=>!x).map(([x,,v])=>[x,v]),!1]].map(([x,v])=>[...y(!1,v,x.filter(([b])=>b.some(k=>k[0]===nt))),...y(!0,v,x.filter(([b])=>b.every(k=>k[0]!==nt)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="function"?r(e):A(r)?r===e:r.test(e))}};function Xt(t,e){return new st(t,e)}var no=/\s\$\$\s+/g;function io(t){return t.match(/\s\$\$\s/)}function oo(t,e){return io(t)?t.replace(no,e?` ${e} `:" "):e?`${e} ${t}`:t}var Zt=/^\[(.+?)(~?=)"(.*)"\]$/;function so(t){return Zt.test(t)?t.replace(Zt,(e,r,n,i)=>`[${Ve(r)}${n}"${Ve(i)}"]`):`.${Ve(t)}`}function ao(t,e){return e(t)}var lo=/\/\/#\s*sourceMappingURL=.*\n?/g;function Jt(t){return t.includes("sourceMappingURL=")?t.replace(lo,""):t}var co=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,uo=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,fo=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function po(t){let e=[];for(let r of t.matchAll(uo))r.index!==0&&!t[r.index-1]?.match(/^[\s'"`]/)||e.push(r[0]);for(let r of t.matchAll(co))e.push(r[0]);return t.split(Le).forEach(r=>{fe(r)&&!fo.test(r)&&e.push(r)}),e}var Qt={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return po(Jt(t))}};var er=[{layer:"preflights",getCSS(t){if(t.theme.preflightBase){let e=te(Object.entries(t.theme.preflightBase));return j(t.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${e}}`).join("")}}}];var F={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"]},at={...F,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"]},lt={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"]},We={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},tr=["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"],de=Object.assign({},...tr.map(t=>({[t.replace(/ /,"-")]:t})),...tr.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),E=["inherit","initial","revert","revert-layer","unset"],ct=/(?:calc|clamp|min|max)\s*\(.*\)/;function re(t,e,r){if(t==="")return;let n=t.length,i=0,o=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:o||(o=!0,s=a),i++;break;case r:if(--i,i<0)return;if(i===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function ut(t,e,r,n){if(t===""||(A(n)&&(n=[n]),n.length===0))return;let i=t.length,o=0;for(let s=0;s<i;s++)switch(t[s]){case e:o++;break;case r:if(--o<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&o===0)return s===0||s===i-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function ne(t,e,r){r=r??10;let n=[],i=0;for(;t!=="";){if(++i>r)return;let o=ut(t,"(",")",e);if(!o)return;let[s,a]=o;n.push(s),t=a}if(n.length>0)return n}var ft=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],rr=["%alpha","<alpha-value>"],mo=new RegExp(rr.map(t=>B(t)).join("|"));function me(t=""){let e=ho(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:i}=e,o=r.toLowerCase();if(n.length!==0&&!(ft.includes(o)&&![1,3].includes(n.length)))return{type:o,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof i=="string"?i.trim():i}}function he(t){let e=t.alpha??1;return typeof e=="string"&&rr.includes(e)?1:e}function N(t,e){if(typeof t=="string")return t.replace(mo,`${e??1}`);let{components:r}=t,{alpha:n,type:i}=t;return n=e??n,i=i.toLowerCase(),["hsla","rgba"].includes(i)?`${i}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,ft.includes(i)?`${i}(${r.join(" ")}${n})`:`color(${i} ${r.join(" ")}${n})`)}function ho(t){if(!t)return;let e=go(t);if(e!=null||(e=bo(t),e!=null)||(e=xo(t),e!=null)||(e=wo(t),e!=null)||(e=$o(t),e!=null))return e}function go(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,i=>Number.parseInt(i,16)).map(i=>i<<4|i);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function bo(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function xo(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,i=ne(n,",",5);if(i){if([3,4].includes(i.length))return{type:r,components:i.slice(0,3),alpha:i[3]};if(i.length!==1)return!1}}var yo=new RegExp(`^(${ft.join("|")})\\((.+)\\)$`,"i");function wo(t){let e=t.match(yo);if(!e)return;let[,r,n]=e,i=nr(`${r} ${n}`);if(i){let{alpha:o,components:[s,...a]}=i;return{type:s,components:a,alpha:o}}}function $o(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=nr(e[1]);if(r){let{alpha:n,components:[i,...o]}=r;return{type:i,components:o,alpha:n}}}function nr(t){let e=ne(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let o=e.splice(r-2);e.push(o.join(" ")),--r}let n=ne(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let i=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:i}}function ir(t){let e=function(n){let i=this.__options?.sequence||[];this.__options.sequence=[];for(let o of i){let s=t[o](n);if(s!=null)return s}};function r(n,i){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(i),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}function ie(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${B(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,...e(s)})}},autocomplete:`${t}:`}}function ge(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${B(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function H(t,e,r){if(e.startsWith(`${t}[`)){let[n,i]=re(e.slice(t.length),"[","]")??[];if(n&&i){for(let o of r)if(i.startsWith(o))return[n,i.slice(o.length),o];return[n,i,""]}}}function V(t,e,r){if(e.startsWith(t)){let n=H(t,e,r);if(n){let[i="",o=n[1]]=V("/",n[1],r)??[];return[n[0],o,i]}for(let i of r.filter(o=>o!=="/")){let o=e.indexOf(i,t.length);if(o!==-1){let s=e.indexOf("/",t.length),a=s===-1||o<=s;return[e.slice(t.length,a?o:s),e.slice(o+i.length),a?"":e.slice(s+1,o)]}}}}var So=",".charCodeAt(0),vo=";".charCodeAt(0),or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sr=new Uint8Array(64),ko=new Uint8Array(128);for(let t=0;t<or.length;t++){let e=or.charCodeAt(t);sr[t]=e,ko[e]=t}var pt=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}};function ar(t){let e=new Int32Array(5),r=1024*16,n=r-36,i=new Uint8Array(r),o=i.subarray(0,n),s=0,a="";for(let l=0;l<t.length;l++){let c=t[l];if(l>0&&(s===r&&(a+=pt.decode(i),s=0),i[s++]=vo),c.length!==0){e[0]=0;for(let f=0;f<c.length;f++){let p=c[f];s>n&&(a+=pt.decode(o),i.copyWithin(0,n,s),s-=n),f>0&&(i[s++]=So),s=be(i,s,e,p,0),p.length!==1&&(s=be(i,s,e,p,1),s=be(i,s,e,p,2),s=be(i,s,e,p,3),p.length!==4&&(s=be(i,s,e,p,4)))}}}return a+pt.decode(i.subarray(0,s))}function be(t,e,r,n,i){let o=n[i],s=o-r[i];r[i]=o,s=s<0?-s<<1|1:s<<1;do{let a=s&31;s>>>=5,s>0&&(a|=32),t[e++]=sr[a]}while(s>0);return e}var De=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},Ie=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){let r=e-this.start,n=this.original.slice(0,r),i=this.original.slice(r);this.original=n;let o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=n,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function Co(){return typeof window<"u"&&typeof window.btoa=="function"?t=>window.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Ro=Co(),dt=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=ar(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Ro(this.toString())}};function Eo(t){let e=t.split(`
|
|
3
|
-
`),r=e.filter(o=>/^\t+/.test(o)),n=e.filter(o=>/^ {2,}/.test(o));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let i=n.reduce((o,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,o)},1/0);return new Array(i+1).join(" ")}function
|
|
4
|
-
`),r=[];for(let n=0,i=0;n<e.length;n++)r.push(i),i+=e[n].length+1;return function(i){let o=0,s=r.length;for(;o<s;){let c=o+s>>1;i<r[c]?s=c:o=c+1}let a=o-1,l=i-r[a];return{line:a,column:l}}}var
|
|
1
|
+
"use strict";(()=>{var Bi=Object.defineProperty;var Ki=(t,e)=>{for(var r in e)Bi(t,r,{get:e[r],enumerable:!0})};function B(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var Ve=Y;function j(t=[]){return Array.isArray(t)?t:[t]}function Q(t){return Array.from(new Set(t))}function Pt(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function A(t){return typeof t=="string"}function ee(t){return A(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Mt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ee(e)):[t]:[ee(t)]}function Hi(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function te(t){return t==null?"":Hi(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function ze(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return ze(n)&&ze(i)&&Object.keys(i).forEach(s=>{ze(n[s])&&ze(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=rt(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function ue(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?ue(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ue(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ue(n):n;return r}return t}function _t(t){return A(t[0])}function Lt(t){return A(t[0])}var Gi=/^\[(.+?)~?="(.*)"\]$/;var qi=/[\w\u00A0-\uFFFF-_:%-?]/,nt="$$shortcut-no-merge";function Ut(t){return t.match(Gi)}function fe(t=""){return qi.test(t)}function Ft(t){return typeof t=="function"?{match:t}:t}function it(t){return t.length===3}function Nt(t){return t!=null}function Wt(){}var Pe=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}};var pe=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function Me(t){return t instanceof pe}var _e={};function Yi(t=["-",":"]){let e=t.join("|");return _e[e]||(_e[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),_e[e].lastIndex=0,_e[e]}function Zi(t,e=["-",":"],r=5){let n=Yi(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(c,f,p,m,h)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let y=h+f.length+p.length+1,$={length:c.length,items:[]};a.set(h,$);for(let x of[...m.matchAll(/\S+/g)]){let v=y+x.index,b=a.get(v)?.items;b?a.delete(v):b=[{offset:v,length:x[0].length,className:x[0]}];for(let C of b)C.className=C.className==="~"?f:C.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),$.items.push(C)}return"$".repeat(c.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(m=>m.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:a,get expanded(){return l.toString()}}}function Dt(t,e=["-",":"],r=5){let n=Zi(t,e,r);return typeof t=="string"?n.expanded:t}var It=new Set;function K(t){It.has(t)||(console.warn("[unocss]",t),It.add(t))}var Le=/[\\:]?[\s'"`;{}]+/g;function Xi(t){return t.split(Le)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Xi(t)}};function Bt(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var Fe="default",Ne="preflights",Ji="shortcuts",Qi="imports",Kt={[Qi]:-200,[Ne]:-100,[Ji]:-10,[Fe]:0};function Gt(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ht="_uno_resolved";function eo(t){let e=typeof t=="function"?t():t;if(Ht in e)return e;e={...e},Object.defineProperty(e,Ht,{value:!0,enumerable:!1});let r=e.shortcuts?Gt(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=j(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function qt(t){let e=eo(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(j).flatMap(qt);return[e,...r]}function ot(t={},e={}){let r=Object.assign({},e,t),n=Pt((r.presets||[]).flatMap(j).flatMap(qt),(d,w)=>d.name===w.name),i=[...n.filter(d=>d.enforce==="pre"),...n.filter(d=>!d.enforce),...n.filter(d=>d.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Kt,...o.map(d=>d.layers));function l(d){return Q(o.flatMap(w=>j(w[d]||[])))}let c=l("extractors"),f=s.find(d=>d.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!c.includes(f)&&c.unshift(f),c.sort((d,w)=>(d.order||0)-(w.order||0));let p=l("rules"),m={},h=p.length,y=p.map((d,w)=>{if(_t(d)){j(d[2]?.prefix||"").forEach(z=>{m[z+d[0]]=[w,d[1],d[2],d]});return}return[w,...d]}).filter(Boolean).reverse(),$=to(o.map(d=>d.theme)),x=l("extendTheme");for(let d of x)$=d($)||$;let v={templates:Q(o.flatMap(d=>j(d.autocomplete?.templates))),extractors:o.flatMap(d=>j(d.autocomplete?.extractors)).sort((d,w)=>(d.order||0)-(w.order||0)),shorthands:ro(o.map(d=>d.autocomplete?.shorthands||{}))},b=l("separators");b.length||(b=[":","-"]);let C={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:d=>d,...r,presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:$,rulesSize:h,rulesDynamic:y,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:v,variants:l("variants").map(Ft).sort((d,w)=>(d.order||0)-(w.order||0)),shortcuts:Gt(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:b,details:r.details??r.envMode==="dev"};for(let d of o)d?.configResolved?.(C);return C}function to(t){return t.map(e=>e?ue(e):{}).reduce((e,r)=>rt(e,r),{})}function ro(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}var Yt="0.57.6";var st=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ot(e,r),this.events.emit("config",this.config)}version=Yt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Bt();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ot(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(Me(s)&&Me(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let i=e;for(let c of this.config.preprocess)i=c(e);if(this.isBlocked(i)){this.blocked.add(e),this._cache.set(n,null);return}let o=await this.matchVariants(e,i);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(n,null);return}let s=this.makeContext(e,[r||o[0],o[1],o[2],o[3]]);this.config.details&&(s.variants=[...o[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(c=>this.stringifyUtil(c,s)).filter(Nt);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=A(e)?await this.applyExtractors(e,n,l?new pe:new Set):Array.isArray(e)?new Set(e):e;s&&this.config.safelist.forEach(d=>{c.has(d)||c.add(d)});let f=a?"":`
|
|
2
|
+
`,p=new Set([Fe]),m=l?new Map:new Set,h=new Map,y={},$=Array.from(c).map(async d=>{if(m.has(d))return;let w=await this.parseToken(d);if(w!=null){m instanceof Map?m.set(d,{data:w,count:Me(c)?c.getCount(d):-1}):m.add(d);for(let R of w){let z=R[3]||"",P=R[4]?.layer;h.has(z)||h.set(z,[]),h.get(z).push(R),P&&p.add(P)}}});await Promise.all($),await(async()=>{if(!o)return;let d={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:R=Ne})=>{p.add(R),w.add(R)}),y=Object.fromEntries(await Promise.all(Array.from(w).map(async R=>{let P=(await Promise.all(this.config.preflights.filter(q=>(q.layer||Ne)===R).map(async q=>await q.getCSS(d)))).filter(Boolean).join(f);return[R,P]})))})();let x=this.config.sortLayers(Array.from(p).sort((d,w)=>(this.config.layers[d]??0)-(this.config.layers[w]??0)||d.localeCompare(w))),v={},b=d=>{if(v[d])return v[d];let w=Array.from(h).sort((z,P)=>(this.parentOrders.get(z[0])??0)-(this.parentOrders.get(P[0])??0)||z[0]?.localeCompare(P[0]||"")||0).map(([z,P])=>{let q=P.length,J=P.filter(g=>(g[4]?.layer||Fe)===d).sort((g,S)=>g[0]-S[0]||(g[4]?.sort||0)-(S[4]?.sort||0)||g[5]?.currentSelector?.localeCompare(S[5]?.currentSelector??"")||g[1]?.localeCompare(S[1]||"")||g[2]?.localeCompare(S[2]||"")||0).map(([,g,S,,k,,M])=>[[[(g&&so(g,i))??"",k?.sort??0]],S,!!(M??k?.noMerge)]);if(!J.length)return;let ce=J.reverse().map(([g,S,k],M)=>{if(!k&&this.config.mergeSelectors)for(let _=M+1;_<q;_++){let D=J[_];if(D&&!D[2]&&(g&&D[0]||g==null&&D[0]==null)&&D[1]===S)return g&&D[0]&&D[0].push(...g),null}let U=g?Q(g.sort((_,D)=>_[1]-D[1]||_[0]?.localeCompare(D[0]||"")||0).map(_=>_[0]).filter(Boolean)):[];return U.length?`${U.join(`,${f}`)}{${S}}`:S}).filter(Boolean).reverse().join(f);if(!z)return ce;let Oe=z.split(" $$ ");return`${Oe.join("{")}{${f}${ce}${f}${"}".repeat(Oe.length)}`}).filter(Boolean).join(f);o&&(w=[y[d],w].filter(Boolean).join(f));let R=a?"":`/* layer: ${d} */${f}`;return v[d]=w?R+w:""},C=(d=x,w)=>d.filter(R=>!w?.includes(R)).map(R=>b(R)||"").filter(Boolean).join(f);return{get css(){return C()},layers:x,matched:m,getLayers:C,getLayer:b}}async matchVariants(e,r){let n=new Set,i=[],o=r||e,s=!0,a={rawSelector:e,theme:this.config.theme,generator:this};for(;s;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let c=await l.match(o,a);if(c){if(A(c)){if(c===o)continue;c={matcher:c}}o=c.matcher,i.unshift(c),n.add(l),s=!0;break}}if(!s)break;if(i.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,o,i,n]}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let m=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??lo)({...p,entries:m,selector:f.selector?.(p.selector,m)||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:ao(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=o;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:s,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(e,r,n){let i=ee(r);if(A(i))return i;let{selector:o,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),l=`${o}{${te(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,i){let[o,s,a]=A(e)?await this.matchVariants(e):e;this.config.details&&(r.rules=r.rules??[]);let l=this.config.rulesStaticMap[s];if(l&&l[1]&&(n||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);let f=l[0],p=ee(l[1]),m=l[2];return A(p)?[[f,p,m]]:[[f,o,p,m,a]]}r.variantHandlers=a;let{rulesDynamic:c}=this.config;for(let[f,p,m,h]of c){if(h?.internal&&!n)continue;let y=s;if(h?.prefix){let b=j(h.prefix);if(i){let C=j(i);if(!b.some(d=>C.includes(d)))continue}else{let C=b.find(d=>s.startsWith(d));if(C==null)continue;y=s.slice(C.length)}}let $=y.match(p);if(!$)continue;let x=await m($,r);if(!x)continue;this.config.details&&r.rules.push([p,m,h]);let v=Mt(x).filter(b=>b.length);if(v.length)return v.map(b=>A(b)?[f,b,h]:[f,o,b,h,a])}}stringifyUtil(e,r){if(!e)return;if(it(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:i,parent:o,layer:s,sort:a,noMerge:l}=this.applyVariants(e),c=te(i);if(!c)return;let{layer:f,sort:p,...m}=e[3]??{},h={...m,layer:s??f,sort:a??p};return[e[0],n,c,o,h,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let i=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Wt,o,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=j(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(Lt(a)){if(a[0]===l){o=o||a[2],s=a[1],i(a);break}}else{let c=l.match(a[0]);if(c&&(s=a[1](c,r)),s){o=o||a[2],i(a);break}}}if(A(s)&&(s=Dt(s.trim()).split(/\s+/g)),!s){let[a,l]=A(e)?await this.matchVariants(e):e;if(a!==l){let c=await this.expandShortcut(l,r,n-1);c&&(s=c[0].map(f=>A(f)?a.replace(l,f):f))}}if(s)return[(await Promise.all(s.map(async a=>(A(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){let o=new Pe,s=(await Promise.all(Q(n).map(async f=>{let p=A(f)?await this.parseUtil(f,r,!0,i.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ee(f),void 0,[]]];return!p&&this.config.warn&&K(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,c=[];for(let f of s){if(it(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:m,parent:h,sort:y,noMerge:$}=this.applyVariants(f,[...f[4],...l],a);o.getFallback(p,h,[[],f[0]])[0].push([m,!!($??f[3]?.noMerge),y??0])}return c.concat(o.map(([f,p],m,h)=>{let y=(x,v,b)=>{let C=Math.max(...b.map(w=>w[1])),d=b.map(w=>w[0]);return(x?[d.flat(1)]:d).map(w=>{let R=te(w);if(R)return[p,m,R,h,{...i,noMerge:v,sort:C},r,void 0]})};return[[f.filter(([,x])=>x).map(([x,,v])=>[x,v]),!0],[f.filter(([,x])=>!x).map(([x,,v])=>[x,v]),!1]].map(([x,v])=>[...y(!1,v,x.filter(([b])=>b.some(C=>C[0]===nt))),...y(!0,v,x.filter(([b])=>b.every(C=>C[0]!==nt)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="function"?r(e):A(r)?r===e:r.test(e))}};function Xt(t,e){return new st(t,e)}var io=/\s\$\$\s+/g;function oo(t){return t.match(/\s\$\$\s/)}function so(t,e){return oo(t)?t.replace(io,e?` ${e} `:" "):e?`${e} ${t}`:t}var Zt=/^\[(.+?)(~?=)"(.*)"\]$/;function ao(t){return Zt.test(t)?t.replace(Zt,(e,r,n,i)=>`[${Ve(r)}${n}"${Ve(i)}"]`):`.${Ve(t)}`}function lo(t,e){return e(t)}var co=/\/\/#\s*sourceMappingURL=.*\n?/g;function Jt(t){return t.includes("sourceMappingURL=")?t.replace(co,""):t}var uo=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,fo=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,po=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function mo(t){let e=[];for(let r of t.matchAll(fo))r.index!==0&&!t[r.index-1]?.match(/^[\s'"`]/)||e.push(r[0]);for(let r of t.matchAll(uo))e.push(r[0]);return t.split(Le).forEach(r=>{fe(r)&&!po.test(r)&&e.push(r)}),e}var Qt={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return mo(Jt(t))}};var er=[{layer:"preflights",getCSS(t){if(t.theme.preflightBase){let e=te(Object.entries(t.theme.preflightBase));return j(t.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${e}}`).join("")}}}];var F={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"]},at={...F,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"]},lt={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"]},We={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},tr=["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"],de=Object.assign({},...tr.map(t=>({[t.replace(/ /,"-")]:t})),...tr.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),E=["inherit","initial","revert","revert-layer","unset"],ct=/(?:calc|clamp|min|max)\s*\(.*\)/;function re(t,e,r){if(t==="")return;let n=t.length,i=0,o=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:o||(o=!0,s=a),i++;break;case r:if(--i,i<0)return;if(i===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function ut(t,e,r,n){if(t===""||(A(n)&&(n=[n]),n.length===0))return;let i=t.length,o=0;for(let s=0;s<i;s++)switch(t[s]){case e:o++;break;case r:if(--o<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&o===0)return s===0||s===i-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function ne(t,e,r){r=r??10;let n=[],i=0;for(;t!=="";){if(++i>r)return;let o=ut(t,"(",")",e);if(!o)return;let[s,a]=o;n.push(s),t=a}if(n.length>0)return n}var ft=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],rr=["%alpha","<alpha-value>"],ho=new RegExp(rr.map(t=>B(t)).join("|"));function me(t=""){let e=go(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:i}=e,o=r.toLowerCase();if(n.length!==0&&!(ft.includes(o)&&![1,3].includes(n.length)))return{type:o,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof i=="string"?i.trim():i}}function he(t){let e=t.alpha??1;return typeof e=="string"&&rr.includes(e)?1:e}function N(t,e){if(typeof t=="string")return t.replace(ho,`${e??1}`);let{components:r}=t,{alpha:n,type:i}=t;return n=e??n,i=i.toLowerCase(),["hsla","rgba"].includes(i)?`${i}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,ft.includes(i)?`${i}(${r.join(" ")}${n})`:`color(${i} ${r.join(" ")}${n})`)}function go(t){if(!t)return;let e=bo(t);if(e!=null||(e=xo(t),e!=null)||(e=yo(t),e!=null)||(e=$o(t),e!=null)||(e=So(t),e!=null))return e}function bo(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,i=>Number.parseInt(i,16)).map(i=>i<<4|i);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function xo(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function yo(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,i=ne(n,",",5);if(i){if([3,4].includes(i.length))return{type:r,components:i.slice(0,3),alpha:i[3]};if(i.length!==1)return!1}}var wo=new RegExp(`^(${ft.join("|")})\\((.+)\\)$`,"i");function $o(t){let e=t.match(wo);if(!e)return;let[,r,n]=e,i=nr(`${r} ${n}`);if(i){let{alpha:o,components:[s,...a]}=i;return{type:s,components:a,alpha:o}}}function So(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=nr(e[1]);if(r){let{alpha:n,components:[i,...o]}=r;return{type:i,components:o,alpha:n}}}function nr(t){let e=ne(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let o=e.splice(r-2);e.push(o.join(" ")),--r}let n=ne(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let i=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:i}}function ir(t){let e=function(n){let i=this.__options?.sequence||[];this.__options.sequence=[];for(let o of i){let s=t[o](n);if(s!=null)return s}};function r(n,i){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(i),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}function ie(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${B(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,...e(s)})}},autocomplete:`${t}:`}}function ge(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${B(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function H(t,e,r){if(e.startsWith(`${t}[`)){let[n,i]=re(e.slice(t.length),"[","]")??[];if(n&&i){for(let o of r)if(i.startsWith(o))return[n,i.slice(o.length),o];return[n,i,""]}}}function V(t,e,r){if(e.startsWith(t)){let n=H(t,e,r);if(n){let[i="",o=n[1]]=V("/",n[1],r)??[];return[n[0],o,i]}for(let i of r.filter(o=>o!=="/")){let o=e.indexOf(i,t.length);if(o!==-1){let s=e.indexOf("/",t.length),a=s===-1||o<=s;return[e.slice(t.length,a?o:s),e.slice(o+i.length),a?"":e.slice(s+1,o)]}}}}var vo=",".charCodeAt(0),Co=";".charCodeAt(0),or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sr=new Uint8Array(64),ko=new Uint8Array(128);for(let t=0;t<or.length;t++){let e=or.charCodeAt(t);sr[t]=e,ko[e]=t}var pt=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}};function ar(t){let e=new Int32Array(5),r=1024*16,n=r-36,i=new Uint8Array(r),o=i.subarray(0,n),s=0,a="";for(let l=0;l<t.length;l++){let c=t[l];if(l>0&&(s===r&&(a+=pt.decode(i),s=0),i[s++]=Co),c.length!==0){e[0]=0;for(let f=0;f<c.length;f++){let p=c[f];s>n&&(a+=pt.decode(o),i.copyWithin(0,n,s),s-=n),f>0&&(i[s++]=vo),s=be(i,s,e,p,0),p.length!==1&&(s=be(i,s,e,p,1),s=be(i,s,e,p,2),s=be(i,s,e,p,3),p.length!==4&&(s=be(i,s,e,p,4)))}}}return a+pt.decode(i.subarray(0,s))}function be(t,e,r,n,i){let o=n[i],s=o-r[i];r[i]=o,s=s<0?-s<<1|1:s<<1;do{let a=s&31;s>>>=5,s>0&&(a|=32),t[e++]=sr[a]}while(s>0);return e}var De=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},Ie=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){let r=e-this.start,n=this.original.slice(0,r),i=this.original.slice(r);this.original=n;let o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=n,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function Ro(){return typeof window<"u"&&typeof window.btoa=="function"?t=>window.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Eo=Ro(),dt=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=ar(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Eo(this.toString())}};function To(t){let e=t.split(`
|
|
3
|
+
`),r=e.filter(o=>/^\t+/.test(o)),n=e.filter(o=>/^ {2,}/.test(o));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let i=n.reduce((o,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,o)},1/0);return new Array(i+1).join(" ")}function jo(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let i=r.length;for(;i--;)r[i]=".."}return r.concat(n).join("/")}var Ao=Object.prototype.toString;function Oo(t){return Ao.call(t)==="[object Object]"}function lr(t){let e=t.split(`
|
|
4
|
+
`),r=[];for(let n=0,i=0;n<e.length;n++)r.push(i),i+=e[n].length+1;return function(i){let o=0,s=r.length;for(;o<s;){let c=o+s>>1;i<r[c]?s=c:o=c+1}let a=o-1,l=i-r[a];return{line:a,column:l}}}var Vo=/\w/,mt=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,i){if(r.length){let o=r.indexOf(`
|
|
5
5
|
`,0),s=-1;for(;o>=0;){let l=[this.generatedCodeColumn,e,n.line,n.column];i>=0&&l.push(i),this.rawSegments.push(l),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,s=o,o=r.indexOf(`
|
|
6
|
-
`,o+1)}let a=[this.generatedCodeColumn,e,n.line,n.column];i>=0&&a.push(i),this.rawSegments.push(a),this.advance(r.slice(s+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(e,r,n,i,o){let s=r.start,a=!0,l=!1;for(;s<r.end;){if(this.hires||a||o.has(s)){let c=[this.generatedCodeColumn,e,i.line,i.column];this.hires==="boundary"?
|
|
6
|
+
`,o+1)}let a=[this.generatedCodeColumn,e,n.line,n.column];i>=0&&a.push(i),this.rawSegments.push(a),this.advance(r.slice(s+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(e,r,n,i,o){let s=r.start,a=!0,l=!1;for(;s<r.end;){if(this.hires||a||o.has(s)){let c=[this.generatedCodeColumn,e,i.line,i.column];this.hires==="boundary"?Vo.test(n[s])?l||(this.rawSegments.push(c),l=!0):(this.rawSegments.push(c),l=!1):this.rawSegments.push(c)}n[s]===`
|
|
7
7
|
`?(i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=!0):(i.column+=1,this.generatedCodeColumn+=1,a=!1),s+=1}this.pending=null}advance(e){if(!e)return;let r=e.split(`
|
|
8
8
|
`);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}},xe=`
|
|
9
|
-
`,oe={insertLeft:!1,insertRight:!1,storeName:!1},Be=class t{constructor(e,r={}){let n=new Ie(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},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 De},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.appendLeft(r):this.intro+=r,this}appendRight(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.appendRight(r):this.outro+=r,this}clone(){let e=new t(this.original,{filename:this.filename}),r=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=r.clone();for(;r;){e.byStart[n.start]=n,e.byEnd[n.end]=n;let i=r.next,o=i&&i.clone();o&&(n.next=o,o.previous=n,n=o),r=i}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new De(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};let r=0,n=Object.keys(this.storedNames),i=new mt(e.hires),o=lr(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext(s=>{let a=o(s.start);s.intro.length&&i.advance(s.intro),s.edited?i.addEdit(r,s.content,a,s.storeName?n.indexOf(s.original):-1):i.addUneditedChunk(r,s,this.original,a,this.sourcemapLocations),s.outro.length&&i.advance(s.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?
|
|
9
|
+
`,oe={insertLeft:!1,insertRight:!1,storeName:!1},Be=class t{constructor(e,r={}){let n=new Ie(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},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 De},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.appendLeft(r):this.intro+=r,this}appendRight(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.appendRight(r):this.outro+=r,this}clone(){let e=new t(this.original,{filename:this.filename}),r=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=r.clone();for(;r;){e.byStart[n.start]=n,e.byEnd[n.end]=n;let i=r.next,o=i&&i.clone();o&&(n.next=o,o.previous=n,n=o),r=i}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new De(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};let r=0,n=Object.keys(this.storedNames),i=new mt(e.hires),o=lr(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext(s=>{let a=o(s.start);s.intro.length&&i.advance(s.intro),s.edited?i.addEdit(r,s.content,a,s.storeName?n.indexOf(s.original):-1):i.addUneditedChunk(r,s,this.original,a,this.sourcemapLocations),s.outro.length&&i.advance(s.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?jo(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:n,mappings:i.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(e){return new dt(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=To(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,r){let n=/^[^\r\n]/gm;if(Oo(e)&&(r=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;r=r||{};let i={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(f=>{for(let p=f[0];p<f[1];p+=1)i[p]=!0});let o=r.indentStart!==!1,s=c=>o?`${e}${c}`:(o=!0,c);this.intro=this.intro.replace(n,s);let a=0,l=this.firstChunk;for(;l;){let c=l.end;if(l.edited)i[a]||(l.content=l.content.replace(n,s),l.content.length&&(o=l.content[l.content.length-1]===`
|
|
10
10
|
`));else for(a=l.start;a<c;){if(!i[a]){let f=this.original[a];f===`
|
|
11
|
-
`?o=!0:f!=="\r"&&o&&(o=!1,a===l.start||(this._splitChunk(l,a),l=l.next),l.prependRight(e))}a+=1}a=l.end,l=l.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,r){return oe.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),oe.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return oe.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),oe.insertRight=!0),this.prependRight(e,r)}move(e,r,n){if(n>=e&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(r),this._split(n);let i=this.byStart[e],o=this.byEnd[r],s=i.previous,a=o.next,l=this.byStart[n];if(!l&&o===this.lastChunk)return this;let c=l?l.previous:this.lastChunk;return s&&(s.next=a),a&&(a.previous=s),c&&(c.next=i),l&&(l.previous=o),i.previous||(this.firstChunk=o.next),o.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=c,o.next=l||null,c||(this.firstChunk=i),l||(this.lastChunk=o),this}overwrite(e,r,n,i){return i=i||{},this.update(e,r,n,{...i,overwrite:!i.contentOnly})}update(e,r,n,i){if(typeof n!="string")throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length;if(r>this.original.length)throw new Error("end is out of bounds");if(e===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(r),i===!0&&(oe.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),oe.storeName=!0),i={storeName:!0});let o=i!==void 0?i.storeName:!1,s=i!==void 0?i.overwrite:!1;if(o){let c=this.original.slice(e,r);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let a=this.byStart[e],l=this.byEnd[r];if(a){let c=a;for(;c!==l;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}a.edit(n,o,!s)}else{let c=new Ie(e,r,"").edit(n,o);l.next=c,c.previous=l}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(e,r){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length;if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(xe);if(e!==-1)return this.outro.substr(e+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(xe),e!==-1)return n.outro.substr(e+1)+r;r=n.outro+r}if(n.content.length>0){if(e=n.content.lastIndexOf(xe),e!==-1)return n.content.substr(e+1)+r;r=n.content+r}if(n.intro.length>0){if(e=n.intro.lastIndexOf(xe),e!==-1)return n.intro.substr(e+1)+r;r=n.intro+r}}while(n=n.previous);return e=this.intro.lastIndexOf(xe),e!==-1?this.intro.substr(e+1)+r:this.intro+r}slice(e=0,r=this.original.length){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length;let n="",i=this.firstChunk;for(;i&&(i.start>e||i.end<=e);){if(i.start<r&&i.end>=r)return n;i=i.next}if(i&&i.edited&&i.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);let o=i;for(;i;){i.intro&&(o!==i||i.start===e)&&(n+=i.intro);let s=i.start<r&&i.end>=r;if(s&&i.edited&&i.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let a=o===i?e-i.start:0,l=s?i.content.length+r-i.end:i.content.length;if(n+=i.content.slice(a,l),i.outro&&(!s||i.end===r)&&(n+=i.outro),s)break;i=i.next}return n}snip(e,r){let n=this.clone();return n.remove(0,e),n.remove(r,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let r=this.lastSearchedChunk,n=e>r.end;for(;r;){if(r.contains(e))return this._splitChunk(r,e);r=n?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(e,r){if(e.edited&&e.content.length){let i=lr(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} \u2013 "${e.original}")`)}let n=e.split(r);return this.byEnd[r]=e,this.byStart[r]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,r=this.firstChunk;for(;r;)e+=r.toString(),r=r.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,r=0;do r+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let r=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{let i=n.end,o=n.trimEnd(r);if(n.end!==i&&(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),o)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let r=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{let i=n.end,o=n.trimStart(r);if(n.end!==i&&(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),o)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,r){function n(o,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(a,l)=>l==="$"?"$":l==="&"?o[0]:+l<o.length?o[+l]:`$${l}`):r(...o,o.index,s,o.groups)}function i(o,s){let a,l=[];for(;a=o.exec(s);)l.push(a);return l}if(e.global)i(e,this.original).forEach(s=>{s.index!=null&&this.overwrite(s.index,s.index+s[0].length,n(s,this.original))});else{let o=this.original.match(e);o&&o.index!=null&&this.overwrite(o.index,o.index+o[0].length,n(o,this.original))}return this}_replaceString(e,r){let{original:n}=this,i=n.indexOf(e);return i!==-1&&this.overwrite(i,i+e.length,r),this}replace(e,r){return typeof e=="string"?this._replaceString(e,r):this._replaceRegexp(e,r)}_replaceAllString(e,r){let{original:n}=this,i=e.length;for(let o=n.indexOf(e);o!==-1;o=n.indexOf(e,o+i))this.overwrite(o,o+i,r);return this}replaceAll(e,r){if(typeof e=="string")return this._replaceAllString(e,r);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,r)}};var Vo=/theme\(\s*['"]?(.*?)['"]?\s*\)/g;function cr(t){return t.includes("theme(")&&t.includes(")")}function ur(t,e,r=!0){let n=Array.from(t.toString().matchAll(Vo));if(!n.length)return t;let i=new Be(t);for(let o of n){let s=o[1];if(!s)throw new Error("theme() expect exact one argument, but got 0");let[a,l]=s.split("/"),f=a.trim().split(".").reduce((p,m)=>p?.[m],e);if(typeof f=="string"){if(l){let p=me(f);p&&(f=N(p,l))}i.overwrite(o.index,o.index+o[0].length,f)}else if(r)throw new Error(`theme of "${s}" did not found`)}return i.toString()}var bt={};Bi(bt,{auto:()=>Mo,bracket:()=>Do,bracketOfColor:()=>Io,bracketOfLength:()=>Bo,bracketOfPosition:()=>Ko,cssvar:()=>Ho,degree:()=>qo,fraction:()=>No,global:()=>Yo,number:()=>Uo,numberWithUnit:()=>Po,percent:()=>Fo,position:()=>Xo,properties:()=>Zo,px:()=>Lo,rem:()=>_o,time:()=>Go});var G=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,ht=/^(-?\d*(?:\.\d+)?)$/i,gt=/^(px)$/i;var zo=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function W(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Po(t){let e=t.match(G);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(n&&!Number.isNaN(i))return`${W(i)}${n}`}function Mo(t){if(t==="auto"||t==="a")return"auto"}function _o(t){if(t.match(gt))return`1${t}`;let e=t.match(G);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0?"0":n?`${W(i)}${n}`:`${W(i/4)}rem`}function Lo(t){if(t.match(gt))return`1${t}`;let e=t.match(G);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return n?`${W(i)}${n}`:`${W(i)}px`}function Uo(t){if(!ht.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return W(e)}function Fo(t){if(t.endsWith("%")&&(t=t.slice(0,-1)),!ht.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return`${W(e/100)}`}function No(t){if(t==="full")return"100%";let[e,r]=t.split("/"),n=Number.parseFloat(e)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${W(n*100)}%`}var Wo=/^\[(color|length|position|quoted|string):/i;function Ke(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n,i=t.match(Wo);if(i?(e||(n=i[1]),r=t.slice(i[0].length,-1)):r=t.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let o=0;for(let s of r)if(s==="[")o+=1;else if(s==="]"&&(o-=1,o<0))return;if(o)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,(l,c)=>(a.push(c),l.replace(c,"--un-calc"))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function Do(t){return Ke(t)}function Io(t){return Ke(t,"color")}function Bo(t){return Ke(t,"length")}function Ko(t){return Ke(t,"position")}function Ho(t){if(t.match(/^\$[^\s'"`;{}]/))return`var(--${Y(t.slice(1))})`}function Go(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0&&!n?"0s":n?`${W(i)}${n}`:`${W(i)}ms`}function qo(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0?"0":n?`${W(i)}${n}`:`${W(i)}deg`}function Yo(t){if(E.includes(t))return t}function Zo(t){if(t.split(",").every(e=>zo.includes(e)))return t}function Xo(t){if(["top","left","right","bottom","center"].includes(t))return t}var Jo=ir(bt),u=Jo;var fr={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(E.map(t=>[t,t]))},pr=[[/^(?:vertical|align|v)-([-\w]+%?)$/,([,t])=>({"vertical-align":fr[t]??u.numberWithUnit(t)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(fr).join("|")})`,"(vertical|align|v)-<percentage>"]}]],dr=["center","left","right","justify","start","end"].map(t=>[`text-${t}`,{"text-align":t}]);var mr="$$mini-no-negative";function L(t){return([e,r,n],{theme:i})=>{let o=i.spacing?.[n||"DEFAULT"]??u.bracket.cssvar.global.auto.fraction.rem(n);if(o!=null)return F[r].map(s=>[`${t}${s}`,o])}}function He(t,e){let r=t.colors,n=-1;for(let i of e){if(n+=1,r&&typeof r!="string"){let o=e.slice(n).join("-").replace(/(-[a-z])/g,s=>s.slice(1).toUpperCase());if(r[o])return r[o];if(r[i]){r=r[i];continue}}return}return r}function xt(t,e){let r=t.split(/(?:\/|:)/);return r[0]===`[${e}`?[r.slice(0,2).join(":"),r[2]]:r}function Ge(t,e){let[r,n]=xt(t,"color"),i=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[o]=i;if(!o)return;let s,a=u.bracketOfColor(r),l=a||r;if(u.numberWithUnit(l))return;if(l.match(/^#[\da-fA-F]+/g)?s=l:l.match(/^hex-[\da-fA-F]+/g)?s=`#${l.slice(4)}`:r.startsWith("$")&&(s=u.cssvar(r)),s=s||a,!s){let f=He(e,[r]);typeof f=="string"&&(s=f)}let c="DEFAULT";if(!s){let f,[p]=i.slice(-1);p.match(/^\d+$/)?(c=p,f=He(e,i.slice(0,-1)),!f||typeof f=="string"?s=void 0:s=f[c]):(f=He(e,i),!f&&i.length<=2&&([,c=c]=i,f=He(e,[o])),typeof f=="string"?s=f:c&&f&&(s=f[c]))}return{opacity:n,name:o,no:c,color:s,cssColor:me(s),alpha:u.bracket.cssvar.percent(n??"")}}function O(t,e,r){return([,n],{theme:i})=>{let o=Ge(n,i);if(!o)return;let{alpha:s,color:a,cssColor:l}=o,c={};if(l?s!=null?c[t]=N(l,s):(c[`--un-${e}-opacity`]=he(l),c[t]=N(l,`var(--un-${e}-opacity)`)):a&&(c[t]=N(a,s)),r?.(c)!==!1)return c}}function qe(t,e){let r=[];t=j(t);for(let n=0;n<t.length;n++){let i=ne(t[n]," ",6);if(!i||i.length<3)return t;let o=me(i.pop());if(o==null)return t;r.push(`${i.join(" ")} var(${e}, ${N(o)})`)}return r}function Ye(t,e){return t!=null&&!!Ge(t,e)?.color}function Ze({theme:t,generator:e},r="breakpoints"){let n;return e.userConfig&&e.userConfig.theme&&(n=e.userConfig.theme[r]),n||(n=t[r]),n?Object.entries(n).sort((i,o)=>Number.parseInt(i[1].replace(/[a-z]+/gi,""))-Number.parseInt(o[1].replace(/[a-z]+/gi,""))).map(([i,o])=>({point:i,size:o})):void 0}function T(t,e){return E.map(r=>[`${t}-${r}`,{[e??t]:r}])}function hr(t){return ct.test(t)}function gr(t){return t[0]==="["&&t.slice(-1)==="]"&&(t=t.slice(1,-1)),ct.test(t)||G.test(t)}var br=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>({"outline-width":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}),{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,O("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>({"outline-offset":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...E].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],xr=[["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function Qo(t){return u.properties.auto.global(t)??{contents:"contents",scroll:"scroll-position"}[t]}var yr=[[/^will-change-(.+)/,([,t])=>({"will-change":Qo(t)})]];var ke=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...E],wr=[[/^(?:border|b)()(?:-(.+))?$/,ye,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ye],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ye],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ye],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ye],[/^(?:border|b)-()(?:width|size)-(.+)$/,se,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,se],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-()(?:color-)?(.+)$/,we,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,we],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,we],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,we],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,we],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,$e,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,$e],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,$e],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,$e],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,$e],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,Se,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,Se],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Se],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,Se],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Se],[/^(?:border|b)-(?:style-)?()(.+)$/,ve,{autocomplete:["(border|b)-style",`(border|b)-(${ke.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ke.join("|")})`,`(border|b)-<directions>-style-(${ke.join("|")})`,`(border|b)-style-(${ke.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,ve],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ve],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ve],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ve]];function es(t){return([,e],r)=>{let n=Ge(e,r);if(!n)return;let{alpha:i,color:o,cssColor:s}=n;if(s)return i!=null?{[`border${t}-color`]:N(s,i)}:t===""?{"--un-border-opacity":he(s),"border-color":N(s,"var(--un-border-opacity)")}:{"--un-border-opacity":he(s),[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:N(s,`var(--un-border${t}-opacity)`)};if(o)return hr(o)?{"border-width":o}:{[`border${t}-color`]:N(o,i)}}}function ye(t,e){return se(t,e)}function se([,t="",e],{theme:r}){let n=r.lineWidth?.[e||"DEFAULT"]??u.bracket.cssvar.global.px(e||"1");if(t in F&&n!=null)return F[t].map(i=>[`border${i}-width`,n])}function we([,t="",e],{theme:r}){if(t in F&&Ye(e,r))return Object.assign({},...F[t].map(n=>es(n)(["",e],r)))}function $e([,t="",e]){let r=u.bracket.percent.cssvar(e);if(t in F&&r!=null)return F[t].map(n=>[`--un-border${n}-opacity`,r])}function Se([,t="",e],{theme:r}){let n=r.borderRadius?.[e||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(e||"1");if(t in lt&&n!=null)return lt[t].map(i=>[`border${i}-radius`,n])}function ve([,t="",e]){if(ke.includes(e)&&t in F)return F[t].map(r=>[`border${r}-style`,e])}var $r=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:u.bracket.percent.cssvar(t)})]],Sr=[[/^(?:color|c)-(.+)$/,O("color","text"),{autocomplete:"(color|c)-$colors"}],[/^text-(.+)$/,O("color","text",t=>!t.color?.toString().match(G)),{autocomplete:"text-$colors"}],[/^(?:text|color|c)-(.+)$/,([,t])=>E.includes(t)?{color:t}:void 0,{autocomplete:`(text|color|c)-(${E.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],vr=[[/^bg-(.+)$/,(...t)=>gr(t[0][1])?void 0:O("background-color","bg")(...t),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],kr=[[/^color-scheme-(\w+)$/,([,t])=>({"color-scheme":t})]];var Cr=[[/^@container(?:\/(\w+))?(?:-(normal))?$/,([,t,e])=>(K("The container query rule is experimental and may not follow semver."),{"container-type":e??"inline-size","container-name":t})]];var Rr=["solid","double","dotted","dashed","wavy",...E],Er=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,t])=>({"text-decoration-line":t}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,t],{theme:e})=>({"text-decoration-thickness":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}),{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,t])=>({"text-decoration-thickness":t}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(t,e)=>{let r=O("text-decoration-color","line")(t,e);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-line-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,t],{theme:e})=>({"text-underline-offset":e.lineWidth?.[t]??u.auto.bracket.cssvar.global.px(t)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Rr.map(t=>[`underline-${t}`,{"text-decoration-style":t}]),...Rr.map(t=>[`decoration-${t}`,{"text-decoration-style":t}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var Xe={all:"all",colors:["color","background-color","border-color","outline-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"};function Tr(t){return u.properties(t)??Xe[t]}var jr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{let n=t!=null?Tr(t):[Xe.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let i=r.duration?.[e||"DEFAULT"]??u.time(e||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(Xe).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>({"transition-duration":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>({"transition-delay":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>({"transition-timing-function":e.easing?.[t||"DEFAULT"]??u.bracket.cssvar(t)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":u.bracket.global(t)||Tr(t)}),{autocomplete:[`transition-property-(${[...E,...Object.keys(Xe)].join("|")})`]}],["transition-none",{transition:"none"}],...T("transition")];var Ar=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:u.bracket(t)!=null?u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" "):u.cssvar.fraction(t)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,t=""])=>({"flex-shrink":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,t=""])=>({"flex-grow":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>({"flex-basis":e.spacing?.[t]??u.bracket.cssvar.auto.fraction.rem(t)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];function yt(t,e,r){return e[r]?.[t]||u.bracket.cssvar.global.rem(t)}var Or=[[/^text-(.+)$/,([,t="base"],{theme:e})=>{let[r,n]=xt(t,"length"),i=j(e.fontSize?.[r]),o=n?yt(n,e,"lineHeight"):void 0;if(i?.[0]){let[a,l,c]=i;return typeof l=="object"?{"font-size":a,...l}:{"font-size":a,"line-height":o??l??"1","letter-spacing":c?yt(c,e,"letterSpacing"):void 0}}let s=u.bracketOfLength.rem(r);return o&&s?{"font-size":s,"line-height":o}:{"font-size":u.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,([,t],{theme:e})=>{let n=j(e.fontSize?.[t])?.[0]??u.bracket.cssvar.global.rem(t);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t],{theme:e})=>({"font-weight":e.fontWeight?.[t]||u.bracket.global.number(t)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,t],{theme:e})=>({"line-height":yt(t,e,"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-(.+)$/,([,t])=>({"font-synthesis":u.bracket.cssvar.global(t)})],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>({"letter-spacing":e.letterSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>({"word-spacing":e.wordSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{autocomplete:"word-spacing-$wordSpacing"}],[/^font-(.+)$/,([,t],{theme:e})=>({"font-family":e.fontFamily?.[t]||u.bracket.cssvar.global(t)}),{autocomplete:"font-$fontFamily"}]],Vr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=u.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],zr=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>({"text-indent":e.textIndent?.[t||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"indent-$textIndent"}]],Pr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>({"-webkit-text-stroke-width":e.textStrokeWidth?.[t||"DEFAULT"]||u.bracket.cssvar.px(t)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,O("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Mr=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.textShadow?.[t||"DEFAULT"];return r!=null?{"--un-text-shadow":qe(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":u.bracket.cssvar.global(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,O("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var ts={"":"",x:"column-",y:"row-"};function _r([,t="",e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.global.rem(e);if(n!=null)return{[`${ts[t]}gap`]:n}}var Lr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,_r,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,_r,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];function I(t){return t.replace("col","column")}function wt(t){return t[0]==="r"?"Row":"Column"}function rs(t,e,r){let n=e[`gridAuto${wt(t)}`]?.[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 u.bracket.cssvar.auto.rem(r)}var Ur=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>({[`grid-${I(t)}`]:r[`grid${wt(t)}`]?.[e]??u.bracket.cssvar.auto(e)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${I(t)}`]:"1/-1"};let r=u.bracket.number(e);if(r!=null)return{[`grid-${I(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>({[`grid-${I(t)}-start`]:u.bracket.cssvar(e)??e})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>({[`grid-${I(t)}-end`]:u.bracket.cssvar(e)??e}),{autocomplete:["grid-(row|col)-(start|end)-<num>"]}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${I(t)}`]:rs(t,r,e)}),{autocomplete:["grid-auto-(rows|cols)-<num>"]}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":u.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,t])=>({"grid-auto-flow":I(t).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-template-${I(t)}`]:r[`gridTemplate${wt(t)}`]?.[e]??u.bracket.cssvar(e)})],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${I(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${I(t)}`]:`repeat(${e},minmax(0,1fr))`}),{autocomplete:["grid-(rows|cols)-<num>","grid-(rows|cols)-none"]}],[/^grid-area(s)?-(.+)$/,([,t,e])=>t!=null?{"grid-template-areas":u.cssvar(e)??e.split("-").map(r=>`"${u.bracket(r)}"`).join(" ")}:{"grid-area":u.bracket.cssvar(e)}],["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 Je=["auto","hidden","clip","visible","scroll","overlay",...E],Fr=[[/^(?:overflow|of)-(.+)$/,([,t])=>Je.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${Je.join("|")})`,`(overflow|of)-(x|y)-(${Je.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>Je.includes(e)?{[`overflow-${t}`]:e}:void 0]];var Nr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,t])=>E.includes(t)?{position:t}:void 0],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],St=[["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"}],...T("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"}],...T("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"}],...T("justify-self")],Wr=[[/^order-(.+)$/,([,t])=>({order:u.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],vt=[["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"}],...T("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"}],...T("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"}],...T("self","align-self")],Dr=[["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"}],...T("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"}],...T("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"}],...T("place-self")],Ir=[...St,...vt].flatMap(([t,e])=>[[`flex-${t}`,e],[`grid-${t}`,e]]);function $t(t,{theme:e}){return e.spacing?.[t]??u.bracket.cssvar.global.auto.fraction.rem(t)}function Ce([,t,e],r){let n=$t(e,r);if(n!=null&&t in at)return at[t].map(i=>[i.slice(1),n])}var Br=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:$t(t,e)}),{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)-(.+)$/,Ce],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Ce],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Ce],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Ce],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Ce],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:$t(e,r)})]],Kr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],...T("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}],...T("clear")],Hr=[[/^(?:position-|pos-)?z([\d.]+)$/,([,t])=>({"z-index":u.number(t)})],[/^(?:position-|pos-)?z-(.+)$/,([,t],{theme:e})=>({"z-index":e.zIndex?.[t]??u.bracket.cssvar.global.auto.number(t)}),{autocomplete:"z-<num>"}]],Gr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...T("box","box-sizing")];var ns=["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"],is=["none","strict","content","size","inline-size","layout","style","paint"],Qe=" ",qr=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,t])=>({display:u.bracket.cssvar.global(t)})]],Yr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...T("backface","backface-visibility")],Zr=[[/^cursor-(.+)$/,([,t])=>({cursor:u.bracket.cssvar.global(t)})],...ns.map(t=>[`cursor-${t}`,{cursor:t}])],Xr=[[/^contain-(.*)$/,([,t])=>u.bracket(t)!=null?{contain:u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" ")}:is.includes(t)?{contain:t}:void 0]],Jr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...T("pointer-events")],Qr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...T("resize")],en=[["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"}],...T("select","user-select")],tn=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,t])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...E].includes(t)?{"white-space":t}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],rn=[[/^intrinsic-size-(.+)$/,([,t])=>({"contain-intrinsic-size":u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...T("content-visibility")],nn=[[/^content-(.+)$/,([,t])=>({content:u.bracket.cssvar(t)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],on=[["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"}]],sn=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}]],an=[["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"}]],ln=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...T("case","text-transform")],cn=[["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"}]],un=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]];var fn={"--un-ring-inset":Qe,"--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)"},pn=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.ringWidth?.[t||"DEFAULT"]??u.px(t||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>({"--un-ring-width":e.lineWidth?.[t]??u.bracket.cssvar.px(t)}),{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>({"--un-ring-offset-width":e.lineWidth?.[t]??u.bracket.cssvar.px(t)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,O("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,O("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var dn={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":Qe,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},mn=[[/^shadow(?:-(.+))?$/,(t,e)=>{let[,r]=t,{theme:n}=e,i=n.boxShadow?.[r||"DEFAULT"],o=r?u.bracket.cssvar(r):void 0;return(i!=null||o!=null)&&!Ye(o,n)?{"--un-shadow":qe(i||o,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:O("--un-shadow-color","shadow")(t,e)},{autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var os={h:"height",w:"width",inline:"inline-size",block:"block-size"};function Re(t,e){return`${t||""}${os[e]}`}function hn(t,e,r,n){let i=Re(t,e).replace(/-(\w)/g,(s,a)=>a.toUpperCase()),o=r[i]?.[n];if(o!=null)return o;switch(n){case"fit":case"max":case"min":return`${n}-content`}return u.bracket.cssvar.global.auto.fraction.rem(n)}var bn=[[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[Re(t,e)]:hn(t,e,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[Re(t,e)]:hn(t,e,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-(.+)$/,([,t,e,r],n)=>({[Re(t,e)]:gn(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],n)=>({[Re(t,e)]:gn(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 gn(t,e,r="breakpoints"){let n=Ze(t,r);if(n)return n.find(i=>i.point===e)?.size}function ss(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return u.bracket.cssvar.global.auto.number(t)}var xn=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":ss(t)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var yn=[[/^pa?()-?(-?.+)$/,L("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,L("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,L("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,L("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,L("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,L("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],wn=[[/^ma?()-?(-?.+)$/,L("margin")],[/^m-?xy()()$/,L("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,L("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,L("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,L("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,L("margin")]];var et=["translate","rotate","scale"],Z=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),as=["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(" "),Cn={"--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},Rn=[[/^(?:transform-)?origin-(.+)$/,([,t])=>({"transform-origin":de[t]??u.bracket.cssvar(t)}),{autocomplete:[`transform-origin-(${Object.keys(de).join("|")})`,`origin-(${Object.keys(de).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=u.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{let e=u.bracket.cssvar(t)??(t.length>=3?de[t]:void 0);if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,$n],[/^(?:transform-)?translate-([xyz])-(.+)$/,$n],[/^(?:transform-)?rotate-()(.+)$/,vn],[/^(?:transform-)?rotate-([xyz])-(.+)$/,vn],[/^(?:transform-)?skew-()(.+)$/,kn],[/^(?:transform-)?skew-([xy])-(.+)$/,kn,{autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Sn],[/^(?:transform-)?scale-([xyz])-(.+)$/,Sn,{autocomplete:[`transform-(${et.join("|")})-<percent>`,`transform-(${et.join("|")})-(x|y|z)-<percent>`,`(${et.join("|")})-<percent>`,`(${et.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:Z}],["transform-cpu",{transform:Z}],["transform-gpu",{transform:as}],["transform-none",{transform:"none"}],...T("transform")];function $n([,t,e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.fraction.rem(e);if(n!=null)return[...We[t].map(i=>[`--un-translate${i}`,n]),["transform",Z]]}function Sn([,t,e]){let r=u.bracket.cssvar.fraction.percent(e);if(r!=null)return[...We[t].map(n=>[`--un-scale${n}`,r]),["transform",Z]]}function vn([,t="",e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return t?{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:Z}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:Z}}function kn([,t,e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return[...We[t].map(n=>[`--un-skew${n}`,r]),["transform",Z]]}var ls={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"},En=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ls[t];if(r)return{[r]:u.cssvar(e)}}]],Tn=[[/^\[(.*)\]$/,([t,e],{theme:r})=>{if(!e.includes(":"))return;let[n,...i]=e.split(":"),o=i.join(":");if(!us(e)&&n.match(/^[a-z-]+$/)&&cs(o)){let s;if(cr(o)&&(s=ur(o,r)),(!s||s===o)&&(s=u.bracket(`[${o}]`)),s)return{[n]:s}}}]];function cs(t){let e=0;function r(n){for(;e<t.length;)if(e+=1,t[e]===n)return!0;return!1}for(e=0;e<t.length;e++){let n=t[e];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function us(t){if(!t.includes("://"))return!1;try{return new URL(t).host!==""}catch{return!1}}var jn=[[/^(where|\?)$/,(t,{constructCSS:e,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
|
|
12
|
-
${e({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var An=[[/^fill-(.+)$/,O("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,t])=>({"--un-fill-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>({"stroke-width":e.lineWidth?.[t]??u.bracket.cssvar.fraction.px.number(t)}),{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,t])=>({"stroke-dasharray":u.bracket.cssvar.number(t)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,t],{theme:e})=>({"stroke-dashoffset":e.lineWidth?.[t]??u.bracket.cssvar.px.numberWithUnit(t)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,O("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-stroke-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var On=[En,Tn,yn,wn,qr,$r,vr,kr,An,wr,rn,nn,Or,Vr,zr,an,Er,Pr,Mr,ln,dr,Sr,cn,un,mn,pn,Ar,Ur,Lr,Nr,bn,xn,Zr,Yr,Jr,Qr,pr,en,tn,on,Fr,br,xr,Wr,St,vt,Dr,Ir,Br,Kr,Hr,Gr,jr,Rn,yr,Cr,Xr,sn,jn].flat(1);var kt={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(kt).forEach(t=>{typeof t!="string"&&t!==void 0&&(t.DEFAULT=t.DEFAULT||t[400],Object.keys(t).forEach(e=>{let r=+e/100;r===Math.round(r)&&(t[r]=t[e])}))});var Vn={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(",")},zn={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"]},Pn={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Mn={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},_n={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)"]},Ln={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ct={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Un={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Fn=Ct;var Rt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Nn={...Rt},Wn={DEFAULT:"1px",none:"0"},Dn={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"},In={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Bn={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Kn={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)"},Hn={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)"},Gn={DEFAULT:"1px",none:"0"},qn={auto:"auto"},Yn={mouse:"(hover) and (pointer: fine)"};var Zn={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Xn={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 Ee={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Et={auto:"auto",...Ee,screen:"100vw"},Te={none:"none",...Ee,screen:"100vw"},Tt={auto:"auto",...Ee,screen:"100vh"},je={none:"none",...Ee,screen:"100vh"},Jn=Object.fromEntries(Object.entries(Ee).map(([t,e])=>[t,`(min-width: ${e})`]));var Qn={...Cn,...dn,...fn};var ei={width:Et,height:Tt,maxWidth:Te,maxHeight:je,minWidth:Te,minHeight:je,inlineSize:Et,blockSize:Tt,maxInlineSize:Te,maxBlockSize:je,minInlineSize:Te,minBlockSize:je,colors:kt,fontFamily:Vn,fontSize:zn,fontWeight:Un,breakpoints:Rt,verticalBreakpoints:Nn,borderRadius:Bn,lineHeight:Ln,letterSpacing:Ct,wordSpacing:Fn,boxShadow:Kn,textIndent:Pn,textShadow:_n,textStrokeWidth:Mn,blur:Zn,dropShadow:Xn,easing:Hn,lineWidth:Wn,spacing:Dn,duration:In,ringWidth:Gn,preflightBase:Qn,containers:Jn,zIndex:qn,media:Yn};var ti={name:"aria",match(t,e){let r=V("aria-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??e.theme.aria?.[n]??"";if(o)return{matcher:i,selector:s=>`${s}[aria-${o}]`}}}};function ri(t){let e=t.match(/^-?[0-9]+\.?[0-9]*/)?.[0]||"",r=t.slice(e.length);if(r==="px"){let n=Number.parseFloat(e)-.1;return Number.isNaN(n)?t:`${n}${r}`}return`calc(${t} - 0.1px)`}function ni(){let t={};return{name:"breakpoints",match(e,r){let n=(Ze(r)??[]).map(({point:i,size:o},s)=>[i,o,s]);for(let[i,o,s]of n){t[i]||(t[i]=new RegExp(`^((?:([al]t-|[<~]|max-))?${i}(?:${r.generator.config.separators.join("|")}))`));let a=e.match(t[i]);if(!a)continue;let[,l]=a,c=e.slice(l.length);if(c==="container")continue;let f=l.startsWith("lt-")||l.startsWith("<")||l.startsWith("max-"),p=l.startsWith("at-")||l.startsWith("~"),m=1e3;return f?(m-=s+1,{matcher:c,handle:(h,y)=>y({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (max-width: ${ri(o)})`,parentOrder:m})}):(m+=s+1,p&&s<n.length-1?{matcher:c,handle:(h,y)=>y({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${o}) and (max-width: ${ri(n[s+1][1])})`,parentOrder:m})}:{matcher:c,handle:(h,y)=>y({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${o})`,parentOrder:m})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}function Ae(t,e){return{name:`combinator:${t}`,match(r,n){if(!r.startsWith(t))return;let i=n.generator.config.separators,o=H(`${t}-`,r,i);if(!o){for(let a of i)if(r.startsWith(`${t}${a}`)){o=["",r.slice(t.length+a.length)];break}if(!o)return}let s=u.bracket(o[0])??"";return s===""&&(s="*"),{matcher:o[1],selector:a=>`${a}${e}${s}`}},multiPass:!0}}var ii=[Ae("all"," "),Ae("children",">"),Ae("next","+"),Ae("sibling","+"),Ae("siblings","~")];var oi={name:"@",match(t,e){if(t.startsWith("@container"))return;let r=V("@",t,e.generator.config.separators);if(r){let[n,i,o]=r,s=u.bracket(n),a;if(s){let l=u.numberWithUnit(s);l&&(a=`(min-width: ${l})`)}else a=e.theme.containers?.[n]??"";if(a)return K("The container query variant is experimental and may not follow semver."),{matcher:i,handle:(l,c)=>c({...l,parent:`${l.parent?`${l.parent} $$ `:""}@container${o?` ${o} `:" "}${a}`})}}},multiPass:!0};function si(t={}){if(t?.dark==="class"||typeof t.dark=="object"){let{dark:e=".dark",light:r=".light"}=typeof t.dark=="string"?{}:t.dark;return[ie("dark",n=>({prefix:`${e} $$ ${n.prefix}`})),ie("light",n=>({prefix:`${r} $$ ${n.prefix}`}))]}return[ge("dark","@media (prefers-color-scheme: dark)"),ge("light","@media (prefers-color-scheme: light)")]}var ai={name:"data",match(t,e){let r=V("data-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??e.theme.data?.[n]??"";if(o)return{matcher:i,selector:s=>`${s}[data-${o}]`}}}},li={name:"group-data",match(t,e){let r=V("group-data-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??e.theme.data?.[n]??"";if(o)return{matcher:`group-[[data-${o}]]:${i}`}}}};var ci=[ie("rtl",t=>({prefix:`[dir="rtl"] $$ ${t.prefix}`})),ie("ltr",t=>({prefix:`[dir="ltr"] $$ ${t.prefix}`}))];var ui={name:"selector",match(t,e){let r=H("selector-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n);if(o)return{matcher:i,selector:()=>o}}}},fi={name:"layer",match(t,e){let r=V("layer-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??n;if(o)return{matcher:i,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${o}`})}}}},pi={name:"uno-layer",match(t,e){let r=V("uno-layer-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??n;if(o)return{matcher:i,layer:o}}}},di={name:"scope",match(t,e){let r=H("scope-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n);if(o)return{matcher:i,selector:s=>`${o} $$ ${s}`}}}},mi={name:"variables",match(t,e){if(!t.startsWith("["))return;let[r,n]=re(t,"[","]")??[];if(!(r&&n))return;let i;for(let a of e.generator.config.separators)if(n.startsWith(a)){i=n.slice(a.length);break}if(i==null)return;let o=u.bracket(r)??"",s=o.startsWith("@");if(s||o.includes("&"))return{matcher:i,handle(a,l){let c=s?{parent:`${a.parent?`${a.parent} $$ `:""}${o}`}:{selector:o.replace(/&/g,a.selector)};return l({...a,...c})}}},multiPass:!0};var hi=/[0-9.]+(?:[a-z]+|%)?/,fs=[/opacity|color|flex/];function ps(t){let e=t.match(/^(calc|clamp|max|min)\s*(\(.*)/);if(e){let[r,n]=ut(e[2],"(",")"," ")??[];if(r)return`calc(${e[1]}${r} * -1)${n?` ${n}`:""}`}}var gi={name:"negative",match(t){if(t.startsWith("-"))return{matcher:t.slice(1),body:e=>{if(e.find(n=>n[0]===mr))return;let r=!1;return e.forEach(n=>{let i=n[1]?.toString();if(!i||i==="0"||fs.some(s=>n[0].match(s)))return;let o=ps(i);o?(n[1]=o,r=!0):hi.test(i)&&(n[1]=i.replace(hi,s=>`-${s}`),r=!0)}),r?e:[]}}}};function bi(){let t;return{name:"important",match(e,r){t||(t=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,i=e.match(t);if(i?n=e.slice(i[0].length):e.endsWith("!")&&(n=e.slice(0,-1)),n)return{matcher:n,body:o=>(o.forEach(s=>{s[1]&&(s[1]+=" !important")}),o)}}}}var xi=ge("print","@media print"),yi={name:"media",match(t,e){let r=V("media-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??"";if(o===""&&(o=e.theme.media?.[n]??""),o)return{matcher:i,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${o}`})}}},multiPass:!0};var wi={name:"supports",match(t,e){let r=V("supports-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??"";if(o===""&&(o=e.theme.supports?.[n]??""),o)return{matcher:i,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${o}`})}}},multiPass:!0};var ae=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),vi=Object.keys(ae),le=Object.fromEntries([["backdrop","::backdrop"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),ki=Object.keys(le),ds=["not","is","where","has"],jt=Object.entries(ae).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),At=Object.entries(le).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),X=ds.join("|");function tt(t,e,r){let n=new RegExp(`^(${B(e)}:)(\\S+)${B(r)}\\1`),i,o,s,a,l=p=>{let m=H(`${t}-`,p,[]);if(!m)return;let[h,y]=m,$=u.bracket(h);if($==null)return;let x=y.split(i,1)?.[0]??"",v=`${e}${Y(x)}`;return[x,p.slice(p.length-(y.length-x.length-1)),$.includes("&")?$.replace(/&/g,v):`${v}${$}`]},c=p=>{let m=p.match(o)||p.match(s);if(!m)return;let[h,y,$]=m,x=m[3]??"",v=ae[$]||le[$]||`:${$}`;return y&&(v=`:${y}(${v})`),[x,p.slice(h.length),`${e}${Y(x)}${v}`,$]},f=p=>{let m=p.match(a);if(!m)return;let[h,y,$]=m,x=m[3]??"",v=`:${y}(${$})`;return[x,p.slice(h.length),`${e}${Y(x)}${v}`]};return{name:`pseudo:${t}`,match(p,m){if(i&&o&&s||(i=new RegExp(`(?:${m.generator.config.separators.join("|")})`),o=new RegExp(`^${t}-(?:(?:(${X})-)?(${jt}))(?:(/\\w+))?(?:${m.generator.config.separators.join("|")})`),s=new RegExp(`^${t}-(?:(?:(${X})-)?(${At}))(?:(/\\w+))?(?:${m.generator.config.separators.filter(b=>b!=="-").join("|")})`),a=new RegExp(`^${t}-(?:(${X})-)?\\[(.+)\\](?:(/\\w+))?(?:${m.generator.config.separators.filter(b=>b!=="-").join("|")})`)),!p.startsWith(t))return;let h=l(p)||c(p)||f(p);if(!h)return;let[y,$,x,v=""]=h;return y!==""&&K("The labeled variant is experimental and may not follow semver."),{matcher:$,handle:(b,k)=>k({...b,prefix:`${x}${r}${b.prefix}`.replace(n,"$1$2:"),sort:vi.indexOf(v)??ki.indexOf(v)})}},multiPass:!0}}var ms=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],$i=Object.entries(ae).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),Si=Object.entries(le).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|");function Ci(){let t,e;return{name:"pseudo",match(r,n){t&&t||(t=new RegExp(`^(${$i})(?:${n.generator.config.separators.join("|")})`),e=new RegExp(`^(${Si})(?:${n.generator.config.separators.filter(o=>o!=="-").join("|")})`));let i=r.match(t)||r.match(e);if(i){let o=ae[i[1]]||le[i[1]]||`:${i[1]}`,s=vi.indexOf(i[1]);return s===-1&&(s=ki.indexOf(i[1])),s===-1&&(s=void 0),{matcher:r.slice(i[0].length),handle:(a,l)=>{let c=o.startsWith("::")&&!ms.includes(o)?{pseudo:`${a.pseudo}${o}`}:{selector:`${a.selector}${o}`};return l({...a,...c,sort:s,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${$i}|${Si}):`}}function Ri(){let t,e,r;return{match(n,i){t&&e||(t=new RegExp(`^(${X})-(${jt})(?:${i.generator.config.separators.join("|")})`),e=new RegExp(`^(${X})-(${At})(?:${i.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${X})-(\\[.+\\])(?:${i.generator.config.separators.filter(s=>s!=="-").join("|")})`));let o=n.match(t)||n.match(e)||n.match(r);if(o){let s=o[1],l=re(o[2],"[","]")?u.bracket(o[2]):ae[o[2]]||le[o[2]]||`:${o[2]}`;return{matcher:n.slice(o[0].length),selector:c=>`${c}:${s}(${l})`}}},multiPass:!0,autocomplete:`(${X})-(${jt}|${At}):`}}function Ei(t={}){let e=!!t?.attributifyPseudo;return[tt("group",e?'[group=""]':".group"," "),tt("peer",e?'[peer=""]':".peer","~"),tt("parent",e?'[parent=""]':".parent",">"),tt("previous",e?'[previous=""]':".previous","+")]}var hs=/(part-\[(.+)]:)(.+)/,Ti={match(t){let e=t.match(hs);if(e){let r=`part(${e[2]})`;return{matcher:t.slice(e[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};function ji(t){return[ti,ai,fi,ui,pi,gi,bi(),wi,xi,yi,ni(),...ii,Ci(),Ri(),...Ei(t),Ti,...si(t),...ci,di,oi,mi,li]}var Ai={position:["relative","absolute","fixed","sticky","static"],globalKeyword:E};var gs=(t={})=>(t.dark=t.dark??"class",t.attributifyPseudo=t.attributifyPseudo??!1,t.preflight=t.preflight??!0,t.variablePrefix=t.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:ei,rules:On,variants:ji(t),options:t,prefix:t.prefix,postprocess:bs(t.variablePrefix),preflights:t.preflight?xs(er,t.variablePrefix):[],extractorDefault:t.arbitraryVariants===!1?void 0:Qt,autocomplete:{shorthands:Ai}}),Oi=gs;function bs(t){if(t!=="un-")return e=>{e.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${t}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${t}`))})}}function xs(t,e){return e!=="un-"?t.map(r=>({...r,getCSS:(()=>async n=>{let i=await r.getCSS(n);if(i)return i.replace(/--un-/g,`--${e}`)})()})):t}var Ot=/^(?!.*\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/;function Vi(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,i;return{name:"attributify",match(o,{generator:s}){let a=Ut(o);if(!a)return;let l=a[1];if(l.startsWith(e))l=l.slice(e.length);else if(r)return;let c=a[2],[,f="",p=c]=c.match(Ot)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(i==null){let m=s?.config?.separators?.join("|");m?i=new RegExp(`^(.*\\](?:${m}))(\\[[^\\]]+?\\])$`):i=!1}if(i){let[,m,h]=c.match(i)||[];if(h)return`${m}${f}${l}-${h}`}return`${f}${l}-${p}`}}}var ys=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,ws=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,zi=/[\s'"`;>]+/;function Pi(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(ys),i,o=0;for(let b of n){let[,k,d]=b,w=b.index+k.length;if(r>w&&r<=w+d.length){o=w,i=d;break}}if(!i)return null;let s=i.matchAll(ws),a=0,l,c;for(let b of s){let[k,d,w]=b,R=o+b.index;if(r>R&&r<=R+k.length){a=R,l=d,c=w?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!t?.prefix&&l.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?l.slice(t.prefix.length):l;if(c===void 0)return{extracted:p,resolveReplacement(b){let k=f?t.prefix.length:0;return{start:a+k,end:a+l.length,replacement:b}}};let m=a+l.length+2,h=zi.exec(c),y=0,$;for(;h;){let[b]=h;if(r>m+y&&r<=m+y+h.index){$=c.slice(y,y+h.index);break}y+=h.index+b.length,h=zi.exec(c.slice(y))}$===void 0&&($=c.slice(y));let[,x="",v]=$.match(Ot)||[];return{extracted:`${x}${p}-${v}`,transformSuggestions(b){return b.filter(k=>k.startsWith(`${x}${p}-`)).map(k=>x+k.slice(x.length+p.length+1))},resolveReplacement(b){return{start:y+m,end:y+m+$.length,replacement:x+b.slice(x.length+p.length+1)}}}}}}var $s=["v-bind:",":"],Mi=/[\s'"`;]+/g,Ss=/<[^>\s]*\s((?:'.*?'|".*?"|`.*?`|\{.*?\}|[^>]*?)*)/g,vs=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.~<]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms,Vt=["placeholder","fill","opacity","stroke-opacity"];function _i(t){let e=t?.ignoreAttributes??Vt,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:i}){return Array.from(i.matchAll(Ss)).flatMap(o=>Array.from((o[1]||"").matchAll(vs))).flatMap(([,o,...s])=>{let a=s.filter(Boolean).join("");if(e.includes(o))return[];for(let l of $s)if(o.startsWith(l)){o=o.slice(l.length);break}if(!a){if(fe(o)&&r!==!1){let l=[`[${o}=""]`];return n&&l.push(`[${o}="true"]`),l}return[]}return["class","className"].includes(o)?a.split(Mi).filter(fe):t?.prefixedOnly&&t.prefix&&!o.startsWith(t.prefix)?[]:a.split(Mi).filter(l=>!!l&&l!==":").map(l=>`[${o}~="${l}"]`)})}}}var ks=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??Vt;let e=[Vi(t)],r=[_i(t)],n=[Pi(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},Li=ks;function Cs(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function Ui(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Fi(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Ni=["Webkit","Moz","ms"];function Wi(t){let e={};function r(n){let i=e[n];if(i)return i;let o=Cs(n);if(o!=="filter"&&o in t)return e[n]=Fi(o);o=Ui(o);for(let s=0;s<Ni.length;s++){let a=`${Ni[s]}${o}`;if(a in t)return e[n]=Fi(Ui(a))}return n}return({entries:n})=>n.forEach(i=>{i[0].startsWith("--")||(i[0]=r(i[0]))})}function Di(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function zt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,r=window.document,n=()=>r.documentElement,i=e.__unocss||{},o=Object.assign({},t,i.runtime),s=o.defaults||{},a=o.cloakAttribute??"un-cloak";o.autoPrefix&&(s.postprocess=j(s.postprocess)).unshift(Wi(r.createElement("div").style)),o.configResolved?.(i,s);let l=Xt(i,s),c=g=>o.inject?o.inject(g):n().prepend(g),f=()=>o.rootElement?o.rootElement():r.body,p=new Map,m=!0,h=new Set,y,$,x=[],v=()=>new Promise(g=>{x.push(g),$!=null&&clearTimeout($),$=setTimeout(()=>d().then(()=>{let S=x;x=[],S.forEach(C=>C())}),0)});function b(g){if(g.nodeType!==1)return;let S=g;S.hasAttribute(a)&&S.removeAttribute(a),S.querySelectorAll(`[${a}]`).forEach(C=>{C.removeAttribute(a)})}function k(g,S){let C=p.get(g);if(!C)if(C=r.createElement("style"),C.setAttribute("data-unocss-runtime-layer",g),p.set(g,C),S==null)c(C);else{let M=k(S),U=M.parentNode;U?U.insertBefore(C,M.nextSibling):c(C)}return C}async function d(){let g=await l.generate(h);return g.layers.reduce((S,C)=>(k(C,S).innerHTML=g.getLayer(C)??"",C),void 0),h=g.matched,{...g,getStyleElement:S=>p.get(S),getStyleElements:()=>p}}async function w(g){let S=h.size;await l.applyExtractors(g,void 0,h),S!==h.size&&await v()}async function R(g=f()){let S=g&&g.outerHTML;S&&(await w(`${S} ${Di(S)}`),b(n()),b(g))}let z=new MutationObserver(g=>{m||g.forEach(async S=>{if(S.target.nodeType!==1)return;let C=S.target;for(let M of p)if(C===M[1])return;if(S.type==="childList")S.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let U=M;y&&!y(U)||(await w(U.outerHTML),b(U))});else{if(y&&!y(C))return;if(S.attributeName!==a){let M=Array.from(C.attributes).map(_=>_.value?`${_.name}="${_.value}"`:_.name).join(" "),U=`<${C.tagName.toLowerCase()} ${M}>`;await w(U)}C.hasAttribute(a)&&C.removeAttribute(a)}})}),P=!1;function q(){if(P)return;let g=o.observer?.target?o.observer.target():f();g&&(z.observe(g,{childList:!0,subtree:!0,attributes:!0,attributeFilter:o.observer?.attributeFilter}),P=!0)}function J(){o.bypassDefined&&Rs(l.blocked),R(),q()}function ce(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",J):J()}let Oe=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(g){A(g)||(g.forEach(S=>h.add(S)),g=""),await w(g)},extractAll:R,inspect(g){y=g},toggleObserver(g){g===void 0?m=!m:m=!!g,!P&&!m&&ce()},update:d,presets:e.__unocss_runtime?.presets??{}};o.ready?.(Oe)!==!1&&(m=!1,ce())}function Rs(t=new Set){for(let e=0;e<document.styleSheets.length;e++){let r=document.styleSheets[e],n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(i=>i.selectorText?.split(/,/g)||[]).forEach(i=>{i&&(i=i.trim(),i.startsWith(".")&&(i=i.slice(1)),t.add(i))})}catch{continue}}return t}zt({defaults:{presets:[Oi(),Li()]}});})();
|
|
11
|
+
`?o=!0:f!=="\r"&&o&&(o=!1,a===l.start||(this._splitChunk(l,a),l=l.next),l.prependRight(e))}a+=1}a=l.end,l=l.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,r){return oe.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),oe.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return oe.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),oe.insertRight=!0),this.prependRight(e,r)}move(e,r,n){if(n>=e&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(r),this._split(n);let i=this.byStart[e],o=this.byEnd[r],s=i.previous,a=o.next,l=this.byStart[n];if(!l&&o===this.lastChunk)return this;let c=l?l.previous:this.lastChunk;return s&&(s.next=a),a&&(a.previous=s),c&&(c.next=i),l&&(l.previous=o),i.previous||(this.firstChunk=o.next),o.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=c,o.next=l||null,c||(this.firstChunk=i),l||(this.lastChunk=o),this}overwrite(e,r,n,i){return i=i||{},this.update(e,r,n,{...i,overwrite:!i.contentOnly})}update(e,r,n,i){if(typeof n!="string")throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length;if(r>this.original.length)throw new Error("end is out of bounds");if(e===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(r),i===!0&&(oe.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),oe.storeName=!0),i={storeName:!0});let o=i!==void 0?i.storeName:!1,s=i!==void 0?i.overwrite:!1;if(o){let c=this.original.slice(e,r);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let a=this.byStart[e],l=this.byEnd[r];if(a){let c=a;for(;c!==l;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}a.edit(n,o,!s)}else{let c=new Ie(e,r,"").edit(n,o);l.next=c,c.previous=l}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(e,r){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length;if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(xe);if(e!==-1)return this.outro.substr(e+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(xe),e!==-1)return n.outro.substr(e+1)+r;r=n.outro+r}if(n.content.length>0){if(e=n.content.lastIndexOf(xe),e!==-1)return n.content.substr(e+1)+r;r=n.content+r}if(n.intro.length>0){if(e=n.intro.lastIndexOf(xe),e!==-1)return n.intro.substr(e+1)+r;r=n.intro+r}}while(n=n.previous);return e=this.intro.lastIndexOf(xe),e!==-1?this.intro.substr(e+1)+r:this.intro+r}slice(e=0,r=this.original.length){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length;let n="",i=this.firstChunk;for(;i&&(i.start>e||i.end<=e);){if(i.start<r&&i.end>=r)return n;i=i.next}if(i&&i.edited&&i.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);let o=i;for(;i;){i.intro&&(o!==i||i.start===e)&&(n+=i.intro);let s=i.start<r&&i.end>=r;if(s&&i.edited&&i.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let a=o===i?e-i.start:0,l=s?i.content.length+r-i.end:i.content.length;if(n+=i.content.slice(a,l),i.outro&&(!s||i.end===r)&&(n+=i.outro),s)break;i=i.next}return n}snip(e,r){let n=this.clone();return n.remove(0,e),n.remove(r,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let r=this.lastSearchedChunk,n=e>r.end;for(;r;){if(r.contains(e))return this._splitChunk(r,e);r=n?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(e,r){if(e.edited&&e.content.length){let i=lr(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} \u2013 "${e.original}")`)}let n=e.split(r);return this.byEnd[r]=e,this.byStart[r]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,r=this.firstChunk;for(;r;)e+=r.toString(),r=r.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,r=0;do r+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let r=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{let i=n.end,o=n.trimEnd(r);if(n.end!==i&&(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),o)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let r=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{let i=n.end,o=n.trimStart(r);if(n.end!==i&&(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),o)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,r){function n(o,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(a,l)=>l==="$"?"$":l==="&"?o[0]:+l<o.length?o[+l]:`$${l}`):r(...o,o.index,s,o.groups)}function i(o,s){let a,l=[];for(;a=o.exec(s);)l.push(a);return l}if(e.global)i(e,this.original).forEach(s=>{s.index!=null&&this.overwrite(s.index,s.index+s[0].length,n(s,this.original))});else{let o=this.original.match(e);o&&o.index!=null&&this.overwrite(o.index,o.index+o[0].length,n(o,this.original))}return this}_replaceString(e,r){let{original:n}=this,i=n.indexOf(e);return i!==-1&&this.overwrite(i,i+e.length,r),this}replace(e,r){return typeof e=="string"?this._replaceString(e,r):this._replaceRegexp(e,r)}_replaceAllString(e,r){let{original:n}=this,i=e.length;for(let o=n.indexOf(e);o!==-1;o=n.indexOf(e,o+i))this.overwrite(o,o+i,r);return this}replaceAll(e,r){if(typeof e=="string")return this._replaceAllString(e,r);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,r)}};var zo=/theme\(\s*['"]?(.*?)['"]?\s*\)/g;function cr(t){return t.includes("theme(")&&t.includes(")")}function ur(t,e,r=!0){let n=Array.from(t.toString().matchAll(zo));if(!n.length)return t;let i=new Be(t);for(let o of n){let s=o[1];if(!s)throw new Error("theme() expect exact one argument, but got 0");let[a,l]=s.split("/"),f=a.trim().split(".").reduce((p,m)=>p?.[m],e);if(typeof f=="string"){if(l){let p=me(f);p&&(f=N(p,l))}i.overwrite(o.index,o.index+o[0].length,f)}else if(r)throw new Error(`theme of "${s}" did not found`)}return i.toString()}var bt={};Ki(bt,{auto:()=>_o,bracket:()=>Io,bracketOfColor:()=>Bo,bracketOfLength:()=>Ko,bracketOfPosition:()=>Ho,cssvar:()=>Go,degree:()=>Yo,fraction:()=>Wo,global:()=>Zo,number:()=>Fo,numberWithUnit:()=>Mo,percent:()=>No,position:()=>Jo,properties:()=>Xo,px:()=>Uo,rem:()=>Lo,time:()=>qo});var G=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,ht=/^(-?\d*(?:\.\d+)?)$/i,gt=/^(px)$/i;var Po=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function W(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Mo(t){let e=t.match(G);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(n&&!Number.isNaN(i))return`${W(i)}${n}`}function _o(t){if(t==="auto"||t==="a")return"auto"}function Lo(t){if(t.match(gt))return`1${t}`;let e=t.match(G);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0?"0":n?`${W(i)}${n}`:`${W(i/4)}rem`}function Uo(t){if(t.match(gt))return`1${t}`;let e=t.match(G);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return n?`${W(i)}${n}`:`${W(i)}px`}function Fo(t){if(!ht.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return W(e)}function No(t){if(t.endsWith("%")&&(t=t.slice(0,-1)),!ht.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return`${W(e/100)}`}function Wo(t){if(t==="full")return"100%";let[e,r]=t.split("/"),n=Number.parseFloat(e)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${W(n*100)}%`}var Do=/^\[(color|length|position|quoted|string):/i;function Ke(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n,i=t.match(Do);if(i?(e||(n=i[1]),r=t.slice(i[0].length,-1)):r=t.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let o=0;for(let s of r)if(s==="[")o+=1;else if(s==="]"&&(o-=1,o<0))return;if(o)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,(l,c)=>(a.push(c),l.replace(c,"--un-calc"))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function Io(t){return Ke(t)}function Bo(t){return Ke(t,"color")}function Ko(t){return Ke(t,"length")}function Ho(t){return Ke(t,"position")}function Go(t){if(t.match(/^\$[^\s'"`;{}]/))return`var(--${Y(t.slice(1))})`}function qo(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0&&!n?"0s":n?`${W(i)}${n}`:`${W(i)}ms`}function Yo(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0?"0":n?`${W(i)}${n}`:`${W(i)}deg`}function Zo(t){if(E.includes(t))return t}function Xo(t){if(t.split(",").every(e=>Po.includes(e)))return t}function Jo(t){if(["top","left","right","bottom","center"].includes(t))return t}var Qo=ir(bt),u=Qo;var fr={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(E.map(t=>[t,t]))},pr=[[/^(?:vertical|align|v)-([-\w]+%?)$/,([,t])=>({"vertical-align":fr[t]??u.numberWithUnit(t)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(fr).join("|")})`,"(vertical|align|v)-<percentage>"]}]],dr=["center","left","right","justify","start","end"].map(t=>[`text-${t}`,{"text-align":t}]);var hr="$$mini-no-negative";function L(t){return([e,r,n],{theme:i})=>{let o=i.spacing?.[n||"DEFAULT"]??u.bracket.cssvar.global.auto.fraction.rem(n);if(o!=null)return F[r].map(s=>[`${t}${s}`,o])}}function mr(t,e,r="colors"){let n=t[r],i=-1;for(let o of e){if(i+=1,n&&typeof n!="string"){let s=e.slice(i).join("-").replace(/(-[a-z])/g,a=>a.slice(1).toUpperCase());if(n[s])return n[s];if(n[o]){n=n[o];continue}}return}return n}function He(t,e,r){return mr(t,e,r)||mr(t,e,"colors")}function xt(t,e){let r=t.split(/(?:\/|:)/);return r[0]===`[${e}`?[r.slice(0,2).join(":"),r[2]]:r}function Ge(t,e,r){let[n,i]=xt(t,"color"),o=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=o;if(!s)return;let a,l=u.bracketOfColor(n),c=l||n;if(u.numberWithUnit(c))return;if(c.match(/^#[\da-fA-F]+/g)?a=c:c.match(/^hex-[\da-fA-F]+/g)?a=`#${c.slice(4)}`:n.startsWith("$")&&(a=u.cssvar(n)),a=a||l,!a){let p=He(e,[n],r);typeof p=="string"&&(a=p)}let f="DEFAULT";if(!a){let p,[m]=o.slice(-1);m.match(/^\d+$/)?(f=m,p=He(e,o.slice(0,-1),r),!p||typeof p=="string"?a=void 0:a=p[f]):(p=He(e,o,r),!p&&o.length<=2&&([,f=f]=o,p=He(e,[s],r)),typeof p=="string"?a=p:f&&p&&(a=p[f]))}return{opacity:i,name:s,no:f,color:a,cssColor:me(a),alpha:u.bracket.cssvar.percent(i??"")}}function O(t,e,r,n){return([,i],{theme:o})=>{let s=Ge(i,o,r);if(!s)return;let{alpha:a,color:l,cssColor:c}=s,f={};if(c?a!=null?f[t]=N(c,a):(f[`--un-${e}-opacity`]=he(c),f[t]=N(c,`var(--un-${e}-opacity)`)):l&&(f[t]=N(l,a)),n?.(f)!==!1)return f}}function qe(t,e){let r=[];t=j(t);for(let n=0;n<t.length;n++){let i=ne(t[n]," ",6);if(!i||i.length<3)return t;let o=me(i.pop());if(o==null)return t;r.push(`${i.join(" ")} var(${e}, ${N(o)})`)}return r}function Ye(t,e,r){return t!=null&&!!Ge(t,e,r)?.color}function Ze({theme:t,generator:e},r="breakpoints"){let n;return e.userConfig&&e.userConfig.theme&&(n=e.userConfig.theme[r]),n||(n=t[r]),n?Object.entries(n).sort((i,o)=>Number.parseInt(i[1].replace(/[a-z]+/gi,""))-Number.parseInt(o[1].replace(/[a-z]+/gi,""))).map(([i,o])=>({point:i,size:o})):void 0}function T(t,e){return E.map(r=>[`${t}-${r}`,{[e??t]:r}])}function gr(t){return ct.test(t)}function br(t){return t[0]==="["&&t.slice(-1)==="]"&&(t=t.slice(1,-1)),ct.test(t)||G.test(t)}var xr=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>({"outline-width":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}),{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,O("outline-color","outline-color","borderColor"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>({"outline-offset":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...E].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],yr=[["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function es(t){return u.properties.auto.global(t)??{contents:"contents",scroll:"scroll-position"}[t]}var wr=[[/^will-change-(.+)/,([,t])=>({"will-change":es(t)})]];var Ce=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...E],$r=[[/^(?:border|b)()(?:-(.+))?$/,ye,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ye],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ye],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ye],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ye],[/^(?:border|b)-()(?:width|size)-(.+)$/,se,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,se],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,se],[/^(?:border|b)-()(?:color-)?(.+)$/,we,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,we],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,we],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,we],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,we],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,$e,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,$e],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,$e],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,$e],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,$e],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,Se,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,Se],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Se],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,Se],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Se],[/^(?:border|b)-(?:style-)?()(.+)$/,ve,{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-)?(.+)$/,ve],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ve],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ve],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ve]];function ts(t){return([,e],r)=>{let n=Ge(e,r,"borderColor");if(!n)return;let{alpha:i,color:o,cssColor:s}=n;if(s)return i!=null?{[`border${t}-color`]:N(s,i)}:t===""?{"--un-border-opacity":he(s),"border-color":N(s,"var(--un-border-opacity)")}:{"--un-border-opacity":he(s),[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:N(s,`var(--un-border${t}-opacity)`)};if(o)return gr(o)?{"border-width":o}:{[`border${t}-color`]:N(o,i)}}}function ye(t,e){return se(t,e)}function se([,t="",e],{theme:r}){let n=r.lineWidth?.[e||"DEFAULT"]??u.bracket.cssvar.global.px(e||"1");if(t in F&&n!=null)return F[t].map(i=>[`border${i}-width`,n])}function we([,t="",e],{theme:r}){if(t in F&&Ye(e,r,"borderColor"))return Object.assign({},...F[t].map(n=>ts(n)(["",e],r)))}function $e([,t="",e]){let r=u.bracket.percent.cssvar(e);if(t in F&&r!=null)return F[t].map(n=>[`--un-border${n}-opacity`,r])}function Se([,t="",e],{theme:r}){let n=r.borderRadius?.[e||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(e||"1");if(t in lt&&n!=null)return lt[t].map(i=>[`border${i}-radius`,n])}function ve([,t="",e]){if(Ce.includes(e)&&t in F)return F[t].map(r=>[`border${r}-style`,e])}var Sr=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:u.bracket.percent.cssvar(t)})]],vr=[[/^(?:color|c)-(.+)$/,O("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^text-(.+)$/,O("color","text","textColor",t=>!t.color?.toString().match(G)),{autocomplete:"text-$colors"}],[/^(?:text|color|c)-(.+)$/,([,t])=>E.includes(t)?{color:t}:void 0,{autocomplete:`(text|color|c)-(${E.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Cr=[[/^bg-(.+)$/,(...t)=>br(t[0][1])?void 0:O("background-color","bg","backgroundColor")(...t),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],kr=[[/^color-scheme-(\w+)$/,([,t])=>({"color-scheme":t})]];var Rr=[[/^@container(?:\/(\w+))?(?:-(normal))?$/,([,t,e])=>(K("The container query rule is experimental and may not follow semver."),{"container-type":e??"inline-size","container-name":t})]];var Er=["solid","double","dotted","dashed","wavy",...E],Tr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,t])=>({"text-decoration-line":t}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,t],{theme:e})=>({"text-decoration-thickness":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}),{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,t])=>({"text-decoration-thickness":t}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(t,e)=>{let r=O("text-decoration-color","line","borderColor")(t,e);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-line-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,t],{theme:e})=>({"text-underline-offset":e.lineWidth?.[t]??u.auto.bracket.cssvar.global.px(t)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Er.map(t=>[`underline-${t}`,{"text-decoration-style":t}]),...Er.map(t=>[`decoration-${t}`,{"text-decoration-style":t}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var Xe={all:"all",colors:["color","background-color","border-color","outline-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"};function jr(t){return u.properties(t)??Xe[t]}var Ar=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{let n=t!=null?jr(t):[Xe.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let i=r.duration?.[e||"DEFAULT"]??u.time(e||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(Xe).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>({"transition-duration":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>({"transition-delay":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>({"transition-timing-function":e.easing?.[t||"DEFAULT"]??u.bracket.cssvar(t)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":u.bracket.global(t)||jr(t)}),{autocomplete:[`transition-property-(${[...E,...Object.keys(Xe)].join("|")})`]}],["transition-none",{transition:"none"}],...T("transition")];var Or=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:u.bracket(t)!=null?u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" "):u.cssvar.fraction(t)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,t=""])=>({"flex-shrink":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,t=""])=>({"flex-grow":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>({"flex-basis":e.spacing?.[t]??u.bracket.cssvar.auto.fraction.rem(t)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];function yt(t,e,r){return e[r]?.[t]||u.bracket.cssvar.global.rem(t)}var Vr=[[/^text-(.+)$/,([,t="base"],{theme:e})=>{let[r,n]=xt(t,"length"),i=j(e.fontSize?.[r]),o=n?yt(n,e,"lineHeight"):void 0;if(i?.[0]){let[a,l,c]=i;return typeof l=="object"?{"font-size":a,...l}:{"font-size":a,"line-height":o??l??"1","letter-spacing":c?yt(c,e,"letterSpacing"):void 0}}let s=u.bracketOfLength.rem(r);return o&&s?{"font-size":s,"line-height":o}:{"font-size":u.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,([,t],{theme:e})=>{let n=j(e.fontSize?.[t])?.[0]??u.bracket.cssvar.global.rem(t);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t],{theme:e})=>({"font-weight":e.fontWeight?.[t]||u.bracket.global.number(t)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,t],{theme:e})=>({"line-height":yt(t,e,"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-(.+)$/,([,t])=>({"font-synthesis":u.bracket.cssvar.global(t)})],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>({"letter-spacing":e.letterSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>({"word-spacing":e.wordSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{autocomplete:"word-spacing-$wordSpacing"}],[/^font-(.+)$/,([,t],{theme:e})=>({"font-family":e.fontFamily?.[t]||u.bracket.cssvar.global(t)}),{autocomplete:"font-$fontFamily"}]],zr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=u.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],Pr=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>({"text-indent":e.textIndent?.[t||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"indent-$textIndent"}]],Mr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>({"-webkit-text-stroke-width":e.textStrokeWidth?.[t||"DEFAULT"]||u.bracket.cssvar.px(t)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,O("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],_r=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.textShadow?.[t||"DEFAULT"];return r!=null?{"--un-text-shadow":qe(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":u.bracket.cssvar.global(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,O("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var rs={"":"",x:"column-",y:"row-"};function Lr([,t="",e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.global.rem(e);if(n!=null)return{[`${rs[t]}gap`]:n}}var Ur=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Lr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Lr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];function I(t){return t.replace("col","column")}function wt(t){return t[0]==="r"?"Row":"Column"}function ns(t,e,r){let n=e[`gridAuto${wt(t)}`]?.[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 u.bracket.cssvar.auto.rem(r)}var Fr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>({[`grid-${I(t)}`]:r[`grid${wt(t)}`]?.[e]??u.bracket.cssvar.auto(e)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${I(t)}`]:"1/-1"};let r=u.bracket.number(e);if(r!=null)return{[`grid-${I(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>({[`grid-${I(t)}-start`]:u.bracket.cssvar(e)??e})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>({[`grid-${I(t)}-end`]:u.bracket.cssvar(e)??e}),{autocomplete:["grid-(row|col)-(start|end)-<num>"]}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${I(t)}`]:ns(t,r,e)}),{autocomplete:["grid-auto-(rows|cols)-<num>"]}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":u.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,t])=>({"grid-auto-flow":I(t).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-template-${I(t)}`]:r[`gridTemplate${wt(t)}`]?.[e]??u.bracket.cssvar(e)})],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${I(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${I(t)}`]:`repeat(${e},minmax(0,1fr))`}),{autocomplete:["grid-(rows|cols)-<num>","grid-(rows|cols)-none"]}],[/^grid-area(s)?-(.+)$/,([,t,e])=>t!=null?{"grid-template-areas":u.cssvar(e)??e.split("-").map(r=>`"${u.bracket(r)}"`).join(" ")}:{"grid-area":u.bracket.cssvar(e)}],["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 Je=["auto","hidden","clip","visible","scroll","overlay",...E],Nr=[[/^(?:overflow|of)-(.+)$/,([,t])=>Je.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${Je.join("|")})`,`(overflow|of)-(x|y)-(${Je.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>Je.includes(e)?{[`overflow-${t}`]:e}:void 0]];var Wr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,t])=>E.includes(t)?{position:t}:void 0],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],St=[["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"}],...T("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"}],...T("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"}],...T("justify-self")],Dr=[[/^order-(.+)$/,([,t])=>({order:u.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],vt=[["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"}],...T("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"}],...T("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"}],...T("self","align-self")],Ir=[["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"}],...T("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"}],...T("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"}],...T("place-self")],Br=[...St,...vt].flatMap(([t,e])=>[[`flex-${t}`,e],[`grid-${t}`,e]]);function $t(t,{theme:e}){return e.spacing?.[t]??u.bracket.cssvar.global.auto.fraction.rem(t)}function ke([,t,e],r){let n=$t(e,r);if(n!=null&&t in at)return at[t].map(i=>[i.slice(1),n])}var Kr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:$t(t,e)}),{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)-(.+)$/,ke],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,ke],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ke],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ke],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ke],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:$t(e,r)})]],Hr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],...T("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}],...T("clear")],Gr=[[/^(?:position-|pos-)?z([\d.]+)$/,([,t])=>({"z-index":u.number(t)})],[/^(?:position-|pos-)?z-(.+)$/,([,t],{theme:e})=>({"z-index":e.zIndex?.[t]??u.bracket.cssvar.global.auto.number(t)}),{autocomplete:"z-<num>"}]],qr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...T("box","box-sizing")];var is=["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"],os=["none","strict","content","size","inline-size","layout","style","paint"],Qe=" ",Yr=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,t])=>({display:u.bracket.cssvar.global(t)})]],Zr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...T("backface","backface-visibility")],Xr=[[/^cursor-(.+)$/,([,t])=>({cursor:u.bracket.cssvar.global(t)})],...is.map(t=>[`cursor-${t}`,{cursor:t}])],Jr=[[/^contain-(.*)$/,([,t])=>u.bracket(t)!=null?{contain:u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" ")}:os.includes(t)?{contain:t}:void 0]],Qr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...T("pointer-events")],en=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...T("resize")],tn=[["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"}],...T("select","user-select")],rn=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,t])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...E].includes(t)?{"white-space":t}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],nn=[[/^intrinsic-size-(.+)$/,([,t])=>({"contain-intrinsic-size":u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...T("content-visibility")],on=[[/^content-(.+)$/,([,t])=>({content:u.bracket.cssvar(t)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],sn=[["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"}]],an=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}]],ln=[["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"}]],cn=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...T("case","text-transform")],un=[["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"}]],fn=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]];var pn={"--un-ring-inset":Qe,"--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)"},dn=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.ringWidth?.[t||"DEFAULT"]??u.px(t||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>({"--un-ring-width":e.lineWidth?.[t]??u.bracket.cssvar.px(t)}),{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>({"--un-ring-offset-width":e.lineWidth?.[t]??u.bracket.cssvar.px(t)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,O("--un-ring-color","ring","borderColor"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,O("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var mn={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":Qe,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},hn=[[/^shadow(?:-(.+))?$/,(t,e)=>{let[,r]=t,{theme:n}=e,i=n.boxShadow?.[r||"DEFAULT"],o=r?u.bracket.cssvar(r):void 0;return(i!=null||o!=null)&&!Ye(o,n,"shadowColor")?{"--un-shadow":qe(i||o,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:O("--un-shadow-color","shadow","shadowColor")(t,e)},{autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ss={h:"height",w:"width",inline:"inline-size",block:"block-size"};function Re(t,e){return`${t||""}${ss[e]}`}function gn(t,e,r,n){let i=Re(t,e).replace(/-(\w)/g,(s,a)=>a.toUpperCase()),o=r[i]?.[n];if(o!=null)return o;switch(n){case"fit":case"max":case"min":return`${n}-content`}return u.bracket.cssvar.global.auto.fraction.rem(n)}var xn=[[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[Re(t,e)]:gn(t,e,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[Re(t,e)]:gn(t,e,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-(.+)$/,([,t,e,r],n)=>({[Re(t,e)]:bn(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],n)=>({[Re(t,e)]:bn(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 bn(t,e,r="breakpoints"){let n=Ze(t,r);if(n)return n.find(i=>i.point===e)?.size}function as(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return u.bracket.cssvar.global.auto.number(t)}var yn=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":as(t)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var wn=[[/^pa?()-?(-?.+)$/,L("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,L("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,L("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,L("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,L("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,L("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],$n=[[/^ma?()-?(-?.+)$/,L("margin")],[/^m-?xy()()$/,L("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,L("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,L("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,L("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,L("margin")]];var et=["translate","rotate","scale"],Z=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),ls=["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(" "),Rn={"--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},En=[[/^(?:transform-)?origin-(.+)$/,([,t])=>({"transform-origin":de[t]??u.bracket.cssvar(t)}),{autocomplete:[`transform-origin-(${Object.keys(de).join("|")})`,`origin-(${Object.keys(de).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=u.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{let e=u.bracket.cssvar(t)??(t.length>=3?de[t]:void 0);if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Sn],[/^(?:transform-)?translate-([xyz])-(.+)$/,Sn],[/^(?:transform-)?rotate-()(.+)$/,Cn],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Cn],[/^(?:transform-)?skew-()(.+)$/,kn],[/^(?:transform-)?skew-([xy])-(.+)$/,kn,{autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,vn],[/^(?:transform-)?scale-([xyz])-(.+)$/,vn,{autocomplete:[`transform-(${et.join("|")})-<percent>`,`transform-(${et.join("|")})-(x|y|z)-<percent>`,`(${et.join("|")})-<percent>`,`(${et.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:Z}],["transform-cpu",{transform:Z}],["transform-gpu",{transform:ls}],["transform-none",{transform:"none"}],...T("transform")];function Sn([,t,e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.fraction.rem(e);if(n!=null)return[...We[t].map(i=>[`--un-translate${i}`,n]),["transform",Z]]}function vn([,t,e]){let r=u.bracket.cssvar.fraction.percent(e);if(r!=null)return[...We[t].map(n=>[`--un-scale${n}`,r]),["transform",Z]]}function Cn([,t="",e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return t?{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:Z}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:Z}}function kn([,t,e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return[...We[t].map(n=>[`--un-skew${n}`,r]),["transform",Z]]}var cs={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"},Tn=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=cs[t];if(r)return{[r]:u.cssvar(e)}}]],jn=[[/^\[(.*)\]$/,([t,e],{theme:r})=>{if(!e.includes(":"))return;let[n,...i]=e.split(":"),o=i.join(":");if(!fs(e)&&n.match(/^[a-z-]+$/)&&us(o)){let s;if(cr(o)&&(s=ur(o,r)),(!s||s===o)&&(s=u.bracket(`[${o}]`)),s)return{[n]:s}}}]];function us(t){let e=0;function r(n){for(;e<t.length;)if(e+=1,t[e]===n)return!0;return!1}for(e=0;e<t.length;e++){let n=t[e];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function fs(t){if(!t.includes("://"))return!1;try{return new URL(t).host!==""}catch{return!1}}var An=[[/^(where|\?)$/,(t,{constructCSS:e,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
|
|
12
|
+
${e({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var On=[[/^fill-(.+)$/,O("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,t])=>({"--un-fill-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>({"stroke-width":e.lineWidth?.[t]??u.bracket.cssvar.fraction.px.number(t)}),{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,t])=>({"stroke-dasharray":u.bracket.cssvar.number(t)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,t],{theme:e})=>({"stroke-dashoffset":e.lineWidth?.[t]??u.bracket.cssvar.px.numberWithUnit(t)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,O("stroke","stroke","borderColor"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-stroke-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var Vn=[Tn,jn,wn,$n,Yr,Sr,Cr,kr,On,$r,nn,on,Vr,zr,Pr,ln,Tr,Mr,_r,cn,dr,vr,un,fn,hn,dn,Or,Fr,Ur,Wr,xn,yn,Xr,Zr,Qr,en,pr,tn,rn,sn,Nr,xr,yr,Dr,St,vt,Ir,Br,Kr,Hr,Gr,qr,Ar,En,wr,Rr,Jr,an,An].flat(1);var Ct={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(Ct).forEach(t=>{typeof t!="string"&&t!==void 0&&(t.DEFAULT=t.DEFAULT||t[400],Object.keys(t).forEach(e=>{let r=+e/100;r===Math.round(r)&&(t[r]=t[e])}))});var zn={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(",")},Pn={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"},_n={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Ln={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)"]},Un={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},kt={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Fn={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Nn=kt;var Rt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Wn={...Rt},Dn={DEFAULT:"1px",none:"0"},In={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"},Bn={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Kn={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Hn={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)"},Gn={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)"},qn={DEFAULT:"1px",none:"0"},Yn={auto:"auto"},Zn={mouse:"(hover) and (pointer: fine)"};var Xn={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Jn={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 Ee={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Et={auto:"auto",...Ee,screen:"100vw"},Te={none:"none",...Ee,screen:"100vw"},Tt={auto:"auto",...Ee,screen:"100vh"},je={none:"none",...Ee,screen:"100vh"},Qn=Object.fromEntries(Object.entries(Ee).map(([t,e])=>[t,`(min-width: ${e})`]));var ei={...Rn,...mn,...pn};var ti={width:Et,height:Tt,maxWidth:Te,maxHeight:je,minWidth:Te,minHeight:je,inlineSize:Et,blockSize:Tt,maxInlineSize:Te,maxBlockSize:je,minInlineSize:Te,minBlockSize:je,colors:Ct,fontFamily:zn,fontSize:Pn,fontWeight:Fn,breakpoints:Rt,verticalBreakpoints:Wn,borderRadius:Kn,lineHeight:Un,letterSpacing:kt,wordSpacing:Nn,boxShadow:Hn,textIndent:Mn,textShadow:Ln,textStrokeWidth:_n,blur:Xn,dropShadow:Jn,easing:Gn,lineWidth:Dn,spacing:In,duration:Bn,ringWidth:qn,preflightBase:ei,containers:Qn,zIndex:Yn,media:Zn};var ri={name:"aria",match(t,e){let r=V("aria-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??e.theme.aria?.[n]??"";if(o)return{matcher:i,selector:s=>`${s}[aria-${o}]`}}}};function ni(t){let e=t.match(/^-?[0-9]+\.?[0-9]*/)?.[0]||"",r=t.slice(e.length);if(r==="px"){let n=Number.parseFloat(e)-.1;return Number.isNaN(n)?t:`${n}${r}`}return`calc(${t} - 0.1px)`}function ii(){let t={};return{name:"breakpoints",match(e,r){let n=(Ze(r)??[]).map(({point:i,size:o},s)=>[i,o,s]);for(let[i,o,s]of n){t[i]||(t[i]=new RegExp(`^((?:([al]t-|[<~]|max-))?${i}(?:${r.generator.config.separators.join("|")}))`));let a=e.match(t[i]);if(!a)continue;let[,l]=a,c=e.slice(l.length);if(c==="container")continue;let f=l.startsWith("lt-")||l.startsWith("<")||l.startsWith("max-"),p=l.startsWith("at-")||l.startsWith("~"),m=1e3;return f?(m-=s+1,{matcher:c,handle:(h,y)=>y({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (max-width: ${ni(o)})`,parentOrder:m})}):(m+=s+1,p&&s<n.length-1?{matcher:c,handle:(h,y)=>y({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${o}) and (max-width: ${ni(n[s+1][1])})`,parentOrder:m})}:{matcher:c,handle:(h,y)=>y({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${o})`,parentOrder:m})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}function Ae(t,e){return{name:`combinator:${t}`,match(r,n){if(!r.startsWith(t))return;let i=n.generator.config.separators,o=H(`${t}-`,r,i);if(!o){for(let a of i)if(r.startsWith(`${t}${a}`)){o=["",r.slice(t.length+a.length)];break}if(!o)return}let s=u.bracket(o[0])??"";return s===""&&(s="*"),{matcher:o[1],selector:a=>`${a}${e}${s}`}},multiPass:!0}}var oi=[Ae("all"," "),Ae("children",">"),Ae("next","+"),Ae("sibling","+"),Ae("siblings","~")];var si={name:"@",match(t,e){if(t.startsWith("@container"))return;let r=V("@",t,e.generator.config.separators);if(r){let[n,i,o]=r,s=u.bracket(n),a;if(s){let l=u.numberWithUnit(s);l&&(a=`(min-width: ${l})`)}else a=e.theme.containers?.[n]??"";if(a)return K("The container query variant is experimental and may not follow semver."),{matcher:i,handle:(l,c)=>c({...l,parent:`${l.parent?`${l.parent} $$ `:""}@container${o?` ${o} `:" "}${a}`})}}},multiPass:!0};function ai(t={}){if(t?.dark==="class"||typeof t.dark=="object"){let{dark:e=".dark",light:r=".light"}=typeof t.dark=="string"?{}:t.dark;return[ie("dark",n=>({prefix:`${e} $$ ${n.prefix}`})),ie("light",n=>({prefix:`${r} $$ ${n.prefix}`}))]}return[ge("dark","@media (prefers-color-scheme: dark)"),ge("light","@media (prefers-color-scheme: light)")]}var li={name:"data",match(t,e){let r=V("data-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??e.theme.data?.[n]??"";if(o)return{matcher:i,selector:s=>`${s}[data-${o}]`}}}},ci={name:"group-data",match(t,e){let r=V("group-data-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??e.theme.data?.[n]??"";if(o)return{matcher:`group-[[data-${o}]]:${i}`}}}};var ui=[ie("rtl",t=>({prefix:`[dir="rtl"] $$ ${t.prefix}`})),ie("ltr",t=>({prefix:`[dir="ltr"] $$ ${t.prefix}`}))];var fi={name:"selector",match(t,e){let r=H("selector-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n);if(o)return{matcher:i,selector:()=>o}}}},pi={name:"layer",match(t,e){let r=V("layer-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??n;if(o)return{matcher:i,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${o}`})}}}},di={name:"uno-layer",match(t,e){let r=V("uno-layer-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??n;if(o)return{matcher:i,layer:o}}}},mi={name:"scope",match(t,e){let r=H("scope-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n);if(o)return{matcher:i,selector:s=>`${o} $$ ${s}`}}}},hi={name:"variables",match(t,e){if(!t.startsWith("["))return;let[r,n]=re(t,"[","]")??[];if(!(r&&n))return;let i;for(let a of e.generator.config.separators)if(n.startsWith(a)){i=n.slice(a.length);break}if(i==null)return;let o=u.bracket(r)??"",s=o.startsWith("@");if(s||o.includes("&"))return{matcher:i,handle(a,l){let c=s?{parent:`${a.parent?`${a.parent} $$ `:""}${o}`}:{selector:o.replace(/&/g,a.selector)};return l({...a,...c})}}},multiPass:!0};var gi=/[0-9.]+(?:[a-z]+|%)?/,ps=[/opacity|color|flex/];function ds(t){let e=t.match(/^(calc|clamp|max|min)\s*(\(.*)/);if(e){let[r,n]=ut(e[2],"(",")"," ")??[];if(r)return`calc(${e[1]}${r} * -1)${n?` ${n}`:""}`}}var bi={name:"negative",match(t){if(t.startsWith("-"))return{matcher:t.slice(1),body:e=>{if(e.find(n=>n[0]===hr))return;let r=!1;return e.forEach(n=>{let i=n[1]?.toString();if(!i||i==="0"||ps.some(s=>n[0].match(s)))return;let o=ds(i);o?(n[1]=o,r=!0):gi.test(i)&&(n[1]=i.replace(gi,s=>`-${s}`),r=!0)}),r?e:[]}}}};function xi(){let t;return{name:"important",match(e,r){t||(t=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,i=e.match(t);if(i?n=e.slice(i[0].length):e.endsWith("!")&&(n=e.slice(0,-1)),n)return{matcher:n,body:o=>(o.forEach(s=>{s[1]&&(s[1]+=" !important")}),o)}}}}var yi=ge("print","@media print"),wi={name:"media",match(t,e){let r=V("media-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??"";if(o===""&&(o=e.theme.media?.[n]??""),o)return{matcher:i,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${o}`})}}},multiPass:!0};var $i={name:"supports",match(t,e){let r=V("supports-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??"";if(o===""&&(o=e.theme.supports?.[n]??""),o)return{matcher:i,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${o}`})}}},multiPass:!0};var ae=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),Ci=Object.keys(ae),le=Object.fromEntries([["backdrop","::backdrop"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),ki=Object.keys(le),ms=["not","is","where","has"],jt=Object.entries(ae).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),At=Object.entries(le).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),X=ms.join("|");function tt(t,e,r){let n=new RegExp(`^(${B(e)}:)(\\S+)${B(r)}\\1`),i,o,s,a,l=p=>{let m=H(`${t}-`,p,[]);if(!m)return;let[h,y]=m,$=u.bracket(h);if($==null)return;let x=y.split(i,1)?.[0]??"",v=`${e}${Y(x)}`;return[x,p.slice(p.length-(y.length-x.length-1)),$.includes("&")?$.replace(/&/g,v):`${v}${$}`]},c=p=>{let m=p.match(o)||p.match(s);if(!m)return;let[h,y,$]=m,x=m[3]??"",v=ae[$]||le[$]||`:${$}`;return y&&(v=`:${y}(${v})`),[x,p.slice(h.length),`${e}${Y(x)}${v}`,$]},f=p=>{let m=p.match(a);if(!m)return;let[h,y,$]=m,x=m[3]??"",v=`:${y}(${$})`;return[x,p.slice(h.length),`${e}${Y(x)}${v}`]};return{name:`pseudo:${t}`,match(p,m){if(i&&o&&s||(i=new RegExp(`(?:${m.generator.config.separators.join("|")})`),o=new RegExp(`^${t}-(?:(?:(${X})-)?(${jt}))(?:(/\\w+))?(?:${m.generator.config.separators.join("|")})`),s=new RegExp(`^${t}-(?:(?:(${X})-)?(${At}))(?:(/\\w+))?(?:${m.generator.config.separators.filter(b=>b!=="-").join("|")})`),a=new RegExp(`^${t}-(?:(${X})-)?\\[(.+)\\](?:(/\\w+))?(?:${m.generator.config.separators.filter(b=>b!=="-").join("|")})`)),!p.startsWith(t))return;let h=l(p)||c(p)||f(p);if(!h)return;let[y,$,x,v=""]=h;return y!==""&&K("The labeled variant is experimental and may not follow semver."),{matcher:$,handle:(b,C)=>C({...b,prefix:`${x}${r}${b.prefix}`.replace(n,"$1$2:"),sort:Ci.indexOf(v)??ki.indexOf(v)})}},multiPass:!0}}var hs=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],Si=Object.entries(ae).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),vi=Object.entries(le).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|");function Ri(){let t,e;return{name:"pseudo",match(r,n){t&&t||(t=new RegExp(`^(${Si})(?:${n.generator.config.separators.join("|")})`),e=new RegExp(`^(${vi})(?:${n.generator.config.separators.filter(o=>o!=="-").join("|")})`));let i=r.match(t)||r.match(e);if(i){let o=ae[i[1]]||le[i[1]]||`:${i[1]}`,s=Ci.indexOf(i[1]);return s===-1&&(s=ki.indexOf(i[1])),s===-1&&(s=void 0),{matcher:r.slice(i[0].length),handle:(a,l)=>{let c=o.startsWith("::")&&!hs.includes(o)?{pseudo:`${a.pseudo}${o}`}:{selector:`${a.selector}${o}`};return l({...a,...c,sort:s,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${Si}|${vi}):`}}function Ei(){let t,e,r;return{match(n,i){t&&e||(t=new RegExp(`^(${X})-(${jt})(?:${i.generator.config.separators.join("|")})`),e=new RegExp(`^(${X})-(${At})(?:${i.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${X})-(\\[.+\\])(?:${i.generator.config.separators.filter(s=>s!=="-").join("|")})`));let o=n.match(t)||n.match(e)||n.match(r);if(o){let s=o[1],l=re(o[2],"[","]")?u.bracket(o[2]):ae[o[2]]||le[o[2]]||`:${o[2]}`;return{matcher:n.slice(o[0].length),selector:c=>`${c}:${s}(${l})`}}},multiPass:!0,autocomplete:`(${X})-(${jt}|${At}):`}}function Ti(t={}){let e=!!t?.attributifyPseudo;return[tt("group",e?'[group=""]':".group"," "),tt("peer",e?'[peer=""]':".peer","~"),tt("parent",e?'[parent=""]':".parent",">"),tt("previous",e?'[previous=""]':".previous","+")]}var gs=/(part-\[(.+)]:)(.+)/,ji={match(t){let e=t.match(gs);if(e){let r=`part(${e[2]})`;return{matcher:t.slice(e[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};function Ai(t){return[ri,li,pi,fi,di,bi,xi(),$i,yi,wi,ii(),...oi,Ri(),Ei(),...Ti(t),ji,...ai(t),...ui,mi,si,hi,ci]}var Oi={position:["relative","absolute","fixed","sticky","static"],globalKeyword:E};var bs=(t={})=>(t.dark=t.dark??"class",t.attributifyPseudo=t.attributifyPseudo??!1,t.preflight=t.preflight??!0,t.variablePrefix=t.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:ti,rules:Vn,variants:Ai(t),options:t,prefix:t.prefix,postprocess:xs(t.variablePrefix),preflights:t.preflight?ys(er,t.variablePrefix):[],extractorDefault:t.arbitraryVariants===!1?void 0:Qt,autocomplete:{shorthands:Oi}}),Vi=bs;function xs(t){if(t!=="un-")return e=>{e.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${t}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${t}`))})}}function ys(t,e){return e!=="un-"?t.map(r=>({...r,getCSS:(()=>async n=>{let i=await r.getCSS(n);if(i)return i.replace(/--un-/g,`--${e}`)})()})):t}var Ot=/^(?!.*\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/;function zi(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,i;return{name:"attributify",match(o,{generator:s}){let a=Ut(o);if(!a)return;let l=a[1];if(l.startsWith(e))l=l.slice(e.length);else if(r)return;let c=a[2],[,f="",p=c]=c.match(Ot)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(i==null){let m=s?.config?.separators?.join("|");m?i=new RegExp(`^(.*\\](?:${m}))(\\[[^\\]]+?\\])$`):i=!1}if(i){let[,m,h]=c.match(i)||[];if(h)return`${m}${f}${l}-${h}`}return`${f}${l}-${p}`}}}var ws=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,$s=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,Pi=/[\s'"`;>]+/;function Mi(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(ws),i,o=0;for(let b of n){let[,C,d]=b,w=b.index+C.length;if(r>w&&r<=w+d.length){o=w,i=d;break}}if(!i)return null;let s=i.matchAll($s),a=0,l,c;for(let b of s){let[C,d,w]=b,R=o+b.index;if(r>R&&r<=R+C.length){a=R,l=d,c=w?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!t?.prefix&&l.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?l.slice(t.prefix.length):l;if(c===void 0)return{extracted:p,resolveReplacement(b){let C=f?t.prefix.length:0;return{start:a+C,end:a+l.length,replacement:b}}};let m=a+l.length+2,h=Pi.exec(c),y=0,$;for(;h;){let[b]=h;if(r>m+y&&r<=m+y+h.index){$=c.slice(y,y+h.index);break}y+=h.index+b.length,h=Pi.exec(c.slice(y))}$===void 0&&($=c.slice(y));let[,x="",v]=$.match(Ot)||[];return{extracted:`${x}${p}-${v}`,transformSuggestions(b){return b.filter(C=>C.startsWith(`${x}${p}-`)).map(C=>x+C.slice(x.length+p.length+1))},resolveReplacement(b){return{start:y+m,end:y+m+$.length,replacement:x+b.slice(x.length+p.length+1)}}}}}}var Ss=["v-bind:",":"],_i=/[\s'"`;]+/g,vs=/<[^>\s]*\s((?:'.*?'|".*?"|`.*?`|\{.*?\}|[^>]*?)*)/g,Cs=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.~<]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms,Vt=["placeholder","fill","opacity","stroke-opacity"];function Li(t){let e=t?.ignoreAttributes??Vt,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:i}){return Array.from(i.matchAll(vs)).flatMap(o=>Array.from((o[1]||"").matchAll(Cs))).flatMap(([,o,...s])=>{let a=s.filter(Boolean).join("");if(e.includes(o))return[];for(let l of Ss)if(o.startsWith(l)){o=o.slice(l.length);break}if(!a){if(fe(o)&&r!==!1){let l=[`[${o}=""]`];return n&&l.push(`[${o}="true"]`),l}return[]}return["class","className"].includes(o)?a.split(_i).filter(fe):t?.prefixedOnly&&t.prefix&&!o.startsWith(t.prefix)?[]:a.split(_i).filter(l=>!!l&&l!==":").map(l=>`[${o}~="${l}"]`)})}}}var ks=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??Vt;let e=[zi(t)],r=[Li(t)],n=[Mi(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},Ui=ks;function Rs(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function Fi(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Ni(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Wi=["Webkit","Moz","ms"];function Di(t){let e={};function r(n){let i=e[n];if(i)return i;let o=Rs(n);if(o!=="filter"&&o in t)return e[n]=Ni(o);o=Fi(o);for(let s=0;s<Wi.length;s++){let a=`${Wi[s]}${o}`;if(a in t)return e[n]=Ni(Fi(a))}return n}return({entries:n})=>n.forEach(i=>{i[0].startsWith("--")||(i[0]=r(i[0]))})}function Ii(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function zt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,r=window.document,n=()=>r.documentElement,i=e.__unocss||{},o=Object.assign({},t,i.runtime),s=o.defaults||{},a=o.cloakAttribute??"un-cloak";o.autoPrefix&&(s.postprocess=j(s.postprocess)).unshift(Di(r.createElement("div").style)),o.configResolved?.(i,s);let l=Xt(i,s),c=g=>o.inject?o.inject(g):n().prepend(g),f=()=>o.rootElement?o.rootElement():r.body,p=new Map,m=!0,h=new Set,y,$,x=[],v=()=>new Promise(g=>{x.push(g),$!=null&&clearTimeout($),$=setTimeout(()=>d().then(()=>{let S=x;x=[],S.forEach(k=>k())}),0)});function b(g){if(g.nodeType!==1)return;let S=g;S.hasAttribute(a)&&S.removeAttribute(a),S.querySelectorAll(`[${a}]`).forEach(k=>{k.removeAttribute(a)})}function C(g,S){let k=p.get(g);if(!k)if(k=r.createElement("style"),k.setAttribute("data-unocss-runtime-layer",g),p.set(g,k),S==null)c(k);else{let M=C(S),U=M.parentNode;U?U.insertBefore(k,M.nextSibling):c(k)}return k}async function d(){let g=await l.generate(h);return g.layers.reduce((S,k)=>(C(k,S).innerHTML=g.getLayer(k)??"",k),void 0),h=g.matched,{...g,getStyleElement:S=>p.get(S),getStyleElements:()=>p}}async function w(g){let S=h.size;await l.applyExtractors(g,void 0,h),S!==h.size&&await v()}async function R(g=f()){let S=g&&g.outerHTML;S&&(await w(`${S} ${Ii(S)}`),b(n()),b(g))}let z=new MutationObserver(g=>{m||g.forEach(async S=>{if(S.target.nodeType!==1)return;let k=S.target;for(let M of p)if(k===M[1])return;if(S.type==="childList")S.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let U=M;y&&!y(U)||(await w(U.outerHTML),b(U))});else{if(y&&!y(k))return;if(S.attributeName!==a){let M=Array.from(k.attributes).map(_=>_.value?`${_.name}="${_.value}"`:_.name).join(" "),U=`<${k.tagName.toLowerCase()} ${M}>`;await w(U)}k.hasAttribute(a)&&k.removeAttribute(a)}})}),P=!1;function q(){if(P)return;let g=o.observer?.target?o.observer.target():f();g&&(z.observe(g,{childList:!0,subtree:!0,attributes:!0,attributeFilter:o.observer?.attributeFilter}),P=!0)}function J(){o.bypassDefined&&Es(l.blocked),R(),q()}function ce(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",J):J()}let Oe=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(g){A(g)||(g.forEach(S=>h.add(S)),g=""),await w(g)},extractAll:R,inspect(g){y=g},toggleObserver(g){g===void 0?m=!m:m=!!g,!P&&!m&&ce()},update:d,presets:e.__unocss_runtime?.presets??{}};o.ready?.(Oe)!==!1&&(m=!1,ce())}function Es(t=new Set){for(let e=0;e<document.styleSheets.length;e++){let r=document.styleSheets[e],n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(i=>i.selectorText?.split(/,/g)||[]).forEach(i=>{i&&(i=i.trim(),i.startsWith(".")&&(i=i.slice(1)),t.add(i))})}catch{continue}}return t}zt({defaults:{presets:[Vi(),Ui()]}});})();
|