@stacksjs/bunpress 0.1.4 → 0.1.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/README.md +7 -6
- package/dist/bin/cli.js +1 -1
- package/dist/chunk-3kj1ps9z.js +2 -0
- package/dist/{chunk-h6ac3d60.js → chunk-43fsk0jg.js} +1 -1
- package/dist/chunk-7z3sysbz.js +658 -0
- package/dist/chunk-7z6wzjev.js +496 -0
- package/dist/chunk-8mywpq4a.js +9006 -0
- package/dist/{chunk-jcg8be8w.js → chunk-eqw9bzek.js} +1 -1
- package/dist/serve.d.ts +2 -0
- package/dist/src/index.js +1 -1
- package/dist/templates/features.stx +3 -16
- package/dist/templates/hero.stx +58 -3
- package/dist/templates/layout-doc.stx +23 -21
- package/dist/templates/layout-home.stx +0 -2
- package/dist/templates/layout-page.stx +10 -10
- package/dist/templates/page-toc.stx +5 -0
- package/dist/templates/sidebar-section.stx +67 -11
- package/dist/templates/sidebar.stx +22 -0
- package/dist/themes/vitepress/index.d.ts +638 -0
- package/dist/themes/vitepress/index.ts +640 -0
- package/dist/types.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chunk-bgzqswwb.js +0 -517
- package/dist/chunk-kfzscenj.js +0 -9650
- package/dist/chunk-mhvhmm0a.js +0 -646
- package/dist/chunk-tvj4g4m6.js +0 -2
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{N as $}from"./chunk-43fsk0jg.js";import{existsSync as Wi,readFileSync as Ti}from"fs";import{join as ct}from"path";import{existsSync as ft,statSync as pt}from"fs";import{join as Ol,relative as ql,resolve as mt}from"path";import be from"process";import{Buffer as T}from"buffer";import{createCipheriv as Ml,createDecipheriv as Bl,randomBytes as Re}from"crypto";import{closeSync as Fe,createReadStream as gt,createWriteStream as Ll,existsSync as ce,fsyncSync as bt,openSync as vt,writeFileSync as Pl}from"fs";import{access as Dl,constants as wt,mkdir as Yl,readdir as ue,rename as yt,stat as Q,unlink as de,writeFile as We}from"fs/promises";import{isAbsolute as Il,join as H,resolve as Ql}from"path";import y from"process";import{pipeline as Hl}from"stream/promises";import{createGzip as xt}from"zlib";import U from"process";import O from"process";import he from"process";import{existsSync as fe}from"fs";import{resolve as Te}from"path";import{existsSync as Ul}from"fs";import{existsSync as Ye,mkdirSync as Zl,readdirSync as Xl,readFileSync as Vl,writeFileSync as Kl}from"fs";import{homedir as Z}from"os";import{dirname as kt,resolve as j}from"path";import I from"process";import{existsSync as Gl,readdirSync as _l}from"fs";import{extname as Oe,resolve as Ct}from"path";import Jl from"process";var rt=new Map,L=new Map,Sr={col:"col",row:"row",jc:"justify",ji:"justify-items",js:"justify-self",ai:"items",ac:"content",as:"self",wrap:"wrap",nowrap:"nowrap",c:"center",s:"start",e:"end",sb:"between",sa:"around",se:"evenly",st:"stretch",thin:"thin",extralight:"extralight",light:"light",normal:"normal",medium:"medium",semibold:"semibold",bold:"bold",extrabold:"extrabold",black:"black",t:"top",r:"right",b:"bottom",l:"left"},Ar=/[%#()]/,Rr=/^\d+(\.\d+)?(px|rem|em|vh|vw|dvh|dvw|svh|svw|lvh|lvw|ch|ex|lh|cap|ic|rlh|vi|vb|vmin|vmax|cqw|cqh|cqi|cqb|cqmin|cqmax|cm|mm|in|pt|pc|Q)$/;function S(e){return Ar.test(e)||Rr.test(e)}function le(e){if(!e.includes("_"))return e;let t="",r=0;while(r<e.length){let i=e[r];if(i==="\\"&&e[r+1]==="_"){t+="_",r+=2;continue}if(i==="u"&&e.slice(r,r+4)==="url("){let a=r,n=1;r+=4;while(r<e.length&&n>0){if(e[r]==="(")n++;else if(e[r]===")")n--;r++}t+=e.slice(a,r);continue}t+=i==="_"?" ":i,r++}return t}function it(e,t){if(t.length!==2)return null;let[r,i]=t;if(r!=="min"&&r!=="max")return null;return[S(i)?`${r}-${e}-[${i}]`:`${r}-${e}-${i}`]}var Fr={flex:{expand:(e,t)=>{let r=t[e]||e;if(["col","row","col-reverse","row-reverse","wrap","nowrap","wrap-reverse"].includes(r))return`flex-${r}`;let i=e.match(/^(jc|ji|js|ai|ac|as)-(.+)$/);if(i){let a=t[i[1]]||i[1],n=t[i[2]]||i[2];return`${a}-${n}`}if(/^\d+$/.test(r)||["grow","shrink","auto","initial","none"].includes(r))return`flex-${r}`;return null}},grid:{expand:(e,t)=>{let r=t[e]||e;if(e.startsWith("cols-")||e.startsWith("rows-"))return`grid-${e}`;if(e.startsWith("flow-"))return`grid-${e}`;if(e.startsWith("gap-"))return e;return null}},text:{expand:(e,t)=>{let r=t[e]||e;if(S(r))return`text-[${r}]`;if(/^\d{3}$/.test(r))return{"100":"font-thin","200":"font-extralight","300":"font-light","400":"font-normal","500":"font-medium","600":"font-semibold","700":"font-bold","800":"font-extrabold","900":"font-black"}[r]||`font-[${r}]`;if(/^[a-z-]+$/i.test(r)&&!["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"].includes(r)){if(["white","black","red","blue","green","yellow","purple","pink","gray","slate","zinc","neutral","stone","orange","amber","lime","emerald","teal","cyan","sky","indigo","violet","fuchsia","rose","inherit","current","transparent"].includes(r.toLowerCase()))return`text-${r}`;return`font-[${r}]`}return`text-${r}`}},font:{expand:(e,t)=>{let r=t[e]||e,i=["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],a=["sans","serif","mono"];if(i.includes(r)||a.includes(r))return`font-${r}`;if(/^\d{3}$/.test(r))return{"100":"font-thin","200":"font-extralight","300":"font-light","400":"font-normal","500":"font-medium","600":"font-semibold","700":"font-bold","800":"font-extrabold","900":"font-black"}[r]||`font-[${r}]`;return`font-[${r}]`}},bg:{expand:(e,t)=>{return`bg-${t[e]||e}`}},w:{expand:(e,t)=>{let r=t[e]||e;if(S(r))return`w-[${r}]`;return`w-${r}`},multiValue:(e)=>it("w",e)},h:{expand:(e,t)=>{let r=t[e]||e;if(S(r))return`h-[${r}]`;return`h-${r}`},multiValue:(e)=>it("h",e)},p:{expand:(e)=>`p-${e}`},px:{expand:(e)=>`px-${e}`},py:{expand:(e)=>`py-${e}`},pt:{expand:(e)=>`pt-${e}`},pr:{expand:(e)=>`pr-${e}`},pb:{expand:(e)=>`pb-${e}`},pl:{expand:(e)=>`pl-${e}`},m:{expand:(e)=>`m-${e}`},mx:{expand:(e)=>`mx-${e}`},my:{expand:(e)=>`my-${e}`},mt:{expand:(e)=>`mt-${e}`},mr:{expand:(e)=>`mr-${e}`},mb:{expand:(e)=>`mb-${e}`},ml:{expand:(e)=>`ml-${e}`},scroll:{expand:(e)=>{if(["x","y"].includes(e))return null;if(["auto","hidden","scroll","visible"].includes(e))return`overflow-${e}`;return null},multiValue:(e)=>{if(e.length===2){let[t,r]=e;if(["x","y"].includes(t)&&["auto","hidden","scroll","visible"].includes(r))return[`overflow-${t}-${r}`]}return null}},overflow:{expand:(e)=>`overflow-${e}`,multiValue:(e)=>{if(e.length===2){let[t,r]=e;if(["x","y"].includes(t))return[`overflow-${t}-${r}`]}return null}},border:{expand:(e)=>`border-${e}`},rounded:{expand:(e)=>`rounded-${e}`},shadow:{expand:(e)=>`shadow-${e}`},gap:{expand:(e)=>{if(e.startsWith("x-")||e.startsWith("y-"))return`gap-${e}`;return`gap-${e}`}},space:{expand:(e)=>`space-${e}`},opacity:{expand:(e)=>`opacity-${e}`},z:{expand:(e)=>`z-${e}`},inset:{expand:(e,t)=>{let r=t[e]||e;if(r.startsWith("x-")||r.startsWith("y-"))return`inset-${r}`;if(S(r))return`inset-[${r}]`;return`inset-${r}`}},top:{expand:(e)=>S(e)?`top-[${e}]`:`top-${e}`},right:{expand:(e)=>S(e)?`right-[${e}]`:`right-${e}`},bottom:{expand:(e)=>S(e)?`bottom-[${e}]`:`bottom-${e}`},left:{expand:(e)=>S(e)?`left-[${e}]`:`left-${e}`},duration:{expand:(e)=>`duration-${e}`},delay:{expand:(e)=>`delay-${e}`},ease:{expand:(e)=>`ease-${e}`},transition:{expand:(e)=>{if(["all","none","colors","opacity","shadow","transform"].includes(e))return`transition-${e}`;if(/^\d+$/.test(e))return`duration-${e}`;if(["linear","in","out","in-out","ease-linear","ease-in","ease-out","ease-in-out"].includes(e))return e.startsWith("ease-")?e:`ease-${e}`;return`transition-${e}`}},translate:{expand:(e)=>{if(e.startsWith("x-")||e.startsWith("y-")||e.startsWith("z-"))return`translate-${e}`;return`translate-${e}`}},rotate:{expand:(e)=>{if(e.startsWith("x-")||e.startsWith("y-")||e.startsWith("z-"))return`rotate-${e}`;return`rotate-${e}`}},scale:{expand:(e)=>{if(e.startsWith("x-")||e.startsWith("y-")||e.startsWith("z-"))return`scale-${e}`;return`scale-${e}`}},skew:{expand:(e)=>{if(e.startsWith("x-")||e.startsWith("y-"))return`skew-${e}`;return`skew-${e}`}},origin:{expand:(e)=>`origin-${e}`},cursor:{expand:(e)=>`cursor-${e}`},select:{expand:(e)=>`select-${e}`},resize:{expand:(e)=>`resize-${e}`},appearance:{expand:(e)=>`appearance-${e}`},pointer:{expand:(e)=>`pointer-events-${e}`},outline:{expand:(e)=>`outline-${e}`},ring:{expand:(e)=>`ring-${e}`},blur:{expand:(e)=>`blur-${e}`},brightness:{expand:(e)=>`brightness-${e}`},contrast:{expand:(e)=>`contrast-${e}`},grayscale:{expand:(e)=>`grayscale-${e}`},saturate:{expand:(e)=>`saturate-${e}`},sepia:{expand:(e)=>`sepia-${e}`},backdrop:{expand:(e)=>`backdrop-${e}`},aspect:{expand:(e)=>`aspect-${e}`},columns:{expand:(e)=>`columns-${e}`},break:{expand:(e)=>`break-${e}`},object:{expand:(e)=>`object-${e}`},overscroll:{expand:(e)=>`overscroll-${e}`},place:{expand:(e)=>`place-${e}`},items:{expand:(e)=>`items-${e}`},justify:{expand:(e)=>`justify-${e}`},content:{expand:(e)=>`content-${e}`},self:{expand:(e)=>`self-${e}`},order:{expand:(e)=>`order-${e}`},col:{expand:(e)=>`col-${e}`},row:{expand:(e)=>`row-${e}`},tracking:{expand:(e)=>`tracking-${e}`},leading:{expand:(e)=>`leading-${e}`},list:{expand:(e)=>`list-${e}`},decoration:{expand:(e)=>`decoration-${e}`},underline:{expand:(e)=>`underline-${e}`},accent:{expand:(e)=>`accent-${e}`},caret:{expand:(e)=>`caret-${e}`},"scroll-m":{expand:(e)=>`scroll-m-${e}`},"scroll-p":{expand:(e)=>`scroll-p-${e}`},snap:{expand:(e)=>`snap-${e}`},touch:{expand:(e)=>`touch-${e}`},will:{expand:(e)=>`will-change-${e}`},fill:{expand:(e)=>`fill-${e}`},stroke:{expand:(e)=>`stroke-${e}`},sr:{expand:(e)=>`sr-${e}`},invert:{expand:(e)=>`invert-${e}`},"hue-rotate":{expand:(e)=>S(e)?`hue-rotate-[${e}]`:`hue-rotate-${e}`},"drop-shadow":{expand:(e)=>`drop-shadow-${e}`},"backdrop-invert":{expand:(e)=>`backdrop-invert-${e}`},"backdrop-hue-rotate":{expand:(e)=>S(e)?`backdrop-hue-rotate-[${e}]`:`backdrop-hue-rotate-${e}`},animate:{expand:(e)=>`animate-${e}`},"forced-colors":{expand:(e)=>`forced-colors-${e}`}},_=new Set(["sm","md","lg","xl","2xl","hover","focus","active","visited","disabled","enabled","focus-within","focus-visible","group-hover","group-focus","peer-hover","peer-focus","dark","first","last","odd","even","only","first-of-type","last-of-type","checked","indeterminate","default","required","valid","invalid","in-range","out-of-range","placeholder-shown","autofill","read-only","empty","before","after","selection","marker","file","print","motion-safe","motion-reduce","contrast-more","contrast-less","rtl","ltr","portrait","landscape","@sm","@md","@lg","@xl","@2xl"]);function Rt(e,t){let r=`${e}:${t?.colonSyntax}:${JSON.stringify(t?.aliases||{})}`,i=L.get(r);if(i)return i;let a={...Sr,...t?.aliases};if(t?.colonSyntax===!0){let p=e.match(/^([a-z][a-z0-9-]*):([^[\]:]+)$/i);if(p){let[,x,m]=p;if(!_.has(x)){if(S(m)){let b=[`${x}-[${m}]`];return L.set(r,b),b}let g=[`${x}-${m}`];return L.set(r,g),g}}}let n="",l=e,s=!1;if(l.startsWith("-"))s=!0,l=l.slice(1);let o=l.match(/^((?:[a-z@][a-z0-9-]*:)+)(.+)$/i);if(o){if(o[1].slice(0,-1).split(":").every((p)=>_.has(p)))n=o[1],l=o[2]}let c=l.match(/^([a-z][a-z0-9-]*)\[([^\]]*)\]$/i);if(!c||l.includes("-[")){let p=[e];return L.set(r,p),p}let[,u,d]=c,h=d.split(/\s+/).filter(Boolean);if(h.length===0)return L.set(r,[]),[];let f=Fr[u.toLowerCase()];if(f?.multiValue){let p=f.multiValue(h,a);if(p){let x=p.map((m)=>{return`${n}${s?"-":""}${m}`});return L.set(r,x),x}}if(!f){let p=[];for(let x of h){let m=x.match(/^([a-z@][a-z0-9-]*):(.+)$/i),g="",b=x;if(m&&_.has(m[1]))g=`${m[1]}:`,b=m[2];let F="";if(b.startsWith("-"))F="-",b=b.slice(1);let z="";if(b.endsWith("!"))z="!",b=b.slice(0,-1);let W=s?"-":"";if(S(b))p.push(`${n}${g}${z}${W}${F}${u}-[${b}]`);else p.push(`${n}${g}${z}${W}${F}${u}-${b}`)}return L.set(r,p),p}let w=[];for(let p of h){let x=p.match(/^([a-z@][a-z0-9-]*):(.+)$/i),m="",g=p;if(x&&_.has(x[1]))m=`${x[1]}:`,g=x[2];let b="";if(g.startsWith("-"))b="-",g=g.slice(1);let F="";if(g.endsWith("!"))F="!",g=g.slice(0,-1);let z=f.expand(g,a);if(z){let W=s?"-":"";w.push(`${n}${m}${F}${W}${b}${z}`)}}return L.set(r,w),w}function Ft(e,t){let r=new Set;if(!t?.enabled)return r;let i=t.prefix??"hw-",a=["class","className","style","id","name","type","value","href","src","alt","title","role","for","action","method","target","rel","placeholder","disabled","checked","selected","readonly","required","maxlength","minlength","pattern","autocomplete","autofocus","tabindex","contenteditable","draggable","spellcheck","lang","dir","hidden","slot","part","is","key","ref"],n=t.ignoreAttributes||a,l=(c)=>{let u=c.includes(":")?c.split(":").pop():c;for(let d of n)if(d.endsWith("*")){if(u.startsWith(d.slice(0,-1)))return!0}else if(u===d)return!0;if(u.startsWith("on"))return!0;if(u.startsWith("data-")||u.startsWith("aria-"))return!0;return!1},s=/<([a-z][a-z0-9-]*)\s([^>]*)>/gi,o;while((o=s.exec(e))!==null){let c=o[2],u=/([a-z][a-z0-9-:]*)(?:=["']([^"']*)["'])?(?=\s|$|\/?>)/gi,d;while((d=u.exec(c))!==null){let h=d[1],f=d[2];if(i){if(!h.startsWith(i))continue;h=h.slice(i.length)}if(l(h))continue;let w="",p=h,x=h.match(/^((?:[a-z@][a-z0-9-]*:)+)([a-z][a-z0-9-]*)$/i);if(x){if(x[1].slice(0,-1).split(":").every((m)=>_.has(m)))w=x[1],p=x[2]}if(f!==void 0){let m=f.split(/\s+/).filter(Boolean);for(let g of m){let b=`${w}${p}-${g}`;if(at(b.replace(/^(?:[a-z@][a-z0-9-]*:)+/gi,"")))r.add(b)}}else{let m=`${w}${p}`;if(at(p))r.add(m)}}}return r}function at(e){if(!e||e.length===0)return!1;return/^[a-z][a-z0-9-/]*(?:-\[[^\]]+\])?$/i.test(e)}function Wt(e){let t=rt.get(e);if(t)return t;let r=Wr(e);return rt.set(e,r),r}function Wr(e){let t=!1,r=e;if(e.startsWith("!"))t=!0,r=e.slice(1);else if(e.endsWith("!")&&e.length>1)t=!0,r=e.slice(0,-1);let i=r.match(/^\[([a-z-]+):(.+)\]$/);if(i)return{raw:e,variants:[],utility:i[1],value:le(i[2]),important:t,arbitrary:!0};let a=r.match(/^((?:[a-z-]+:)*)(-?[a-z-]+?)-\[([^\]]+)\]\/\[([^\]]+)\]$/);if(a){let[,m,g,b,F]=a,z=m?m.split(":").filter(Boolean):[],W=g.startsWith("-"),K=W?g.slice(1):g,G=le(b);if(W)G=G.startsWith("-")?G:`-${G}`;return{raw:e,variants:z,utility:K,value:`${G}/${F}`,important:t,arbitrary:!0}}let n=r.match(/^((?:[a-z-]+:)*)(-?[a-z-]+?)-\[(.+)\]$/);if(n){let m=n[1],g=m?m.split(":").filter(Boolean):[],b=n[2],F=b.startsWith("-");if(F)b=b.slice(1);let z=le(n[3]),W,K=z.match(/^(color|length|url|number|percentage|position|line-width|absolute-size|relative-size|image|angle|time|flex|string|family-name):(.*)/i);if(K)W=K[1].toLowerCase(),z=K[2];if(F)z=z.startsWith("-")?z:`-${z}`;return{raw:e,variants:g,utility:b,value:z,important:t,arbitrary:!0,typeHint:W}}let l=[],s="",o=0;for(let m=0;m<r.length;m++){let g=r[m];if(g==="[")o++;else if(g==="]")o--;if(g===":"&&o===0)l.push(s),s="";else s+=g}l.push(s);let c=l[l.length-1],u=l.slice(0,-1);if(c.startsWith("!")&&c.length>1)t=!0,c=c.slice(1);else if(c.endsWith("!")&&c.length>1)t=!0,c=c.slice(0,-1);if(u.length>0)r=`${u.join(":")}:${c}`;else r=c;if(["inline-block","inline-flex","inline-grid","flex-row","flex-row-reverse","flex-col","flex-col-reverse","flex-wrap","flex-wrap-reverse","flex-nowrap","flex-1","flex-auto","flex-initial","flex-none","flex-grow","flex-shrink"].includes(c))return{raw:e,variants:u,utility:c,value:void 0,important:t,arbitrary:!1};let d=c.match(/^([a-z-]+?)-\[(.+?)\]$/);if(d){let m=le(d[2]),g,b=m.match(/^(color|length|url|number|percentage|position|line-width|absolute-size|relative-size|image|angle|time|flex|string|family-name):(.*)/i);if(b)g=b[1].toLowerCase(),m=b[2];return{raw:e,variants:u,utility:d[1],value:m,important:t,arbitrary:!0,typeHint:g}}let h=["inset-x","inset-y","border-t","border-r","border-b","border-l","border-x","border-y","border-s","border-e","grid-cols","grid-rows","grid-flow","auto-cols","auto-rows","col-span","row-span","col-start","col-end","row-start","row-end","translate-x","translate-y","translate-z","scale-x","scale-y","scale-z","rotate-x","rotate-y","rotate-z","skew-x","skew-y","scroll-m","scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml","scroll-p","scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl","gap-x","gap-y","overflow-x","overflow-y","min-w","max-w","min-h","max-h","space-x","space-y","ring-offset","underline-offset","outline-offset","backdrop-blur","backdrop-brightness","backdrop-contrast","backdrop-grayscale","backdrop-invert","backdrop-saturate","backdrop-sepia","hue-rotate","drop-shadow","mask-clip","flex-grow","flex-shrink","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","perspective-origin","justify-self","form-input","form-textarea","form-select","form-multiselect","form-checkbox","form-radio","mix-blend","bg-blend","line-clamp","border-spacing","border-spacing-x","border-spacing-y","rounded-s","rounded-e","rounded-ss","rounded-se","rounded-es","rounded-ee","rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-bl","rounded-br","border-opacity","ring-opacity","stroke-dasharray","stroke-dashoffset","animate-iteration","animate-duration","animate-delay","text-emphasis","text-emphasis-color","word-spacing","column-gap","column-rule"];if(c==="divide-x"||c==="divide-y")return{raw:e,variants:u,utility:c,value:void 0,important:t,arbitrary:!1};let f=c.match(/^(divide-[xy])-(.+)$/);if(f)return{raw:e,variants:u,utility:f[1],value:f[2],important:t,arbitrary:!1};for(let m of h)if(c.startsWith(`${m}-`))return{raw:e,variants:u,utility:m,value:c.slice(m.length+1),important:t,arbitrary:!1};if(c.startsWith("-")){let m=c.slice(1);for(let b of h)if(m.startsWith(`${b}-`))return{raw:e,variants:u,utility:b,value:`-${m.slice(b.length+1)}`,important:t,arbitrary:!1};let g=m.match(/^([a-z]+(?:-[a-z]+)*?)-(.+)$/);if(g)return{raw:e,variants:u,utility:g[1],value:`-${g[2]}`,important:t,arbitrary:!1};return{raw:e,variants:u,utility:m,value:void 0,important:t,arbitrary:!1}}let w=c.match(/^([a-z]+(?:-[a-z]+)*?)-(.+?)\/(\d+|\[\d*\.?\d+\])$/);if(w&&["bg","text","border","ring","placeholder","divide","accent","caret","fill","stroke","outline","decoration","shadow","ring-offset","from","via","to"].includes(w[1]))return{raw:e,variants:u,utility:w[1],value:`${w[2]}/${w[3]}`,important:t,arbitrary:!1};let p=c.match(/^([a-z]+(?:-[a-z]+)*?)-(\d+)\/(\d+)$/);if(p)return{raw:e,variants:u,utility:p[1],value:`${p[2]}/${p[3]}`,important:t,arbitrary:!1};let x=c.match(/^([a-z]+(?:-[a-z]+)*?)-(.+)$/);if(x)return{raw:e,variants:u,utility:x[1],value:x[2],important:t,arbitrary:!1};return{raw:e,variants:u,utility:c,value:void 0,important:t,arbitrary:!1}}function Tr(e,t){if(!e||e.length===0)return!1;if(/^\[[a-z-]+:[^\]]+\]$/i.test(e))return!0;if(t?.enabled&&/^[a-z]+\[[^\]]+\]$/i.test(e))return!0;if(t?.colonSyntax&&/^[a-z]+:[^[\]:]+$/i.test(e))return!0;return/^!?-?[a-z][a-z0-9.-]*(?:-\[[^\]]+\])?(?::!?-?[a-z][a-z0-9.-]*(?:-\[[^\]]+\])?)*$/i.test(e)}function ot(e){let t=[],r="",i=0;for(let a of e)if(a==="[")i++,r+=a;else if(a==="]")i--,r+=a;else if(/\s/.test(a)&&i===0){if(r)t.push(r),r=""}else r+=a;if(r)t.push(r);return t}function ee(e,t){let r=new Set,i=[/class(?:Name)?=["']([^"']+)["']/g,/class(?:Name)?=\{["']([^"']+)["']\}/g,/class(?:Name)?=\{`([^`]+)`\}/g];for(let a of i){let n;while((n=a.exec(e))!==null){let l=n[1],s=l.match(/["']([^"']+)["']/g);if(s)for(let u of s){let d=u.replace(/["']/g,""),h=ot(d);for(let f of h)nt(r,f,t)}let o=l.replace(/["'`]/g," ").replace(/\$\{[^}]+\}/g," "),c=ot(o).filter((u)=>Tr(u,t?.bracketSyntax));for(let u of c)nt(r,u,t)}}if(t?.attributify?.enabled){let a=Ft(e,t.attributify);for(let n of a)r.add(n)}return r}function nt(e,t,r){if(r?.bracketSyntax?.enabled){let i=/^[a-z]+\[[^\]]+\]$/i.test(t),a=r.bracketSyntax.colonSyntax&&/^[a-z]+:[^[\]]+$/i.test(t);if(i||a){let n=Rt(t,r.bracketSyntax);for(let l of n)e.add(l);return}}e.add(t)}var Or=(e,t)=>{let r={"0":"0",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",screen:"100vw"};if(e.utility==="min-w"&&e.value)return{"min-width":t.theme.spacing[e.value]||r[e.value]||e.value};if(e.utility==="max-w"&&e.value)return{"max-width":t.theme.spacing[e.value]||r[e.value]||e.value};if(e.utility==="min-h"&&e.value){let i={...r,screen:"100vh"};return{"min-height":t.theme.spacing[e.value]||i[e.value]||e.value}}if(e.utility==="max-h"&&e.value){let i={...r,screen:"100vh"};return{"max-height":t.theme.spacing[e.value]||i[e.value]||e.value}}},qr=(e,t)=>{if(e.utility==="ring"){if(e.value==="inset")return{"--hw-ring-inset":"inset"};if(e.value){let i=M(e.value,t);if(i)return{"--hw-ring-color":i}}let r={0:"0",1:"1px",2:"2px",4:"4px",8:"8px",DEFAULT:"3px"};return{"--hw-ring-offset-shadow":"var(--hw-ring-inset) 0 0 0 var(--hw-ring-offset-width) var(--hw-ring-offset-color)","--hw-ring-shadow":`var(--hw-ring-inset) 0 0 0 calc(${e.value?r[e.value]||e.value:r.DEFAULT} + var(--hw-ring-offset-width)) var(--hw-ring-color)`,"box-shadow":"var(--hw-ring-offset-shadow), var(--hw-ring-shadow), var(--hw-shadow, 0 0 #0000)"}}if(e.utility==="ring-offset"&&e.value){let r={0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"};if(r[e.value])return{"--hw-ring-offset-width":r[e.value]};let i=M(e.value,t);if(i)return{"--hw-ring-offset-color":i}}if(e.utility==="ring-opacity"&&e.value)return{"--hw-ring-opacity":{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"}[e.value]||e.value}},Mr=(e)=>{if(e.utility==="border-opacity"&&e.value)return{"--hw-border-opacity":{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"}[e.value]||e.value}},Br=(e,t)=>{if(e.utility==="space-x"&&e.value){if(e.value==="reverse")return{properties:{"--hw-space-x-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let r;if(e.value.startsWith("-")){let i=e.value.slice(1),a=t.theme.spacing[i];r=a?`-${a}`:e.value}else r=t.theme.spacing[e.value]||e.value;return{properties:{"--hw-space-x-reverse":"0","margin-right":`calc(${r} * var(--hw-space-x-reverse))`,"margin-left":`calc(${r} * calc(1 - var(--hw-space-x-reverse)))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if(e.utility==="space-y"&&e.value){if(e.value==="reverse")return{properties:{"--hw-space-y-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let r;if(e.value.startsWith("-")){let i=e.value.slice(1),a=t.theme.spacing[i];r=a?`-${a}`:e.value}else r=t.theme.spacing[e.value]||e.value;return{properties:{"--hw-space-y-reverse":"0","margin-top":`calc(${r} * calc(1 - var(--hw-space-y-reverse)))`,"margin-bottom":`calc(${r} * var(--hw-space-y-reverse))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}},Lr=(e)=>{if(e.utility==="border"&&e.value){let t={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",hidden:"hidden",none:"none"};if(t[e.value])return{"border-style":t[e.value]}}},Pr=(e,t)=>{if(e.utility==="divide"&&e.value){let r={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",none:"none"};if(r[e.value])return{properties:{"border-style":r[e.value]},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if(e.utility==="divide-x"){if(e.value==="reverse")return{properties:{"--hw-divide-x-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let r={0:"0",2:"2px",4:"4px",8:"8px",DEFAULT:"1px"},i=e.value?r[e.value]||e.value:r.DEFAULT;return{properties:{"--hw-divide-x-reverse":"0","border-right-width":`calc(${i} * var(--hw-divide-x-reverse))`,"border-left-width":`calc(${i} * calc(1 - var(--hw-divide-x-reverse)))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if(e.utility==="divide-y"){if(e.value==="reverse")return{properties:{"--hw-divide-y-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let r={0:"0",2:"2px",4:"4px",8:"8px",DEFAULT:"1px"},i=e.value?r[e.value]||e.value:r.DEFAULT;return{properties:{"--hw-divide-y-reverse":"0","border-top-width":`calc(${i} * calc(1 - var(--hw-divide-y-reverse)))`,"border-bottom-width":`calc(${i} * var(--hw-divide-y-reverse))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if(e.utility==="divide"&&e.value){let r=e.value.indexOf("/"),i=e.value,a;if(r!==-1){i=e.value.slice(0,r);let c=e.value.slice(r+1);if(c.charCodeAt(0)===91&&c.charCodeAt(c.length-1)===93){if(a=Number.parseFloat(c.slice(1,-1)),Number.isNaN(a)||a<0||a>1)return}else{let u=Number.parseInt(c,10);if(Number.isNaN(u)||u<0||u>100)return;a=u/100}}let n=(c)=>{if(a!==void 0){if(c.charCodeAt(0)===35){let u=c.slice(1);if(u.length===3)u=u[0]+u[0]+u[1]+u[1]+u[2]+u[2];let d=Number.parseInt(u.slice(0,2),16),h=Number.parseInt(u.slice(2,4),16),f=Number.parseInt(u.slice(4,6),16);c=`rgb(${d} ${h} ${f} / ${a})`}else if(c.startsWith("oklch("))c=c.replace(")",` / ${a})`)}return{properties:{"border-color":c},childSelector:"> :not([hidden]) ~ :not([hidden])"}},l={current:"currentColor",transparent:"transparent",inherit:"inherit"};if(l[i])return n(l[i]);let s=t.theme.colors[i];if(typeof s==="string")return n(s);let o=i.split("-");if(o.length>=2){let c=o[o.length-1],u=o.slice(0,-1).join("-"),d=t.theme.colors[u];if(typeof d==="object"&&d[c])return n(d[c])}}},Dr=(e,t)=>{let r=(i)=>{let a=null,n=i,l=i.indexOf("/");if(l!==-1){n=i.slice(0,l);let u=i.slice(l+1);if(u.startsWith("[")&&u.endsWith("]"))a=u.slice(1,-1);else{let d=Number.parseInt(u,10);if(!Number.isNaN(d))a=(d/100).toString()}}let s=(u)=>{if(!a)return u;let d=u.match(/^(oklch|rgb|hsl|oklab|lab|lch)\(([^)]+)\)$/i);if(d){let h=d[1],f=d[2].split("/")[0].trim();return`${h}(${f} / ${a})`}if(/^#[0-9a-f]{3,8}$/i.test(u)){let h=u.replace("#",""),f=(m)=>Number.parseInt(m.length===1?m+m:m,16),w=f(h.slice(0,h.length===3?1:2)),p=f(h.slice(h.length===3?1:2,h.length===3?2:4)),x=f(h.slice(h.length===3?2:4,h.length===3?3:6));return`rgb(${w} ${p} ${x} / ${a})`}return`color-mix(in srgb, ${u} ${Math.round(Number.parseFloat(a)*100)}%, transparent)`};if(n.startsWith("[")&&n.endsWith("]"))n=n.slice(1,-1);let o=t.theme.colors[n];if(typeof o==="string")return s(o);let c=n.split("-");if(c.length>=2){let u=c.slice(0,-1).join("-"),d=c[c.length-1],h=t.theme.colors[u];if(typeof h==="object"&&h[d])return s(h[d])}if(n.startsWith("#"))return s(n);return s(n)};if(e.utility==="from"&&e.value)return{"--hw-gradient-from":r(e.value),"--hw-gradient-to":"rgb(255 255 255 / 0)","--hw-gradient-stops":"var(--hw-gradient-from), var(--hw-gradient-to)"};if(e.utility==="via"&&e.value)return{"--hw-gradient-to":"rgb(255 255 255 / 0)","--hw-gradient-stops":`var(--hw-gradient-from), ${r(e.value)}, var(--hw-gradient-to)`};if(e.utility==="to"&&e.value)return{"--hw-gradient-to":r(e.value),"--hw-gradient-stops":"var(--hw-gradient-from), var(--hw-gradient-to)"}},Yr=(e)=>{if(e.utility==="order"&&e.value)return{order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"}[e.value]||e.value}},Ir=(e,t)=>{if(e.utility==="basis"&&e.value){if(e.value.includes("/")){let[r,i]=e.value.split("/").map(Number);return{"flex-basis":`${r/i*100}%`}}return{"flex-basis":{auto:"auto",full:"100%",0:"0"}[e.value]||t.theme.spacing[e.value]||e.value}}},Qr=(e)=>{if(e.utility==="justify-self"){let t={auto:"auto",start:"start",end:"end",center:"center",stretch:"stretch"};return e.value?{"justify-self":t[e.value]||e.value}:void 0}},Hr=(e)=>{if(e.utility==="self"){let t={auto:"auto",start:"flex-start",end:"flex-end",center:"center",stretch:"stretch",baseline:"baseline"};return e.value?{"align-self":t[e.value]||e.value}:void 0}},Ur=(e,t)=>{if(e.utility==="container"){if(!e.value)return{width:"100%","margin-left":"auto","margin-right":"auto","max-width":t.theme.screens.xl||"1280px"};let r={sm:t.theme.screens.sm||"640px",md:t.theme.screens.md||"768px",lg:t.theme.screens.lg||"1024px",xl:t.theme.screens.xl||"1280px","2xl":t.theme.screens["2xl"]||"1536px",full:"100%",prose:"65ch","3xl":"1920px"};if(r[e.value])return{width:"100%","margin-left":"auto","margin-right":"auto","max-width":r[e.value]};if(e.arbitrary)return{width:"100%","margin-left":"auto","margin-right":"auto","max-width":e.value}}},Zr=(e)=>{let t=e.raw.replace(/^!/,"");if(e.arbitrary&&e.utility&&e.value&&t.startsWith("["))return{[e.utility]:e.value}},Xr=[Or,qr,Mr,Lr,Br,Pr,Dr,Yr,Ir,Qr,Hr,Ur,Zr],Ee=null,lt=null;function Vr(e){let t=new Map;for(let[r,i]of Object.entries(e))if(typeof i==="string")t.set(r,i);else if(typeof i==="object"&&i!==null){for(let[a,n]of Object.entries(i))if(typeof n==="string")t.set(`${r}-${a}`,n)}return t}function Kr(e,t){if(e.charCodeAt(0)===35){let r=e.slice(1);if(r.length===3)r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2];let i=Number.parseInt(r.slice(0,2),16),a=Number.parseInt(r.slice(2,4),16),n=Number.parseInt(r.slice(4,6),16);return`rgb(${i} ${a} ${n} / ${t})`}return e}function Gr(e){return e.replace(/rgba?\([^)]+\)/g,"var(--hw-shadow-color)")}var _r=(e)=>{if(e.utility==="bg"&&e.value){let t={fixed:"fixed",local:"local",scroll:"scroll"};return t[e.value]?{"background-attachment":t[e.value]}:void 0}return},Jr=(e)=>{if(e.utility==="bg"&&e.value&&e.value.startsWith("clip-")){let t=e.value.replace("clip-",""),r={border:"border-box",padding:"padding-box",content:"content-box",text:"text"};return r[t]?{"background-clip":r[t]}:void 0}return},$r=(e)=>{if(e.utility==="bg"&&e.value){let t={"gradient-to-t":"linear-gradient(to top, var(--hw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--hw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--hw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--hw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--hw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--hw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--hw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--hw-gradient-stops))"};if(t[e.value])return{"background-image":t[e.value]}}},ei=(e)=>{let t={"bg-origin-border":"border-box","bg-origin-padding":"padding-box","bg-origin-content":"content-box"};return t[e.raw]?{"background-origin":t[e.raw]}:void 0},ti=(e)=>{let t={"bg-bottom":"bottom","bg-center":"center","bg-left":"left","bg-left-bottom":"left bottom","bg-left-top":"left top","bg-right":"right","bg-right-bottom":"right bottom","bg-right-top":"right top","bg-top":"top"};return t[e.raw]?{"background-position":t[e.raw]}:void 0},ri=(e)=>{let t={"bg-repeat":"repeat","bg-no-repeat":"no-repeat","bg-repeat-x":"repeat-x","bg-repeat-y":"repeat-y","bg-repeat-round":"round","bg-repeat-space":"space"};return t[e.raw]?{"background-repeat":t[e.raw]}:void 0},ii=(e)=>{let t={"bg-auto":"auto","bg-cover":"cover","bg-contain":"contain"};return t[e.raw]?{"background-size":t[e.raw]}:void 0},ai=(e)=>{if(e.utility==="border"&&e.value){let t={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",hidden:"hidden",none:"none"};return t[e.value]?{"border-style":t[e.value]}:void 0}return},oi=(e,t)=>{if(e.utility==="outline-offset"&&e.value)return{"outline-offset":{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"}[e.value]||e.value};if(e.utility==="outline"&&e.value){let r={none:"none",solid:"solid",dashed:"dashed",dotted:"dotted",double:"double"};if(r[e.value])return{"outline-style":r[e.value]}}if(e.utility==="outline"){if(!e.value)return{"outline-width":"1px"};let r=M(e.value,t);if(r)return{"outline-color":r};let i={0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"};if(i[e.value])return{"outline-width":i[e.value]};return{"outline-width":e.value}}},ni=(e,t)=>{if(e.utility==="shadow"){let r=e.value?t.theme.boxShadow[e.value]:t.theme.boxShadow.DEFAULT;if(!r)return;if(r==="none")return{"--hw-shadow":"0 0 #0000","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"};let i=Gr(r);return{"--hw-shadow":r,"--hw-shadow-colored":i,"box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"}}},li=(e,t)=>{if(e.utility!=="shadow"||!e.value)return;if(t.theme.boxShadow[e.value])return;if(Ee===null||lt!==t.theme.colors)Ee=Vr(t.theme.colors),lt=t.theme.colors;let r=e.value,i=r.indexOf("/"),a,n;if(i!==-1){a=r.slice(0,i);let s=r.slice(i+1);if(s.charCodeAt(0)===91&&s.charCodeAt(s.length-1)===93){let o=Number.parseFloat(s.slice(1,-1));if(Number.isNaN(o)||o<0||o>1)return;n=o}else{let o=Number.parseInt(s,10);if(Number.isNaN(o)||o<0||o>100)return;n=o/100}}else a=r;let l=Ee.get(a);if(!l)return;return{"--hw-shadow-color":n!==void 0?Kr(l,n):l,"--hw-shadow":"var(--hw-shadow-colored)"}},si=(e)=>{if(e.utility==="text-shadow"){let t={sm:"0 1px 2px rgba(0, 0, 0, 0.05)",DEFAULT:"0 1px 3px rgba(0, 0, 0, 0.1)",md:"0 4px 6px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px rgba(0, 0, 0, 0.1)",xl:"0 20px 25px rgba(0, 0, 0, 0.1)",none:"none"};return e.value?{"text-shadow":t[e.value]||e.value}:void 0}},ci=(e)=>{if(e.utility==="opacity"&&e.value)return{opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"}[e.value]||e.value}},ui=(e)=>{if(e.utility==="mix-blend"){let t=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];return e.value&&t.includes(e.value)?{"mix-blend-mode":e.value}:void 0}},di=(e)=>{if(e.utility==="bg-blend"){let t=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];return e.value&&t.includes(e.value)?{"background-blend-mode":e.value}:void 0}},hi=(e)=>{if(e.utility==="mask-clip"&&e.value)return{"mask-clip":{border:"border-box",padding:"padding-box",content:"content-box",text:"text",fill:"fill-box",stroke:"stroke-box",view:"view-box","no-clip":"no-clip"}[e.value]||e.value};if(e.utility==="mask-composite"&&e.value)return["add","subtract","intersect","exclude"].includes(e.value)?{"mask-composite":e.value}:void 0;if(e.utility==="mask-image"&&e.value){if(e.value==="none")return{"mask-image":"none"};return{"mask-image":`url(${e.value})`}}if(e.utility==="mask-mode"&&e.value)return["alpha","luminance","match-source"].includes(e.value)?{"mask-mode":e.value}:void 0;if(e.utility==="mask-origin"&&e.value)return{"mask-origin":{border:"border-box",padding:"padding-box",content:"content-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}[e.value]||e.value};if(e.utility==="mask-position"&&e.value)return{"mask-position":{center:"center",top:"top",right:"right",bottom:"bottom",left:"left","top-left":"top left","top-right":"top right","bottom-left":"bottom left","bottom-right":"bottom right"}[e.value]||e.value};if(e.utility==="mask-repeat"&&e.value)return{"mask-repeat":{repeat:"repeat","no-repeat":"no-repeat","repeat-x":"repeat-x","repeat-y":"repeat-y",round:"round",space:"space"}[e.value]||e.value};if(e.utility==="mask-size"&&e.value)return{"mask-size":{auto:"auto",cover:"cover",contain:"contain"}[e.value]||e.value};if(e.utility==="mask-type"&&e.value)return["alpha","luminance"].includes(e.value)?{"mask-type":e.value}:void 0},st=[_r,Jr,$r,ei,ti,ri,ii,ai,oi,ni,li,si,ci,ui,di,hi],ye={appearance:"none","background-color":"#fff","border-color":"#6b7280","border-width":"1px","border-radius":"0px","padding-top":"0.5rem","padding-right":"0.75rem","padding-bottom":"0.5rem","padding-left":"0.75rem","font-size":"1rem","line-height":"1.5rem"},Tt={appearance:"none",padding:"0","print-color-adjust":"exact",display:"inline-block","vertical-align":"middle","background-origin":"border-box","user-select":"none","flex-shrink":"0",height:"1rem",width:"1rem",color:"#2563eb","background-color":"#fff","border-color":"#6b7280","border-width":"1px"},fi=(e)=>{if(e.utility==="form-input"&&!e.value)return ye},pi=(e)=>{if(e.utility==="form-textarea"&&!e.value)return ye},mi=(e)=>{if(e.utility==="form-select"&&!e.value)return{...ye,"background-image":`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")`,"background-position":"right 0.5rem center","background-repeat":"no-repeat","background-size":"1.5em 1.5em","padding-right":"2.5rem","print-color-adjust":"exact"}},gi=(e)=>{if(e.utility==="form-multiselect"&&!e.value)return{...ye,"background-image":"initial","background-position":"initial","background-repeat":"unset","background-size":"initial","print-color-adjust":"unset"}},bi=(e)=>{if(e.utility==="form-checkbox"&&!e.value)return{...Tt,"border-radius":"0px"}},vi=(e)=>{if(e.utility==="form-radio"&&!e.value)return{...Tt,"border-radius":"100%"}},wi=[fi,pi,mi,gi,bi,vi],yi=(e)=>{if(e.utility==="grid-cols"){let t={1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",none:"none",subgrid:"subgrid"};return e.value?{"grid-template-columns":t[e.value]||e.value}:void 0}},xi=(e)=>{if(e.utility==="col"){let t={auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"};return e.value?{"grid-column":t[e.value]||e.value}:void 0}if(e.utility==="col-span"&&e.value){let t={auto:"auto",1:"span 1 / span 1",2:"span 2 / span 2",3:"span 3 / span 3",4:"span 4 / span 4",5:"span 5 / span 5",6:"span 6 / span 6",7:"span 7 / span 7",8:"span 8 / span 8",9:"span 9 / span 9",10:"span 10 / span 10",11:"span 11 / span 11",12:"span 12 / span 12",full:"1 / -1"};if(e.arbitrary)return{"grid-column":`span ${e.value} / span ${e.value}`};return{"grid-column":t[e.value]||e.value}}if(e.utility==="col-start"&&e.value)return{"grid-column-start":e.value};if(e.utility==="col-end"&&e.value)return{"grid-column-end":e.value}},ki=(e)=>{if(e.utility==="grid-rows"){let t={1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",none:"none",subgrid:"subgrid"};return e.value?{"grid-template-rows":t[e.value]||e.value}:void 0}},Ci=(e)=>{if(e.utility==="row"){let t={auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"};return e.value?{"grid-row":t[e.value]||e.value}:void 0}if(e.utility==="row-span"&&e.value){let t={auto:"auto",1:"span 1 / span 1",2:"span 2 / span 2",3:"span 3 / span 3",4:"span 4 / span 4",5:"span 5 / span 5",6:"span 6 / span 6",full:"1 / -1"};if(e.arbitrary)return{"grid-row":`span ${e.value} / span ${e.value}`};return{"grid-row":t[e.value]||e.value}}if(e.utility==="row-start"&&e.value)return{"grid-row-start":e.value};if(e.utility==="row-end"&&e.value)return{"grid-row-end":e.value}},zi=(e)=>{if(e.utility==="grid-flow"&&e.value){let t={row:"row",col:"column",dense:"dense","row-dense":"row dense","col-dense":"column dense"};return t[e.value]?{"grid-auto-flow":t[e.value]}:void 0}return},ji=(e)=>{if(e.utility==="auto-cols"){let t={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};return e.value?{"grid-auto-columns":t[e.value]||e.value}:void 0}},Ei=(e)=>{if(e.utility==="auto-rows"){let t={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};return e.value?{"grid-auto-rows":t[e.value]||e.value}:void 0}};function Ne(e,t){let r=e.theme.spacing?.[t];if(r!==void 0)return r;if(/^\d+(?:\.\d+)?$/.test(t)){let i=Number.parseFloat(t);if(Number.isFinite(i))return`${i*0.25}rem`}return t}var Ni=(e,t)=>{if(e.utility==="gap"&&e.value)return{gap:Ne(t,e.value)};if(e.utility==="gap-x"&&e.value)return{"column-gap":Ne(t,e.value)};if(e.utility==="gap-y"&&e.value)return{"row-gap":Ne(t,e.value)}},Si=(e)=>{if(e.utility==="place"&&e.value&&e.value.startsWith("content-")){let t=e.value.replace("content-",""),r={center:"center",start:"start",end:"end",between:"space-between",around:"space-around",evenly:"space-evenly",stretch:"stretch"};return r[t]?{"place-content":r[t]}:void 0}return},Ai=(e)=>{if(e.utility==="place"&&e.value&&e.value.startsWith("items-")){let t=e.value.replace("items-",""),r={start:"start",end:"end",center:"center",stretch:"stretch"};return r[t]?{"place-items":r[t]}:void 0}return},Ri=(e)=>{if(e.utility==="place"&&e.value&&e.value.startsWith("self-")){let t=e.value.replace("self-",""),r={auto:"auto",start:"start",end:"end",center:"center",stretch:"stretch"};return r[t]?{"place-self":r[t]}:void 0}return},Fi=[yi,xi,ki,Ci,zi,ji,Ei,Ni,Si,Ai,Ri],se=new Map;function Oi(e){if(se.has(e))return se.get(e);let t=[ct(process.cwd(),"node_modules","@iconify-json",e,"icons.json"),ct(process.cwd(),"node_modules",".bun","@iconify-json",e,"icons.json")];for(let r of t)if(Wi(r))try{let i=JSON.parse(Ti(r,"utf-8"));return se.set(e,i),i}catch{}return se.set(e,null),null}function qi(e,t){let r=e.icons[t];if(r)return r;let i=e.aliases?.[t];if(i)return e.icons[i.parent]??null;return null}function Mi(e,t){let r=t.width??e.width??24,i=t.height??e.height??24,a=t.left??0,n=t.top??0;return`<svg xmlns='http://www.w3.org/2000/svg' viewBox='${a} ${n} ${r} ${i}' width='${r}' height='${i}'>${t.body}</svg>`}function Bi(e){return`url("data:image/svg+xml;utf8,${e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\?/g,"%3F").replace(/\s+/g," ")}")`}var Li=/^i-([a-z][a-z0-9]*)-(.+)$/,Pi=(e,t)=>{let r=e.raw.match(Li);if(!r)return;let[,i,a]=r,n=Oi(i);if(!n)return;let l=qi(n,a);if(!l)return;let s=Bi(Mi(n,l));return{display:"inline-block",width:"1em",height:"1em","background-color":"currentColor","-webkit-mask":`${s} no-repeat`,mask:`${s} no-repeat`,"-webkit-mask-size":"100% 100%","mask-size":"100% 100%","vertical-align":"-0.125em"}},me={none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Di=(e)=>{if(e.raw==="filter-none")return{filter:"none"};if(e.utility==="blur"){let t=e.value||"DEFAULT";return{filter:`blur(${me[t]??(e.value?/^\d/.test(e.value)?`${e.value}px`:e.value:me.DEFAULT)})`}}if(e.utility==="brightness"&&e.value)return{filter:`brightness(${Number(e.value)/100})`};if(e.utility==="contrast"&&e.value)return{filter:`contrast(${Number(e.value)/100})`};if(e.utility==="grayscale"&&e.value)return{filter:`grayscale(${Number(e.value)/100})`};if(e.utility==="invert"&&e.value)return{filter:`invert(${Number(e.value)/100})`};if(e.utility==="saturate"&&e.value)return{filter:`saturate(${Number(e.value)/100})`};if(e.utility==="sepia"&&e.value)return{filter:`sepia(${Number(e.value)/100})`};if(e.utility==="hue-rotate"&&e.value)return{filter:`hue-rotate(${e.value}deg)`};if(e.utility==="drop-shadow"){let t={sm:"drop-shadow(0 1px 1px rgb(0 0 0 / 0.05))",DEFAULT:"drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06))",md:"drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))",lg:"drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1))",xl:"drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08))","2xl":"drop-shadow(0 25px 25px rgb(0 0 0 / 0.15))",none:"drop-shadow(0 0 #0000)"};return{filter:e.value?t[e.value]||`drop-shadow(${e.value})`:t.DEFAULT}}},Yi=(e)=>{if(e.raw==="backdrop-filter-none")return{"backdrop-filter":"none"};if(e.utility==="backdrop-blur"){let t=e.value||"DEFAULT",r=me[t]??(e.value?/^\d/.test(e.value)?`${e.value}px`:e.value:me.DEFAULT);return{"-webkit-backdrop-filter":`blur(${r})`,"backdrop-filter":`blur(${r})`}}if(e.utility==="backdrop-brightness"&&e.value){let t=`brightness(${Number(e.value)/100})`;return{"-webkit-backdrop-filter":t,"backdrop-filter":t}}if(e.utility==="backdrop-contrast"&&e.value){let t=`contrast(${Number(e.value)/100})`;return{"-webkit-backdrop-filter":t,"backdrop-filter":t}}if(e.utility==="backdrop-grayscale"&&e.value){let t=`grayscale(${Number(e.value)/100})`;return{"-webkit-backdrop-filter":t,"backdrop-filter":t}}if(e.utility==="backdrop-invert"&&e.value){let t=`invert(${Number(e.value)/100})`;return{"-webkit-backdrop-filter":t,"backdrop-filter":t}}if(e.utility==="backdrop-saturate"&&e.value){let t=`saturate(${Number(e.value)/100})`;return{"-webkit-backdrop-filter":t,"backdrop-filter":t}}if(e.utility==="backdrop-sepia"&&e.value){let t=`sepia(${Number(e.value)/100})`;return{"-webkit-backdrop-filter":t,"backdrop-filter":t}}},Ii=(e)=>{let t={"border-collapse":"collapse","border-separate":"separate"};return t[e.raw]?{"border-collapse":t[e.raw]}:void 0},Qi=(e,t)=>{if(e.utility==="border-spacing"&&e.value){let r=t.theme.spacing[e.value]||e.value;return{"border-spacing":`${r} ${r}`}}if(e.utility==="border-spacing-x"&&e.value)return{"border-spacing":`${t.theme.spacing[e.value]||e.value} 0`};if(e.utility==="border-spacing-y"&&e.value)return{"border-spacing":`0 ${t.theme.spacing[e.value]||e.value}`}},Hi=(e)=>{if(e.utility==="table"&&e.value){let t={auto:"auto",fixed:"fixed"};return t[e.value]?{"table-layout":t[e.value]}:void 0}return},Ui=(e)=>{let t={"caption-top":"top","caption-bottom":"bottom"};return t[e.raw]?{"caption-side":t[e.raw]}:void 0},Zi=(e,t)=>{if(e.utility==="accent"&&e.value){let r=M(e.value,t);if(r)return{"accent-color":r}}},Xi=(e)=>{let t={"appearance-none":"none","appearance-auto":"auto"};return t[e.raw]?{appearance:t[e.raw]}:void 0},Vi=(e,t)=>{if(e.utility==="caret"&&e.value){let r=M(e.value,t);if(r)return{"caret-color":r}}},Ki=(e)=>{let t={"color-scheme-normal":"normal","color-scheme-light":"light","color-scheme-dark":"dark","color-scheme-light-dark":"light dark"};return t[e.raw]?{"color-scheme":t[e.raw]}:void 0},Gi=(e)=>{let t={"field-sizing-content":"content","field-sizing-fixed":"fixed"};return t[e.raw]?{"field-sizing":t[e.raw]}:void 0},_i=(e)=>{let t={"cursor-auto":"auto","cursor-default":"default","cursor-pointer":"pointer","cursor-wait":"wait","cursor-text":"text","cursor-move":"move","cursor-help":"help","cursor-not-allowed":"not-allowed","cursor-none":"none","cursor-context-menu":"context-menu","cursor-progress":"progress","cursor-cell":"cell","cursor-crosshair":"crosshair","cursor-vertical-text":"vertical-text","cursor-alias":"alias","cursor-copy":"copy","cursor-no-drop":"no-drop","cursor-grab":"grab","cursor-grabbing":"grabbing","cursor-all-scroll":"all-scroll","cursor-col-resize":"col-resize","cursor-row-resize":"row-resize","cursor-n-resize":"n-resize","cursor-e-resize":"e-resize","cursor-s-resize":"s-resize","cursor-w-resize":"w-resize","cursor-ne-resize":"ne-resize","cursor-nw-resize":"nw-resize","cursor-se-resize":"se-resize","cursor-sw-resize":"sw-resize","cursor-ew-resize":"ew-resize","cursor-ns-resize":"ns-resize","cursor-nesw-resize":"nesw-resize","cursor-nwse-resize":"nwse-resize","cursor-zoom-in":"zoom-in","cursor-zoom-out":"zoom-out"};return t[e.raw]?{cursor:t[e.raw]}:void 0},Ji=(e)=>{let t={"pointer-events-none":"none","pointer-events-auto":"auto"};return t[e.raw]?{"pointer-events":t[e.raw]}:void 0},$i=(e)=>{let t={"resize-none":"none",resize:"both","resize-y":"vertical","resize-x":"horizontal"};return t[e.raw]?{resize:t[e.raw]}:void 0},ea=(e)=>{let t={"scroll-auto":"auto","scroll-smooth":"smooth"};return t[e.raw]?{"scroll-behavior":t[e.raw]}:void 0},ta=(e,t)=>{let r={"scroll-m":["scroll-margin"],"scroll-mx":["scroll-margin-left","scroll-margin-right"],"scroll-my":["scroll-margin-top","scroll-margin-bottom"],"scroll-mt":["scroll-margin-top"],"scroll-mr":["scroll-margin-right"],"scroll-mb":["scroll-margin-bottom"],"scroll-ml":["scroll-margin-left"]}[e.utility];if(!r||!e.value)return;let i=t.theme.spacing[e.value]||e.value,a={};for(let n of r)a[n]=i;return a},ra=(e,t)=>{let r={"scroll-p":["scroll-padding"],"scroll-px":["scroll-padding-left","scroll-padding-right"],"scroll-py":["scroll-padding-top","scroll-padding-bottom"],"scroll-pt":["scroll-padding-top"],"scroll-pr":["scroll-padding-right"],"scroll-pb":["scroll-padding-bottom"],"scroll-pl":["scroll-padding-left"]}[e.utility];if(!r||!e.value)return;let i=t.theme.spacing[e.value]||e.value,a={};for(let n of r)a[n]=i;return a},ia=(e)=>{let t={"snap-none":"none","snap-x":"x mandatory","snap-y":"y mandatory","snap-both":"both mandatory","snap-mandatory":"mandatory","snap-proximity":"proximity"};if(t[e.raw])return e.raw.includes("mandatory")||e.raw.includes("proximity")?{"scroll-snap-type":t[e.raw]}:{"scroll-snap-type":t[e.raw]};let r={"snap-start":"start","snap-end":"end","snap-center":"center","snap-align-none":"none"};if(r[e.raw])return{"scroll-snap-align":r[e.raw]};let i={"snap-normal":"normal","snap-always":"always"};if(i[e.raw])return{"scroll-snap-stop":i[e.raw]}},aa=(e)=>{let t={"touch-auto":"auto","touch-none":"none","touch-pan-x":"pan-x","touch-pan-left":"pan-left","touch-pan-right":"pan-right","touch-pan-y":"pan-y","touch-pan-up":"pan-up","touch-pan-down":"pan-down","touch-pinch-zoom":"pinch-zoom","touch-manipulation":"manipulation"};return t[e.raw]?{"touch-action":t[e.raw]}:void 0},oa=(e)=>{let t={"select-none":"none","select-text":"text","select-all":"all","select-auto":"auto"};return t[e.raw]?{"user-select":t[e.raw]}:void 0},na=(e)=>{let t={"will-change-auto":"auto","will-change-scroll":"scroll-position","will-change-contents":"contents","will-change-transform":"transform"};return t[e.raw]?{"will-change":t[e.raw]}:void 0},la=(e,t)=>{if(e.utility==="fill"&&e.value){if(e.value==="none")return{fill:"none"};let r=M(e.value,t);if(r)return{fill:r}}},sa=(e,t)=>{if(e.utility==="stroke"&&e.value){if(e.value==="none")return{stroke:"none"};let r=M(e.value,t);if(r)return{stroke:r}}},ca=(e)=>{if(e.utility==="stroke"&&e.value)return{"stroke-width":{0:"0",1:"1",2:"2"}[e.value]||e.value}},ua=(e)=>{if(e.utility==="stroke-dasharray"&&e.value)return{"stroke-dasharray":e.value==="none"?"none":e.value}},da=(e)=>{if(e.utility==="stroke-dashoffset"&&e.value)return{"stroke-dashoffset":e.value}},ha=(e)=>{let t={"stroke-linecap-butt":"butt","stroke-linecap-round":"round","stroke-linecap-square":"square"};return t[e.raw]?{"stroke-linecap":t[e.raw]}:void 0},fa=(e)=>{let t={"stroke-linejoin-miter":"miter","stroke-linejoin-round":"round","stroke-linejoin-bevel":"bevel"};return t[e.raw]?{"stroke-linejoin":t[e.raw]}:void 0},pa=(e)=>{if(e.raw==="sr-only")return{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap","border-width":"0"};if(e.raw==="not-sr-only")return{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"};return},ma=(e)=>{let t={"forced-color-adjust-auto":"auto","forced-color-adjust-none":"none"};return t[e.raw]?{"forced-color-adjust":t[e.raw]}:void 0},ga=[Di,Yi,Ii,Qi,Hi,Ui,Zi,Xi,Vi,Ki,Gi,_i,Ji,$i,ea,ta,ra,ia,aa,oa,na,la,sa,ca,ua,da,ha,fa,pa,ma],ba=(e)=>{if(e.utility==="aspect"){let t={auto:"auto",square:"1 / 1",video:"16 / 9"};return e.value?{"aspect-ratio":t[e.value]||e.value}:void 0}},va=(e,t)=>{if(e.utility==="columns"&&e.value){let r={"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","10":"10","11":"11","12":"12",auto:"auto"},i={"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"};if(r[e.value])return{columns:r[e.value]};if(i[e.value])return{columns:i[e.value]};if(t.theme.spacing[e.value])return{columns:t.theme.spacing[e.value]};return{columns:e.value}}},wa=(e)=>{let t={"column-fill-auto":"auto","column-fill-balance":"balance","column-fill-balance-all":"balance-all"};return t[e.raw]?{"column-fill":t[e.raw]}:void 0},ya=(e,t)=>{if(e.utility==="column-gap"&&e.value)return{"column-gap":t.theme.spacing[e.value]||e.value}},xa=(e,t)=>{if(e.utility==="column-rule"&&e.value){let r={"0":"0px","1":"1px","2":"2px","4":"4px","8":"8px"};if(r[e.value])return{"column-rule-width":r[e.value]};let i=e.value.split("-");if(i.length===2){let[l,s]=i,o=t.theme.colors[l];if(typeof o==="object"&&o[s])return{"column-rule-color":o[s]}}let a=t.theme.colors[e.value];if(typeof a==="string")return{"column-rule-color":a};let n={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",hidden:"hidden",none:"none"};if(n[e.value])return{"column-rule-style":n[e.value]}}},ka=(e)=>{let t={"column-span-all":"all","column-span-none":"none"};return t[e.raw]?{"column-span":t[e.raw]}:void 0},Ca=(e)=>{return{"break-before-auto":{"break-before":"auto"},"break-before-avoid":{"break-before":"avoid"},"break-before-all":{"break-before":"all"},"break-before-avoid-page":{"break-before":"avoid-page"},"break-before-page":{"break-before":"page"},"break-after-auto":{"break-after":"auto"},"break-after-avoid":{"break-after":"avoid"},"break-after-all":{"break-after":"all"},"break-after-avoid-page":{"break-after":"avoid-page"},"break-after-page":{"break-after":"page"},"break-inside-auto":{"break-inside":"auto"},"break-inside-avoid":{"break-inside":"avoid"},"break-inside-avoid-page":{"break-inside":"avoid-page"},"break-inside-avoid-column":{"break-inside":"avoid-column"}}[e.raw]},za=(e)=>{let t={"box-decoration-clone":"clone","box-decoration-slice":"slice"};return t[e.raw]?{"box-decoration-break":t[e.raw]}:void 0},ja=(e)=>{let t={"box-border":"border-box","box-content":"content-box"};return t[e.raw]?{"box-sizing":t[e.raw]}:void 0},Ea=(e)=>{let t={"float-start":"inline-start","float-end":"inline-end","float-right":"right","float-left":"left","float-none":"none"};return t[e.raw]?{float:t[e.raw]}:void 0},Na=(e)=>{let t={"clear-start":"inline-start","clear-end":"inline-end","clear-left":"left","clear-right":"right","clear-both":"both","clear-none":"none"};return t[e.raw]?{clear:t[e.raw]}:void 0},Sa=(e)=>{let t={isolate:"isolate","isolation-auto":"auto"};return t[e.raw]?{isolation:t[e.raw]}:void 0},Aa=(e)=>{let t={"object-contain":"contain","object-cover":"cover","object-fill":"fill","object-none":"none","object-scale-down":"scale-down"};return t[e.raw]?{"object-fit":t[e.raw]}:void 0},Ra=(e)=>{let t={"object-bottom":"bottom","object-center":"center","object-left":"left","object-left-bottom":"left bottom","object-left-top":"left top","object-right":"right","object-right-bottom":"right bottom","object-right-top":"right top","object-top":"top"};return t[e.raw]?{"object-position":t[e.raw]}:void 0},Fa=(e)=>{if(e.utility==="overflow"){let t=["auto","hidden","clip","visible","scroll"];if(e.value&&t.includes(e.value))return{overflow:e.value}}if(e.utility==="overflow-x"||e.utility==="overflow-y"){let t=["auto","hidden","clip","visible","scroll"];if(e.value&&t.includes(e.value))return{[e.utility]:e.value}}},Wa=(e)=>{let t={"overscroll-auto":"auto","overscroll-contain":"contain","overscroll-none":"none","overscroll-x-auto":"auto","overscroll-x-contain":"contain","overscroll-x-none":"none","overscroll-y-auto":"auto","overscroll-y-contain":"contain","overscroll-y-none":"none"},r=e.raw.startsWith("overscroll-x")?"overscroll-behavior-x":e.raw.startsWith("overscroll-y")?"overscroll-behavior-y":"overscroll-behavior";return t[e.raw]?{[r]:t[e.raw]}:void 0},Ta=(e)=>{if(["static","fixed","absolute","relative","sticky"].includes(e.utility))return{position:e.utility}},Oa=(e,t)=>{let r={inset:["top","right","bottom","left"],"inset-x":["left","right"],"inset-y":["top","bottom"],top:["top"],right:["right"],bottom:["bottom"],left:["left"],start:["inset-inline-start"],end:["inset-inline-end"]}[e.utility];if(!r||!e.value)return;let i=(l)=>{if(l.includes("/")){let[s,o]=l.split("/").map(Number);if(!Number.isNaN(s)&&!Number.isNaN(o)&&o!==0)return`${s/o*100}%`}if(l==="full")return"100%";if(l==="auto")return"auto";return t.theme.spacing[l]||l},a;if(e.value.startsWith("-")){let l=e.value.slice(1),s=i(l);if(s.endsWith("%"))a=`${-Number.parseFloat(s)}%`;else a=s.startsWith("-")?s:`-${s}`}else a=i(e.value);let n={};for(let l of r)n[l]=a;return n},qa=(e)=>{let t={visible:"visible",invisible:"hidden",collapse:"collapse"};return t[e.utility]?{visibility:t[e.utility]}:void 0},Ma=(e)=>{if(e.utility==="z"&&e.value)return{"z-index":{0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",auto:"auto"}[e.value]||e.value}},Ba=[ba,va,wa,ya,xa,ka,Ca,za,ja,Ea,Na,Sa,Aa,Ra,Fa,Wa,Ta,Oa,qa,Ma],La=(e)=>{let t={transform:"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))","transform-cpu":"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))","transform-gpu":"translate3d(var(--hw-translate-x), var(--hw-translate-y), 0) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))","transform-none":"none"};return t[e.raw]?{transform:t[e.raw]}:void 0},Pa=(e)=>{if(e.utility==="scale"){if(!e.value)return{transform:"scale(1)"};if(e.arbitrary)return{transform:`scale(${e.value})`};return{transform:`scale(${Number(e.value)/100})`}}if(e.utility==="scale-x"){if(!e.value)return{transform:"scaleX(1)"};if(e.arbitrary)return{transform:`scaleX(${e.value})`};return{transform:`scaleX(${Number(e.value)/100})`}}if(e.utility==="scale-y"){if(!e.value)return{transform:"scaleY(1)"};if(e.arbitrary)return{transform:`scaleY(${e.value})`};return{transform:`scaleY(${Number(e.value)/100})`}}if(e.utility==="scale-z"){if(!e.value)return{transform:"scaleZ(1)"};if(e.arbitrary)return{transform:`scaleZ(${e.value})`};return{transform:`scaleZ(${Number(e.value)/100})`}}},Da=(e)=>{if(e.utility==="rotate"&&e.value)return{transform:`rotate(${e.arbitrary||e.value.includes("deg")||e.value.includes("rad")||e.value.includes("turn")?e.value:`${e.value}deg`})`};if(e.utility==="rotate-x"&&e.value)return{transform:`rotateX(${e.arbitrary||e.value.includes("deg")||e.value.includes("rad")||e.value.includes("turn")?e.value:`${e.value}deg`})`};if(e.utility==="rotate-y"&&e.value)return{transform:`rotateY(${e.arbitrary||e.value.includes("deg")||e.value.includes("rad")||e.value.includes("turn")?e.value:`${e.value}deg`})`};if(e.utility==="rotate-z"&&e.value)return{transform:`rotateZ(${e.arbitrary||e.value.includes("deg")||e.value.includes("rad")||e.value.includes("turn")?e.value:`${e.value}deg`})`}},Ya=(e,t)=>{let r=(i)=>{if(i.includes("/")){let[a,n]=i.split("/");return`${Number(a)/Number(n)*100}%`}if(i==="full")return"100%";if(i==="half")return"50%";return t.theme.spacing[i]||i};if(e.utility==="translate-x"&&e.value){let i;if(e.value.startsWith("-")){let a=e.value.slice(1);i=`-${r(a)}`}else i=r(e.value);return{transform:`translateX(${i})`}}if(e.utility==="translate-y"&&e.value){let i;if(e.value.startsWith("-")){let a=e.value.slice(1);i=`-${r(a)}`}else i=r(e.value);return{transform:`translateY(${i})`}}if(e.utility==="translate-z"&&e.value){let i;if(e.value.startsWith("-")){let a=e.value.slice(1);i=`-${r(a)}`}else i=r(e.value);return{transform:`translateZ(${i})`}}},Ia=(e)=>{if(e.utility==="skew-x"&&e.value)return{transform:`skewX(${e.arbitrary||e.value.includes("deg")||e.value.includes("rad")||e.value.includes("turn")?e.value:`${e.value}deg`})`};if(e.utility==="skew-y"&&e.value)return{transform:`skewY(${e.arbitrary||e.value.includes("deg")||e.value.includes("rad")||e.value.includes("turn")?e.value:`${e.value}deg`})`}},Qa=(e)=>{if(e.utility==="origin"&&e.value){if(e.arbitrary)return{"transform-origin":e.value.replace(/_/g," ")};let t={center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"};return t[e.value]?{"transform-origin":t[e.value]}:void 0}return},Ha=(e)=>{if(e.utility==="perspective"&&e.value){if(e.value==="none")return{perspective:"none"};if(e.arbitrary||e.value.includes("px")||e.value.includes("rem")||e.value.includes("em"))return{perspective:e.value};return{perspective:`${e.value}px`}}return},Ua=(e)=>{if(e.utility==="perspective-origin"&&e.value)return{"perspective-origin":{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"}[e.value]||e.value}},Za=(e)=>{let t={"backface-visible":"visible","backface-hidden":"hidden"};return t[e.raw]?{"backface-visibility":t[e.raw]}:void 0},Xa=(e)=>{let t={"transform-flat":"flat","transform-3d":"preserve-3d"};return t[e.raw]?{"transform-style":t[e.raw]}:void 0},Va=(e)=>{let t={"transition-none":"none","transition-all":"all",transition:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter","transition-colors":"color, background-color, border-color, text-decoration-color, fill, stroke","transition-opacity":"opacity","transition-shadow":"box-shadow","transition-transform":"transform"};return t[e.raw]?{"transition-property":t[e.raw]}:void 0},Ka=(e)=>{if(e.utility==="duration"&&e.value)return{"transition-duration":{"0":"0s","75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[e.value]||`${e.value}ms`}},Ga=(e)=>{let t={"ease-linear":"linear","ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"};return t[e.raw]?{"transition-timing-function":t[e.raw]}:void 0},_a=(e)=>{if(e.utility==="delay"&&e.value)return{"transition-delay":{"0":"0s","75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[e.value]||`${e.value}ms`}},Ja=(e)=>{let t={"transition-behavior-normal":"normal","transition-behavior-allow-discrete":"allow-discrete"};return t[e.raw]?{"transition-behavior":t[e.raw]}:void 0},$a=(e)=>{if(e.utility!=="animate")return;let t={none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"};if(e.arbitrary&&e.value)return{animation:e.value.replace(/_/g," ")};if(e.value&&t[e.value])return{animation:t[e.value]};return},eo=(e)=>{let t={"animate-running":"running","animate-paused":"paused"};return t[e.raw]?{"animation-play-state":t[e.raw]}:void 0},to=(e)=>{let t={"animate-normal":"normal","animate-reverse":"reverse","animate-alternate":"alternate","animate-alternate-reverse":"alternate-reverse"};return t[e.raw]?{"animation-direction":t[e.raw]}:void 0},ro=(e)=>{let t={"animate-fill-none":"none","animate-fill-forwards":"forwards","animate-fill-backwards":"backwards","animate-fill-both":"both"};return t[e.raw]?{"animation-fill-mode":t[e.raw]}:void 0},io=(e)=>{if(e.utility==="animate-iteration"&&e.value)return{"animation-iteration-count":e.value==="infinite"?"infinite":e.value}},ao=(e)=>{if(e.utility==="animate-duration"&&e.value)return{"animation-duration":{"75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[e.value]||`${e.value}ms`}},oo=(e)=>{if(e.utility==="animate-delay"&&e.value)return{"animation-delay":{"75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[e.value]||`${e.value}ms`}},no=(e)=>{let t={"animate-ease-linear":"linear","animate-ease-in":"cubic-bezier(0.4, 0, 1, 1)","animate-ease-out":"cubic-bezier(0, 0, 0.2, 1)","animate-ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"};return t[e.raw]?{"animation-timing-function":t[e.raw]}:void 0},lo=[La,Pa,Da,Ya,Ia,Qa,Ha,Ua,Za,Xa,Va,Ja,Ka,Ga,_a,$a,eo,to,ro,io,ao,oo,no],so=(e,t)=>{if(e.utility==="font"&&e.value){let r=t.theme.fontFamily[e.value];if(r)return{"font-family":r.join(", ")}}},co=(e)=>{return{antialiased:{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"subpixel-antialiased":{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}}[e.raw]},uo=(e)=>{let t={italic:"italic","not-italic":"normal"};return t[e.raw]?{"font-style":t[e.raw]}:void 0},ho=(e)=>{if(e.utility==="font-stretch"){let t=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"];return e.value&&t.includes(e.value)?{"font-stretch":e.value}:void 0}},fo=(e)=>{let t={"normal-nums":"normal",ordinal:"ordinal","slashed-zero":"slashed-zero","lining-nums":"lining-nums","oldstyle-nums":"oldstyle-nums","proportional-nums":"proportional-nums","tabular-nums":"tabular-nums","diagonal-fractions":"diagonal-fractions","stacked-fractions":"stacked-fractions"};return t[e.raw]?{"font-variant-numeric":t[e.raw]}:void 0},po=(e)=>{if(e.utility==="tracking"){let t={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"};if(!e.value)return;if(e.value.startsWith("-")){let r=e.value.slice(1);return{"letter-spacing":`-${t[r]||r}`}}return{"letter-spacing":t[e.value]||e.value}}},mo=(e)=>{if(e.utility==="line-clamp"&&e.value)return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e.value}},go=(e)=>{if(e.utility==="list-image"&&e.value)return{"list-style-image":e.value==="none"?"none":`url(${e.value})`}},bo=(e)=>{let t={"list-inside":"inside","list-outside":"outside"};return t[e.raw]?{"list-style-position":t[e.raw]}:void 0},vo=(e)=>{if(e.utility!=="list"||!e.value)return;let t={none:"none",disc:"disc",decimal:"decimal"};return t[e.value]?{"list-style-type":t[e.value]}:void 0},wo=(e,t)=>{let r={underline:"underline",overline:"overline","line-through":"line-through","no-underline":"none"};if(r[e.raw])return{"text-decoration-line":r[e.raw]};if(e.utility==="decoration"&&e.value){let i={solid:"solid",double:"double",dotted:"dotted",dashed:"dashed",wavy:"wavy"};if(i[e.value])return{"text-decoration-style":i[e.value]};let a={auto:"auto","from-font":"from-font","0":"0px","1":"1px","2":"2px","4":"4px","8":"8px"};if(a[e.value])return{"text-decoration-thickness":a[e.value]};if(e.arbitrary)return{"text-decoration-thickness":e.value};let n=M(e.value,t);if(n)return{"text-decoration-color":n};return{"text-decoration-color":e.value}}return},yo=(e)=>{if(e.utility==="underline-offset"&&e.value)return{"text-underline-offset":{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"}[e.value]||e.value}},xo=(e)=>{let t={uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize","normal-case":"none"};return t[e.raw]?{"text-transform":t[e.raw]}:void 0},ko=(e)=>{return{truncate:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},"text-ellipsis":{"text-overflow":"ellipsis"},"text-clip":{"text-overflow":"clip"}}[e.raw]},Co=(e)=>{let t={"text-wrap":"wrap","text-nowrap":"nowrap","text-balance":"balance","text-pretty":"pretty"};return t[e.raw]?{"text-wrap":t[e.raw]}:void 0},zo=(e,t)=>{if(e.utility==="indent"&&e.value){if(e.value.startsWith("-")){let r=e.value.slice(1);return{"text-indent":`-${t.theme.spacing[r]||r}`}}return{"text-indent":t.theme.spacing[e.value]||e.value}}},jo=(e)=>{let t={"align-baseline":"baseline","align-top":"top","align-middle":"middle","align-bottom":"bottom","align-text-top":"text-top","align-text-bottom":"text-bottom","align-sub":"sub","align-super":"super"};return t[e.raw]?{"vertical-align":t[e.raw]}:void 0},Eo=(e)=>{let t={"whitespace-normal":"normal","whitespace-nowrap":"nowrap","whitespace-pre":"pre","whitespace-pre-line":"pre-line","whitespace-pre-wrap":"pre-wrap","whitespace-break-spaces":"break-spaces"};return t[e.raw]?{"white-space":t[e.raw]}:void 0},No=(e)=>{if(e.raw==="break-normal")return{"overflow-wrap":"normal","word-break":"normal"};if(e.raw==="break-words")return{"overflow-wrap":"break-word"};let t={"break-all":"break-all","break-keep":"keep-all"};return t[e.raw]?{"word-break":t[e.raw]}:void 0},So=(e)=>{let t={"overflow-wrap-normal":"normal","overflow-wrap-break":"break-word","overflow-wrap-anywhere":"anywhere"};return t[e.raw]?{"overflow-wrap":t[e.raw]}:void 0},Ao=(e)=>{let t={"hyphens-none":"none","hyphens-manual":"manual","hyphens-auto":"auto"};return t[e.raw]?{hyphens:t[e.raw]}:void 0},Ro=(e)=>{if(e.utility==="content"&&e.value){let t={none:"none"};if(t[e.value]||e.value.startsWith('"')||e.value.startsWith("'"))return{content:t[e.value]||e.value};return{content:`"${e.value}"`}}},Fo=(e,t)=>{if(e.utility==="leading"){if(!e.value)return;return{"line-height":{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"}[e.value]||e.value}}},Wo=(e)=>{let t={"writing-horizontal-tb":"horizontal-tb","writing-vertical-rl":"vertical-rl","writing-vertical-lr":"vertical-lr"};return t[e.raw]?{"writing-mode":t[e.raw]}:void 0},To=(e)=>{let t={"text-orientation-mixed":"mixed","text-orientation-upright":"upright","text-orientation-sideways":"sideways"};return t[e.raw]?{"text-orientation":t[e.raw]}:void 0},Oo=(e)=>{let t={"direction-ltr":"ltr","direction-rtl":"rtl"};return t[e.raw]?{direction:t[e.raw]}:void 0},qo=(e)=>{if(e.utility==="text-emphasis"&&e.value)return{"text-emphasis":{none:"none",filled:"filled",open:"open",dot:"dot",circle:"circle","double-circle":"double-circle",triangle:"triangle",sesame:"sesame"}[e.value]||e.value}},Mo=(e,t)=>{if(e.utility==="text-emphasis-color"&&e.value){let r=e.value.split("-");if(r.length===2){let[a,n]=r,l=t.theme.colors[a];if(typeof l==="object"&&l[n])return{"text-emphasis-color":l[n]}}let i=t.theme.colors[e.value];if(typeof i==="string")return{"text-emphasis-color":i}}},Bo=(e,t)=>{if(e.utility==="word-spacing"&&e.value)return{"word-spacing":{tighter:"-0.05em",tight:"-0.025em",normal:"normal",wide:"0.025em",wider:"0.05em",widest:"0.1em"}[e.value]||t.theme.spacing[e.value]||e.value}},Lo=(e)=>{let t={"small-caps":"small-caps","all-small-caps":"all-small-caps","petite-caps":"petite-caps","all-petite-caps":"all-petite-caps",unicase:"unicase","titling-caps":"titling-caps","normal-caps":"normal"};return t[e.raw]?{"font-variant-caps":t[e.raw]}:void 0},Po=(e)=>{let t={"ligatures-normal":"normal","ligatures-none":"none","common-ligatures":"common-ligatures","no-common-ligatures":"no-common-ligatures","discretionary-ligatures":"discretionary-ligatures","no-discretionary-ligatures":"no-discretionary-ligatures","historical-ligatures":"historical-ligatures","no-historical-ligatures":"no-historical-ligatures",contextual:"contextual","no-contextual":"no-contextual"};return t[e.raw]?{"font-variant-ligatures":t[e.raw]}:void 0},Do=[so,co,uo,ho,fo,Lo,Po,po,Fo,mo,go,bo,vo,wo,yo,xo,ko,Co,zo,jo,Eo,No,So,Ao,Ro,Wo,To,Oo,qo,Mo,Bo],Ot=(e)=>{if(["block","inline-block","inline","flex","inline-flex","grid","inline-grid","hidden","none","contents","flow-root","list-item"].includes(e.utility)&&!e.value)return{display:e.utility==="hidden"?"none":e.utility};if(e.utility==="table"){if(!e.value)return{display:"table"};if(new Set(["cell","row","row-group","column","column-group","header-group","footer-group","caption"]).has(e.value))return{display:`table-${e.value}`}}if(e.utility==="inline"&&e.value==="table")return{display:"inline-table"};if(e.utility==="flow"&&e.value==="root")return{display:"flow-root"};if(e.utility==="list"&&e.value==="item")return{display:"list-item"}},qt=(e)=>{if(e.utility==="scrollbar"&&e.value){let t={auto:"auto",thin:"thin",none:"none"}[e.value];if(t)return{"scrollbar-width":t}}},Mt=(e)=>{if(e.utility==="content"){if(e.value==="none")return{content:"none"};if(e.value==="empty")return{content:'""'};if(e.arbitrary&&e.value)return{content:e.value}}},Bt=(e)=>{if(e.utility==="@container")return{"container-type":"inline-size"};if(e.utility==="@container-normal")return{"container-type":"normal"};if(e.utility.startsWith("@container/"))return{"container-type":"inline-size","container-name":e.utility.slice(11)}},Lt=(e)=>{let t={"flex-row":"row","flex-row-reverse":"row-reverse","flex-col":"column","flex-col-reverse":"column-reverse"};return t[e.utility]?{"flex-direction":t[e.utility]}:void 0},Pt=(e)=>{let t={"flex-wrap":"wrap","flex-wrap-reverse":"wrap-reverse","flex-nowrap":"nowrap"};return t[e.utility]?{"flex-wrap":t[e.utility]}:void 0},Dt=(e)=>{if(e.utility==="flex"||e.utility.startsWith("flex-")){let t={"flex-1":"1 1 0%","flex-auto":"1 1 auto","flex-initial":"0 1 auto","flex-none":"none"};if(t[e.utility])return{flex:t[e.utility]};if(e.utility==="flex"&&e.arbitrary&&e.value)return{flex:e.value.replace(/_/g," ")}}return},Yt=(e)=>{if(e.utility==="flex-grow"&&!e.value)return{"flex-grow":"1"};if(e.utility==="flex-grow"&&e.value)return{"flex-grow":e.value}},It=(e)=>{if(e.utility==="flex-shrink"&&!e.value)return{"flex-shrink":"1"};if(e.utility==="flex-shrink"&&e.value)return{"flex-shrink":e.value}},Qt=(e)=>{if(e.utility==="justify"&&e.value){let t={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"};if(t[e.value])return{"justify-content":t[e.value]};if(e.arbitrary)return{"justify-content":e.value}}return},Ht=(e)=>{if(e.utility==="items"&&e.value){let t={start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"};if(t[e.value])return{"align-items":t[e.value]};if(e.arbitrary)return{"align-items":e.value}}return},Ut=(e)=>{if(e.utility==="justify"&&e.value&&e.value.startsWith("items-")){let t={"items-start":"start","items-end":"end","items-center":"center","items-stretch":"stretch"};return t[e.value]?{"justify-items":t[e.value]}:void 0}return},Zt=(e)=>{if(e.utility==="content"&&e.value){let t={normal:"normal",center:"center",start:"flex-start",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly",baseline:"baseline",stretch:"stretch"};return t[e.value]?{"align-content":t[e.value]}:void 0}return},Xt=(e,t)=>{let r={p:["padding"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"],pt:["padding-top"],pr:["padding-right"],pb:["padding-bottom"],pl:["padding-left"],ps:["padding-inline-start"],pe:["padding-inline-end"],m:["margin"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],mt:["margin-top"],mr:["margin-right"],mb:["margin-bottom"],ml:["margin-left"],ms:["margin-inline-start"],me:["margin-inline-end"]}[e.utility];if(!r||!e.value)return;let i=(l)=>{let s=t.theme.spacing[l];if(s!==void 0)return s;if(/^\d+(?:\.\d+)?$/.test(l)){let o=Number.parseFloat(l);if(Number.isFinite(o))return`${o*0.25}rem`}return l},a;if(e.value.startsWith("-")){let l=e.value.slice(1);if(l==="0")a=t.theme.spacing[l]||"0";else{let s=i(l);a=s===l?e.value:`-${s}`}}else a=i(e.value);let n={};for(let l of r)n[l]=a;return n},Vt=(e,t)=>{if(e.utility==="w"&&e.value){let r={full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",auto:"auto",min:"min-content",max:"max-content",fit:"fit-content"};if(e.value.includes("/")){let[i,a]=e.value.split("/").map(Number);if(Number.isNaN(i)||Number.isNaN(a)||a===0)return;return{width:`${i/a*100}%`}}return{width:t.theme.spacing[e.value]||r[e.value]||e.value}}if(e.utility==="h"&&e.value){let r={full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",auto:"auto",min:"min-content",max:"max-content",fit:"fit-content"};if(e.value.includes("/")){let[i,a]=e.value.split("/").map(Number);if(Number.isNaN(i)||Number.isNaN(a)||a===0)return;return{height:`${i/a*100}%`}}return{height:t.theme.spacing[e.value]||r[e.value]||e.value}}if(e.utility==="size"&&e.value){let r={full:"100%",auto:"auto",min:"min-content",max:"max-content",fit:"fit-content"};if(e.value.includes("/")){let[a,n]=e.value.split("/").map(Number);if(Number.isNaN(a)||Number.isNaN(n)||n===0)return;let l=`${a/n*100}%`;return{width:l,height:l}}let i=t.theme.spacing[e.value]||r[e.value]||e.value;return{width:i,height:i}}return},P=null,ge=null,Yo={bg:"background-color",text:"color",border:"border-color"},Kt={current:"currentColor",transparent:"transparent",inherit:"inherit"};function Gt(e){let t=new Map;for(let[r,i]of Object.entries(e))if(typeof i==="string")t.set(r,i);else if(typeof i==="object"&&i!==null){for(let[a,n]of Object.entries(i))if(typeof n==="string")t.set(`${r}-${a}`,n)}return t}var _t=(e,t)=>{let r=Yo[e.utility];if(!r||!e.value)return;let i=e.value;if(e.arbitrary&&e.typeHint==="color")return{[r]:i};if(P===null||ge!==t.theme.colors)P=Gt(t.theme.colors),ge=t.theme.colors;let a=i.indexOf("/");if(a===-1){let o=P.get(i);if(o)return{[r]:o}}let n,l=i;if(a!==-1){l=i.slice(0,a);let o=i.slice(a+1);if(o.charCodeAt(0)===91&&o.charCodeAt(o.length-1)===93){let u=Number.parseFloat(o.slice(1,-1));if(Number.isNaN(u)||u<0||u>1)return;n=u}else{let u=Number.parseInt(o,10);if(Number.isNaN(u)||u<0||u>100)return;n=u/100}let c=P.get(l);if(c)return{[r]:D(c,n)}}let s=Kt[l];if(s)return{[r]:s};if((e.arbitrary||l&&l.charCodeAt(0)===91)&&l){let o=n!==void 0?D(l,n):l;return{[r]:o}}return};function D(e,t){let r=e;if(e.charCodeAt(0)===91&&e.charCodeAt(e.length-1)===93)r=e.slice(1,-1);if(r.charCodeAt(0)===35){let i=r.slice(1);if(i.length===3)i=i[0]+i[0]+i[1]+i[1]+i[2]+i[2];let a=Number.parseInt(i.slice(0,2),16),n=Number.parseInt(i.slice(2,4),16),l=Number.parseInt(i.slice(4,6),16);return`rgb(${a} ${n} ${l} / ${t})`}if(r.charCodeAt(0)===114){let i=r.match(/rgb\((\d+)\s+(\d+)\s+(\d+)/);if(i)return`rgb(${i[1]} ${i[2]} ${i[3]} / ${t})`}if(r.charCodeAt(0)===111){let i=r.match(/oklch\(([^)]+)\)/);if(i)return`oklch(${i[1]} / ${t})`}if(r.charCodeAt(0)===104){let i=r.match(/hsl\(([^)]+)\)/);if(i)return`hsl(${i[1]} / ${t})`}return r}function M(e,t){let r=e.indexOf("/"),i=e,a;if(r!==-1){i=e.slice(0,r);let o=e.slice(r+1);if(o.charCodeAt(0)===91&&o.charCodeAt(o.length-1)===93){if(a=Number.parseFloat(o.slice(1,-1)),Number.isNaN(a)||a<0||a>1)return}else{let c=Number.parseInt(o,10);if(Number.isNaN(c)||c<0||c>100)return;a=c/100}}let n={current:"currentColor",transparent:"transparent",inherit:"inherit",auto:"auto"};if(n[i])return a!==void 0?D(n[i],a):n[i];let l=t.theme.colors[i];if(typeof l==="string")return a!==void 0?D(l,a):l;let s=i.split("-");if(s.length>=2){let o=s[s.length-1],c=s.slice(0,-1).join("-"),u=t.theme.colors[c];if(typeof u==="object"&&u[o])return a!==void 0?D(u[o],a):u[o]}if(i.startsWith("var(")||i.startsWith("#")||i.startsWith("rgb(")||i.startsWith("rgba(")||i.startsWith("hsl(")||i.startsWith("hsla(")||i.startsWith("oklch(")||i.startsWith("oklab(")||i.startsWith("lab(")||i.startsWith("lch(")||i.startsWith("color(")||i.startsWith("color-mix("))return a!==void 0?D(i,a):i;return}var Jt=(e,t)=>{if(e.utility!=="placeholder"||!e.value)return;if(P===null||ge!==t.theme.colors)P=Gt(t.theme.colors),ge=t.theme.colors;let r=e.value,i=r.indexOf("/");if(i===-1){let n=P.get(r);if(n)return{properties:{color:n},pseudoElement:"::placeholder"}}else{let n=r.slice(0,i),l=r.slice(i+1),s;if(l.charCodeAt(0)===91&&l.charCodeAt(l.length-1)===93){let c=Number.parseFloat(l.slice(1,-1));if(Number.isNaN(c)||c<0||c>1)return;s=c}else{let c=Number.parseInt(l,10);if(Number.isNaN(c)||c<0||c>100)return;s=c/100}let o=P.get(n);if(o)return{properties:{color:D(o,s)},pseudoElement:"::placeholder"}}let a=Kt[e.value];if(a)return{properties:{color:a},pseudoElement:"::placeholder"};return},$t=(e,t)=>{if(e.utility==="text"&&e.value){let r=e.value,i,a=r.lastIndexOf("/");if(a!==-1&&!e.value.startsWith("[")&&!r.slice(a+1).includes("]"));if(a!==-1){let l=r.slice(0,a),s=r.slice(a+1);if(s&&(t.theme.fontSize[l]||e.arbitrary)){r=l;let o={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"};i=t.theme.lineHeight?.[s]??o[s]??s}}if(e.arbitrary){if(e.typeHint){if(e.typeHint==="color")return;let s={"font-size":r};if(i)s["line-height"]=i;return s}if(/^#|^rgb|^hsl|^hwb|^lab|^lch|^oklch|^oklab|^color\(|^var\(--/.test(r))return;let l={"font-size":r};if(i)l["line-height"]=i;return l}let n=t.theme.fontSize[r];if(n)return{"font-size":n[0],"line-height":i??n[1].lineHeight}}},er=(e)=>{if(e.utility==="font"&&e.value){if(e.arbitrary){let r=e.typeHint;if(r==="family-name"||r==="string")return{"font-family":e.value};return{"font-weight":e.value}}let t={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"};return t[e.value]?{"font-weight":t[e.value]}:void 0}return},tr=(e)=>{if(e.utility==="leading"&&e.value){if(e.arbitrary)return{"line-height":e.value};let t={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2","3":"0.75rem","4":"1rem","5":"1.25rem","6":"1.5rem","7":"1.75rem","8":"2rem","9":"2.25rem","10":"2.5rem"};return t[e.value]?{"line-height":t[e.value]}:void 0}return},rr=(e)=>{if(e.utility==="text"&&e.value){let t={left:"left",center:"center",right:"right",justify:"justify"};return t[e.value]?{"text-align":t[e.value]}:void 0}},ir=(e)=>{if(e.utility==="border"){if(!e.value)return{"border-width":"1px"};let t={0:"0px",2:"2px",4:"4px",8:"8px"};if(t[e.value])return{"border-width":t[e.value]};let r={t:"border-top-width",r:"border-right-width",b:"border-bottom-width",l:"border-left-width",s:"border-inline-start-width",e:"border-inline-end-width"};if(e.value==="x")return{"border-left-width":"1px","border-right-width":"1px"};if(e.value==="y")return{"border-top-width":"1px","border-bottom-width":"1px"};let i=r[e.value];if(typeof i==="string")return{[i]:"1px"};return}},ar=(e,t)=>{let r={"border-t":"border-top-width","border-r":"border-right-width","border-b":"border-bottom-width","border-l":"border-left-width","border-x":["border-left-width","border-right-width"],"border-y":["border-top-width","border-bottom-width"],"border-s":"border-inline-start-width","border-e":"border-inline-end-width"},i={"border-t":"border-top-color","border-r":"border-right-color","border-b":"border-bottom-color","border-l":"border-left-color","border-x":["border-left-color","border-right-color"],"border-y":["border-top-color","border-bottom-color"],"border-s":"border-inline-start-color","border-e":"border-inline-end-color"},a=r[e.utility];if(!a)return;let n={0:"0px",2:"2px",4:"4px",8:"8px"};if(!e.value){let s=a;if(Array.isArray(s))return s.reduce((o,c)=>({...o,[c]:"1px"}),{});return{[s]:"1px"}}if(e.arbitrary){let s=e.value,o=(/^#|^(?:rgb|rgba|hsl|hsla|oklch|oklab|lab|lch)\(|^(?:currentColor|transparent|inherit)$/i.test(s)?i[e.utility]:a)??a;if(Array.isArray(o))return o.reduce((c,u)=>({...c,[u]:s}),{});return{[o]:s}}if(n[e.value]){let s=a;if(Array.isArray(s))return s.reduce((o,c)=>({...o,[c]:n[e.value]}),{});return{[s]:n[e.value]}}let l=i[e.utility];if(l&&t){let s=e.value.split("-");if(s.length>=2){let c=s[s.length-1],u=s.slice(0,-1).join("-"),d=t.theme.colors[u];if(d&&typeof d==="object"&&d[c]){let h=l;if(Array.isArray(h))return h.reduce((f,w)=>({...f,[w]:d[c]}),{});return{[h]:d[c]}}}let o=t.theme.colors[e.value];if(typeof o==="string"){let c=l;if(Array.isArray(c))return c.reduce((u,d)=>({...u,[d]:o}),{});return{[c]:o}}if(e.value==="transparent"||e.value==="current"||e.value==="inherit"){let c=e.value==="current"?"currentColor":e.value,u=l;if(Array.isArray(u))return u.reduce((d,h)=>({...d,[h]:c}),{});return{[u]:c}}}return},or=(e,t)=>{if(e.utility==="rounded"){if(e.arbitrary&&e.value)return{"border-radius":e.value};let i=e.value?t.theme.borderRadius[e.value]:t.theme.borderRadius.DEFAULT;return i?{"border-radius":i}:void 0}if(e.utility==="rounded-s"&&e.value){let i=t.theme.borderRadius[e.value]||e.value;return{"border-start-start-radius":i,"border-end-start-radius":i}}if(e.utility==="rounded-e"&&e.value){let i=t.theme.borderRadius[e.value]||e.value;return{"border-start-end-radius":i,"border-end-end-radius":i}}if(e.utility==="rounded-ss"&&e.value)return{"border-start-start-radius":t.theme.borderRadius[e.value]||e.value};if(e.utility==="rounded-se"&&e.value)return{"border-start-end-radius":t.theme.borderRadius[e.value]||e.value};if(e.utility==="rounded-es"&&e.value)return{"border-end-start-radius":t.theme.borderRadius[e.value]||e.value};if(e.utility==="rounded-ee"&&e.value)return{"border-end-end-radius":t.theme.borderRadius[e.value]||e.value};let r={"rounded-t":["border-top-left-radius","border-top-right-radius"],"rounded-r":["border-top-right-radius","border-bottom-right-radius"],"rounded-b":["border-bottom-left-radius","border-bottom-right-radius"],"rounded-l":["border-top-left-radius","border-bottom-left-radius"],"rounded-tl":["border-top-left-radius"],"rounded-tr":["border-top-right-radius"],"rounded-bl":["border-bottom-left-radius"],"rounded-br":["border-bottom-right-radius"]}[e.utility];if(r&&e.value){let i=t.theme.borderRadius[e.value]||e.value,a={};for(let n of r)a[n]=i;return a}},Pe=[Pi,Xt,Vt,Zt,$t,rr,...Do,er,tr,...st,Jt,_t,...Xr,...Ba,Lt,Pt,Dt,Yt,It,Qt,Ht,Ut,...Fi,...lo,...st,...ga,...wi,ar,ir,or,Bt,qt,Mt,Ot];function De(e,t){let r={...e};for(let i in t){let a=t[i],n=r[i];if(a&&typeof a==="object"&&!Array.isArray(a)&&n&&typeof n==="object"&&!Array.isArray(n))r[i]=De(n,a);else if(a!==void 0)r[i]=a}return r}var Io={block:{display:"block"},"inline-block":{display:"inline-block"},inline:{display:"inline"},flex:{display:"flex"},"inline-flex":{display:"inline-flex"},grid:{display:"grid"},"inline-grid":{display:"inline-grid"},hidden:{display:"none"},none:{display:"none"}},Qo={"flex-row":{"flex-direction":"row"},"flex-row-reverse":{"flex-direction":"row-reverse"},"flex-col":{"flex-direction":"column"},"flex-col-reverse":{"flex-direction":"column-reverse"}},Ho={"flex-wrap":{"flex-wrap":"wrap"},"flex-wrap-reverse":{"flex-wrap":"wrap-reverse"},"flex-nowrap":{"flex-wrap":"nowrap"}},Uo={"flex-1":{flex:"1 1 0%"},"flex-auto":{flex:"1 1 auto"},"flex-initial":{flex:"0 1 auto"},"flex-none":{flex:"none"}},Zo={grow:{"flex-grow":"1"},"grow-0":{"flex-grow":"0"},shrink:{"flex-shrink":"1"},"shrink-0":{"flex-shrink":"0"}},Xo={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"},Vo={start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"},Ko={normal:"normal",center:"center",start:"flex-start",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly",baseline:"baseline",stretch:"stretch"},Go={auto:"auto",start:"flex-start",end:"flex-end",center:"center",stretch:"stretch",baseline:"baseline"},_o={"border-solid":{"border-style":"solid"},"border-dashed":{"border-style":"dashed"},"border-dotted":{"border-style":"dotted"},"border-double":{"border-style":"double"},"border-none":{"border-style":"none"}},Jo={transform:{transform:"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))"},"transform-cpu":{transform:"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))"},"transform-gpu":{transform:"translate3d(var(--hw-translate-x), var(--hw-translate-y), 0) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))"},"transform-none":{transform:"none"}},$o={"transition-none":{"transition-property":"none"},"transition-all":{"transition-property":"all"},transition:{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter"},"transition-colors":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke"},"transition-opacity":{"transition-property":"opacity"},"transition-shadow":{"transition-property":"box-shadow"},"transition-transform":{"transition-property":"transform"}},en={"ease-linear":{"transition-timing-function":"linear"},"ease-in":{"transition-timing-function":"cubic-bezier(0.4, 0, 1, 1)"},"ease-out":{"transition-timing-function":"cubic-bezier(0, 0, 0.2, 1)"},"ease-in-out":{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}},tn={"animate-none":{animation:"none"},"animate-spin":{animation:"spin 1s linear infinite"},"animate-ping":{animation:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},"animate-pulse":{animation:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},"animate-bounce":{animation:"bounce 1s infinite"}},rn={spin:`@keyframes spin {
|
|
3
|
+
from { transform: rotate(0deg); }
|
|
4
|
+
to { transform: rotate(360deg); }
|
|
5
|
+
}`,ping:`@keyframes ping {
|
|
6
|
+
75%, 100% { transform: scale(2); opacity: 0; }
|
|
7
|
+
}`,pulse:`@keyframes pulse {
|
|
8
|
+
0%, 100% { opacity: 1; }
|
|
9
|
+
50% { opacity: .5; }
|
|
10
|
+
}`,bounce:`@keyframes bounce {
|
|
11
|
+
0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
|
|
12
|
+
50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
|
|
13
|
+
}`},an={center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},on={"1":"repeat(1, minmax(0, 1fr))","2":"repeat(2, minmax(0, 1fr))","3":"repeat(3, minmax(0, 1fr))","4":"repeat(4, minmax(0, 1fr))","5":"repeat(5, minmax(0, 1fr))","6":"repeat(6, minmax(0, 1fr))","7":"repeat(7, minmax(0, 1fr))","8":"repeat(8, minmax(0, 1fr))","9":"repeat(9, minmax(0, 1fr))","10":"repeat(10, minmax(0, 1fr))","11":"repeat(11, minmax(0, 1fr))","12":"repeat(12, minmax(0, 1fr))",none:"none",subgrid:"subgrid"},nn={"1":"repeat(1, minmax(0, 1fr))","2":"repeat(2, minmax(0, 1fr))","3":"repeat(3, minmax(0, 1fr))","4":"repeat(4, minmax(0, 1fr))","5":"repeat(5, minmax(0, 1fr))","6":"repeat(6, minmax(0, 1fr))",none:"none",subgrid:"subgrid"},ln={auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},sn={auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},cn={row:"row",col:"column",dense:"dense","row-dense":"row dense","col-dense":"column dense"},ut={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},Se={center:"center",start:"start",end:"end",between:"space-between",around:"space-around",evenly:"space-evenly",stretch:"stretch"},un={ring:{"box-shadow":"0 0 0 3px var(--hw-ring-color, rgba(59, 130, 246, 0.5))"},"ring-0":{"box-shadow":"0 0 0 0px var(--hw-ring-color, rgba(59, 130, 246, 0.5))"},"ring-1":{"box-shadow":"0 0 0 1px var(--hw-ring-color, rgba(59, 130, 246, 0.5))"},"ring-2":{"box-shadow":"0 0 0 2px var(--hw-ring-color, rgba(59, 130, 246, 0.5))"},"ring-4":{"box-shadow":"0 0 0 4px var(--hw-ring-color, rgba(59, 130, 246, 0.5))"},"ring-8":{"box-shadow":"0 0 0 8px var(--hw-ring-color, rgba(59, 130, 246, 0.5))"},"ring-inset":{"--hw-ring-inset":"inset"}},dn={"shadow-sm":{"--hw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--hw-shadow-colored":"0 1px 2px 0 var(--hw-shadow-color)","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"},shadow:{"--hw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--hw-shadow-colored":"0 1px 3px 0 var(--hw-shadow-color), 0 1px 2px -1px var(--hw-shadow-color)","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"},"shadow-md":{"--hw-shadow":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","--hw-shadow-colored":"0 4px 6px -1px var(--hw-shadow-color), 0 2px 4px -2px var(--hw-shadow-color)","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"},"shadow-lg":{"--hw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--hw-shadow-colored":"0 10px 15px -3px var(--hw-shadow-color), 0 4px 6px -4px var(--hw-shadow-color)","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"},"shadow-xl":{"--hw-shadow":"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","--hw-shadow-colored":"0 20px 25px -5px var(--hw-shadow-color), 0 8px 10px -6px var(--hw-shadow-color)","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"},"shadow-2xl":{"--hw-shadow":"0 25px 50px -12px rgb(0 0 0 / 0.25)","--hw-shadow-colored":"0 25px 50px -12px var(--hw-shadow-color)","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"},"shadow-inner":{"--hw-shadow":"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)","--hw-shadow-colored":"inset 0 2px 4px 0 var(--hw-shadow-color)","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"},"shadow-none":{"--hw-shadow":"0 0 #0000","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"}},hn={"rounded-none":{"border-radius":"0px"},"rounded-sm":{"border-radius":"0.125rem"},rounded:{"border-radius":"0.25rem"},"rounded-md":{"border-radius":"0.375rem"},"rounded-lg":{"border-radius":"0.5rem"},"rounded-xl":{"border-radius":"0.75rem"},"rounded-2xl":{"border-radius":"1rem"},"rounded-3xl":{"border-radius":"1.5rem"},"rounded-full":{"border-radius":"9999px"},"rounded-t-none":{"border-top-left-radius":"0px","border-top-right-radius":"0px"},"rounded-t-sm":{"border-top-left-radius":"0.125rem","border-top-right-radius":"0.125rem"},"rounded-t-lg":{"border-top-left-radius":"0.5rem","border-top-right-radius":"0.5rem"},"rounded-r-lg":{"border-top-right-radius":"0.5rem","border-bottom-right-radius":"0.5rem"},"rounded-b-lg":{"border-bottom-left-radius":"0.5rem","border-bottom-right-radius":"0.5rem"},"rounded-l-lg":{"border-top-left-radius":"0.5rem","border-bottom-left-radius":"0.5rem"},"rounded-tl-lg":{"border-top-left-radius":"0.5rem"},"rounded-tr-lg":{"border-top-right-radius":"0.5rem"},"rounded-br-lg":{"border-bottom-right-radius":"0.5rem"},"rounded-bl-lg":{"border-bottom-left-radius":"0.5rem"}},fn={border:{"border-width":"1px"},"border-0":{"border-width":"0px"},"border-2":{"border-width":"2px"},"border-4":{"border-width":"4px"},"border-8":{"border-width":"8px"},"border-t":{"border-top-width":"1px"},"border-r":{"border-right-width":"1px"},"border-b":{"border-bottom-width":"1px"},"border-l":{"border-left-width":"1px"},"border-t-0":{"border-top-width":"0px"},"border-r-0":{"border-right-width":"0px"},"border-b-0":{"border-bottom-width":"0px"},"border-l-0":{"border-left-width":"0px"},"border-t-2":{"border-top-width":"2px"},"border-r-2":{"border-right-width":"2px"},"border-b-2":{"border-bottom-width":"2px"},"border-l-2":{"border-left-width":"2px"},"border-t-4":{"border-top-width":"4px"},"border-r-4":{"border-right-width":"4px"},"border-b-4":{"border-bottom-width":"4px"},"border-l-4":{"border-left-width":"4px"},"border-x":{"border-left-width":"1px","border-right-width":"1px"},"border-y":{"border-top-width":"1px","border-bottom-width":"1px"},"border-x-0":{"border-left-width":"0px","border-right-width":"0px"},"border-y-0":{"border-top-width":"0px","border-bottom-width":"0px"},"border-x-2":{"border-left-width":"2px","border-right-width":"2px"},"border-y-2":{"border-top-width":"2px","border-bottom-width":"2px"}},pn={"ring-offset-0":{"--hw-ring-offset-width":"0px"},"ring-offset-1":{"--hw-ring-offset-width":"1px"},"ring-offset-2":{"--hw-ring-offset-width":"2px"},"ring-offset-4":{"--hw-ring-offset-width":"4px"},"ring-offset-8":{"--hw-ring-offset-width":"8px"}},mn={"opacity-0":{opacity:"0"},"opacity-5":{opacity:"0.05"},"opacity-10":{opacity:"0.1"},"opacity-20":{opacity:"0.2"},"opacity-25":{opacity:"0.25"},"opacity-30":{opacity:"0.3"},"opacity-40":{opacity:"0.4"},"opacity-50":{opacity:"0.5"},"opacity-60":{opacity:"0.6"},"opacity-70":{opacity:"0.7"},"opacity-75":{opacity:"0.75"},"opacity-80":{opacity:"0.8"},"opacity-90":{opacity:"0.9"},"opacity-95":{opacity:"0.95"},"opacity-100":{opacity:"1"}},E={"0":"0",px:"1px","0.5":"0.125rem","1":"0.25rem","1.5":"0.375rem","2":"0.5rem","2.5":"0.625rem","3":"0.75rem","3.5":"0.875rem","4":"1rem","5":"1.25rem","6":"1.5rem","7":"1.75rem","8":"2rem","9":"2.25rem","10":"2.5rem","11":"2.75rem","12":"3rem","14":"3.5rem","16":"4rem","20":"5rem","24":"6rem","28":"7rem","32":"8rem","36":"9rem","40":"10rem","44":"11rem","48":"12rem","52":"13rem","56":"14rem","60":"15rem","64":"16rem","72":"18rem","80":"20rem","96":"24rem"},dt={...E,auto:"auto",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content","1/2":"50%","1/3":"33.33333333333333%","2/3":"66.66666666666666%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666666666666664%","2/6":"33.33333333333333%","3/6":"50%","4/6":"66.66666666666666%","5/6":"83.33333333333334%"},Ae={"gray-50":"oklch(98.5% 0.002 247.839)","gray-100":"oklch(96.7% 0.003 264.542)","gray-200":"oklch(92.8% 0.006 264.531)","gray-300":"oklch(87.2% 0.01 258.338)","gray-400":"oklch(70.7% 0.022 261.325)","gray-500":"oklch(55.1% 0.027 264.364)","gray-600":"oklch(44.6% 0.03 256.802)","gray-700":"oklch(37.3% 0.034 259.733)","gray-800":"oklch(27.8% 0.033 256.848)","gray-900":"oklch(21% 0.034 264.665)","gray-950":"oklch(13% 0.028 261.692)","red-50":"oklch(97.1% 0.013 17.38)","red-100":"oklch(93.6% 0.032 17.717)","red-200":"oklch(88.5% 0.062 18.334)","red-300":"oklch(80.8% 0.114 19.571)","red-400":"oklch(70.4% 0.191 22.216)","red-500":"oklch(63.7% 0.237 25.331)","red-600":"oklch(57.7% 0.245 27.325)","red-700":"oklch(50.5% 0.213 27.518)","red-800":"oklch(44.4% 0.177 26.899)","red-900":"oklch(39.6% 0.141 25.723)","red-950":"oklch(25.8% 0.092 26.042)","blue-50":"oklch(97% 0.014 254.604)","blue-100":"oklch(93.2% 0.032 255.585)","blue-200":"oklch(88.2% 0.059 254.128)","blue-300":"oklch(80.9% 0.105 251.813)","blue-400":"oklch(70.7% 0.165 254.624)","blue-500":"oklch(62.3% 0.214 259.815)","blue-600":"oklch(54.6% 0.245 262.881)","blue-700":"oklch(48.8% 0.243 264.376)","blue-800":"oklch(42.4% 0.199 265.638)","blue-900":"oklch(37.9% 0.146 265.522)","blue-950":"oklch(28.2% 0.091 267.935)","green-50":"oklch(98.2% 0.018 155.826)","green-100":"oklch(96.2% 0.044 156.743)","green-200":"oklch(92.5% 0.084 155.995)","green-300":"oklch(87.1% 0.15 154.449)","green-400":"oklch(79.2% 0.209 151.711)","green-500":"oklch(72.3% 0.219 149.579)","green-600":"oklch(62.7% 0.194 149.214)","green-700":"oklch(52.7% 0.154 150.069)","green-800":"oklch(44.8% 0.119 151.328)","green-900":"oklch(39.3% 0.095 152.535)","green-950":"oklch(26.6% 0.065 152.934)","yellow-50":"oklch(98.7% 0.026 102.212)","yellow-100":"oklch(97.3% 0.071 103.193)","yellow-200":"oklch(94.5% 0.129 101.54)","yellow-300":"oklch(90.5% 0.182 98.111)","yellow-400":"oklch(85.2% 0.199 91.936)","yellow-500":"oklch(79.5% 0.184 86.047)","yellow-600":"oklch(68.1% 0.162 75.834)","yellow-700":"oklch(55.4% 0.135 66.442)","yellow-800":"oklch(47.6% 0.114 61.907)","yellow-900":"oklch(42.1% 0.095 57.708)","yellow-950":"oklch(28.6% 0.066 53.813)","purple-50":"oklch(97.7% 0.014 308.299)","purple-100":"oklch(94.6% 0.033 307.174)","purple-200":"oklch(90.2% 0.063 306.703)","purple-300":"oklch(82.7% 0.119 306.383)","purple-400":"oklch(71.4% 0.203 305.504)","purple-500":"oklch(62.7% 0.265 303.9)","purple-600":"oklch(55.8% 0.288 302.321)","purple-700":"oklch(49.6% 0.265 301.924)","purple-800":"oklch(43.8% 0.218 303.724)","purple-900":"oklch(38.1% 0.176 304.987)","purple-950":"oklch(29.1% 0.149 302.717)","pink-50":"oklch(97.1% 0.014 343.198)","pink-100":"oklch(94.8% 0.028 342.258)","pink-200":"oklch(89.9% 0.061 343.231)","pink-300":"oklch(82.3% 0.116 346.018)","pink-400":"oklch(71.8% 0.202 349.761)","pink-500":"oklch(65.6% 0.241 354.308)","pink-600":"oklch(59.2% 0.249 0.584)","pink-700":"oklch(52.5% 0.223 3.958)","pink-800":"oklch(45.9% 0.187 3.815)","pink-900":"oklch(40.8% 0.153 2.432)","pink-950":"oklch(28.4% 0.109 3.907)","indigo-50":"oklch(96.2% 0.018 272.314)","indigo-100":"oklch(93% 0.034 272.788)","indigo-200":"oklch(87% 0.065 274.039)","indigo-300":"oklch(78.5% 0.115 274.713)","indigo-400":"oklch(67.3% 0.182 276.935)","indigo-500":"oklch(58.5% 0.233 277.117)","indigo-600":"oklch(51.1% 0.262 276.966)","indigo-700":"oklch(45.7% 0.24 277.023)","indigo-800":"oklch(39.8% 0.195 277.366)","indigo-900":"oklch(35.9% 0.144 278.697)","indigo-950":"oklch(26.9% 0.096 280.79)","cyan-50":"oklch(98.4% 0.019 200.873)","cyan-100":"oklch(95.6% 0.045 203.388)","cyan-200":"oklch(91.7% 0.08 205.041)","cyan-300":"oklch(86.5% 0.127 207.078)","cyan-400":"oklch(78.9% 0.154 211.53)","cyan-500":"oklch(71.5% 0.143 215.221)","cyan-600":"oklch(60.9% 0.126 221.723)","cyan-700":"oklch(52% 0.105 223.128)","cyan-800":"oklch(45% 0.085 224.283)","cyan-900":"oklch(39.8% 0.07 227.392)","cyan-950":"oklch(30.2% 0.056 229.695)","emerald-50":"oklch(97.9% 0.021 166.113)","emerald-100":"oklch(95% 0.052 163.051)","emerald-200":"oklch(90.5% 0.093 164.15)","emerald-300":"oklch(84.5% 0.143 164.978)","emerald-400":"oklch(76.5% 0.177 163.223)","emerald-500":"oklch(69.6% 0.17 162.48)","emerald-600":"oklch(59.6% 0.145 163.225)","emerald-700":"oklch(50.8% 0.118 165.612)","emerald-800":"oklch(43.2% 0.095 166.913)","emerald-900":"oklch(37.8% 0.077 168.94)","emerald-950":"oklch(26.2% 0.051 172.552)",white:"#fff",black:"#000",transparent:"transparent",current:"currentColor"},gn={"font-thin":{"font-weight":"100"},"font-extralight":{"font-weight":"200"},"font-light":{"font-weight":"300"},"font-normal":{"font-weight":"400"},"font-medium":{"font-weight":"500"},"font-semibold":{"font-weight":"600"},"font-bold":{"font-weight":"700"},"font-extrabold":{"font-weight":"800"},"font-black":{"font-weight":"900"}},bn={italic:{"font-style":"italic"},"not-italic":{"font-style":"normal"}},vn={uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},"normal-case":{"text-transform":"none"}},wn={underline:{"text-decoration-line":"underline"},overline:{"text-decoration-line":"overline"},"line-through":{"text-decoration-line":"line-through"},"no-underline":{"text-decoration-line":"none"}},yn={"decoration-solid":{"text-decoration-style":"solid"},"decoration-double":{"text-decoration-style":"double"},"decoration-dotted":{"text-decoration-style":"dotted"},"decoration-dashed":{"text-decoration-style":"dashed"},"decoration-wavy":{"text-decoration-style":"wavy"}},xn={"text-left":{"text-align":"left"},"text-center":{"text-align":"center"},"text-right":{"text-align":"right"},"text-justify":{"text-align":"justify"},"text-start":{"text-align":"start"},"text-end":{"text-align":"end"}},kn={truncate:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},"text-ellipsis":{"text-overflow":"ellipsis"},"text-clip":{"text-overflow":"clip"}},Cn={"text-wrap":{"text-wrap":"wrap"},"text-nowrap":{"text-wrap":"nowrap"},"text-balance":{"text-wrap":"balance"},"text-pretty":{"text-wrap":"pretty"}},zn={"whitespace-normal":{"white-space":"normal"},"whitespace-nowrap":{"white-space":"nowrap"},"whitespace-pre":{"white-space":"pre"},"whitespace-pre-line":{"white-space":"pre-line"},"whitespace-pre-wrap":{"white-space":"pre-wrap"},"whitespace-break-spaces":{"white-space":"break-spaces"}},jn={"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"}},En={"align-baseline":{"vertical-align":"baseline"},"align-top":{"vertical-align":"top"},"align-middle":{"vertical-align":"middle"},"align-bottom":{"vertical-align":"bottom"},"align-text-top":{"vertical-align":"text-top"},"align-text-bottom":{"vertical-align":"text-bottom"},"align-sub":{"vertical-align":"sub"},"align-super":{"vertical-align":"super"}},Nn={"list-none":{"list-style-type":"none"},"list-disc":{"list-style-type":"disc"},"list-decimal":{"list-style-type":"decimal"},"list-inside":{"list-style-position":"inside"},"list-outside":{"list-style-position":"outside"}},Sn={"hyphens-none":{hyphens:"none"},"hyphens-manual":{hyphens:"manual"},"hyphens-auto":{hyphens:"auto"}},An={static:{position:"static"},fixed:{position:"fixed"},absolute:{position:"absolute"},relative:{position:"relative"},sticky:{position:"sticky"}},Rn={visible:{visibility:"visible"},invisible:{visibility:"hidden"},collapse:{visibility:"collapse"}},Fn={"float-left":{float:"left"},"float-right":{float:"right"},"float-none":{float:"none"},"float-start":{float:"inline-start"},"float-end":{float:"inline-end"}},Wn={"clear-left":{clear:"left"},"clear-right":{clear:"right"},"clear-both":{clear:"both"},"clear-none":{clear:"none"},"clear-start":{clear:"inline-start"},"clear-end":{clear:"inline-end"}},Tn={isolate:{isolation:"isolate"},"isolation-auto":{isolation:"auto"}},On={"object-contain":{"object-fit":"contain"},"object-cover":{"object-fit":"cover"},"object-fill":{"object-fit":"fill"},"object-none":{"object-fit":"none"},"object-scale-down":{"object-fit":"scale-down"}},qn={"object-bottom":{"object-position":"bottom"},"object-center":{"object-position":"center"},"object-left":{"object-position":"left"},"object-left-bottom":{"object-position":"left bottom"},"object-left-top":{"object-position":"left top"},"object-right":{"object-position":"right"},"object-right-bottom":{"object-position":"right bottom"},"object-right-top":{"object-position":"right top"},"object-top":{"object-position":"top"}},Mn={"overflow-auto":{overflow:"auto"},"overflow-hidden":{overflow:"hidden"},"overflow-clip":{overflow:"clip"},"overflow-visible":{overflow:"visible"},"overflow-scroll":{overflow:"scroll"},"overflow-x-auto":{"overflow-x":"auto"},"overflow-x-hidden":{"overflow-x":"hidden"},"overflow-x-clip":{"overflow-x":"clip"},"overflow-x-visible":{"overflow-x":"visible"},"overflow-x-scroll":{"overflow-x":"scroll"},"overflow-y-auto":{"overflow-y":"auto"},"overflow-y-hidden":{"overflow-y":"hidden"},"overflow-y-clip":{"overflow-y":"clip"},"overflow-y-visible":{"overflow-y":"visible"},"overflow-y-scroll":{"overflow-y":"scroll"}},Bn={"overscroll-auto":{"overscroll-behavior":"auto"},"overscroll-contain":{"overscroll-behavior":"contain"},"overscroll-none":{"overscroll-behavior":"none"},"overscroll-x-auto":{"overscroll-behavior-x":"auto"},"overscroll-x-contain":{"overscroll-behavior-x":"contain"},"overscroll-x-none":{"overscroll-behavior-x":"none"},"overscroll-y-auto":{"overscroll-behavior-y":"auto"},"overscroll-y-contain":{"overscroll-behavior-y":"contain"},"overscroll-y-none":{"overscroll-behavior-y":"none"}},Ln={"z-0":{"z-index":"0"},"z-10":{"z-index":"10"},"z-20":{"z-index":"20"},"z-30":{"z-index":"30"},"z-40":{"z-index":"40"},"z-50":{"z-index":"50"},"z-auto":{"z-index":"auto"}},Pn={"aspect-auto":{"aspect-ratio":"auto"},"aspect-square":{"aspect-ratio":"1 / 1"},"aspect-video":{"aspect-ratio":"16 / 9"}},Dn={"box-border":{"box-sizing":"border-box"},"box-content":{"box-sizing":"content-box"}},Yn={"box-decoration-clone":{"box-decoration-break":"clone"},"box-decoration-slice":{"box-decoration-break":"slice"}},In={"bg-fixed":{"background-attachment":"fixed"},"bg-local":{"background-attachment":"local"},"bg-scroll":{"background-attachment":"scroll"}},Qn={"bg-clip-border":{"background-clip":"border-box"},"bg-clip-padding":{"background-clip":"padding-box"},"bg-clip-content":{"background-clip":"content-box"},"bg-clip-text":{"background-clip":"text","-webkit-background-clip":"text"}},Hn={"bg-origin-border":{"background-origin":"border-box"},"bg-origin-padding":{"background-origin":"padding-box"},"bg-origin-content":{"background-origin":"content-box"}},Un={"bg-bottom":{"background-position":"bottom"},"bg-center":{"background-position":"center"},"bg-left":{"background-position":"left"},"bg-left-bottom":{"background-position":"left bottom"},"bg-left-top":{"background-position":"left top"},"bg-right":{"background-position":"right"},"bg-right-bottom":{"background-position":"right bottom"},"bg-right-top":{"background-position":"right top"},"bg-top":{"background-position":"top"}},Zn={"bg-repeat":{"background-repeat":"repeat"},"bg-no-repeat":{"background-repeat":"no-repeat"},"bg-repeat-x":{"background-repeat":"repeat-x"},"bg-repeat-y":{"background-repeat":"repeat-y"},"bg-repeat-round":{"background-repeat":"round"},"bg-repeat-space":{"background-repeat":"space"}},Xn={"bg-auto":{"background-size":"auto"},"bg-cover":{"background-size":"cover"},"bg-contain":{"background-size":"contain"}},Vn={"bg-none":{"background-image":"none"},"bg-gradient-to-t":{"background-image":"linear-gradient(to top, var(--hw-gradient-stops))"},"bg-gradient-to-tr":{"background-image":"linear-gradient(to top right, var(--hw-gradient-stops))"},"bg-gradient-to-r":{"background-image":"linear-gradient(to right, var(--hw-gradient-stops))"},"bg-gradient-to-br":{"background-image":"linear-gradient(to bottom right, var(--hw-gradient-stops))"},"bg-gradient-to-b":{"background-image":"linear-gradient(to bottom, var(--hw-gradient-stops))"},"bg-gradient-to-bl":{"background-image":"linear-gradient(to bottom left, var(--hw-gradient-stops))"},"bg-gradient-to-l":{"background-image":"linear-gradient(to left, var(--hw-gradient-stops))"},"bg-gradient-to-tl":{"background-image":"linear-gradient(to top left, var(--hw-gradient-stops))"},"bg-radial":{"background-image":"radial-gradient(var(--hw-gradient-stops))"},"bg-radial-at-t":{"background-image":"radial-gradient(at top, var(--hw-gradient-stops))"},"bg-radial-at-tr":{"background-image":"radial-gradient(at top right, var(--hw-gradient-stops))"},"bg-radial-at-r":{"background-image":"radial-gradient(at right, var(--hw-gradient-stops))"},"bg-radial-at-br":{"background-image":"radial-gradient(at bottom right, var(--hw-gradient-stops))"},"bg-radial-at-b":{"background-image":"radial-gradient(at bottom, var(--hw-gradient-stops))"},"bg-radial-at-bl":{"background-image":"radial-gradient(at bottom left, var(--hw-gradient-stops))"},"bg-radial-at-l":{"background-image":"radial-gradient(at left, var(--hw-gradient-stops))"},"bg-radial-at-tl":{"background-image":"radial-gradient(at top left, var(--hw-gradient-stops))"},"bg-radial-at-c":{"background-image":"radial-gradient(at center, var(--hw-gradient-stops))"},"bg-conic":{"background-image":"conic-gradient(var(--hw-gradient-stops))"},"bg-conic-from-t":{"background-image":"conic-gradient(from 0deg at center, var(--hw-gradient-stops))"},"bg-conic-from-tr":{"background-image":"conic-gradient(from 45deg at center, var(--hw-gradient-stops))"},"bg-conic-from-r":{"background-image":"conic-gradient(from 90deg at center, var(--hw-gradient-stops))"},"bg-conic-from-br":{"background-image":"conic-gradient(from 135deg at center, var(--hw-gradient-stops))"},"bg-conic-from-b":{"background-image":"conic-gradient(from 180deg at center, var(--hw-gradient-stops))"},"bg-conic-from-bl":{"background-image":"conic-gradient(from 225deg at center, var(--hw-gradient-stops))"},"bg-conic-from-l":{"background-image":"conic-gradient(from 270deg at center, var(--hw-gradient-stops))"},"bg-conic-from-tl":{"background-image":"conic-gradient(from 315deg at center, var(--hw-gradient-stops))"}},Kn={"content-none":{content:"none"},"content-empty":{content:'""'}},Gn={"scrollbar-auto":{"scrollbar-width":"auto"},"scrollbar-thin":{"scrollbar-width":"thin"},"scrollbar-none":{"scrollbar-width":"none"}},_n={"cursor-auto":{cursor:"auto"},"cursor-default":{cursor:"default"},"cursor-pointer":{cursor:"pointer"},"cursor-wait":{cursor:"wait"},"cursor-text":{cursor:"text"},"cursor-move":{cursor:"move"},"cursor-help":{cursor:"help"},"cursor-not-allowed":{cursor:"not-allowed"},"cursor-none":{cursor:"none"},"cursor-context-menu":{cursor:"context-menu"},"cursor-progress":{cursor:"progress"},"cursor-cell":{cursor:"cell"},"cursor-crosshair":{cursor:"crosshair"},"cursor-vertical-text":{cursor:"vertical-text"},"cursor-alias":{cursor:"alias"},"cursor-copy":{cursor:"copy"},"cursor-no-drop":{cursor:"no-drop"},"cursor-grab":{cursor:"grab"},"cursor-grabbing":{cursor:"grabbing"},"cursor-all-scroll":{cursor:"all-scroll"},"cursor-col-resize":{cursor:"col-resize"},"cursor-row-resize":{cursor:"row-resize"},"cursor-n-resize":{cursor:"n-resize"},"cursor-e-resize":{cursor:"e-resize"},"cursor-s-resize":{cursor:"s-resize"},"cursor-w-resize":{cursor:"w-resize"},"cursor-ne-resize":{cursor:"ne-resize"},"cursor-nw-resize":{cursor:"nw-resize"},"cursor-se-resize":{cursor:"se-resize"},"cursor-sw-resize":{cursor:"sw-resize"},"cursor-ew-resize":{cursor:"ew-resize"},"cursor-ns-resize":{cursor:"ns-resize"},"cursor-nesw-resize":{cursor:"nesw-resize"},"cursor-nwse-resize":{cursor:"nwse-resize"},"cursor-zoom-in":{cursor:"zoom-in"},"cursor-zoom-out":{cursor:"zoom-out"}},Jn={"pointer-events-none":{"pointer-events":"none"},"pointer-events-auto":{"pointer-events":"auto"}},$n={"resize-none":{resize:"none"},"resize-y":{resize:"vertical"},"resize-x":{resize:"horizontal"},resize:{resize:"both"}},el={"select-none":{"user-select":"none"},"select-text":{"user-select":"text"},"select-all":{"user-select":"all"},"select-auto":{"user-select":"auto"}},tl={"scroll-auto":{"scroll-behavior":"auto"},"scroll-smooth":{"scroll-behavior":"smooth"}},rl={"snap-none":{"scroll-snap-type":"none"},"snap-x":{"scroll-snap-type":"x var(--hw-scroll-snap-strictness)"},"snap-y":{"scroll-snap-type":"y var(--hw-scroll-snap-strictness)"},"snap-both":{"scroll-snap-type":"both var(--hw-scroll-snap-strictness)"},"snap-mandatory":{"--hw-scroll-snap-strictness":"mandatory"},"snap-proximity":{"--hw-scroll-snap-strictness":"proximity"},"snap-start":{"scroll-snap-align":"start"},"snap-end":{"scroll-snap-align":"end"},"snap-center":{"scroll-snap-align":"center"},"snap-align-none":{"scroll-snap-align":"none"},"snap-normal":{"scroll-snap-stop":"normal"},"snap-always":{"scroll-snap-stop":"always"}},il={"touch-auto":{"touch-action":"auto"},"touch-none":{"touch-action":"none"},"touch-pan-x":{"touch-action":"pan-x"},"touch-pan-left":{"touch-action":"pan-left"},"touch-pan-right":{"touch-action":"pan-right"},"touch-pan-y":{"touch-action":"pan-y"},"touch-pan-up":{"touch-action":"pan-up"},"touch-pan-down":{"touch-action":"pan-down"},"touch-pinch-zoom":{"touch-action":"pinch-zoom"},"touch-manipulation":{"touch-action":"manipulation"}},al={"will-change-auto":{"will-change":"auto"},"will-change-scroll":{"will-change":"scroll-position"},"will-change-contents":{"will-change":"contents"},"will-change-transform":{"will-change":"transform"}},ol={"appearance-none":{appearance:"none"},"appearance-auto":{appearance:"auto"}},nl={"border-collapse":{"border-collapse":"collapse"},"border-separate":{"border-collapse":"separate"}},ll={"table-auto":{"table-layout":"auto"},"table-fixed":{"table-layout":"fixed"}},sl={"caption-top":{"caption-side":"top"},"caption-bottom":{"caption-side":"bottom"}},cl={"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap","border-width":"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"}},ul={"forced-color-adjust-auto":{"forced-color-adjust":"auto"},"forced-color-adjust-none":{"forced-color-adjust":"none"}},dl={"fill-none":{fill:"none"},"fill-current":{fill:"currentColor"},"fill-inherit":{fill:"inherit"}},hl={"stroke-none":{stroke:"none"},"stroke-current":{stroke:"currentColor"},"stroke-inherit":{stroke:"inherit"},"stroke-0":{"stroke-width":"0"},"stroke-1":{"stroke-width":"1"},"stroke-2":{"stroke-width":"2"}},fl={"stroke-linecap-butt":{"stroke-linecap":"butt"},"stroke-linecap-round":{"stroke-linecap":"round"},"stroke-linecap-square":{"stroke-linecap":"square"}},pl={"stroke-linejoin-miter":{"stroke-linejoin":"miter"},"stroke-linejoin-round":{"stroke-linejoin":"round"},"stroke-linejoin-bevel":{"stroke-linejoin":"bevel"}},ml={"blur-none":{filter:"blur(0)"},"blur-sm":{filter:"blur(4px)"},blur:{filter:"blur(8px)"},"blur-md":{filter:"blur(12px)"},"blur-lg":{filter:"blur(16px)"},"blur-xl":{filter:"blur(24px)"},"blur-2xl":{filter:"blur(40px)"},"blur-3xl":{filter:"blur(64px)"}},gl={"backdrop-blur-none":{"-webkit-backdrop-filter":"blur(0)","backdrop-filter":"blur(0)"},"backdrop-blur-sm":{"-webkit-backdrop-filter":"blur(4px)","backdrop-filter":"blur(4px)"},"backdrop-blur":{"-webkit-backdrop-filter":"blur(8px)","backdrop-filter":"blur(8px)"},"backdrop-blur-md":{"-webkit-backdrop-filter":"blur(12px)","backdrop-filter":"blur(12px)"},"backdrop-blur-lg":{"-webkit-backdrop-filter":"blur(16px)","backdrop-filter":"blur(16px)"},"backdrop-blur-xl":{"-webkit-backdrop-filter":"blur(24px)","backdrop-filter":"blur(24px)"},"backdrop-blur-2xl":{"-webkit-backdrop-filter":"blur(40px)","backdrop-filter":"blur(40px)"},"backdrop-blur-3xl":{"-webkit-backdrop-filter":"blur(64px)","backdrop-filter":"blur(64px)"}},bl={"grayscale-0":{filter:"grayscale(0)"},grayscale:{filter:"grayscale(100%)"},"invert-0":{filter:"invert(0)"},invert:{filter:"invert(100%)"},"sepia-0":{filter:"sepia(0)"},sepia:{filter:"sepia(100%)"}},vl={"backdrop-grayscale-0":{"-webkit-backdrop-filter":"grayscale(0)","backdrop-filter":"grayscale(0)"},"backdrop-grayscale":{"-webkit-backdrop-filter":"grayscale(100%)","backdrop-filter":"grayscale(100%)"},"backdrop-invert-0":{"-webkit-backdrop-filter":"invert(0)","backdrop-filter":"invert(0)"},"backdrop-invert":{"-webkit-backdrop-filter":"invert(100%)","backdrop-filter":"invert(100%)"},"backdrop-sepia-0":{"-webkit-backdrop-filter":"sepia(0)","backdrop-filter":"sepia(0)"},"backdrop-sepia":{"-webkit-backdrop-filter":"sepia(100%)","backdrop-filter":"sepia(100%)"}},wl={"drop-shadow-sm":{filter:"drop-shadow(0 1px 1px rgb(0 0 0 / 0.05))"},"drop-shadow":{filter:"drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06))"},"drop-shadow-md":{filter:"drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))"},"drop-shadow-lg":{filter:"drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1))"},"drop-shadow-xl":{filter:"drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08))"},"drop-shadow-2xl":{filter:"drop-shadow(0 25px 25px rgb(0 0 0 / 0.15))"},"drop-shadow-none":{filter:"drop-shadow(0 0 #0000)"}},yl={"mix-blend-normal":{"mix-blend-mode":"normal"},"mix-blend-multiply":{"mix-blend-mode":"multiply"},"mix-blend-screen":{"mix-blend-mode":"screen"},"mix-blend-overlay":{"mix-blend-mode":"overlay"},"mix-blend-darken":{"mix-blend-mode":"darken"},"mix-blend-lighten":{"mix-blend-mode":"lighten"},"mix-blend-color-dodge":{"mix-blend-mode":"color-dodge"},"mix-blend-color-burn":{"mix-blend-mode":"color-burn"},"mix-blend-hard-light":{"mix-blend-mode":"hard-light"},"mix-blend-soft-light":{"mix-blend-mode":"soft-light"},"mix-blend-difference":{"mix-blend-mode":"difference"},"mix-blend-exclusion":{"mix-blend-mode":"exclusion"},"mix-blend-hue":{"mix-blend-mode":"hue"},"mix-blend-saturation":{"mix-blend-mode":"saturation"},"mix-blend-color":{"mix-blend-mode":"color"},"mix-blend-luminosity":{"mix-blend-mode":"luminosity"},"mix-blend-plus-darker":{"mix-blend-mode":"plus-darker"},"mix-blend-plus-lighter":{"mix-blend-mode":"plus-lighter"}},xl={"bg-blend-normal":{"background-blend-mode":"normal"},"bg-blend-multiply":{"background-blend-mode":"multiply"},"bg-blend-screen":{"background-blend-mode":"screen"},"bg-blend-overlay":{"background-blend-mode":"overlay"},"bg-blend-darken":{"background-blend-mode":"darken"},"bg-blend-lighten":{"background-blend-mode":"lighten"},"bg-blend-color-dodge":{"background-blend-mode":"color-dodge"},"bg-blend-color-burn":{"background-blend-mode":"color-burn"},"bg-blend-hard-light":{"background-blend-mode":"hard-light"},"bg-blend-soft-light":{"background-blend-mode":"soft-light"},"bg-blend-difference":{"background-blend-mode":"difference"},"bg-blend-exclusion":{"background-blend-mode":"exclusion"},"bg-blend-hue":{"background-blend-mode":"hue"},"bg-blend-saturation":{"background-blend-mode":"saturation"},"bg-blend-color":{"background-blend-mode":"color"},"bg-blend-luminosity":{"background-blend-mode":"luminosity"}},kl={...Io,...Qo,...Ho,...Uo,...Zo,..._o,...Jo,...$o,...en,...tn,...un,...dn,...hn,...fn,...pn,...mn,...gn,...bn,...vn,...wn,...yn,...xn,...kn,...Cn,...zn,...jn,...En,...Nn,...Sn,...An,...Rn,...Fn,...Wn,...Tn,...On,...qn,...Mn,...Bn,...Ln,...Pn,...Dn,...Yn,...In,...Qn,...Hn,...Un,...Zn,...Xn,...Vn,..._n,...Jn,...$n,...el,...tl,...rl,...il,...al,...ol,...nl,...ll,...sl,...cl,...ul,...dl,...hl,...fl,...pl,...ml,...gl,...bl,...vl,...wl,...yl,...xl,...Kn,...Gn},Cl={hover:":hover",focus:":focus",active:":active",disabled:":disabled",visited:":visited",checked:":checked","focus-within":":focus-within","focus-visible":":focus-visible",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","first-of-type":":first-of-type","last-of-type":":last-of-type",before:"::before",after:"::after",marker:"::marker",placeholder:"::placeholder",selection:"::selection",file:"::file-selector-button",required:":required",valid:":valid",invalid:":invalid","read-only":":read-only",autofill:":autofill",open:"[open]",closed:":not([open])",empty:":empty",enabled:":enabled",only:":only-child",target:":target",indeterminate:":indeterminate",default:":default",optional:":optional"},zl={"not-first":":not(:first-child)","not-last":":not(:last-child)","not-only":":not(:only-child)","not-empty":":not(:empty)","not-disabled":":not(:disabled)","not-checked":":not(:checked)","not-first-of-type":":not(:first-of-type)","not-last-of-type":":not(:last-of-type)"},jl={dark:".dark ",light:".light ",rtl:'[dir="rtl"] ',ltr:'[dir="ltr"] '},ht=new WeakMap;function El(e){let t=ht.get(e);if(t)return t;if(e.presets&&e.presets.length>0){for(let l of e.presets)if(l.theme)e.theme=De(e.theme,l.theme)}let r=e.theme.extend?.colors?e.theme.extend.colors:null;if(e.theme.extend){let{extend:l,...s}=e.theme;if(l)e.theme=De(s,l)}let i=[],a=new Set;for(let l of e.blocklist)if(l.includes("*"))i.push(new RegExp(`^${l.replace(/\*/g,".*")}$`));else a.add(l);let n={config:e,variantEnabled:e.variants,screenBreakpoints:new Map(Object.entries(e.theme.screens)),blocklistRegexCache:i,blocklistExact:a,extendColors:r,hasBlocklist:i.length>0||a.size>0,hasShortcuts:Object.keys(e.shortcuts).length>0};return ht.set(e,n),n}class xe{config;rules=new Map;classCache=new Set;selectorCache=new Map;mediaQueryCache=new Map;ruleCache=new Map;variantEnabled;screenBreakpoints;noMatchCache=new Set;usedKeyframes=new Set;extendColors=null;processed;constructor(e){this.config=e,this.processed=El(e),this.variantEnabled=this.processed.variantEnabled,this.screenBreakpoints=this.processed.screenBreakpoints,this.extendColors=this.processed.extendColors}buildRuleLookup(){}generateBatch(e){for(let t=0;t<e.length;t++)this.generate(e[t])}generate(e){if(this.classCache.has(e))return;if(this.classCache.add(e),this.processed.hasShortcuts){let o=this.config.shortcuts[e];if(o){let c=Array.isArray(o)?o:o.split(/\s+/);for(let u of c)this.generate(u);return}}if(this.processed.hasBlocklist){if(this.processed.blocklistExact.has(e))return;let o=this.processed.blocklistRegexCache;for(let c=0;c<o.length;c++)if(o[c].test(e))return}let t=Wt(e),r=kl[t.raw];if(r){if(this.addRule(t,r),r.animation){let o=r.animation.split(" ")[0];if(o&&o!=="none")this.usedKeyframes.add(o)}return}let{utility:i,value:a}=t;if(i==="w"&&a){let o=dt[a]||this.config.theme.spacing[a];if(o){this.addRule(t,{width:o});return}if(t.arbitrary){let c=a.match(/^(\d+)\/(\d+)$/);if(c){let u=Number(c[1]),d=Number(c[2]);if(!Number.isNaN(u)&&!Number.isNaN(d)&&d!==0){this.addRule(t,{width:`${u/d*100}%`});return}}this.addRule(t,{width:a});return}}if(i==="h"&&a){let o=dt[a]||this.config.theme.spacing[a];if(o){this.addRule(t,{height:a==="screen"?"100vh":o});return}if(t.arbitrary){let c=a.match(/^(\d+)\/(\d+)$/);if(c){let u=Number(c[1]),d=Number(c[2]);if(!Number.isNaN(u)&&!Number.isNaN(d)&&d!==0){this.addRule(t,{height:`${u/d*100}%`});return}}this.addRule(t,{height:a});return}}if(i==="p"&&a){let o=E[a];if(o){this.addRule(t,{padding:o});return}}if(i==="px"&&a){let o=E[a];if(o){this.addRule(t,{"padding-left":o,"padding-right":o});return}}if(i==="py"&&a){let o=E[a];if(o){this.addRule(t,{"padding-top":o,"padding-bottom":o});return}}if((i==="pt"||i==="pr"||i==="pb"||i==="pl")&&a){let o=E[a];if(o){let c={pt:"padding-top",pr:"padding-right",pb:"padding-bottom",pl:"padding-left"};this.addRule(t,{[c[i]]:o});return}}if(i==="m"&&a){let o=E[a];if(o){this.addRule(t,{margin:o});return}}if(i==="mx"&&a){let o=E[a];if(o){this.addRule(t,{"margin-left":o,"margin-right":o});return}}if(i==="my"&&a){let o=E[a];if(o){this.addRule(t,{"margin-top":o,"margin-bottom":o});return}}if((i==="mt"||i==="mr"||i==="mb"||i==="ml")&&a){let o=E[a];if(o){let c={mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left"};this.addRule(t,{[c[i]]:o});return}}if((i==="top"||i==="right"||i==="bottom"||i==="left")&&a){let o=E[a];if(o){this.addRule(t,{[i]:o});return}}if(i==="inset"&&a){let o=E[a];if(o){this.addRule(t,{top:o,right:o,bottom:o,left:o});return}}if(i==="inset-x"&&a){let o=E[a];if(o){this.addRule(t,{left:o,right:o});return}}if(i==="inset-y"&&a){let o=E[a];if(o){this.addRule(t,{top:o,bottom:o});return}}if(i==="bg"&&a){let o=Ae[a];if(o){this.addRule(t,{"background-color":o});return}}if(i==="text"&&a){let o=Ae[a];if(o){this.addRule(t,{color:o});return}}if(i==="border"&&a){let o=Ae[a];if(o){this.addRule(t,{"border-color":o});return}}if(i==="justify"&&a){let o=Xo[a];if(o){this.addRule(t,{"justify-content":o});return}}if(i==="items"&&a){let o=Vo[a];if(o){this.addRule(t,{"align-items":o});return}}if(i==="content"&&a){let o=Ko[a];if(o){this.addRule(t,{"align-content":o});return}if(t.arbitrary){this.addRule(t,{content:a});return}}if(i==="self"&&a){let o=Go[a];if(o){this.addRule(t,{"align-self":o});return}}if(i==="grid-cols"&&a){let o=on[a];if(o){this.addRule(t,{"grid-template-columns":o});return}}if(i==="grid-rows"&&a){let o=nn[a];if(o){this.addRule(t,{"grid-template-rows":o});return}}if(i==="col"&&a){let o=ln[a];if(o){this.addRule(t,{"grid-column":o});return}}if(i==="row"&&a){let o=sn[a];if(o){this.addRule(t,{"grid-row":o});return}}if(i==="grid-flow"&&a){let o=cn[a];if(o){this.addRule(t,{"grid-auto-flow":o});return}}if(i==="auto-cols"&&a){let o=ut[a];if(o){this.addRule(t,{"grid-auto-columns":o});return}}if(i==="auto-rows"&&a){let o=ut[a];if(o){this.addRule(t,{"grid-auto-rows":o});return}}if(i==="origin"&&a){let o=an[a];if(o){this.addRule(t,{"transform-origin":o});return}}if(i==="scale"&&a&&!t.arbitrary){let o=Number(a)/100;if(!Number.isNaN(o)){this.addRule(t,{transform:`scale(${o})`});return}}if(i==="scale-x"&&a&&!t.arbitrary){let o=Number(a)/100;if(!Number.isNaN(o)){this.addRule(t,{transform:`scaleX(${o})`});return}}if(i==="scale-y"&&a&&!t.arbitrary){let o=Number(a)/100;if(!Number.isNaN(o)){this.addRule(t,{transform:`scaleY(${o})`});return}}if(i==="rotate"&&a&&!t.arbitrary){this.addRule(t,{transform:`rotate(${a}deg)`});return}if(i==="duration"&&a){this.addRule(t,{"transition-duration":`${a}ms`});return}if(i==="delay"&&a){this.addRule(t,{"transition-delay":`${a}ms`});return}let n=(o)=>{let c=this.config.theme.spacing[o];if(c!==void 0)return c;if(/^\d+(?:\.\d+)?$/.test(o)){let u=Number.parseFloat(o);if(Number.isFinite(u))return`${u*0.25}rem`}return o};if(i==="gap"&&a){this.addRule(t,{gap:n(a)});return}if(i==="gap-x"&&a){this.addRule(t,{"column-gap":n(a)});return}if(i==="gap-y"&&a){this.addRule(t,{"row-gap":n(a)});return}if(i==="place"&&a){if(a.startsWith("content-")){let o=Se[a.slice(8)];if(o){this.addRule(t,{"place-content":o});return}}if(a.startsWith("items-")){let o=Se[a.slice(6)];if(o){this.addRule(t,{"place-items":o});return}}if(a.startsWith("self-")){let o=Se[a.slice(5)];if(o){this.addRule(t,{"place-self":o});return}}}let l=`${t.utility}:${t.value||""}`;if(this.noMatchCache.has(l))return;if(this.config.rules.length>0)for(let[o,c]of this.config.rules){let u=e.match(o);if(u){let d=c(u);if(d){this.addRule(t,d);return}}}let s=Pe.length;for(let o=0;o<s;o++){let c=Pe[o](t,this.config);if(c){if("properties"in c&&typeof c.properties==="object")this.addRule(t,c.properties,c.childSelector,c.pseudoElement);else this.addRule(t,c);return}}this.noMatchCache.add(l)}addRule(e,t,r,i){let a=`${e.raw}${r||""}${i||""}`,n=this.selectorCache.get(a);if(!n){if(n=this.buildSelector(e),i)n+=i;if(r)n+=` ${r}`;this.selectorCache.set(a,n)}let l=this.getMediaQuery(e);if(e.important)for(let o in t)t[o]+=" !important";let s=l||"base";if(!this.rules.has(s))this.rules.set(s,[]);this.rules.get(s).push({selector:n,properties:t,mediaQuery:l,childSelector:r})}buildSelector(e){let t=`.${this.escapeSelector(e.raw)}`,r="",i=e.variants,a=i.length;if(a===0)return t;for(let n=0;n<a;n++){let l=i[n],s=Cl[l];if(s!==void 0){if(this.variantEnabled[l])t+=s;continue}let o=jl[l];if(o!==void 0){if(this.variantEnabled[l])r=o;continue}if(l.charCodeAt(0)===110&&l.startsWith("not-")){if(this.variantEnabled.not){let c=zl[l];if(c)t+=c}continue}if(l.charCodeAt(0)===103&&l.startsWith("group-")){if(this.variantEnabled.group){let c=l.slice(6);if(c.startsWith("has-")){let u=c.slice(4);if(u.charCodeAt(0)===91&&u.charCodeAt(u.length-1)===93)r=`.group:has(${u.slice(1,-1)}) `;else r=`.group:has(:${u}) `}else r=`.group:${c} `}continue}if(l.charCodeAt(0)===103&&l.startsWith("group/")){if(this.variantEnabled.group)r=`.group\\/${l.slice(6)} `;continue}if(l.charCodeAt(0)===112&&l.startsWith("peer-")){if(this.variantEnabled.peer){let c=l.slice(5);if(c.startsWith("has-")){let u=c.slice(4);if(u.charCodeAt(0)===91&&u.charCodeAt(u.length-1)===93)r=`.peer:has(${u.slice(1,-1)}) ~ `;else r=`.peer:has(:${u}) ~ `}else r=`.peer:${c} ~ `}continue}if(l.charCodeAt(0)===112&&l.startsWith("peer/")){if(this.variantEnabled.peer)r=`.peer\\/${l.slice(5)} ~ `;continue}if(l.charCodeAt(0)===104&&l.startsWith("has-")){if(this.variantEnabled.has){let c=l.slice(4);if(c.charCodeAt(0)===91&&c.charCodeAt(c.length-1)===93){let u=c.slice(1,-1);t+=`:has(${u})`}else t+=`:has(:${c})`}continue}if(l.charCodeAt(0)===97&&l.startsWith("aria-")){if(this.variantEnabled.aria){let c=l.slice(5);if(c.charCodeAt(0)===91&&c.charCodeAt(c.length-1)===93){let u=c.slice(1,-1);t+=`[aria-${u}]`}else t+=`[aria-${c}="true"]`}continue}if(l.charCodeAt(0)===100&&l.startsWith("data-")){if(this.variantEnabled.data){let c=l.slice(5);if(c.charCodeAt(0)===91&&c.charCodeAt(c.length-1)===93){let u=c.slice(1,-1);t+=`[data-${u}]`}else t+=`[data-${c}]`}continue}}return r+t}getMediaQuery(e){let t=e.variants,r=t.length;if(r===0)return;let i=t.join(":"),a=this.mediaQueryCache.get(i);if(a!==void 0)return a||void 0;let n=[];for(let l=0;l<r;l++){let s=t[l];if(s.charCodeAt(0)===64){let o=s.slice(1),c=this.screenBreakpoints.get(o);if(c){let u=`@container (min-width: ${c})`;return this.mediaQueryCache.set(i,u),u}continue}if(this.variantEnabled.responsive){let o=this.screenBreakpoints.get(s);if(o){n.push(`(min-width: ${o})`);continue}}switch(s){case"print":if(this.variantEnabled.print)n.push("print");break;case"motion-safe":if(this.variantEnabled["motion-safe"])n.push("(prefers-reduced-motion: no-preference)");break;case"motion-reduce":if(this.variantEnabled["motion-reduce"])n.push("(prefers-reduced-motion: reduce)");break;case"contrast-more":if(this.variantEnabled["contrast-more"])n.push("(prefers-contrast: more)");break;case"contrast-less":if(this.variantEnabled["contrast-less"])n.push("(prefers-contrast: less)");break;case"landscape":if(this.variantEnabled.landscape)n.push("(orientation: landscape)");break;case"portrait":if(this.variantEnabled.portrait)n.push("(orientation: portrait)");break;case"forced-colors":if(this.variantEnabled["forced-colors"])n.push("(forced-colors: active)");break}if(s.charCodeAt(0)===115&&s.startsWith("supports-")){if(this.variantEnabled.supports){let o=s.slice(9),c;if(o.charCodeAt(0)===91&&o.charCodeAt(o.length-1)===93){let u=o.slice(1,-1).replace(/_/g," "),d=u.indexOf(":");if(d!==-1){let h=u.slice(0,d).trim(),f=u.slice(d+1).trim();c=`@supports (${h}: ${f})`}else c=`@supports (${u})`}else c=`@supports (${o})`;return this.mediaQueryCache.set(i,c),c}}}if(n.length>0){let l=`@media ${n.join(" and ")}`;return this.mediaQueryCache.set(i,l),l}this.mediaQueryCache.set(i,"");return}escapeSelector(e){let t=!1;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i===58||i===46||i===47||i===64||i===32||i===91||i===93||i===40||i===41||i===37||i===35||i===44||i===62||i===43||i===126||i===33||i===39||i===34||i===42||i===61){t=!0;break}}if(!t)return e;return e.replace(/[:./@ \[\]()%#,>+~!'"*=]/g,"\\$&")}toCSS(e=!0,t=!1){let r=[];if(e)for(let a of this.config.preflights){let n=a.getCSS(),l=this.config.theme?.fontFamily?.sans;if(l&&Array.isArray(l)){let s=l.join(", ");n=n.replace(/font-family:\s*ui-sans-serif[^;]+;/g,`font-family: ${s};`)}r.push(t?n.replace(/\s+/g," ").trim():n)}if(this.config.cssVariables){let a=this.generateCSSVariables();if(a)r.push(t?a.replace(/\s+/g," ").trim():a)}let i=this.rules.get("base")||[];if(i.length>0)r.push(this.rulesToCSS(i,t));if(this.usedKeyframes.size>0)for(let a of this.usedKeyframes){let n=rn[a];if(n)r.push(t?n.replace(/\s+/g," ").replace(/\s*\{\s*/g,"{").replace(/\s*\}\s*/g,"}").replace(/;\s*/g,";").trim():n)}for(let[a,n]of this.rules.entries())if(a!=="base"&&n.length>0){let l=n[0].mediaQuery,s=this.rulesToCSS(n,t);r.push(t?`${l}{${s}}`:`${l} {
|
|
14
|
+
${s}
|
|
15
|
+
}`)}return t?r.join(""):r.join(`
|
|
16
|
+
|
|
17
|
+
`)}getUtilityRank(e){let t=e.match(/\.(?:[a-zA-Z0-9_-]*\\?:)*([a-zA-Z0-9_-]+)/);if(!t)return 0;let r=t[1];if(/^(?:mx|my|px|py|inset-x|inset-y|border-x|border-y|scroll-mx|scroll-my|scroll-px|scroll-py|space-x|space-y)-/.test(r)||/^rounded-(?:[tlbr]|tl|tr|bl|br)(?:-|$)/.test(r))return 1;if(/^(?:mt|mr|mb|ml|pt|pr|pb|pl|top|right|bottom|left|border-t|border-r|border-b|border-l|scroll-mt|scroll-mr|scroll-mb|scroll-ml|scroll-pt|scroll-pr|scroll-pb|scroll-pl)-/.test(r))return 2;return 0}rulesToCSS(e,t){let r=e.map((l,s)=>({r:l,i:s,rank:this.getUtilityRank(l.selector)}));r.sort((l,s)=>l.rank-s.rank||l.i-s.i);let i=r.map((l)=>l.r),a=this.groupRulesBySelector(i),n=[];for(let[l,s]of a.entries()){let o=Array.from(s.entries()).map(([c,u])=>t?`${c}:${u}`:` ${c}: ${u};`).join(t?";":`
|
|
18
|
+
`);if(t)n.push(`${l}{${o}}`);else n.push(`${l} {
|
|
19
|
+
${o}
|
|
20
|
+
}`)}return t?n.join(""):n.join(`
|
|
21
|
+
|
|
22
|
+
`)}groupRulesBySelector(e){let t=new Map;for(let r of e){if(!t.has(r.selector))t.set(r.selector,new Map);let i=t.get(r.selector);for(let[a,n]of Object.entries(r.properties))i.set(a,n)}return t}generateCSSVariables(){let e=this.extendColors||this.config.theme.colors;if(!e||Object.keys(e).length===0)return null;let t=[];for(let[r,i]of Object.entries(e))if(typeof i==="string")t.push(` --${r}: ${i};`);else if(typeof i==="object"&&i!==null){for(let[a,n]of Object.entries(i))if(typeof n==="string")t.push(` --${r}-${a}: ${n};`)}if(t.length===0)return null;return`:root {
|
|
23
|
+
${t.join(`
|
|
24
|
+
`)}
|
|
25
|
+
}`}reset(){this.rules.clear(),this.classCache.clear(),this.selectorCache.clear(),this.mediaQueryCache.clear(),this.noMatchCache.clear(),this.usedKeyframes.clear()}}var{Glob:Nl}=globalThis.Bun;class Ke{patterns;transformer;extractOptions;constructor(e,t=void 0,r=void 0){this.patterns=e,this.transformer=t,this.extractOptions=r}async scan(){let e=new Set,t=new Map;return await Promise.all(this.patterns.map(async(r)=>{let i=new Nl(r);for await(let a of i.scan("."))try{let n=await Bun.file(a).text();if(this.transformer){let s=this.transformer.processFile(n);if(s.hasChanges)t.set(a,s.content),n=s.content}let l=ee(n,this.extractOptions);for(let s of l)e.add(s)}catch{continue}})),{classes:e,transformedFiles:t}}async scanFile(e){try{let t=await Bun.file(e).text();return ee(t,this.extractOptions)}catch{return new Set}}scanContent(e){return ee(e,this.extractOptions)}}function Sl(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);t=(t<<5)-t+i,t=t&t}return Math.abs(t).toString(36)}function Al(e,t={}){let r=t.trigger||":hw:",i=new Map,a=/(?:class|className)=["']([^"']*)["']/g,n;while((n=a.exec(e))!==null){let l=n[1];if(l.trim().startsWith(r)){let s=l.replace(r,"").trim().split(/\s+/).filter(Boolean);if(s.length>0){let o=s.sort().join(" ");if(!i.has(o))i.set(o,s)}}}return i}function Rl(e,t,r={}){let i=r.trigger||":hw:",a=e,n=/(?:class|className)=["']([^"']*)["']/g,l,s=[];while((l=n.exec(e))!==null){let o=l[1];if(o.trim().startsWith(i)){let c=o.replace(i,"").trim().split(/\s+/).filter(Boolean).sort().join(" "),u=t.get(c);if(u){let d=l[0].startsWith("class=")?"class":"className",h=l[0].includes('"')?'"':"'",f=`${d}=${h}${u}${h}`;s.push({start:l.index,end:l.index+l[0].length,replacement:f})}}}for(let o=s.length-1;o>=0;o--){let{start:c,end:u,replacement:d}=s[o];a=a.substring(0,c)+d+a.substring(u)}return a}function Fl(e,t={}){let r=t.classPrefix||"hw-",i=t.hashFn||Sl,a=new Map;for(let[n]of e){let l=i(n),s=`${r}${l}`;a.set(n,s)}return a}class nr{compiledClasses=new Map;classNameMap=new Map;options;constructor(e={}){this.options={trigger:":hw:",classPrefix:"hw-",layer:"shortcuts",...e}}processFile(e){let t=Al(e,this.options);if(t.size===0)return{content:e,hasChanges:!1};let r=!1;for(let[a,n]of t)if(!this.compiledClasses.has(a))this.compiledClasses.set(a,n),r=!0;if(r||this.classNameMap.size!==this.compiledClasses.size)this.classNameMap=Fl(this.compiledClasses,this.options);let i=Rl(e,this.classNameMap,this.options);return{content:i,hasChanges:i!==e}}getCompiledClasses(){let e=new Map;for(let[t,r]of this.compiledClasses){let i=this.classNameMap.get(t);if(i)e.set(t,{className:i,utilities:r})}return e}generateCSS(e,t){let r=this.getCompiledClasses(),i="";for(let[,{className:a,utilities:n}]of r){for(let s of n)t.generate(s);let l=t.toCSS(!1);i+=`
|
|
26
|
+
/* Compiled class: ${a} */
|
|
27
|
+
`,i+=`/* Original utilities: ${n.join(" ")} */
|
|
28
|
+
`}return i}reset(){this.compiledClasses.clear(),this.classNameMap.clear()}getStats(){let e=0;for(let[,t]of this.compiledClasses)e+=t.length;return{totalGroups:this.compiledClasses.size,totalUtilities:e,averageUtilitiesPerGroup:this.compiledClasses.size>0?e/this.compiledClasses.size:0}}}async function lr(e){let t=performance.now(),r=e.compileClass?.enabled?new nr({trigger:e.compileClass.trigger,classPrefix:e.compileClass.classPrefix,layer:e.compileClass.layer}):null,i=new Ke(e.content,r,{attributify:e.attributify,bracketSyntax:e.bracketSyntax}),{classes:a,transformedFiles:n}=await i.scan();for(let c of e.safelist)a.add(c);if(r){let c=r.getCompiledClasses();for(let[,{utilities:u}]of c)for(let d of u)a.add(d)}let l=new xe(e);for(let c of a)l.generate(c);let s=l.toCSS(!0,e.minify),o=performance.now()-t;return{css:s,classes:a,duration:o,compiledClasses:r?.getCompiledClasses(),transformedFiles:n}}async function sr(e,t){await Bun.write(t,e)}async function cr(e){let t=Array.from(e.entries()).map(([r,i])=>Bun.write(r,i));await Promise.all(t)}async function Wl(e){let t=await lr(e);if(await sr(t.css,e.output),t.transformedFiles&&t.transformedFiles.size>0)await cr(t.transformedFiles);return t}var Tl={getCSS:()=>`
|
|
29
|
+
/*
|
|
30
|
+
! Modern Normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
*,
|
|
34
|
+
::before,
|
|
35
|
+
::after {
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
html {
|
|
40
|
+
-webkit-text-size-adjust: 100%;
|
|
41
|
+
tab-size: 4;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
body {
|
|
45
|
+
margin: 0;
|
|
46
|
+
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
hr {
|
|
50
|
+
height: 0;
|
|
51
|
+
color: inherit;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
abbr[title] {
|
|
55
|
+
text-decoration: underline dotted;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
b,
|
|
59
|
+
strong {
|
|
60
|
+
font-weight: bolder;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
code,
|
|
64
|
+
kbd,
|
|
65
|
+
samp,
|
|
66
|
+
pre {
|
|
67
|
+
font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
|
|
68
|
+
font-size: 1em;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
small {
|
|
72
|
+
font-size: 80%;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
sub,
|
|
76
|
+
sup {
|
|
77
|
+
font-size: 75%;
|
|
78
|
+
line-height: 0;
|
|
79
|
+
position: relative;
|
|
80
|
+
vertical-align: baseline;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
sub {
|
|
84
|
+
bottom: -0.25em;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
sup {
|
|
88
|
+
top: -0.5em;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
table {
|
|
92
|
+
text-indent: 0;
|
|
93
|
+
border-color: inherit;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
button,
|
|
97
|
+
input,
|
|
98
|
+
optgroup,
|
|
99
|
+
select,
|
|
100
|
+
textarea {
|
|
101
|
+
font-family: inherit;
|
|
102
|
+
font-size: 100%;
|
|
103
|
+
line-height: 1.15;
|
|
104
|
+
margin: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
button,
|
|
108
|
+
select {
|
|
109
|
+
text-transform: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
button,
|
|
113
|
+
[type='button'],
|
|
114
|
+
[type='reset'],
|
|
115
|
+
[type='submit'] {
|
|
116
|
+
-webkit-appearance: button;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
::-moz-focus-inner {
|
|
120
|
+
border-style: none;
|
|
121
|
+
padding: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:-moz-focusring {
|
|
125
|
+
outline: 1px dotted ButtonText;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:-moz-ui-invalid {
|
|
129
|
+
box-shadow: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
legend {
|
|
133
|
+
padding: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
progress {
|
|
137
|
+
vertical-align: baseline;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
::-webkit-inner-spin-button,
|
|
141
|
+
::-webkit-outer-spin-button {
|
|
142
|
+
height: auto;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
[type='search'] {
|
|
146
|
+
-webkit-appearance: textfield;
|
|
147
|
+
outline-offset: -2px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
::-webkit-search-decoration {
|
|
151
|
+
-webkit-appearance: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
::-webkit-file-upload-button {
|
|
155
|
+
-webkit-appearance: button;
|
|
156
|
+
font: inherit;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
summary {
|
|
160
|
+
display: list-item;
|
|
161
|
+
}
|
|
162
|
+
`.trim()},ur={getCSS:()=>`
|
|
163
|
+
/*
|
|
164
|
+
! Tailwind CSS Preflight | MIT License | https://tailwindcss.com
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
*,
|
|
168
|
+
::before,
|
|
169
|
+
::after {
|
|
170
|
+
box-sizing: border-box;
|
|
171
|
+
border-width: 0;
|
|
172
|
+
border-style: solid;
|
|
173
|
+
border-color: var(--border-color, currentColor);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
::before,
|
|
177
|
+
::after {
|
|
178
|
+
--hw-content: '';
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
html,
|
|
182
|
+
:host {
|
|
183
|
+
line-height: 1.5;
|
|
184
|
+
-webkit-text-size-adjust: 100%;
|
|
185
|
+
-moz-tab-size: 4;
|
|
186
|
+
tab-size: 4;
|
|
187
|
+
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
188
|
+
font-feature-settings: normal;
|
|
189
|
+
font-variation-settings: normal;
|
|
190
|
+
-webkit-tap-highlight-color: transparent;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
body {
|
|
194
|
+
margin: 0;
|
|
195
|
+
line-height: inherit;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
hr {
|
|
199
|
+
height: 0;
|
|
200
|
+
color: inherit;
|
|
201
|
+
border-top-width: 1px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
abbr:where([title]) {
|
|
205
|
+
text-decoration: underline dotted;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
h1,
|
|
209
|
+
h2,
|
|
210
|
+
h3,
|
|
211
|
+
h4,
|
|
212
|
+
h5,
|
|
213
|
+
h6 {
|
|
214
|
+
font-size: inherit;
|
|
215
|
+
font-weight: inherit;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
a {
|
|
219
|
+
color: inherit;
|
|
220
|
+
text-decoration: inherit;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
b,
|
|
224
|
+
strong {
|
|
225
|
+
font-weight: bolder;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
code,
|
|
229
|
+
kbd,
|
|
230
|
+
samp,
|
|
231
|
+
pre {
|
|
232
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
233
|
+
font-feature-settings: normal;
|
|
234
|
+
font-variation-settings: normal;
|
|
235
|
+
font-size: 1em;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
small {
|
|
239
|
+
font-size: 80%;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
sub,
|
|
243
|
+
sup {
|
|
244
|
+
font-size: 75%;
|
|
245
|
+
line-height: 0;
|
|
246
|
+
position: relative;
|
|
247
|
+
vertical-align: baseline;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
sub {
|
|
251
|
+
bottom: -0.25em;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
sup {
|
|
255
|
+
top: -0.5em;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
table {
|
|
259
|
+
text-indent: 0;
|
|
260
|
+
border-color: var(--border-color, inherit);
|
|
261
|
+
border-collapse: collapse;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
button,
|
|
265
|
+
input,
|
|
266
|
+
optgroup,
|
|
267
|
+
select,
|
|
268
|
+
textarea {
|
|
269
|
+
font-family: inherit;
|
|
270
|
+
font-feature-settings: inherit;
|
|
271
|
+
font-variation-settings: inherit;
|
|
272
|
+
font-size: 100%;
|
|
273
|
+
font-weight: inherit;
|
|
274
|
+
line-height: inherit;
|
|
275
|
+
letter-spacing: inherit;
|
|
276
|
+
color: inherit;
|
|
277
|
+
margin: 0;
|
|
278
|
+
padding: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
button,
|
|
282
|
+
select {
|
|
283
|
+
text-transform: none;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
button,
|
|
287
|
+
input:where([type='button']),
|
|
288
|
+
input:where([type='reset']),
|
|
289
|
+
input:where([type='submit']) {
|
|
290
|
+
-webkit-appearance: button;
|
|
291
|
+
background-color: transparent;
|
|
292
|
+
background-image: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
:-moz-focusring {
|
|
296
|
+
outline: auto;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
:-moz-ui-invalid {
|
|
300
|
+
box-shadow: none;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
progress {
|
|
304
|
+
vertical-align: baseline;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
::-webkit-inner-spin-button,
|
|
308
|
+
::-webkit-outer-spin-button {
|
|
309
|
+
height: auto;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
[type='search'] {
|
|
313
|
+
-webkit-appearance: textfield;
|
|
314
|
+
outline-offset: -2px;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
::-webkit-search-decoration {
|
|
318
|
+
-webkit-appearance: none;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
::-webkit-file-upload-button {
|
|
322
|
+
-webkit-appearance: button;
|
|
323
|
+
font: inherit;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
summary {
|
|
327
|
+
display: list-item;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
blockquote,
|
|
331
|
+
dl,
|
|
332
|
+
dd,
|
|
333
|
+
h1,
|
|
334
|
+
h2,
|
|
335
|
+
h3,
|
|
336
|
+
h4,
|
|
337
|
+
h5,
|
|
338
|
+
h6,
|
|
339
|
+
hr,
|
|
340
|
+
figure,
|
|
341
|
+
p,
|
|
342
|
+
pre {
|
|
343
|
+
margin: 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
fieldset {
|
|
347
|
+
margin: 0;
|
|
348
|
+
padding: 0;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
legend {
|
|
352
|
+
padding: 0;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
ol,
|
|
356
|
+
ul,
|
|
357
|
+
menu {
|
|
358
|
+
list-style: none;
|
|
359
|
+
margin: 0;
|
|
360
|
+
padding: 0;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
dialog {
|
|
364
|
+
padding: 0;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
textarea {
|
|
368
|
+
resize: vertical;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
input::placeholder,
|
|
372
|
+
textarea::placeholder {
|
|
373
|
+
opacity: 1;
|
|
374
|
+
color: #9ca3af;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
button,
|
|
378
|
+
[role="button"] {
|
|
379
|
+
cursor: pointer;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
:disabled {
|
|
383
|
+
cursor: default;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
img,
|
|
387
|
+
svg,
|
|
388
|
+
video,
|
|
389
|
+
canvas,
|
|
390
|
+
audio,
|
|
391
|
+
iframe,
|
|
392
|
+
embed,
|
|
393
|
+
object {
|
|
394
|
+
display: block;
|
|
395
|
+
vertical-align: middle;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
img,
|
|
399
|
+
video {
|
|
400
|
+
max-width: 100%;
|
|
401
|
+
height: auto;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
[hidden] {
|
|
405
|
+
display: none;
|
|
406
|
+
}
|
|
407
|
+
`.trim()},$l=Object.defineProperty,es=(e)=>e;function ts(e,t){this[e]=es.bind(null,t)}var rs=(e,t)=>{for(var r in t)$l(e,r,{get:t[r],enumerable:!0,configurable:!0,set:ts.bind(t,r)})},B=(e,t)=>()=>(e&&(t=e(e=0)),t),is=import.meta.require;class Ge{cache=new Map;totalHits=0;totalMisses=0;options;constructor(e={}){this.options={enabled:!0,ttl:300000,maxSize:100,keyPrefix:"bunfig:",...e}}generateKey(e,t){let r=t?`:${t}`:"";return`${this.options.keyPrefix}${e}${r}`}isExpired(e){return Date.now()-e.timestamp.getTime()>e.ttl}estimateSize(e){try{return JSON.stringify(e).length}catch{return 1000}}evictIfNeeded(){if(this.cache.size<=this.options.maxSize)return;let e=Array.from(this.cache.entries()).sort(([,r],[,i])=>r.timestamp.getTime()-i.timestamp.getTime()),t=e.length-this.options.maxSize+1;for(let r=0;r<t;r++)this.cache.delete(e[r][0])}set(e,t,r,i){if(!this.options.enabled)return;let a=this.generateKey(e,r),n=i??this.options.ttl,l=this.estimateSize(t);this.cache.set(a,{value:t,timestamp:new Date,ttl:n,hits:0,size:l}),this.evictIfNeeded()}get(e,t){if(!this.options.enabled){this.totalMisses++;return}let r=this.generateKey(e,t),i=this.cache.get(r);if(!i){this.totalMisses++;return}if(this.isExpired(i)){this.cache.delete(r),this.totalMisses++;return}return i.hits++,this.totalHits++,i.value}isFileModified(e,t){try{if(!ft(e))return!0;return pt(e).mtime>t}catch{return!0}}getWithFileCheck(e,t){let r=this.get(e,t);if(!r)return;if(this.isFileModified(t,r.fileTimestamp)){this.delete(e,t);return}return r.value}setWithFileCheck(e,t,r,i){try{let a=ft(r)?pt(r):null,n=a?a.mtime:new Date;this.set(e,{value:t,fileTimestamp:n},r,i)}catch{this.set(e,t,r,i)}}delete(e,t){let r=this.generateKey(e,t);return this.cache.delete(r)}clear(){this.cache.clear(),this.totalHits=0,this.totalMisses=0}cleanup(){let e=0;for(let[t,r]of this.cache.entries())if(this.isExpired(r))this.cache.delete(t),e++;return e}getStats(){let e=Array.from(this.cache.values()),t=e.reduce((i,a)=>i+a.size,0),r=e.map((i)=>i.timestamp).sort();return{size:t,maxSize:this.options.maxSize,hitRate:this.totalHits+this.totalMisses>0?this.totalHits/(this.totalHits+this.totalMisses):0,totalHits:this.totalHits,totalMisses:this.totalMisses,entries:this.cache.size,oldestEntry:r[0],newestEntry:r[r.length-1]}}export(){let e={};for(let[t,r]of this.cache.entries())e[t]={value:r.value,timestamp:r.timestamp.toISOString(),ttl:r.ttl,hits:r.hits,size:r.size};return e}import(e){this.cache.clear();for(let[t,r]of Object.entries(e))if(typeof r==="object"&&r!==null){let i=r;this.cache.set(t,{value:i.value,timestamp:new Date(i.timestamp),ttl:i.ttl,hits:i.hits,size:i.size})}}}class _e{metrics=[];maxMetrics=1000;async track(e,t,r={}){let i=performance.now(),a=new Date;try{let n=await t(),l=performance.now()-i;return this.recordMetric({operation:e,duration:l,timestamp:a,...r}),n}catch(n){let l=performance.now()-i;throw this.recordMetric({operation:`${e}:error`,duration:l,timestamp:a,...r}),n}}recordMetric(e){if(this.metrics.push(e),this.metrics.length>this.maxMetrics)this.metrics=this.metrics.slice(-this.maxMetrics)}getStats(e){let t=e?this.metrics.filter((a)=>a.operation===e):this.metrics;if(t.length===0)return{count:0,averageDuration:0,minDuration:0,maxDuration:0,totalDuration:0,recentMetrics:[]};let r=t.map((a)=>a.duration),i=r.reduce((a,n)=>a+n,0);return{count:t.length,averageDuration:i/t.length,minDuration:Math.min(...r),maxDuration:Math.max(...r),totalDuration:i,recentMetrics:t.slice(-10)}}getAllMetrics(){return[...this.metrics]}clearMetrics(){this.metrics=[]}getSlowOperations(e){return this.metrics.filter((t)=>t.duration>e)}}function as(e,t={}){let r=Object.keys(t).sort().map((i)=>`${i}:${t[i]}`).join("|");return r?`${e}:${r}`:e}function os(e,t){try{return JSON.stringify(e)===JSON.stringify(t)}catch{return e===t}}function ns(e){return e.getStats().size*2}var X,ae,dr,oe=B(()=>{X=new Ge,ae=new _e,dr={createKey:as,isEquivalent:os,estimateMemoryUsage:ns}});function ls(e,t={}){let r=be.cwd();while(r.includes("storage"))r=mt(r,"..");let i=mt(r,e||"");if(t?.relative)return ql(be.cwd(),i);return i}function k(){if(O.env.NODE_ENV==="test"||O.env.BUN_ENV==="test")return!1;return typeof window<"u"}async function ss(){if(O.env.NODE_ENV==="test"||O.env.BUN_ENV==="test")return!0;if(typeof navigator<"u"&&navigator.product==="ReactNative")return!0;if(typeof O<"u"){let e=O.type;if(e==="renderer"||e==="worker")return!1;return!!(O.versions&&(O.versions.node||O.versions.bun))}return!1}class hr{async format(e){let t=await ss(),r=await this.getMetadata(t);return JSON.stringify({timestamp:e.timestamp.toISOString(),level:e.level,name:e.name,message:e.message,metadata:r})}async getMetadata(e){if(e){let{hostname:t}=await import("os");return{pid:U.pid,hostname:t(),environment:U.env.NODE_ENV||"development",platform:U.platform,version:U.version}}return{userAgent:navigator.userAgent,hostname:window.location.hostname||"browser",environment:U.env.NODE_ENV||U.env.BUN_ENV||"development",viewport:{width:window.innerWidth,height:window.innerHeight},language:navigator.language}}}class ke{name;fileLocks=new Map;currentKeyId=null;keys=new Map;fingersCrossedConfig;fingersCrossedActive=!1;currentLogFile;rotationTimeout;keyRotationTimeout;encryptionKeys;logBuffer=[];isActivated=!1;pendingOperations=[];enabled;fancy;tagFormat;timestampPosition;environment;config;options;formatter;timers=new Set;subLoggers=new Set;fingersCrossedBuffer=[];ANSI_PATTERN=/\u001B\[.*?m/g;activeProgressBar=null;constructor(e,t={}){this.name=e,this.config={...te},this.options=this.normalizeOptions(t),this.formatter=this.options.formatter||new hr,this.enabled=t.enabled??!0,this.fancy=t.fancy??!0,this.tagFormat=t.tagFormat??{prefix:"[",suffix:"]"},this.timestampPosition=t.timestampPosition??"right",this.environment=t.environment??y.env.APP_ENV??"local",this.fingersCrossedConfig=this.initializeFingersCrossedConfig(t);let r={...t},i=t.timestamp!==void 0;if(i)delete r.timestamp;if(this.config={...this.config,...r,timestamp:i||this.config.timestamp,level:this.options.level??"info"},this.currentLogFile=this.generateLogFilename(),this.encryptionKeys=new Map,this.validateEncryptionConfig()){this.setupRotation();let a=this.generateKeyId(),n=this.generateKey();this.currentKeyId=a,this.keys.set(a,n),this.encryptionKeys.set(a,{key:n,createdAt:new Date}),this.setupKeyRotation()}}shouldActivateFingersCrossed(e){if(!this.fingersCrossedConfig)return!1;let t={debug:0,info:1,success:2,warning:3,error:4},r=this.fingersCrossedConfig.activationLevel??"error";return t[e]>=t[r]}initializeFingersCrossedConfig(e){if(!e.fingersCrossedEnabled&&e.fingersCrossed)return{...pe,...e.fingersCrossed};if(!e.fingersCrossedEnabled)return null;if(!e.fingersCrossed)return{...pe};return{...pe,...e.fingersCrossed}}normalizeOptions(e){let t={format:"json",level:"info",logDirectory:te.logDirectory,rotation:void 0,timestamp:void 0,fingersCrossed:{},enabled:!0,showTags:!1,showIcons:!0,formatter:void 0},r={...t,...Object.fromEntries(Object.entries(e).filter(([,i])=>i!==void 0))};if(!r.level||!["debug","info","success","warning","error"].includes(r.level))r.level=t.level;return r}shouldWriteToFile(){return!k()&&this.config.writeToFile===!0}async writeToFile(e){let t=(async()=>{let i,a=0,n=3,l=1000;while(a<n)try{try{try{await Dl(this.config.logDirectory,wt.F_OK|wt.W_OK)}catch(o){if(o instanceof Error&&"code"in o)if(o.code==="ENOENT")await Yl(this.config.logDirectory,{recursive:!0,mode:493});else if(o.code==="EACCES")throw Error(`No write permission for log directory: ${this.config.logDirectory}`);else throw o;else throw o}}catch(o){throw console.error("Debug: [writeToFile] Failed to create log directory:",o),o}let s=this.validateEncryptionConfig()?(await this.encrypt(e)).encrypted:T.from(e);try{if(!ce(this.currentLogFile))await We(this.currentLogFile,"",{mode:420});if(i=vt(this.currentLogFile,"a",420),Pl(i,s,{flag:"a"}),bt(i),i!==void 0)Fe(i),i=void 0;if((await Q(this.currentLogFile)).size===0){if(await We(this.currentLogFile,s,{flag:"w",mode:420}),(await Q(this.currentLogFile)).size===0)throw Error("File exists but is empty after retry write")}return}catch(o){let c=o;if(c.code&&["ENETDOWN","ENETUNREACH","ENOTFOUND","ETIMEDOUT"].includes(c.code)){if(a<n-1){let u=typeof c.message==="string"?c.message:"Unknown error";console.error(`Network error during write attempt ${a+1}/${n}:`,u);let d=l*2**a;await new Promise((h)=>setTimeout(h,d)),a++;continue}}if(c?.code&&["ENOSPC","EDQUOT"].includes(c.code))throw Error(`Disk quota exceeded or no space left on device: ${c.message}`);throw console.error("Debug: [writeToFile] Error writing to file:",c),c}finally{if(i!==void 0)try{Fe(i)}catch(o){console.error("Debug: [writeToFile] Error closing file descriptor:",o)}}}catch(s){if(a===n-1){let c=s,u=typeof c.message==="string"?c.message:"Unknown error";throw console.error("Debug: [writeToFile] Max retries reached. Final error:",u),s}a++;let o=l*2**(a-1);await new Promise((c)=>setTimeout(c,o))}})();this.pendingOperations.push(t);let r=this.pendingOperations.length-1;try{await t}catch(i){throw console.error("Debug: [writeToFile] Error in operation:",i),i}finally{this.pendingOperations.splice(r,1)}}generateLogFilename(){if(this.name.includes("stream-throughput")||this.name.includes("decompress-perf-test")||this.name.includes("decompression-latency")||this.name.includes("concurrent-read-test")||this.name.includes("clock-change-test"))return H(this.config.logDirectory,`${this.name}.log`);if(this.name.includes("pending-test")||this.name.includes("temp-file-test")||this.name==="crash-test"||this.name==="corrupt-test"||this.name.includes("rotation-load-test")||this.name==="sigterm-test"||this.name==="sigint-test"||this.name==="failed-rotation-test"||this.name==="integration-test")return H(this.config.logDirectory,`${this.name}.log`);let e=new Date().toISOString().split("T")[0];return H(this.config.logDirectory,`${this.name}-${e}.log`)}setupRotation(){if(k())return;if(!this.shouldWriteToFile())return;if(typeof this.config.rotation==="boolean")return;let e=this.config.rotation,t;switch(e.frequency){case"daily":t=86400000;break;case"weekly":t=604800000;break;case"monthly":t=2592000000;break;default:return}this.rotationTimeout=setInterval(()=>{this.rotateLog()},t)}setupKeyRotation(){if(!this.validateEncryptionConfig()){console.error("Invalid encryption configuration detected during key rotation setup");return}let e=this.config.rotation.keyRotation;if(!e?.enabled)return;let t=typeof e.interval==="number"?e.interval:60,r=Math.max(t,60)*1000;this.keyRotationTimeout=setInterval(()=>{this.rotateKeys().catch((i)=>{console.error("Error rotating keys:",i)})},r)}async rotateKeys(){if(!this.validateEncryptionConfig()){console.error("Invalid encryption configuration detected during key rotation");return}let e=this.config.rotation.keyRotation,t=this.generateKeyId(),r=this.generateKey();this.currentKeyId=t,this.keys.set(t,r),this.encryptionKeys.set(t,{key:r,createdAt:new Date});let i=Array.from(this.encryptionKeys.entries()).sort(([,l],[,s])=>s.createdAt.getTime()-l.createdAt.getTime()),a=typeof e.maxKeys==="number"?e.maxKeys:1,n=Math.max(1,a);if(i.length>n)for(let[l]of i.slice(n))this.encryptionKeys.delete(l),this.keys.delete(l)}generateKeyId(){return Re(16).toString("hex")}generateKey(){return Re(32)}getCurrentKey(){if(!this.currentKeyId)throw Error("Encryption is not properly initialized. Make sure encryption is enabled in the configuration.");let e=this.keys.get(this.currentKeyId);if(!e)throw Error(`No key found for ID ${this.currentKeyId}. The encryption key may have been rotated or removed.`);return{key:e,id:this.currentKeyId}}encrypt(e){let{key:t}=this.getCurrentKey(),r=Re(16),i=Ml("aes-256-gcm",t,r),a=T.isBuffer(e)?e:T.from(e,"utf8"),n=i.update(a),l=i.final(),s=n.length+l.length,o=i.getAuthTag(),c=T.allocUnsafe(16+s+16);return r.copy(c,0),n.copy(c,16),l.copy(c,16+n.length),o.copy(c,16+s),{encrypted:c,iv:r}}async compressData(e){return new Promise((t,r)=>{let i=xt(),a=[];i.on("data",(n)=>a.push(n)),i.on("end",()=>t(T.from(T.concat(a)))),i.on("error",r),i.write(e),i.end()})}getEncryptionOptions(){if(!this.config.rotation||typeof this.config.rotation==="boolean"||!this.config.rotation.encrypt)return{};let e={algorithm:"aes-256-cbc",compress:!1};if(typeof this.config.rotation.encrypt==="object"){let t=this.config.rotation.encrypt;return{...e,...t}}return e}async rotateLog(){if(k())return;if(!this.shouldWriteToFile())return;let e=await Q(this.currentLogFile).catch(()=>null);if(!e)return;let t=this.config.rotation;if(typeof t==="boolean")return;if(t.maxSize&&e.size>=t.maxSize){let r=this.currentLogFile,i=this.generateLogFilename();if(this.name.includes("rotation-load-test")||this.name==="failed-rotation-test"){let a=await ue(this.config.logDirectory),n=a.filter((o)=>o.startsWith(this.name)&&/\.log\.\d+$/.test(o)).sort((o,c)=>{let u=Number.parseInt(o.match(/\.log\.(\d+)$/)?.[1]||"0");return Number.parseInt(c.match(/\.log\.(\d+)$/)?.[1]||"0")-u}),l=n.length>0?Number.parseInt(n[0].match(/\.log\.(\d+)$/)?.[1]||"0")+1:1,s=`${r}.${l}`;if(await Q(r).catch(()=>null))try{if(await yt(r,s),t.compress)try{let o=`${s}.gz`;await this.compressLogFile(s,o),await de(s)}catch(o){console.error("Error compressing rotated file:",o)}if(n.length===0&&!a.some((o)=>o.endsWith(".log.1")))try{let o=`${r}.1`;await We(o,"")}catch(o){console.error("Error creating backup file:",o)}}catch(o){console.error(`Error during rotation: ${o instanceof Error?o.message:String(o)}`)}}else{let a=new Date().toISOString().replace(/[:.]/g,"-"),n=r.replace(/\.log$/,`-${a}.log`);if(await Q(r).catch(()=>null))await yt(r,n)}if(this.currentLogFile=i,t.maxFiles){let a=(await ue(this.config.logDirectory)).filter((n)=>n.startsWith(this.name)).sort((n,l)=>l.localeCompare(n));for(let n of a.slice(t.maxFiles))await de(H(this.config.logDirectory,n))}}}async compressLogFile(e,t){let r=gt(e),i=Ll(t),a=xt();await Hl(r,a,i)}async handleFingersCrossedBuffer(e,t){if(!this.fingersCrossedConfig)return;if(this.shouldActivateFingersCrossed(e)&&!this.isActivated){this.isActivated=!0;for(let r of this.logBuffer){let i=await this.formatter.format(r);if(this.shouldWriteToFile())await this.writeToFile(i);console.log(i)}if(this.fingersCrossedConfig.stopBuffering)this.logBuffer=[]}if(this.isActivated){if(this.shouldWriteToFile())await this.writeToFile(t);console.log(t)}}shouldLog(e){if(!this.enabled)return!1;let t={debug:0,info:1,success:2,warning:3,error:4};return t[e]>=t[this.config.level]}async flushPendingWrites(){if(await Promise.all(this.pendingOperations.map((e)=>{if(e instanceof Promise)return e.catch((t)=>{console.error("Error in pending write operation:",t)});return Promise.resolve()})),ce(this.currentLogFile))try{let e=vt(this.currentLogFile,"r+");bt(e),Fe(e)}catch(e){console.error(`Error flushing file: ${e}`)}}async destroy(){if(this.rotationTimeout)clearInterval(this.rotationTimeout);if(this.keyRotationTimeout)clearInterval(this.keyRotationTimeout);this.timers.clear();for(let e of this.pendingOperations)if(typeof e.cancel==="function")e.cancel();return(async()=>{if(this.pendingOperations.length>0)try{await Promise.allSettled(this.pendingOperations)}catch(e){console.error("Error waiting for pending operations:",e)}if(!k()&&this.config.rotation&&typeof this.config.rotation!=="boolean"&&this.config.rotation.compress)try{let e=(await ue(this.config.logDirectory)).filter((t)=>(t.includes("temp")||t.includes(".tmp"))&&t.includes(this.name));for(let t of e)try{await de(H(this.config.logDirectory,t))}catch(r){console.error(`Failed to delete temp file ${t}:`,r)}}catch(e){console.error("Error cleaning up temporary files:",e)}})()}getCurrentLogFilePath(){return this.currentLogFile}formatTag(e){if(!e)return"";return`${this.tagFormat.prefix}${e}${this.tagFormat.suffix}`}formatFileTimestamp(e){return`[${e.toISOString()}]`}formatConsoleTimestamp(e){return this.shouldStyleConsole()?v.gray(e.toLocaleTimeString()):e.toLocaleTimeString()}shouldStyleConsole(){if(!this.fancy||k())return!1;let e=typeof y.env.NO_COLOR<"u",t=y.env.FORCE_COLOR==="0";if(e||t)return!1;return!!(typeof y.stderr<"u"&&y.stderr.isTTY||typeof y.stdout<"u"&&y.stdout.isTTY)}formatConsoleMessage(e){let{timestamp:t,icon:r="",tag:i="",message:a,level:n,showTimestamp:l=!0}=e,s=(f)=>f.replace(this.ANSI_PATTERN,"");if(!this.fancy){let f=[];if(l)f.push(t);if(n==="warning")f.push("WARN");else if(n==="error")f.push("ERROR");else if(r)f.push(r.replace(/[^\p{L}\p{N}\p{P}\p{Z}]/gu,""));if(i)f.push(i.replace(/[[\]]/g,""));return f.push(a),f.join(" ")}let o=y.stdout.columns||120,c="";if(n==="warning"||n==="error")c=`${r} ${a}`;else if(n==="info"||n==="success")c=`${r} ${i} ${a}`;else c=`${r} ${i} ${v.cyan(a)}`;if(!l)return c.trim();let u=s(c).trim().length,d=s(t).length,h=Math.max(1,o-2-u-d);return`${c.trim()}${" ".repeat(h)}${t}`}formatMessage(e,t){if(t.length===1&&Array.isArray(t[0]))return e.replace(/\{(\d+)\}/g,(n,l)=>{let s=Number.parseInt(l,10);return s<t[0].length?String(t[0][s]):n});let r=/%([sdijfo%])/g,i=0,a=e.replace(r,(n,l)=>{if(l==="%")return"%";if(i>=t.length)return n;let s=t[i++];switch(l){case"s":return String(s);case"d":case"i":return Number(s).toString();case"j":case"o":return JSON.stringify(s,null,2);default:return n}});if(i<t.length)a+=` ${t.slice(i).map((n)=>typeof n==="object"?JSON.stringify(n,null,2):String(n)).join(" ")}`;return a}formatMarkdown(e){if(!e)return e;let t=e;return t=t.replace(/\[([^\]]+)\]\(([^)]+)\)/g,(r,i,a)=>{let n=v.underline(v.blue(i)),l=this.toAbsoluteFilePath(a);if(l&&this.shouldStyleConsole()&&this.supportsHyperlinks()){let s=`file://${encodeURI(l)}`,o="\x1B]8;;",c="\x1B\\";return`\x1B]8;;${s}\x1B\\${n}\x1B]8;;\x1B\\`}if(this.shouldStyleConsole()&&this.supportsHyperlinks())return`\x1B]8;;${a}\x1B\\${n}\x1B]8;;\x1B\\`;return n}),t=t.replace(/`([^`]+)`/g,(r,i)=>v.bgGray(i)),t=t.replace(/\*\*([^*]+)\*\*/g,(r,i)=>v.bold(i)),t=t.replace(/(?<!\*)\*([^*]+)\*(?!\*)/g,(r,i)=>v.italic(i)),t=t.replace(/(?<!_)_([^_]+)_(?!_)/g,(r,i)=>v.italic(i)),t=t.replace(/~([^~]+)~/g,(r,i)=>v.strikethrough(i)),t}supportsHyperlinks(){if(k())return!1;let e=y.env;if(!e)return!1;if(e.TERM_PROGRAM==="iTerm.app"||e.TERM_PROGRAM==="vscode"||e.TERM_PROGRAM==="WezTerm")return!0;if(e.WT_SESSION)return!0;if(e.TERM==="xterm-kitty")return!0;let t=e.VTE_VERSION?Number.parseInt(e.VTE_VERSION,10):0;if(!Number.isNaN(t)&&t>=5000)return!0;return!1}toAbsoluteFilePath(e){try{let t=e;if(t.startsWith("file://"))t=t.replace(/^file:\/\//,"");if(t.startsWith("~")){let r=y.env.HOME||"";if(r)t=t.replace(/^~(?=$|\/)/,r)}if(Il(t)||t.startsWith("./")||t.startsWith("../"))t=Ql(t);else return null;return ce(t)?t:null}catch{return null}}buildOutputTexts(e){let t=this.shouldStyleConsole()?this.formatMarkdown(e):e,r=e.replace(this.ANSI_PATTERN,"");return{consoleText:t,fileText:r}}async log(e,t,...r){if(!this.shouldLog(e))return;let i=new Date,a=this.formatConsoleTimestamp(i),n=this.formatFileTimestamp(i),l,s;if(t instanceof Error)l=t.message,s=t.stack;else l=this.formatMessage(t,r);let{consoleText:o,fileText:c}=this.buildOutputTexts(l);if(this.shouldStyleConsole()){let d=this.options.showIcons===!1?"":fr[e],h=this.options.showTags!==!1&&this.name?v.gray(this.formatTag(this.name)):"",f;switch(e){case"debug":f=this.formatConsoleMessage({timestamp:a,icon:d,tag:h,message:v.gray(o),level:e}),console.error(f);break;case"info":f=this.formatConsoleMessage({timestamp:a,icon:d,tag:h,message:o,level:e}),console.warn(f);break;case"success":f=this.formatConsoleMessage({timestamp:a,icon:d,tag:h,message:v.green(o),level:e}),console.error(f);break;case"warning":f=this.formatConsoleMessage({timestamp:a,icon:d,tag:h,message:o,level:e}),console.warn(f);break;case"error":if(f=this.formatConsoleMessage({timestamp:a,icon:d,tag:h,message:o,level:e}),console.error(f),s){let w=s.split(`
|
|
408
|
+
`);for(let p of w)if(p.trim()&&!p.includes(l))console.error(this.formatConsoleMessage({timestamp:a,message:v.gray(` ${p}`),level:e,showTimestamp:!1}))}break}}else if(!k()){if(console.error(`${n} ${this.environment}.${e.toUpperCase()}: ${l}`),s)console.error(s)}let u=`${n} ${this.environment}.${e.toUpperCase()}: ${c}
|
|
409
|
+
`;if(s)u+=`${s}
|
|
410
|
+
`;if(u=u.replace(this.ANSI_PATTERN,""),this.shouldWriteToFile())await this.writeToFile(u)}progress(e,t=""){let r={update:(a,n)=>{},finish:(a)=>{},interrupt:(a,n)=>{}};if(!this.enabled)return r;let i=30;if(this.activeProgressBar={total:Math.max(1,e||1),current:0,message:t||"",barLength:i,lastRenderedLine:""},this.shouldStyleConsole()&&!k()&&y.stdout.isTTY)this.renderProgressBar(this.activeProgressBar);return{update:(a,n)=>{if(!this.enabled||!this.activeProgressBar)return;if(this.activeProgressBar.current=Math.min(Math.max(0,a),this.activeProgressBar.total),n!==void 0)this.activeProgressBar.message=n;if(this.shouldStyleConsole()&&!k()&&y.stdout.isTTY)this.renderProgressBar(this.activeProgressBar)},finish:(a)=>{if(!this.activeProgressBar)return;this.finishProgressBar(this.activeProgressBar,a)},interrupt:(a,n="info")=>{if(!k()&&y.stdout.isTTY)y.stdout.write(`
|
|
411
|
+
`);if(this[n==="warning"?"warn":n](a),this.activeProgressBar&&this.shouldStyleConsole()&&!k()&&y.stdout.isTTY)this.renderProgressBar(this.activeProgressBar)}}}time(e){let t=performance.now();if(this.shouldStyleConsole()){let r=this.options.showTags!==!1&&this.name?v.gray(this.formatTag(this.name)):"",i=this.formatConsoleTimestamp(new Date);console.error(this.formatConsoleMessage({timestamp:i,icon:this.options.showIcons===!1?"":v.blue("\u25D0"),tag:r,message:`${v.cyan(e)}...`}))}return async(r)=>{if(!this.enabled)return;let i=performance.now(),a=Math.round(i-t),n=`${e} completed in ${a}ms`,l=new Date,s=this.formatConsoleTimestamp(l),o=`${this.formatFileTimestamp(l)} ${this.environment}.INFO: ${n}`;if(r)o+=` ${JSON.stringify(r)}`;if(o+=`
|
|
412
|
+
`,o=o.replace(this.ANSI_PATTERN,""),this.shouldStyleConsole()){let c=this.options.showTags!==!1&&this.name?v.gray(this.formatTag(this.name)):"";console.error(this.formatConsoleMessage({timestamp:s,icon:this.options.showIcons===!1?"":v.green("\u2713"),tag:c,message:`${n}${r?` ${JSON.stringify(r)}`:""}`}))}else if(!k())console.error(o.trim());if(this.shouldWriteToFile())await this.writeToFile(o)}}async debug(e,...t){await this.log("debug",e,...t)}async info(e,...t){await this.log("info",e,...t)}async success(e,...t){await this.log("success",e,...t)}async warn(e,...t){await this.log("warning",e,...t)}async error(e,...t){await this.log("error",e,...t)}validateEncryptionConfig(){if(!this.config.rotation)return!1;if(typeof this.config.rotation==="boolean")return!1;let e=this.config.rotation,{encrypt:t}=e;return!!t}async only(e){if(!this.enabled)return;return await e()}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}extend(e){let t=`${this.name}:${e}`,r=new ke(t,{...this.options,logDirectory:this.config.logDirectory,level:this.config.level,format:this.config.format,rotation:typeof this.config.rotation==="boolean"?void 0:this.config.rotation,timestamp:typeof this.config.timestamp==="boolean"?void 0:this.config.timestamp});return this.subLoggers.add(r),r}createReadStream(){if(k())throw Error("createReadStream is not supported in browser environments");if(!ce(this.currentLogFile))throw Error(`Log file does not exist: ${this.currentLogFile}`);return gt(this.currentLogFile,{encoding:"utf8"})}async decrypt(e){if(!this.validateEncryptionConfig())throw Error("Encryption is not configured");let t=this.config.rotation;if(!t.encrypt||typeof t.encrypt==="boolean")throw Error("Invalid encryption configuration");if(!this.currentKeyId||!this.keys.has(this.currentKeyId))throw Error("No valid encryption key available");let r=this.keys.get(this.currentKeyId);try{let i=T.isBuffer(e)?e:T.from(e,"base64"),a=i.subarray(0,16),n=i.subarray(i.length-16),l=i.subarray(16,i.length-16),s=Bl("aes-256-gcm",r,a);s.setAuthTag(n);let o=s.update(l),c=s.final(),u=o.length+c.length,d=T.allocUnsafe(u);return o.copy(d,0),c.copy(d,o.length),d.toString("utf8")}catch(i){throw Error(`Decryption failed: ${i instanceof Error?i.message:String(i)}`)}}getLevel(){return this.config.level}getLogDirectory(){return this.config.logDirectory}getFormat(){return this.config.format}getRotationConfig(){return this.config.rotation}isBrowserMode(){return k()}isServerMode(){return!k()}setTestEncryptionKey(e,t){this.currentKeyId=e,this.keys.set(e,t)}getTestCurrentKey(){if(!this.currentKeyId||!this.keys.has(this.currentKeyId))return null;return{id:this.currentKeyId,key:this.keys.get(this.currentKeyId)}}getConfig(){return this.config}async box(e){if(!this.enabled)return;let t=new Date,r=this.formatConsoleTimestamp(t),i=this.formatFileTimestamp(t),{consoleText:a,fileText:n}=this.buildOutputTexts(e);if(this.shouldStyleConsole()){let s=a.split(`
|
|
413
|
+
`),o=Math.max(...s.map((h)=>h.length))+2,c=`\u250C${"\u2500".repeat(o)}\u2510`,u=`\u2514${"\u2500".repeat(o)}\u2518`,d=s.map((h)=>{return this.formatConsoleMessage({timestamp:r,message:v.cyan(h),showTimestamp:!1})});console.error(this.formatConsoleMessage({timestamp:r,message:v.cyan(c),showTimestamp:!1})),d.forEach((h)=>console.error(h)),console.error(this.formatConsoleMessage({timestamp:r,message:v.cyan(u),showTimestamp:!1}))}else if(!k())console.error(`${i} ${this.environment}.INFO: [BOX] ${n}`);let l=`${i} ${this.environment}.INFO: [BOX] ${n}
|
|
414
|
+
`.replace(this.ANSI_PATTERN,"");if(this.shouldWriteToFile())await this.writeToFile(l)}async prompt(e){if(k())return Promise.resolve(!0);return new Promise((t)=>{console.error(`${v.cyan("?")} ${e} (y/n) `);let r=(i)=>{let a=i.toString().trim().toLowerCase();y.stdin.removeListener("data",r);try{if(typeof y.stdin.setRawMode==="function")y.stdin.setRawMode(!1)}catch{}y.stdin.pause(),console.error(""),t(a==="y"||a==="yes")};try{if(typeof y.stdin.setRawMode==="function")y.stdin.setRawMode(!0)}catch{}y.stdin.resume(),y.stdin.once("data",r)})}setFancy(e){this.fancy=e}isFancy(){return this.fancy}pause(){this.enabled=!1}resume(){this.enabled=!0}async start(e,...t){if(!this.enabled)return;let r=e;if(t&&t.length>0){let l=/%([sdijfo%])/g,s=0;if(r=e.replace(l,(o,c)=>{if(c==="%")return"%";if(s>=t.length)return o;let u=t[s++];switch(c){case"s":return String(u);case"d":case"i":return Number(u).toString();case"j":case"o":return JSON.stringify(u,null,2);default:return o}}),s<t.length)r+=` ${t.slice(s).map((o)=>typeof o==="object"?JSON.stringify(o,null,2):String(o)).join(" ")}`}let{consoleText:i,fileText:a}=this.buildOutputTexts(r);if(this.shouldStyleConsole()){let l=this.options.showTags!==!1&&this.name?v.gray(this.formatTag(this.name)):"",s=this.options.showIcons===!1?"":`${v.blue("\u25D0")} `;console.error(`${s}${l} ${v.cyan(i)}`)}let n=`[${new Date().toISOString()}] ${this.environment}.INFO: [START] ${a}
|
|
415
|
+
`.replace(this.ANSI_PATTERN,"");if(this.shouldWriteToFile())await this.writeToFile(n)}renderProgressBar(e,t=!1){if(!this.enabled||!this.shouldStyleConsole()||!y.stdout.isTTY)return;let r=Math.min(100,Math.max(0,Math.round(e.current/e.total*100))),i=Math.round(e.barLength*r/100),a=e.barLength-i,n=v.green("\u2501".repeat(i)),l=v.gray("\u2501".repeat(a)),s=`[${n}${l}]`,o=`${r}%`.padStart(4),c=e.message?` ${e.message}`:"",u=this.options.showIcons===!1?"":t||r===100?v.green("\u2713"):v.blue("\u25B6"),d=this.options.showTags!==!1&&this.name?` ${v.gray(this.formatTag(this.name))}`:"",h=`\r${u}${d} ${s} ${o}${c}`,f=y.stdout.columns||80,w=" ".repeat(Math.max(0,f-h.replace(this.ANSI_PATTERN,"").length));if(e.lastRenderedLine=`${h}${w}`,y.stdout.write(e.lastRenderedLine),t)y.stdout.write(`
|
|
416
|
+
`)}finishProgressBar(e,t){if(!this.enabled||!this.fancy||k()||!y.stdout.isTTY){this.activeProgressBar=null;return}if(e.current<e.total)e.current=e.total;if(t)e.message=t;this.renderProgressBar(e,!0),this.activeProgressBar=null}async clear(e={}){if(k()){console.warn("Log clearing is not supported in browser environments.");return}try{console.warn("Clearing logs...",this.config.logDirectory);let t=await ue(this.config.logDirectory),r=[];for(let i of t){if(!(e.name?new RegExp(e.name.replace("*",".*")).test(i):i.startsWith(this.name))||!i.endsWith(".log"))continue;let a=H(this.config.logDirectory,i);if(e.before)try{if((await Q(a)).mtime>=e.before)continue}catch(n){console.error(`Failed to get stats for file ${a}:`,n);continue}r.push(a)}if(r.length===0){console.warn("No log files matched the criteria for clearing.");return}console.warn(`Preparing to delete ${r.length} log file(s)...`);for(let i of r)try{await de(i),console.warn(`Deleted log file: ${i}`)}catch(a){console.error(`Failed to delete log file ${i}:`,a)}console.warn("Log clearing process finished.")}catch(t){console.error("Error during log clearing process:",t)}}}var zt,qe,te,cs,C,v,us,jt,ds,Et,hs,fs,Me,ps,Nt,St,ms,Be,gs,bs,vs,ws,ys,pe,fr,xs,ks=B(()=>{zt=be.env.CLARITY_LOG_DIR||Ol(ls(),"logs"),qe={level:"info",defaultName:"clarity",timestamp:!0,colors:!0,format:"text",maxLogSize:10485760,logDatePattern:"YYYY-MM-DD",logDirectory:zt,rotation:{frequency:"daily",maxSize:10485760,maxFiles:5,compress:!1,rotateHour:0,rotateMinute:0,rotateDayOfWeek:0,rotateDayOfMonth:1,encrypt:!1},verbose:!1,writeToFile:!1},te={...qe},cs=(async()=>{try{let{loadConfig:e}=await Promise.resolve().then(()=>(Nr(),Er)),t=await e({name:"clarity",alias:"logging",defaultConfig:qe,cwd:be.cwd()});if(t)Object.assign(te,t)}catch{}return te})(),C={red:(e)=>`\x1B[31m${e}\x1B[0m`,green:(e)=>`\x1B[32m${e}\x1B[0m`,yellow:(e)=>`\x1B[33m${e}\x1B[0m`,blue:(e)=>`\x1B[34m${e}\x1B[0m`,magenta:(e)=>`\x1B[35m${e}\x1B[0m`,cyan:(e)=>`\x1B[36m${e}\x1B[0m`,white:(e)=>`\x1B[37m${e}\x1B[0m`,gray:(e)=>`\x1B[90m${e}\x1B[0m`,bgRed:(e)=>`\x1B[41m${e}\x1B[0m`,bgYellow:(e)=>`\x1B[43m${e}\x1B[0m`,bgGray:(e)=>`\x1B[100m${e}\x1B[0m`,bold:(e)=>`\x1B[1m${e}\x1B[0m`,dim:(e)=>`\x1B[2m${e}\x1B[0m`,italic:(e)=>`\x1B[3m${e}\x1B[0m`,underline:(e)=>`\x1B[4m${e}\x1B[0m`,strikethrough:(e)=>`\x1B[9m${e}\x1B[0m`,reset:"\x1B[0m"},v=C,us=C.red,jt=C.green,ds=C.yellow,Et=C.blue,hs=C.magenta,fs=C.cyan,Me=C.white,ps=C.gray,Nt=C.bgRed,St=C.bgYellow,ms=C.bgGray,Be=C.bold,gs=C.dim,bs=C.italic,vs=C.underline,ws=C.strikethrough,ys=C.reset,pe={activationLevel:"error",bufferSize:50,flushOnDeactivation:!0,stopBuffering:!1},fr={debug:"\uD83D\uDD0D",info:Et("\u2139"),success:jt("\u2713"),warning:St(Me(Be(" WARN "))),error:Nt(Me(Be(" ERROR ")))},xs=new ke("stacks")}),Cs="0.15.9",zs=()=>{};async function pr(e,t={}){let{maxRetries:r=3,retryDelay:i=1000,isRetryable:a=()=>!0,fallback:n}=t,l=Error("Unknown error occurred");for(let s=0;s<=r;s++)try{return await e()}catch(o){if(l=o instanceof Error?o:Error(String(o)),s===r||!a(l))break;if(i>0)await new Promise((c)=>setTimeout(c,i))}if(n!==void 0)return n;throw l instanceof Error?l:Error(`Unknown error: ${String(l)}`)}function mr(e){return e instanceof N}function js(e){return e instanceof ve}function Es(e){if(mr(e))return e.code==="FILE_SYSTEM_ERROR"||e.code==="BROWSER_CONFIG_ERROR";return["ENOENT","EACCES","EMFILE","ENFILE","EBUSY","network","timeout","connection"].some((t)=>e.message.toLowerCase().includes(t.toLowerCase()))}var N,ve,re,Ie,Qe,we,He,Ue,ie,Ze,Xe,Y,V=B(()=>{N=class extends Error{timestamp;context;constructor(e,t={}){super(e);if(this.name=this.constructor.name,this.timestamp=new Date,this.context=t,Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}toJSON(){return{name:this.name,code:this.code,message:this.message,timestamp:this.timestamp.toISOString(),context:this.context,stack:this.stack}}toString(){let e=Object.keys(this.context).length>0?` (${Object.entries(this.context).map(([t,r])=>`${t}: ${r}`).join(", ")})`:"";return`${this.name} [${this.code}]: ${this.message}${e}`}},ve=class extends N{code="CONFIG_NOT_FOUND";constructor(e,t,r){let i=r===void 0?[]:Array.isArray(r)?r.filter(Boolean):[r],a="";if(i.length===1)a=` or alias "${i[0]}"`;else if(i.length>1)a=` or aliases ${i.map((n)=>`"${n}"`).join(", ")}`;super(`Configuration "${e}"${a} not found`,{configName:e,alias:r,searchPaths:t,searchPathCount:t.length})}},re=class extends N{code="CONFIG_LOAD_ERROR";constructor(e,t,r){super(`Failed to load configuration from "${e}": ${t.message}`,{configPath:e,configName:r,originalError:t.name,originalMessage:t.message});this.cause=t}},Ie=class extends N{code="CONFIG_VALIDATION_ERROR";constructor(e,t,r){super(`Configuration validation failed for "${e}"`,{configPath:e,configName:r,validationErrors:t,errorCount:t.length})}},Qe=class extends N{code="CONFIG_MERGE_ERROR";constructor(e,t,r,i){super(`Failed to merge configuration from "${e}" with "${t}": ${r.message}`,{sourcePath:e,targetPath:t,configName:i,originalError:r.name,originalMessage:r.message});this.cause=r}},we=class extends N{code="ENV_VAR_ERROR";constructor(e,t,r,i){super(`Failed to parse environment variable "${e}" with value "${t}" as ${r}`,{envKey:e,envValue:t,expectedType:r,configName:i})}},He=class extends N{code="FILE_SYSTEM_ERROR";constructor(e,t,r){super(`File system ${e} failed for "${t}": ${r.message}`,{operation:e,path:t,originalError:r.name,originalMessage:r.message});this.cause=r}},Ue=class extends N{code="TYPE_GENERATION_ERROR";constructor(e,t,r){super(`Failed to generate types from "${e}" to "${t}": ${r.message}`,{configDir:e,outputPath:t,originalError:r.name,originalMessage:r.message});this.cause=r}},ie=class extends N{code="SCHEMA_VALIDATION_ERROR";constructor(e,t,r){super(`Schema validation failed${r?` for config "${r}"`:""}`,{schemaPath:e,configName:r,validationErrors:t,errorCount:t.length})}},Ze=class extends N{code="BROWSER_CONFIG_ERROR";constructor(e,t,r,i){super(`Failed to fetch configuration from "${e}": ${t} ${r}`,{endpoint:e,status:t,statusText:r,configName:i})}},Xe=class extends N{code="PLUGIN_ERROR";constructor(e,t,r){super(`Plugin "${e}" failed during ${t}: ${r.message}`,{pluginName:e,operation:t,originalError:r.name,originalMessage:r.message});this.cause=r}},Y={configNotFound(e,t,r){return new ve(e,t,r)},configLoad(e,t,r){return new re(e,t,r)},configValidation(e,t,r){return new Ie(e,t,r)},configMerge(e,t,r,i){return new Qe(e,t,r,i)},envVar(e,t,r,i){return new we(e,t,r,i)},fileSystem(e,t,r){return new He(e,t,r)},typeGeneration(e,t,r){return new Ue(e,t,r)},schemaValidation(e,t,r){return new ie(e,t,r)},browserConfig(e,t,r,i){return new Ze(e,t,r,i)},plugin(e,t,r){return new Xe(e,t,r)}}});class Ce{defaultParsers;constructor(){this.defaultParsers=[{name:"boolean",canParse:(e,t)=>t==="boolean"||["true","false","1","0","yes","no"].includes(e.toLowerCase()),parse:(e)=>{let t=e.toLowerCase();return["true","1","yes"].includes(t)}},{name:"number",canParse:(e,t)=>t==="number"||!Number.isNaN(Number(e))&&!Number.isNaN(Number.parseFloat(e)),parse:(e)=>{let t=Number(e);if(Number.isNaN(t))throw TypeError(`Cannot parse "${e}" as number`);return t}},{name:"array",canParse:(e,t)=>t==="array"||e.startsWith("[")||e.includes(","),parse:(e)=>{try{let t=JSON.parse(e);if(Array.isArray(t))return t}catch{}return e.split(",").map((t)=>t.trim())}},{name:"json",canParse:(e,t)=>t==="object"||(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]")),parse:(e)=>{try{return JSON.parse(e)}catch(t){throw Error(`Cannot parse "${e}" as JSON: ${t}`)}}}]}async applyEnvironmentVariables(e,t,r={}){let{prefix:i,useCamelCase:a=!0,useBackwardCompatibility:n=!0,customParsers:l={},verbose:s=!1,trackPerformance:o=!0}=r,c=async()=>{if(!e)return{config:t,source:{type:"environment",priority:50,timestamp:new Date}};let u=i||this.generateEnvPrefix(e),d={...t};return this.processObject(d,[],u,{useCamelCase:a,useBackwardCompatibility:n,customParsers:l,verbose:s,configName:e}),{config:d,source:{type:"environment",priority:50,timestamp:new Date}}};if(o)return ae.track("applyEnvironmentVariables",c,{configName:e});return c()}generateEnvPrefix(e){return e.toUpperCase().replace(/-/g,"_")}formatEnvKey(e,t){if(!t)return e.toUpperCase();return e.replace(/([A-Z])/g,"_$1").toUpperCase()}processObject(e,t,r,i){for(let[a,n]of Object.entries(e)){let l=[...t,a],s=l.map((u)=>this.formatEnvKey(u,i.useCamelCase)),o=`${r}_${s.join("_")}`,c=i.useBackwardCompatibility?`${r}_${l.map((u)=>u.toUpperCase()).join("_")}`:null;if(i.verbose);if(typeof n==="object"&&n!==null&&!Array.isArray(n))this.processObject(n,l,r,i);else{let u=he.env[o]||(c?he.env[c]:void 0);if(u!==void 0){if(i.verbose){let d=he.env[o]?o:c}try{e[a]=this.parseEnvironmentValue(u,typeof n,o,i.customParsers,i.configName)}catch(d){if(d instanceof we)throw d;throw Y.envVar(o,u,typeof n,i.configName)}}}}}parseEnvironmentValue(e,t,r,i,a){for(let[n,l]of Object.entries(i))try{return l(e)}catch{continue}for(let n of this.defaultParsers)if(n.canParse(e,t))try{return n.parse(e)}catch{throw Y.envVar(r,e,`${t} (via ${n.name} parser)`,a)}return e}getEnvironmentVariables(e){let t={},r=e.toUpperCase();for(let[i,a]of Object.entries(he.env))if(i.startsWith(r)&&a!==void 0)t[i]=a;return t}validateEnvironmentVariable(e,t,r){let i=[];if(!/^[A-Z_][A-Z0-9_]*$/.test(e))i.push(`Environment variable key "${e}" should only contain uppercase letters, numbers, and underscores`);if(r)try{this.parseEnvironmentValue(e,t,r,{})}catch(a){i.push(`Cannot parse value "${t}" as ${r}: ${a}`)}return{isValid:i.length===0,errors:i}}generateEnvVarDocs(e,t,r={}){let{prefix:i,format:a="text"}=r,n=i||this.generateEnvPrefix(e),l=[];switch(this.extractEnvVarInfo(t,[],n,l),a){case"markdown":return this.formatAsMarkdown(l,e);case"json":return JSON.stringify(l,null,2);default:return this.formatAsText(l,e)}}extractEnvVarInfo(e,t,r,i){for(let[a,n]of Object.entries(e)){let l=[...t,a],s=`${r}_${l.map((o)=>this.formatEnvKey(o,!0)).join("_")}`;if(typeof n==="object"&&n!==null&&!Array.isArray(n))this.extractEnvVarInfo(n,l,r,i);else i.push({key:s,type:Array.isArray(n)?"array":typeof n,description:`Configuration for ${l.join(".")}`,example:this.generateExample(n)})}}generateExample(e){if(Array.isArray(e))return JSON.stringify(e);if(typeof e==="object"&&e!==null)return JSON.stringify(e);return String(e)}formatAsText(e,t){let r=`Environment Variables for ${t}:
|
|
417
|
+
|
|
418
|
+
`;for(let i of e)r+=`${i.key}
|
|
419
|
+
`,r+=` Type: ${i.type}
|
|
420
|
+
`,r+=` Description: ${i.description}
|
|
421
|
+
`,r+=` Example: ${i.example}
|
|
422
|
+
|
|
423
|
+
`;return r}formatAsMarkdown(e,t){let r=`# Environment Variables for ${t}
|
|
424
|
+
|
|
425
|
+
`;r+=`| Variable | Type | Description | Example |
|
|
426
|
+
`,r+=`|----------|------|-------------|----------|
|
|
427
|
+
`;for(let i of e)r+=`| \`${i.key}\` | ${i.type} | ${i.description} | \`${i.example}\` |
|
|
428
|
+
`;return r}}var gr=B(()=>{oe(),V()});function Ns(e,t){let r=is("process");if(typeof r>"u"||!r.env)return t;let i=r.env[e];return i!==void 0?i:t}function br(e,t,r={}){return vr(e,t,r,new WeakMap)}function vr(e,t,r,i){let{arrayMergeMode:a="replace",skipNullish:n=!1,customMerger:l}=r;if(t===null||t===void 0)return n?e:t;if(l){let s=l(e,t);if(s!==void 0)return s}if(Array.isArray(t)||Array.isArray(e))return wr(e,t,a,i);if(!R(t)||!R(e))return t;return Fs(e,t,r,i)}function wr(e,t,r,i){if(Array.isArray(t)&&!Array.isArray(e))return t;if(Array.isArray(e)&&!Array.isArray(t))return t;if(Array.isArray(t)&&Array.isArray(e))switch(r){case"replace":return t;case"concat":return Ss(e,t);case"smart":return As(e,t,i);default:return t}return t}function Ss(e,t){let r=[...t];for(let i of e)if(!r.some((a)=>Ve(a,i)))r.push(i);return r}function As(e,t,r){if(t.length===0)return e;if(e.length===0)return t;if(R(t[0])&&R(e[0]))return Rs(e,t,r);if(t.every((i)=>typeof i==="string")&&e.every((i)=>typeof i==="string")){let i=[...t];for(let a of e)if(!i.includes(a))i.push(a);return i}return t}function Rs(e,t,r){let i=[...t];for(let a of e){if(!R(a)){i.push(a);continue}let n=["id","name","key","path","type"],l=!1;for(let s of n)if(s in a){if(i.find((o)=>R(o)&&(s in o)&&o[s]===a[s])){l=!0;break}}if(!l)i.push(a)}return i}function Fs(e,t,r,i){let a=t;if(R(a)&&i.has(a))return i.get(a);let n={...e};if(R(a))i.set(a,n);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l))continue;let s=a[l],o=n[l];if(r.skipNullish&&(s===null||s===void 0))continue;if(s===null||s===void 0){n[l]=s;continue}if(R(s)&&R(o))n[l]=vr(o,s,r,i);else if(Array.isArray(s)||Array.isArray(o))n[l]=wr(o,s,r.arrayMergeMode||"smart",i);else n[l]=s}return n}function Je(e,t,r="replace"){return br(e,t,{arrayMergeMode:r==="replace"?"replace":"smart",skipNullish:!0})}function Ve(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Ve(e[r],t[r]))return!1;return!0}if(R(e)&&R(t)){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a of r){if(!Object.prototype.hasOwnProperty.call(t,a))return!1;if(!Ve(e[a],t[a]))return!1}return!0}return!1}function R(e){return Boolean(e&&typeof e==="object"&&!Array.isArray(e))}var yr,$e=B(()=>{yr={replace:"replace",concat:"concat",smart:"smart"}});class ze{extensions=[".ts",".js",".mjs",".cjs",".json",".mts",".cts"];async loadFromPath(e,t,r={}){let{arrayStrategy:i="replace",useCache:a=!0,cacheTtl:n,trackPerformance:l=!0,verbose:s=!1}=r;if(a){let c=X.getWithFileCheck("file",e);if(c){if(s)console.log(`Configuration loaded from cache: ${e}`);return c}}let o=async()=>{if(!fe(e))return null;try{let c=`?t=${Date.now()}`,u=await import(e+c),d=u.default||u,h="default"in u,f=Object.keys(u).length>0;if(!h&&!f)throw new re(e,Error("Configuration file is empty and exports nothing"),"unknown");if(typeof d!=="object"||d===null||Array.isArray(d))throw new re(e,Error("Configuration must export a valid object"),"unknown");let w={config:Je(t,d,i),source:{type:"file",path:e,priority:100,timestamp:new Date}};if(a)X.setWithFileCheck("file",w,e,n);return w}catch(c){throw c instanceof Error?Y.configLoad(e,c):Y.configLoad(e,Error(String(c)))}};if(l)return ae.track("loadFromPath",o,{path:e});return o()}async tryLoadFromPaths(e,t,r={}){for(let i of e)try{let a=await this.loadFromPath(i,t,r);if(a)return a}catch(a){if(a instanceof Error&&a.name==="ConfigLoadError")throw a;if(r.verbose)console.warn(`Failed to load config from ${i}:`,a)}return null}generateConfigPaths(e,t,r){let i=this.generateNamePatterns(e,r),a=[];for(let n of i)for(let l of this.extensions)a.push(Te(t,`${n}${l}`));return a}generateNamePatterns(e,t){let r=[];if(r.push("config",".config"),e)r.push(e,`.${e}.config`,`${e}.config`,`.${e}`);let i=t===void 0?[]:Array.isArray(t)?t:[t];for(let n of i){if(!n)continue;if(r.push(n,`.${n}.config`,`${n}.config`,`.${n}`),e)r.push(`${e}.${n}.config`,`.${e}.${n}.config`)}let a=new Set;return r.filter((n)=>{if(!n||a.has(n))return!1;return a.add(n),!0})}checkFileAccess(e){return pr(async()=>{return fe(e)},{maxRetries:2,retryDelay:100,fallback:!1})}async discoverConfigFiles(e,t,r){let i=[];if(!fe(e))return i;if(t||r){let a=this.generateNamePatterns(t||"",r);for(let n of a)for(let l of this.extensions){let s=Te(e,`${n}${l}`);if(await this.checkFileAccess(s))i.push(s)}}else try{let{readdirSync:a}=await import("fs"),n=a(e);for(let l of n)if(this.looksLikeConfigFile(l)){let s=Te(e,l);if(await this.checkFileAccess(s))i.push(s)}}catch{return[]}return i}looksLikeConfigFile(e){return[/\.config\.(ts|js|mjs|cjs|json|mts|cts)$/,/^\..*\.(ts|js|mjs|cjs|json|mts|cts)$/,/config\.(ts|js|mjs|cjs|json|mts|cts)$/].some((t)=>t.test(e))}async validateConfigFile(e){let t=[];try{if(!fe(e))return t.push("Configuration file does not exist"),t;let r=await import(e),i=r.default||r;if(i===void 0)t.push("Configuration file must export a default value or named exports");else if(typeof i!=="object"||i===null)t.push("Configuration must be an object");else if(Array.isArray(i))t.push("Configuration cannot be an array at the root level");if(e.endsWith(".json"))try{let{readFileSync:a}=await import("fs"),n=a(e,"utf8");JSON.parse(n)}catch(a){t.push(`Invalid JSON syntax: ${a}`)}}catch(r){t.push(`Failed to load configuration file: ${r}`)}return t}async getFileModificationTime(e){try{let{statSync:t}=await import("fs");return t(e).mtime}catch{return null}}async preloadConfigurations(e,t={}){let r=new Map;return await Promise.allSettled(e.map(async(i)=>{try{let a=await this.loadFromPath(i,{},t);if(a)r.set(i,a.config)}catch(a){if(t.verbose)console.warn(`Failed to preload ${i}:`,a)}})),r}}var xr=B(()=>{oe(),V(),$e()});class et{async validateConfiguration(e,t,r={}){let{stopOnFirstError:i=!1,validateRequired:a=!0,validateTypes:n=!0,customRules:l=[],trackPerformance:s=!0,verbose:o=!1}=r,c=async()=>{let u=[],d=[],h={stopOnFirstError:i,validateRequired:a,validateTypes:n,customRules:l,trackPerformance:s,verbose:o};try{if(typeof t==="string")return await this.validateWithSchemaFile(e,t,h);else if(Array.isArray(t))return this.validateWithRules(e,[...t,...l],h);else return this.validateWithJSONSchema(e,t,h)}catch(f){return u.push({path:"",message:`Validation failed: ${f}`,rule:"system"}),{isValid:!1,errors:u,warnings:d}}};if(s)return await ae.track("validateConfiguration",c);return c()}async validateWithSchemaFile(e,t,r){try{if(!Ul(t))throw new ie(t,[{path:"",message:"Schema file does not exist"}]);let i=await import(t),a=i.default||i;if(Array.isArray(a))return this.validateWithRules(e,a,r);else return this.validateWithJSONSchema(e,a,r)}catch(i){throw new ie(t,[{path:"",message:`Failed to load schema: ${i}`}])}}validateWithJSONSchema(e,t,r){let i=[],a=[];return this.validateObjectAgainstSchema(e,t,"",i,a,r),{isValid:i.length===0,errors:i,warnings:a}}validateObjectAgainstSchema(e,t,r,i,a,n){if(n.validateTypes&&t.type){let l=Array.isArray(e)?"array":typeof e,s=Array.isArray(t.type)?t.type:[t.type];if(!s.includes(l)){if(i.push({path:r,message:`Expected type ${s.join(" or ")}, got ${l}`,expected:s.join(" or "),actual:l,rule:"type"}),n.stopOnFirstError)return}}if(t.enum&&!t.enum.includes(e)){if(i.push({path:r,message:`Value must be one of: ${t.enum.join(", ")}`,expected:t.enum.join(", "),actual:e,rule:"enum"}),n.stopOnFirstError)return}if(typeof e==="string"){if(t.minLength!==void 0&&e.length<t.minLength)i.push({path:r,message:`String length must be at least ${t.minLength}`,expected:`>= ${t.minLength}`,actual:e.length,rule:"minLength"});if(t.maxLength!==void 0&&e.length>t.maxLength)i.push({path:r,message:`String length must not exceed ${t.maxLength}`,expected:`<= ${t.maxLength}`,actual:e.length,rule:"maxLength"});if(t.pattern){if(!new RegExp(t.pattern).test(e))i.push({path:r,message:`String does not match pattern ${t.pattern}`,expected:t.pattern,actual:e,rule:"pattern"})}}if(typeof e==="number"){if(t.minimum!==void 0&&e<t.minimum)i.push({path:r,message:`Value must be at least ${t.minimum}`,expected:`>= ${t.minimum}`,actual:e,rule:"minimum"});if(t.maximum!==void 0&&e>t.maximum)i.push({path:r,message:`Value must not exceed ${t.maximum}`,expected:`<= ${t.maximum}`,actual:e,rule:"maximum"})}if(Array.isArray(e)&&t.items)for(let l=0;l<e.length;l++){let s=r?`${r}[${l}]`:`[${l}]`;if(this.validateObjectAgainstSchema(e[l],t.items,s,i,a,n),n.stopOnFirstError&&i.length>0)return}if(e&&typeof e==="object"&&!Array.isArray(e)){let l=e;if(n.validateRequired&&t.required){for(let s of t.required)if(!(s in l)){if(i.push({path:r?`${r}.${s}`:s,message:`Missing required property '${s}'`,expected:"required",rule:"required"}),n.stopOnFirstError)return}}if(t.properties){for(let[s,o]of Object.entries(t.properties))if(s in l){let c=r?`${r}.${s}`:s;if(this.validateObjectAgainstSchema(l[s],o,c,i,a,n),n.stopOnFirstError&&i.length>0)return}}if(t.additionalProperties===!1){let s=new Set(Object.keys(t.properties||{}));for(let o of Object.keys(l))if(!s.has(o))a.push({path:r?`${r}.${o}`:o,message:`Additional property '${o}' is not allowed`,rule:"additionalProperties"})}}}validateWithRules(e,t,r){let i=[],a=[];for(let n of t)try{let l=this.getValueByPath(e,n.path),s=this.validateWithRule(l,n,n.path);if(i.push(...s),r.stopOnFirstError&&i.length>0)break}catch(l){i.push({path:n.path,message:`Rule validation failed: ${l}`,rule:"system"})}return{isValid:i.length===0,errors:i,warnings:a}}validateWithRule(e,t,r){let i=[];if(t.required&&(e===void 0||e===null))return i.push({path:r,message:t.message||`Property '${r}' is required`,expected:"required",rule:"required"}),i;if(e===void 0||e===null)return i;if(t.type){let a=Array.isArray(e)?"array":typeof e;if(a!==t.type)i.push({path:r,message:t.message||`Expected type ${t.type}, got ${a}`,expected:t.type,actual:a,rule:"type"})}if(t.min!==void 0){let a=Array.isArray(e)?e.length:typeof e==="string"?e.length:typeof e==="number"?e:0;if(a<t.min)i.push({path:r,message:t.message||`Value must be at least ${t.min}`,expected:`>= ${t.min}`,actual:a,rule:"min"})}if(t.max!==void 0){let a=Array.isArray(e)?e.length:typeof e==="string"?e.length:typeof e==="number"?e:0;if(a>t.max)i.push({path:r,message:t.message||`Value must not exceed ${t.max}`,expected:`<= ${t.max}`,actual:a,rule:"max"})}if(t.pattern&&typeof e==="string"){if(!t.pattern.test(e))i.push({path:r,message:t.message||`Value does not match pattern ${t.pattern}`,expected:t.pattern.toString(),actual:e,rule:"pattern"})}if(t.enum&&!t.enum.includes(e))i.push({path:r,message:t.message||`Value must be one of: ${t.enum.join(", ")}`,expected:t.enum.join(", "),actual:e,rule:"enum"});if(t.validator){let a=t.validator(e);if(a)i.push({path:r,message:t.message||a,rule:"custom"})}return i}getValueByPath(e,t){if(!t)return e;let r=t.split("."),i=e;for(let a of r)if(i&&typeof i==="object"&&a in i)i=i[a];else return;return i}generateRulesFromInterface(e){let t=[],r=e.matchAll(/(\w+)(\?)?:\s*(\w+)/g);for(let i of r){let[,a,n,l]=i;t.push({path:a,required:!n,type:this.mapTypeScriptType(l)})}return t}mapTypeScriptType(e){switch(e.toLowerCase()){case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"array":return"array";case"object":return"object";default:return"object"}}static createCommonRules(){return{server:[{path:"port",required:!0,type:"number",min:1,max:65535},{path:"host",required:!0,type:"string",min:1},{path:"ssl",type:"boolean"}],database:[{path:"url",required:!0,type:"string",min:1},{path:"pool",type:"number",min:1,max:100},{path:"timeout",type:"number",min:0}],api:[{path:"baseUrl",required:!0,type:"string",pattern:kr},{path:"timeout",type:"number",min:0},{path:"retries",type:"number",min:0,max:10}]}}}var kr,Cr=B(()=>{oe(),V(),kr=/^https?:\/\//});function Ws(e){if(!e)return"";let t=Array.isArray(e)?e.filter(Boolean):[e];if(t.length===0)return"";if(t.length===1)return` or alias "${t[0]}"`;return` or aliases ${t.map((r)=>`"${r}"`).join(", ")}`}class tt{fileLoader=new ze;envProcessor=new Ce;validator=new et;async loadConfig(e){let t=Date.now(),{cache:r,performance:i,schema:a,validate:n,...l}=e;try{if(r?.enabled){let o=this.checkCache(l.name||"",l);if(o)return o}let s;try{s=await this.loadConfigurationStrategies(l,!0,r)}catch(o){let c=l.__strictErrorHandling;if(o instanceof Error&&o.name==="ConfigNotFoundError"){if(c)throw o;s={...await this.applyEnvironmentVariables(l.name||"",l.defaultConfig,l.checkEnv!==!1,l.verbose||!1),warnings:[`No configuration file found for "${l.name||"config"}", using defaults with environment variables`]}}else if(o instanceof Error&&o.name==="ConfigLoadError"){let u=o.message.includes("EACCES")||o.message.includes("EPERM")||o.message.includes("permission denied"),d=!u&&(o.message.includes("syntax")||o.message.includes("Expected")||o.message.includes("Unexpected")||o.message.includes("BuildMessage")||o.message.includes("errors building")),h=o.message.includes("Configuration must export a valid object")||o.message.includes("Configuration file is empty and exports nothing");if(c&&(h||u))throw o;if(d&&(!c||!h))s={...await this.applyEnvironmentVariables(l.name||"",l.defaultConfig,l.checkEnv!==!1,l.verbose||!1),warnings:["Configuration file has syntax errors, using defaults with environment variables"]};else if(!c)s={...await this.applyEnvironmentVariables(l.name||"",l.defaultConfig,l.checkEnv!==!1,l.verbose||!1),warnings:[`Configuration loading error, using defaults: ${o.message}`]};else throw o}else s={...await this.applyEnvironmentVariables(l.name||"",l.defaultConfig,l.checkEnv!==!1,l.verbose||!1),warnings:[`Configuration loading failed, using defaults: ${o instanceof Error?o.message:String(o)}`]}}if(a||n)await this.validateConfiguration(s.config,a,n,l.name);if(r?.enabled&&s)this.cacheResult(l.name||"",s,r,l);if(i?.enabled){let o={operation:"loadConfig",duration:Date.now()-t,configName:l.name,timestamp:new Date};if(i.onMetrics)i.onMetrics(o);if(i.slowThreshold&&o.duration>i.slowThreshold)A.warn(`Slow configuration loading detected: ${o.duration}ms for ${l.name}`);s.metrics=o}return s}catch(s){let o=Date.now()-t;throw A.error(`Configuration loading failed after ${o}ms:`,[s instanceof Error?s:Error(String(s))]),s}}async loadConfigurationStrategies(e,t=!1,r){let{name:i="",alias:a,cwd:n,configDir:l,defaultConfig:s,checkEnv:o=!0,arrayStrategy:c="replace",verbose:u=!1}=e,d=n||I.cwd(),h=[],f=await this.loadLocalConfiguration(i,a,d,l,s,c,u,o,r);if(f)return h.push(...this.getLocalSearchPaths(i,a,d,l)),this.finalizeResult(f,h,o,i,u);let w=await this.loadHomeConfiguration(i,a,s,c,u,o);if(w)return h.push(...this.getHomeSearchPaths(i,a)),this.finalizeResult(w,h,o,i,u);let p=await this.loadPackageJsonConfiguration(i,a,d,s,c,u,o);if(p)return h.push(j(d,"package.json")),this.finalizeResult(p,h,o,i,u);if(h.push(...this.getAllSearchPaths(i,a,d,l)),t)throw Y.configNotFound(i,h,a);return{...await this.applyEnvironmentVariables(i,s,o,u),warnings:[`No configuration file found for "${i}"${Ws(a)}, using defaults with environment variables`]}}async loadLocalConfiguration(e,t,r,i,a,n,l,s,o){let c=s?J(e,a,l):a,u=this.getLocalDirectories(r,i);for(let d of u){if(l)A.info(`Searching for configuration in: ${d}`);let h=this.fileLoader.generateConfigPaths(e,d,t),f=await this.fileLoader.tryLoadFromPaths(h,c,{arrayStrategy:n,verbose:l,cacheTtl:o?.ttl,useCache:!o?.ttl||o.ttl>100});if(f){if(l)A.success(`Configuration loaded from: ${f.source.path}`);return f}}return null}async loadHomeConfiguration(e,t,r,i,a,n){if(!e)return null;let l=n?J(e,r,a):r,s=[j(Z(),".config",e),j(Z(),".config"),Z()];for(let o of s){if(a)A.info(`Checking home directory: ${o}`);let c=this.fileLoader.generateConfigPaths(e,o,t),u=await this.fileLoader.tryLoadFromPaths(c,l,{arrayStrategy:i,verbose:a});if(u){if(a)A.success(`Configuration loaded from home directory: ${u.source.path}`);return u}}return null}async loadPackageJsonConfiguration(e,t,r,i,a,n,l){let s=l?J(e,i,n):i;try{let o=j(r,"package.json");if(!Ye(o))return null;let c={};try{c=JSON.parse(Vl(o,"utf8"))}catch(h){if(n)A.warn("Failed to parse package.json:",[h instanceof Error?h:Error(String(h))]);return null}let u=c[e],d=e;if(!u&&t){let h=Array.isArray(t)?t:[t];for(let f of h){if(!f)continue;if(c[f]){u=c[f],d=f;break}}}if(u&&typeof u==="object"&&!Array.isArray(u)){if(n)A.success(`Configuration loaded from package.json: ${d}`);return{config:Je(s,u,a),source:{type:"package.json",path:o,priority:30,timestamp:new Date}}}}catch(o){if(n)A.warn("Failed to load package.json:",[o instanceof Error?o:Error(String(o))])}return null}async applyEnvironmentVariables(e,t,r,i){if(!r||!e||typeof t!=="object"||t===null||Array.isArray(t))return{config:t,source:{type:"default",priority:10,timestamp:new Date}};return{config:J(e,t,i),source:{type:"environment",priority:20,timestamp:new Date}}}async finalizeResult(e,t,r,i,a){return{config:e.config,source:e.source,path:e.source.path}}async validateConfiguration(e,t,r,i){let a=[];if(r){let n=r(e);if(n)a.push(...n)}if(t){let n=await this.validator.validateConfiguration(e,t);if(!n.isValid)a.push(...n.errors.map((l)=>l.path?`${l.path}: ${l.message}`:l.message))}if(a.length>0)throw Y.configValidation(i||"unknown",a,i)}checkCache(e,t){let r=this.generateCacheKey(e,t);return X.get(r)||null}cacheResult(e,t,r,i){let a=this.generateCacheKey(e,i);X.set(a,t,void 0,r.ttl)}generateCacheKey(e,t){let r=[e];if(t.alias){let i=Array.isArray(t.alias)?t.alias.join(","):t.alias;r.push(`alias:${i}`)}if(t.cwd)r.push(`cwd:${t.cwd}`);if(t.configDir)r.push(`configDir:${t.configDir}`);if("checkEnv"in t)r.push(`checkEnv:${t.checkEnv}`);return r.join("|")}getLocalDirectories(e,t){return Array.from(new Set([e,j(e,"config"),j(e,".config"),t?j(e,t):void 0].filter(Boolean)))}getAllSearchPaths(e,t,r,i){let a=[];return a.push(...this.getLocalSearchPaths(e,t,r,i)),a.push(...this.getHomeSearchPaths(e,t)),a.push(j(r,"package.json")),a}getLocalSearchPaths(e,t,r,i){let a=this.getLocalDirectories(r,i),n=[];for(let l of a)n.push(...this.fileLoader.generateConfigPaths(e,l,t));return n}getHomeSearchPaths(e,t){if(!e)return[];let r=[j(Z(),".config",e),j(Z(),".config"),Z()],i=[];for(let a of r)i.push(...this.fileLoader.generateConfigPaths(e,a,t));return i}async loadConfigWithResult(e){return this.loadConfig(e)}}function At(e){let t=!(e.message.includes("EACCES")||e.message.includes("EPERM")||e.message.includes("permission denied"))&&(e.message.includes("syntax")||e.message.includes("Expected")||e.message.includes("Unexpected")||e.message.includes("BuildMessage")),r=e.message.includes("Configuration must export a valid object")||e.message.includes("Configuration file is empty and exports nothing");return t||r}async function Ts(e){return q.loadConfig({...e,__strictErrorHandling:!0})}async function ne(e){let t="defaultConfig"in e&&e.defaultConfig!==void 0?e.defaultConfig:{},r="cache"in e||"performance"in e||"schema"in e||"validate"in e;try{let i;if(r)i=await q.loadConfig(e);else i=await q.loadConfig({...e,defaultConfig:t,cache:{enabled:!0},performance:{enabled:!1}});return i?.config??t}catch(i){let a=i instanceof Error?i.name:"UnknownError",n=i instanceof Error?i.message:String(i);if(!(a==="ConfigNotFoundError"||a==="ConfigLoadError"||a==="ConfigValidationError"||n.includes("config"))&&e.verbose)A.warn("Unexpected error loading config, using defaults:",[i instanceof Error?i:Error(String(i))]);let l=r?{...e,defaultConfig:t}:{...e,defaultConfig:t,cache:{enabled:!0},performance:{enabled:!1}};if("checkEnv"in e?e.checkEnv!==!1:!0)return(await q.applyEnvironmentVariables(l.name||"",t,!0,l.verbose||!1))?.config??t;return t}}async function Os(e={defaultConfig:{}}){if(typeof e==="string"){let{cwd:t}=await import("process");try{return(await q.loadConfig({name:e,cwd:t(),generatedDir:"./generated",configDir:"./config",defaultConfig:{},checkEnv:!0,arrayStrategy:"replace"})).config}catch(r){if(r instanceof Error&&(r.name==="ConfigNotFoundError"||r.name==="ConfigLoadError"&&At(r)))return(await q.applyEnvironmentVariables(e,{},!0,!1)).config;throw r}}try{return(await q.loadConfig({...e,cwd:e.cwd||I.cwd(),cache:{enabled:!0},performance:{enabled:!1}})).config}catch(t){if(t instanceof Error&&(t.name==="ConfigNotFoundError"||t.name==="ConfigLoadError"&&At(t)))return(await q.applyEnvironmentVariables(e.name||"",e.defaultConfig||{},e.checkEnv!==!1,e.verbose||!1)).config;throw t}}async function qs(e,t,r="replace"){let i=new ze;try{let a=await i.loadFromPath(e,t,{arrayStrategy:r,useCache:!1,trackPerformance:!1});return a?a.config:null}catch{return null}}function J(e,t,r=!1){let i=new Ce,a=e.toUpperCase().replace(/[^A-Z0-9]/g,"_");function n(l,s=[]){let o={...l};for(let[c,u]of Object.entries(l)){let d=[...s,c],h=[`${a}_${d.join("_").toUpperCase()}`,`${a}_${d.map((p)=>p.toUpperCase()).join("")}`,`${a}_${d.map((p)=>p.replace(/([A-Z])/g,"_$1").toUpperCase()).join("")}`],f,w;for(let p of h)if(f=I.env[p],f!==void 0){w=p;break}if(f!==void 0&&w)if(typeof u==="boolean")o[c]=["true","1","yes"].includes(f.toLowerCase());else if(typeof u==="number"){let p=Number(f);if(!Number.isNaN(p))o[c]=p}else if(Array.isArray(u))try{o[c]=JSON.parse(f)}catch{o[c]=f.split(",").map((p)=>p.trim())}else o[c]=f;else if(u&&typeof u==="object"&&!Array.isArray(u))o[c]=n(u,d)}return o}return n(t)}function Ms(e){let t=j(I.cwd(),e.configDir),r=j(I.cwd(),e.generatedDir),i=j(r,"config-types.ts");if(!Ye(kt(i)))Zl(kt(i),{recursive:!0,mode:511});let a=Ye(t)?Xl(t).map((l)=>l.replace(/\.(ts|js|mjs|cjs|mts|cts|json)$/,"")).sort():[],n=`// Generated by bunfig v${Cs}
|
|
429
|
+
export type ConfigNames = ${a.length?`'${a.join("' | '")}'`:"string"}
|
|
430
|
+
`;Kl(i,n,{mode:438})}function Bs(e){let t=null,r=null,i=()=>{if(!r)r=ne(e).then((n)=>{return t=n,n},(n)=>{let l="defaultConfig"in e?e.defaultConfig:{};if(t=l,"verbose"in e&&e.verbose)A.warn("Config loading failed, using defaults:",[n instanceof Error?n:Error(String(n))]);return l});return r},a="defaultConfig"in e?e.defaultConfig:{};return t=a,i(),new Proxy({},{get(n,l){if(t)return t[l];let s=a[l];return i(),s},has(n,l){return l in(t||a)},ownKeys(){return Object.keys(t||a)},getOwnPropertyDescriptor(n,l){return Object.getOwnPropertyDescriptor(t||a,l)},set(n,l,s){if(!t)t={...a};return t[l]=s,!0}})}var A,q,zr,jr,Ls=B(()=>{ks(),zs(),oe(),V(),gr(),xr(),Cr(),$e(),A=new ke("bunfig",{showTags:!0}),q=new tt,zr=j(I.cwd(),"config"),jr=j(I.cwd(),"src/generated")});function Ps(e){let t=Ct(Jl.cwd(),e?.configDir||"./config");function r(){if(!Gl(t))return[];let a=new Set([".ts",".js",".mjs",".cjs",".mts",".cts",".json"]),n=[".ts",".mts",".cts",".js",".mjs",".cjs",".json"],l=_l(t).filter((o)=>a.has(Oe(o))).map((o)=>({base:o.replace(/\.(?:ts|js|mjs|cjs|mts|cts|json)$/i,""),file:o})),s=new Map;for(let{base:o,file:c}of l){let u=Oe(c).toLowerCase(),d=s.get(o);if(!d){s.set(o,c);continue}let h=Oe(d).toLowerCase();if(n.indexOf(u)<n.indexOf(h))s.set(o,c)}return Array.from(s.entries()).map(([o,c])=>({base:o,file:c})).sort((o,c)=>o.base.localeCompare(c.base))}function i(){let a=r(),n=a.map((o)=>o.base),l=n.length?n.map((o)=>`'${o}'`).join(" | "):"string",s=a.length?`{
|
|
431
|
+
${a.map((o)=>{let c=Ct(t,o.file).replace(/\\/g,"/");return` '${o.base}': typeof import('${c}').default`}).join(`,
|
|
432
|
+
`)}
|
|
433
|
+
}`:"Record<string, any>";return`export type ConfigNames = ${l}
|
|
434
|
+
export type ConfigByName = ${s}
|
|
435
|
+
export type Config<N extends ConfigNames> = N extends keyof ConfigByName ? ConfigByName[N] : unknown
|
|
436
|
+
export type ConfigOf = Config
|
|
437
|
+
`}return{name:"bunfig-plugin",setup(a){a.onResolve({filter:/^virtual:bunfig-types$/},(n)=>{return{path:n.path,namespace:"bunfig-virtual"}}),a.onLoad({filter:/^virtual:bunfig-types$/,namespace:"bunfig-virtual"},()=>{return{contents:i(),loader:"ts"}})}}}var Ds=()=>{},Er={};rs(Er,{withErrorRecovery:()=>pr,tryLoadConfig:()=>qs,loadConfigWithResult:()=>Ts,loadConfig:()=>ne,isRetryableError:()=>Es,isConfigNotFoundError:()=>js,isBunfigError:()=>mr,globalPerformanceMonitor:()=>ae,globalCache:()=>X,getEnvOrDefault:()=>Ns,generateConfigTypes:()=>Ms,defaultGeneratedDir:()=>jr,defaultConfigDir:()=>zr,deepMergeWithArrayStrategy:()=>Je,deepMerge:()=>br,createLibraryConfig:()=>Bs,config:()=>Os,bunfigPlugin:()=>Ps,applyEnvVarsToConfig:()=>J,TypeGenerationError:()=>Ue,SchemaValidationError:()=>ie,PluginError:()=>Xe,PerformanceMonitor:()=>_e,FileSystemError:()=>He,ErrorFactory:()=>Y,EnvVarError:()=>we,EnvProcessor:()=>Ce,ConfigValidator:()=>et,ConfigValidationError:()=>Ie,ConfigNotFoundError:()=>ve,ConfigMergeError:()=>Qe,ConfigLoader:()=>tt,ConfigLoadError:()=>re,ConfigFileLoader:()=>ze,ConfigCache:()=>Ge,CacheUtils:()=>dr,BunfigError:()=>N,BrowserConfigError:()=>Ze,ArrayMergeStrategies:()=>yr});var Nr=B(()=>{Ls(),V(),oe(),V(),Ds(),gr(),xr(),Cr(),$e()});Nr();var je={content:["./src/**/*.{html,js,ts,jsx,tsx,stx}"],output:"./dist/crosswind.css",minify:!0,watch:!1,theme:{colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}},spacing:{0:"0",px:"1px",0.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif"],serif:["ui-serif","Georgia","serif"],mono:["ui-monospace","monospace"]},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},borderRadius:{none:"0",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",none:"none"}},shortcuts:{},rules:[],attributify:{enabled:!1,prefix:"hw-",ignoreAttributes:["class","className","style","id","name","type","value","href","src","alt","title","role","for","action","method","target","rel","placeholder","disabled","checked","selected","readonly","required","maxlength","minlength","pattern","autocomplete","autofocus","tabindex","contenteditable","draggable","spellcheck","lang","dir","hidden","slot","part","is","key","ref"]},bracketSyntax:{enabled:!1,colonSyntax:!1,aliases:{col:"col",row:"row",jc:"justify",ji:"justify-items",js:"justify-self",ai:"items",ac:"content",as:"self",wrap:"wrap",nowrap:"nowrap",c:"center",s:"start",e:"end",sb:"between",sa:"around",se:"evenly",st:"stretch"}},variants:{responsive:!0,hover:!0,focus:!0,active:!0,disabled:!0,dark:!0,light:!0,group:!0,peer:!0,before:!0,after:!0,marker:!0,first:!0,last:!0,odd:!0,even:!0,"first-of-type":!0,"last-of-type":!0,visited:!0,checked:!0,"focus-within":!0,"focus-visible":!0,placeholder:!0,selection:!0,file:!0,required:!0,valid:!0,invalid:!0,"read-only":!0,autofill:!0,open:!0,closed:!0,empty:!0,enabled:!0,only:!0,target:!0,indeterminate:!0,default:!0,optional:!0,aria:!0,data:!0,has:!0,not:!0,supports:!0,print:!0,landscape:!0,portrait:!0,"forced-colors":!0,rtl:!0,ltr:!0,"motion-safe":!0,"motion-reduce":!0,"contrast-more":!0,"contrast-less":!0},safelist:[],blocklist:[],preflights:[ur],presets:[],cssVariables:!1},Le=null;async function Ys(){if(!Le)Le=await ne({name:"crosswind",alias:"css",defaultConfig:je});return Le}var Is=je;function Sc(e={}){return{name:"bun-plugin-crosswind",async setup(t){let r=await ne({name:"crosswind",defaultConfig:je}),i={...r,...e.config,theme:{...r.theme,...e.config?.theme},shortcuts:{...r.shortcuts,...e.config?.shortcuts},rules:[...r.rules||[],...e.config?.rules||[]],variants:{...r.variants,...e.config?.variants},safelist:[...r.safelist||[],...e.config?.safelist||[]],blocklist:[...r.blocklist||[],...e.config?.blocklist||[]],preflights:[...r.preflights||[],...e.config?.preflights||[]],presets:[...r.presets||[],...e.config?.presets||[]]},a=e.includePreflight??!0;t.onLoad({filter:/\.html?$/},async({path:n})=>{let l=await Bun.file(n).text(),s=ee(l);for(let u of i.safelist)s.add(u);let o=new xe(i);for(let u of s)o.generate(u);let c=o.toCSS(a,i.minify);return{contents:l.replace("</head>",`<style>${c}</style>
|
|
438
|
+
</head>`),loader:"text"}})}}}var Ac={getCSS:()=>`
|
|
439
|
+
/* Tailwind Forms */
|
|
440
|
+
|
|
441
|
+
[type='text'],
|
|
442
|
+
[type='email'],
|
|
443
|
+
[type='url'],
|
|
444
|
+
[type='password'],
|
|
445
|
+
[type='number'],
|
|
446
|
+
[type='date'],
|
|
447
|
+
[type='datetime-local'],
|
|
448
|
+
[type='month'],
|
|
449
|
+
[type='search'],
|
|
450
|
+
[type='tel'],
|
|
451
|
+
[type='time'],
|
|
452
|
+
[type='week'],
|
|
453
|
+
textarea,
|
|
454
|
+
select {
|
|
455
|
+
appearance: none;
|
|
456
|
+
background-color: #fff;
|
|
457
|
+
border-color: #6b7280;
|
|
458
|
+
border-width: 1px;
|
|
459
|
+
border-radius: 0px;
|
|
460
|
+
padding-top: 0.5rem;
|
|
461
|
+
padding-right: 0.75rem;
|
|
462
|
+
padding-bottom: 0.5rem;
|
|
463
|
+
padding-left: 0.75rem;
|
|
464
|
+
font-size: 1rem;
|
|
465
|
+
line-height: 1.5rem;
|
|
466
|
+
--hw-shadow: 0 0 #0000;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
[type='text']:focus,
|
|
470
|
+
[type='email']:focus,
|
|
471
|
+
[type='url']:focus,
|
|
472
|
+
[type='password']:focus,
|
|
473
|
+
[type='number']:focus,
|
|
474
|
+
[type='date']:focus,
|
|
475
|
+
[type='datetime-local']:focus,
|
|
476
|
+
[type='month']:focus,
|
|
477
|
+
[type='search']:focus,
|
|
478
|
+
[type='tel']:focus,
|
|
479
|
+
[type='time']:focus,
|
|
480
|
+
[type='week']:focus,
|
|
481
|
+
textarea:focus,
|
|
482
|
+
select:focus {
|
|
483
|
+
outline: 2px solid transparent;
|
|
484
|
+
outline-offset: 2px;
|
|
485
|
+
--hw-ring-inset: var(--hw-empty,/*!*/ /*!*/);
|
|
486
|
+
--hw-ring-offset-width: 0px;
|
|
487
|
+
--hw-ring-offset-color: #fff;
|
|
488
|
+
--hw-ring-color: #2563eb;
|
|
489
|
+
--hw-ring-offset-shadow: var(--hw-ring-inset) 0 0 0 var(--hw-ring-offset-width) var(--hw-ring-offset-color);
|
|
490
|
+
--hw-ring-shadow: var(--hw-ring-inset) 0 0 0 calc(1px + var(--hw-ring-offset-width)) var(--hw-ring-color);
|
|
491
|
+
box-shadow: var(--hw-ring-offset-shadow), var(--hw-ring-shadow), var(--hw-shadow);
|
|
492
|
+
border-color: #2563eb;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
input::placeholder,
|
|
496
|
+
textarea::placeholder {
|
|
497
|
+
color: #6b7280;
|
|
498
|
+
opacity: 1;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
502
|
+
padding: 0;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
::-webkit-date-and-time-value {
|
|
506
|
+
min-height: 1.5em;
|
|
507
|
+
text-align: inherit;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
::-webkit-datetime-edit {
|
|
511
|
+
display: inline-flex;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
::-webkit-datetime-edit,
|
|
515
|
+
::-webkit-datetime-edit-year-field,
|
|
516
|
+
::-webkit-datetime-edit-month-field,
|
|
517
|
+
::-webkit-datetime-edit-day-field,
|
|
518
|
+
::-webkit-datetime-edit-hour-field,
|
|
519
|
+
::-webkit-datetime-edit-minute-field,
|
|
520
|
+
::-webkit-datetime-edit-second-field,
|
|
521
|
+
::-webkit-datetime-edit-millisecond-field,
|
|
522
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
523
|
+
padding-top: 0;
|
|
524
|
+
padding-bottom: 0;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
select {
|
|
528
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
|
529
|
+
background-position: right 0.5rem center;
|
|
530
|
+
background-repeat: no-repeat;
|
|
531
|
+
background-size: 1.5em 1.5em;
|
|
532
|
+
padding-right: 2.5rem;
|
|
533
|
+
print-color-adjust: exact;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
select[multiple],
|
|
537
|
+
select[size]:where([size]:not([size="1"])) {
|
|
538
|
+
background-image: initial;
|
|
539
|
+
background-position: initial;
|
|
540
|
+
background-repeat: unset;
|
|
541
|
+
background-size: initial;
|
|
542
|
+
padding-right: 0.75rem;
|
|
543
|
+
print-color-adjust: unset;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
[type='checkbox'],
|
|
547
|
+
[type='radio'] {
|
|
548
|
+
appearance: none;
|
|
549
|
+
padding: 0;
|
|
550
|
+
print-color-adjust: exact;
|
|
551
|
+
display: inline-block;
|
|
552
|
+
vertical-align: middle;
|
|
553
|
+
background-origin: border-box;
|
|
554
|
+
user-select: none;
|
|
555
|
+
flex-shrink: 0;
|
|
556
|
+
height: 1rem;
|
|
557
|
+
width: 1rem;
|
|
558
|
+
color: #2563eb;
|
|
559
|
+
background-color: #fff;
|
|
560
|
+
border-color: #6b7280;
|
|
561
|
+
border-width: 1px;
|
|
562
|
+
--hw-shadow: 0 0 #0000;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
[type='checkbox'] {
|
|
566
|
+
border-radius: 0px;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
[type='radio'] {
|
|
570
|
+
border-radius: 100%;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
[type='checkbox']:focus,
|
|
574
|
+
[type='radio']:focus {
|
|
575
|
+
outline: 2px solid transparent;
|
|
576
|
+
outline-offset: 2px;
|
|
577
|
+
--hw-ring-inset: var(--hw-empty,/*!*/ /*!*/);
|
|
578
|
+
--hw-ring-offset-width: 2px;
|
|
579
|
+
--hw-ring-offset-color: #fff;
|
|
580
|
+
--hw-ring-color: #2563eb;
|
|
581
|
+
--hw-ring-offset-shadow: var(--hw-ring-inset) 0 0 0 var(--hw-ring-offset-width) var(--hw-ring-offset-color);
|
|
582
|
+
--hw-ring-shadow: var(--hw-ring-inset) 0 0 0 calc(2px + var(--hw-ring-offset-width)) var(--hw-ring-color);
|
|
583
|
+
box-shadow: var(--hw-ring-offset-shadow), var(--hw-ring-shadow), var(--hw-shadow);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
[type='checkbox']:checked,
|
|
587
|
+
[type='radio']:checked {
|
|
588
|
+
border-color: transparent;
|
|
589
|
+
background-color: currentColor;
|
|
590
|
+
background-size: 100% 100%;
|
|
591
|
+
background-position: center;
|
|
592
|
+
background-repeat: no-repeat;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
[type='checkbox']:checked {
|
|
596
|
+
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
@media (forced-colors: active) {
|
|
600
|
+
[type='checkbox']:checked {
|
|
601
|
+
appearance: auto;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
[type='radio']:checked {
|
|
606
|
+
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
@media (forced-colors: active) {
|
|
610
|
+
[type='radio']:checked {
|
|
611
|
+
appearance: auto;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
[type='checkbox']:checked:hover,
|
|
616
|
+
[type='checkbox']:checked:focus,
|
|
617
|
+
[type='radio']:checked:hover,
|
|
618
|
+
[type='radio']:checked:focus {
|
|
619
|
+
border-color: transparent;
|
|
620
|
+
background-color: currentColor;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
[type='checkbox']:indeterminate {
|
|
624
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
|
|
625
|
+
border-color: transparent;
|
|
626
|
+
background-color: currentColor;
|
|
627
|
+
background-size: 100% 100%;
|
|
628
|
+
background-position: center;
|
|
629
|
+
background-repeat: no-repeat;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
@media (forced-colors: active) {
|
|
633
|
+
[type='checkbox']:indeterminate {
|
|
634
|
+
appearance: auto;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
[type='checkbox']:indeterminate:hover,
|
|
639
|
+
[type='checkbox']:indeterminate:focus {
|
|
640
|
+
border-color: transparent;
|
|
641
|
+
background-color: currentColor;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
[type='file'] {
|
|
645
|
+
background: unset;
|
|
646
|
+
border-color: inherit;
|
|
647
|
+
border-width: 0;
|
|
648
|
+
border-radius: 0;
|
|
649
|
+
padding: 0;
|
|
650
|
+
font-size: unset;
|
|
651
|
+
line-height: inherit;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
[type='file']:focus {
|
|
655
|
+
outline: 1px solid ButtonText;
|
|
656
|
+
outline: 1px auto -webkit-focus-ring-color;
|
|
657
|
+
}
|
|
658
|
+
`};export{cr as writeTransformedFiles,sr as writeCSS,rr as textAlignRule,ur as tailwindPreflight,Ac as tailwindFormsPreflight,Xt as spacingRule,Vt as sizingRule,qt as scrollbarRule,M as resolveColorValue,Sc as plugin,Jt as placeholderColorRule,Wt as parseClass,Tl as modernNormalize,tr as leadingRule,Ut as justifyItemsRule,Qt as justifyContentRule,Ys as getConfig,er as fontWeightRule,$t as fontSizeRule,Pt as flexWrapRule,It as flexShrinkRule,Dt as flexRule,Yt as flexGrowRule,Lt as flexDirectionRule,ee as extractClasses,Ft as extractAttributifyClasses,Rt as expandBracketSyntax,Ot as displayRule,je as defaultConfig,Mt as contentPropertyRule,Bt as containerRule,Is as config,_t as colorRule,Pe as builtInRules,Wl as buildAndWrite,lr as build,ir as borderWidthRule,ar as borderSideWidthRule,or as borderRadiusRule,D as applyOpacity,Ht as alignItemsRule,Zt as alignContentRule,Ke as Scanner,xe as CSSGenerator};
|