@tailwindcss/upgrade 0.0.0-insiders.ec2f3bb → 0.0.0-insiders.ed45952

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.
Files changed (2) hide show
  1. package/dist/index.mjs +96 -88
  2. package/package.json +7 -5
package/dist/index.mjs CHANGED
@@ -1,70 +1,21 @@
1
1
  #!/usr/bin/env node
2
- var fi=Object.create;var Kt=Object.defineProperty;var ci=Object.getOwnPropertyDescriptor;var pi=Object.getOwnPropertyNames;var di=Object.getPrototypeOf,mi=Object.prototype.hasOwnProperty;var gi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var hi=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of pi(t))!mi.call(e,n)&&n!==r&&Kt(e,n,{get:()=>t[n],enumerable:!(i=ci(t,n))||i.enumerable});return e};var yi=(e,t,r)=>(r=e!=null?fi(di(e)):{},hi(t||!e||!e.__esModule?Kt(r,"default",{value:e,enumerable:!0}):r,e));var Kn=gi((u0,Mn)=>{"use strict";var Pl=["anchor-size"],r0=new RegExp(`(${Pl.join("|")})\\(`,"g"),tt=new Uint8Array(256);function _l(e,t){let r=0,i=[],n=0,l=e.length,a=t.charCodeAt(0);for(let s=0;s<l;s++){let o=e.charCodeAt(s);if(r===0&&o===a){i.push(e.slice(n,s)),n=s+1;continue}switch(o){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===o)break}break;case 40:tt[r]=41,r++;break;case 91:tt[r]=93,r++;break;case 123:tt[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===tt[r-1]&&r--;break}}return i.push(e.slice(n)),i}var J=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,n0=new RegExp(`^${J.source}$`),i0=new RegExp(`^${J.source}%$`),o0=new RegExp(`^${J.source}s*/s*${J.source}$`),Ol=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],l0=new RegExp(`^${J.source}(${Ol.join("|")})$`),Dl=["deg","rad","grad","turn"],a0=new RegExp(`^${J.source}(${Dl.join("|")})$`),s0=new RegExp(`^${J.source} +${J.source} +${J.source}$`);function ae(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var Il={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.085 224.283)",900:"oklch(0.398 0.07 227.392)",950:"oklch(0.302 0.056 229.695)"},sky:{50:"oklch(0.977 0.013 236.62)",100:"oklch(0.951 0.026 236.824)",200:"oklch(0.901 0.058 230.902)",300:"oklch(0.828 0.111 230.318)",400:"oklch(0.746 0.16 232.661)",500:"oklch(0.685 0.169 237.323)",600:"oklch(0.588 0.158 241.966)",700:"oklch(0.5 0.134 242.749)",800:"oklch(0.443 0.11 240.79)",900:"oklch(0.391 0.09 240.876)",950:"oklch(0.293 0.066 243.157)"},blue:{50:"oklch(0.97 0.014 254.604)",100:"oklch(0.932 0.032 255.585)",200:"oklch(0.882 0.059 254.128)",300:"oklch(0.809 0.105 251.813)",400:"oklch(0.707 0.165 254.624)",500:"oklch(0.623 0.214 259.815)",600:"oklch(0.546 0.245 262.881)",700:"oklch(0.488 0.243 264.376)",800:"oklch(0.424 0.199 265.638)",900:"oklch(0.379 0.146 265.522)",950:"oklch(0.282 0.091 267.935)"},indigo:{50:"oklch(0.962 0.018 272.314)",100:"oklch(0.93 0.034 272.788)",200:"oklch(0.87 0.065 274.039)",300:"oklch(0.785 0.115 274.713)",400:"oklch(0.673 0.182 276.935)",500:"oklch(0.585 0.233 277.117)",600:"oklch(0.511 0.262 276.966)",700:"oklch(0.457 0.24 277.023)",800:"oklch(0.398 0.195 277.366)",900:"oklch(0.359 0.144 278.697)",950:"oklch(0.257 0.09 281.288)"},violet:{50:"oklch(0.969 0.016 293.756)",100:"oklch(0.943 0.029 294.588)",200:"oklch(0.894 0.057 293.283)",300:"oklch(0.811 0.111 293.571)",400:"oklch(0.702 0.183 293.541)",500:"oklch(0.606 0.25 292.717)",600:"oklch(0.541 0.281 293.009)",700:"oklch(0.491 0.27 292.581)",800:"oklch(0.432 0.232 292.759)",900:"oklch(0.38 0.189 293.745)",950:"oklch(0.283 0.141 291.089)"},purple:{50:"oklch(0.977 0.014 308.299)",100:"oklch(0.946 0.033 307.174)",200:"oklch(0.902 0.063 306.703)",300:"oklch(0.827 0.119 306.383)",400:"oklch(0.714 0.203 305.504)",500:"oklch(0.627 0.265 303.9)",600:"oklch(0.558 0.288 302.321)",700:"oklch(0.496 0.265 301.924)",800:"oklch(0.438 0.218 303.724)",900:"oklch(0.381 0.176 304.987)",950:"oklch(0.291 0.149 302.717)"},fuchsia:{50:"oklch(0.977 0.017 320.058)",100:"oklch(0.952 0.037 318.852)",200:"oklch(0.903 0.076 319.62)",300:"oklch(0.833 0.145 321.434)",400:"oklch(0.74 0.238 322.16)",500:"oklch(0.667 0.295 322.15)",600:"oklch(0.591 0.293 322.896)",700:"oklch(0.518 0.253 323.949)",800:"oklch(0.452 0.211 324.591)",900:"oklch(0.401 0.17 325.612)",950:"oklch(0.293 0.136 325.661)"},pink:{50:"oklch(0.971 0.014 343.198)",100:"oklch(0.948 0.028 342.258)",200:"oklch(0.899 0.061 343.231)",300:"oklch(0.823 0.12 346.018)",400:"oklch(0.718 0.202 349.761)",500:"oklch(0.656 0.241 354.308)",600:"oklch(0.592 0.249 0.584)",700:"oklch(0.525 0.223 3.958)",800:"oklch(0.459 0.187 3.815)",900:"oklch(0.408 0.153 2.432)",950:"oklch(0.284 0.109 3.907)"},rose:{50:"oklch(0.969 0.015 12.422)",100:"oklch(0.941 0.03 12.58)",200:"oklch(0.892 0.058 10.001)",300:"oklch(0.81 0.117 11.638)",400:"oklch(0.712 0.194 13.428)",500:"oklch(0.645 0.246 16.439)",600:"oklch(0.586 0.253 17.585)",700:"oklch(0.514 0.222 16.935)",800:"oklch(0.455 0.188 13.697)",900:"oklch(0.41 0.159 10.272)",950:"oklch(0.271 0.105 12.094)"}};function pe(e){return{__BARE_VALUE__:e}}var M=pe(e=>{if(ae(e.value))return e.value}),_=pe(e=>{if(ae(e.value))return`${e.value}%`}),le=pe(e=>{if(ae(e.value))return`${e.value}px`}),Fn=pe(e=>{if(ae(e.value))return`${e.value}ms`}),rt=pe(e=>{if(ae(e.value))return`${e.value}deg`}),Ul=pe(e=>{if(e.fraction===null)return;let[t,r]=_l(e.fraction,"/");if(!(!ae(t)||!ae(r)))return e.fraction}),Ln=pe(e=>{if(ae(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),jl={accentColor:({theme:e})=>e("colors"),animation:{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"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...Ul},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),..._}),backdropContrast:({theme:e})=>({...e("contrast"),..._}),backdropGrayscale:({theme:e})=>({...e("grayscale"),..._}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...rt}),backdropInvert:({theme:e})=>({...e("invert"),..._}),backdropOpacity:({theme:e})=>({...e("opacity"),..._}),backdropSaturate:({theme:e})=>({...e("saturate"),..._}),backdropSepia:({theme:e})=>({...e("sepia"),..._}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...le},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)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",..._},caretColor:({theme:e})=>e("colors"),colors:()=>({...Il}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","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",...M},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",..._},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...le}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...M},flexShrink:{0:"0",DEFAULT:"1",...M},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},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"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",..._},grayscale:{0:"0",DEFAULT:"100%",..._},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{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"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...M},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...M},gridRow:{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"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...M},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...M},gridTemplateColumns:{none:"none",subgrid:"subgrid",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))",...Ln},gridTemplateRows:{none:"none",subgrid:"subgrid",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))",...Ln},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...rt},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",..._},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{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"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...M},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",..._},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",...M},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...le},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...le},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...le},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...le},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...rt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",..._},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",..._},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",..._},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...rt},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.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"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...M},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...le},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...le},transformOrigin:{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"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Fn},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Fn},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...M}};Mn.exports=jl});import{globby as ai}from"globby";import si from"node:fs/promises";import ka from"node:path";import xa from"postcss";import zt from"postcss";import{format as Wt}from"prettier";function $(e,t){let r;return e.each?.((i,n)=>{let l=t(i,n,e)??0;if(l===2)return r=!1,r;if(l!==1)return r=$(i,t),r}),r}function ct(e,t){e?.each?.(r=>{ct(r,t),t(r)})}var Bt={parser:"css",semi:!0,singleQuote:!0};function qt(){async function e(t){let r=[];$(t,(n,l,a)=>{n.type==="atrule"&&(n.raws.semicolon=!0),n.type==="atrule"&&n.name==="tw-bucket"?r.push(n):n.raws.tailwind_pretty&&(n.parent??=a,r.unshift(n))});let i=[];for(let n of r){let l=n.type==="atrule"&&n.name==="tw-bucket"?n.toString().trim().replace(/@tw-bucket(.*?){([\s\S]*)}/,"$2"):n.toString();if(n.type==="atrule"&&n.name==="tw-bucket"&&n.params==="user"){i.push(l);continue}if(n.type==="atrule"&&n.name==="tw-bucket"){i.push(await Wt(l,Bt));continue}n.replaceWith(zt.parse(`${n.raws.before??""}${(await Wt(l,Bt)).trim()}`))}t.removeAll(),t.append(zt.parse(i.map(n=>n.trim()).filter(Boolean).join(`
3
-
4
- `)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import vi from"postcss";var k=class extends Map{constructor(r){super();this.factory=r}get(r){let i=super.get(r);return i===void 0&&(i=this.factory(r,this),this.set(r,i)),i}};var Ht=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function Yt(){async function e(t){{let s=function(o,...u){a=o,l.get(o).nodes?.push(...n.splice(0),...u)};var i=s;let n=[],l=new k(o=>{let u=vi.atRule({name:"tw-bucket",params:o,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",o=>{l.set(o.params,o)});let a="user";$(t,o=>{if(o.type==="atrule"&&o.name==="tw-bucket")return 1;if(o.type==="comment"){if(n.length>0){n.push(o);return}let u=Jt(o.prev(),o)??1/0,f=Jt(o,o.next())??1/0;u<f?l.get(a).nodes?.push(o):n.push(o)}else o.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(o.name)?s(o.name,o):o.type==="atrule"&&o.name==="layer"&&!o.nodes||o.type==="atrule"&&o.name==="import"||o.type==="atrule"&&o.name==="charset"||o.type==="atrule"&&o.name==="tailwind"?s("import",o):(o.type==="rule"||o.type,s("user",o));return 1}),n.length>0&&s(a)}let r=new Map;t.walkAtRules("tw-bucket",n=>{let l=r.get(n.params);if(!l){r.set(n.params,n);return}n.nodes&&l.append(...n.nodes)}),t.walkAtRules("tw-bucket",n=>{n.nodes?.length||n.remove()});{let n=Array.from(r.values()).sort((l,a)=>{let s=Ht.indexOf(l.params),o=Ht.indexOf(a.params);return s-o});t.removeAll(),t.append(n)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Jt(e,t){return!e||!t||!e.source||!t.source||!e.source.start||!t.source.start||!e.source.end||!t.source.end?null:Math.abs(e.source.end.line-t.source.start.line)}import Z from"picocolors";import Ai from"node:fs";import Xt from"node:path";import{stripVTControlCharacters as er}from"node:util";import D from"picocolors";import de from"enhanced-resolve";import pt from"node:fs";import{createRequire as bi}from"node:module";var wi=bi(import.meta.url).resolve;function Qt(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return wi(e)}var ki=de.ResolverFactory.createResolver({fileSystem:new de.CachedInputFileSystem(pt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),xi=de.ResolverFactory.createResolver({fileSystem:new de.CachedInputFileSystem(pt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function Zt(e,t){try{return ki.resolveSync({},t,e)}catch{return xi.resolveSync({},t,e)}}var Ci=de.ResolverFactory.createResolver({fileSystem:new de.CachedInputFileSystem(pt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function dt(e,t){return Ci.resolveSync({},t,e)}var _e={indent:2};function Oe(){return`${D.italic(D.bold(D.blue("\u2248")))} tailwindcss ${D.blue(`v${Si()}`)}`}function v(e){return`${D.dim(D.blue("`"))}${D.blue(e)}${D.dim(D.blue("`"))}`}function O(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let i=Xt.relative(t,e);return i.startsWith("..")||(i=`.${Xt.sep}${i}`),r&&i.length>e.length?e:i}function xe(e,t){if(e.includes(`
5
- `))return e.split(`
6
- `).flatMap(a=>xe(a,t));let r=e.split(" "),i=[],n="",l=0;for(let a of r){let s=er(a).length;l+s+1>t&&(i.push(n),n="",l=0),n+=(l?" ":"")+a,l+=s+(l?1:0)}return l&&i.push(n),i}function Ce(e,t=0){return`${" ".repeat(t+_e.indent)}${e}`}function De(e,{art:t=D.gray("\u2502"),prefix:r="",print:i=Q}){let n=r.length,l=" ",a=l.length,s=er(t).length,u=process.stderr.columns-n-a*2-s;xe(e,u).map((f,c)=>i(`${t}${l}${c===0?r:" ".repeat(n)}${f}${l}`)),i()}function V(e,{prefix:t="",print:r=Q}={}){De(e,{art:D.green("\u2502"),prefix:t,print:r})}function U(e,{prefix:t="",print:r=Q}={}){De(e,{art:D.blue("\u2502"),prefix:t,print:r})}function T(e,{prefix:t="",print:r=Q}={}){De(e,{art:D.red("\u2502"),prefix:t,print:r})}function Ie(e,{prefix:t="",print:r=Q}={}){De(e,{art:D.yellow("\u2502"),prefix:t,print:r})}function Q(e=""){process.stderr.write(`${e}
7
- `)}function j(e=""){process.stdout.write(`${e}
8
- `)}function Si(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(Ai.readFileSync(Qt("tailwindcss/package.json"),"utf-8"));return e}function tr({invalid:e,usage:t,options:r}){let i=process.stdout.columns;if(j(Oe()),e&&(j(),j(`${Z.dim("Invalid command:")} ${e}`)),t&&t.length>0){j(),j(Z.dim("Usage:"));for(let[n,l]of t.entries()){let a=l.slice(0,l.indexOf("[")),s=l.slice(l.indexOf("["));s=s.replace(/\[.*?\]/g,f=>Z.dim(f));let u=xe(s,i-_e.indent-a.length-1);u.length>1&&n!==0&&j(),j(Ce(`${a}${u.shift()}`));for(let f of u)j(Ce(f,a.length))}}if(r){let n=0;for(let{alias:o}of Object.values(r))o&&(n=Math.max(n,o.length));let l=[],a=0;for(let[o,{alias:u}]of Object.entries(r)){let f=[u&&`${u.padStart(n)}`,u?o:" ".repeat(n+2)+o].filter(Boolean).join(", ");l.push(f),a=Math.max(a,f.length)}j(),j(Z.dim("Options:"));let s=8;for(let{description:o,default:u=null}of Object.values(r)){let f=l.shift(),c=s+(a-f.length),p=2,d=i-f.length-c-p-_e.indent,m=xe(u!==null?`${o} ${Z.dim(`[default:\u202F${v(`${u}`)}]`)}`:o,d);j(Ce(`${Z.blue(f)} ${Z.dim(Z.gray("\xB7")).repeat(c)} ${m.shift()}`));for(let h of m)j(Ce(`${" ".repeat(f.length+c+p)}${h}`))}}}import{normalizePath as Vl}from"@tailwindcss/node";import{isGitIgnored as El}from"globby";import H from"node:path";import et from"postcss";var Ue=new Uint8Array(256);function y(e,t){let r=0,i=[],n=0,l=e.length,a=t.charCodeAt(0);for(let s=0;s<l;s++){let o=e.charCodeAt(s);if(r===0&&o===a){i.push(e.slice(n,s)),n=s+1;continue}switch(o){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===o)break}break;case 40:Ue[r]=41,r++;break;case 91:Ue[r]=93,r++;break;case 123:Ue[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===Ue[r-1]&&r--;break}}return i.push(e.slice(n)),i}import Br from"node:fs/promises";import qr,{extname as wo}from"node:path";import{Scanner as Pi}from"@tailwindcss/oxide";function mt(e){return{kind:"word",value:e}}function $i(e,t){return{kind:"function",value:e,nodes:t}}function Ti(e){return{kind:"separator",value:e}}function I(e,t,r=null){for(let i=0;i<e.length;i++){let n=e[i],l=!1,a=0,s=t(n,{parent:r,replaceWith(o){l||(l=!0,Array.isArray(o)?o.length===0?(e.splice(i,1),a=0):o.length===1?(e[i]=o[0],a=1):(e.splice(i,1,...o),a=o.length):e[i]=o)}})??0;if(l){s===0?i--:i+=a-1;continue}if(s===2)return 2;if(s!==1&&n.kind==="function"&&I(n.nodes,t,n)===2)return 2}}function x(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+x(r.nodes)+")"}return t}var rr=92,Ni=41,nr=58,ir=44,Vi=34,or=61,lr=62,ar=60,sr=10,Ei=40,Ri=39,ur=47,fr=32,cr=9;function A(e){e=e.replaceAll(`\r
2
+ var Mn=Object.create;var nr=Object.defineProperty;var Fn=Object.getOwnPropertyDescriptor;var Ln=Object.getOwnPropertyNames;var zn=Object.getPrototypeOf,Kn=Object.prototype.hasOwnProperty;var Wn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Bn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ln(t))!Kn.call(e,i)&&i!==r&&nr(e,i,{get:()=>t[i],enumerable:!(n=Fn(t,i))||n.enumerable});return e};var qn=(e,t,r)=>(r=e!=null?Mn(zn(e)):{},Bn(t||!e||!e.__esModule?nr(r,"default",{value:e,enumerable:!0}):r,e));var ai=Wn((Fp,oi)=>{"use strict";var ra=["anchor-size"],_p=new RegExp(`(${ra.join("|")})\\(`,"g"),Xe=new Uint8Array(256);function ia(e,t){let r=0,n=[],i=0,o=e.length,s=t.charCodeAt(0);for(let a=0;a<o;a++){let l=e.charCodeAt(a);if(r===0&&l===s){n.push(e.slice(i,a)),i=a+1;continue}switch(l){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let u=e.charCodeAt(a);if(u===92){a+=1;continue}if(u===l)break}break;case 40:Xe[r]=41,r++;break;case 91:Xe[r]=93,r++;break;case 123:Xe[r]=125,r++;break;case 93:case 125:case 41:r>0&&l===Xe[r-1]&&r--;break}}return n.push(e.slice(i)),n}var Z=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Op=new RegExp(`^${Z.source}$`),Dp=new RegExp(`^${Z.source}%$`),Ip=new RegExp(`^${Z.source}s*/s*${Z.source}$`),na=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],jp=new RegExp(`^${Z.source}(${na.join("|")})$`),oa=["deg","rad","grad","turn"],Up=new RegExp(`^${Z.source}(${oa.join("|")})$`),Mp=new RegExp(`^${Z.source} +${Z.source} +${Z.source}$`);function ae(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var aa={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)"}};function ge(e){return{__BARE_VALUE__:e}}var q=ge(e=>{if(ae(e.value))return e.value}),O=ge(e=>{if(ae(e.value))return`${e.value}%`}),oe=ge(e=>{if(ae(e.value))return`${e.value}px`}),ii=ge(e=>{if(ae(e.value))return`${e.value}ms`}),et=ge(e=>{if(ae(e.value))return`${e.value}deg`}),la=ge(e=>{if(e.fraction===null)return;let[t,r]=ia(e.fraction,"/");if(!(!ae(t)||!ae(r)))return e.fraction}),ni=ge(e=>{if(ae(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),sa={accentColor:({theme:e})=>e("colors"),animation:{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"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...la},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...O}),backdropContrast:({theme:e})=>({...e("contrast"),...O}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...O}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...et}),backdropInvert:({theme:e})=>({...e("invert"),...O}),backdropOpacity:({theme:e})=>({...e("opacity"),...O}),backdropSaturate:({theme:e})=>({...e("saturate"),...O}),backdropSepia:({theme:e})=>({...e("sepia"),...O}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...oe},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)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...O},caretColor:({theme:e})=>e("colors"),colors:()=>({...aa}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","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",...q},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...O},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...oe}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...q},flexShrink:{0:"0",DEFAULT:"1",...q},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},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"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...O},grayscale:{0:"0",DEFAULT:"100%",...O},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{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"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...q},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...q},gridRow:{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"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...q},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...q},gridTemplateColumns:{none:"none",subgrid:"subgrid",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))",...ni},gridTemplateRows:{none:"none",subgrid:"subgrid",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))",...ni},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...et},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...O},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{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"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...q},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...O},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",...q},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...et},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...O},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...O},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...O},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...et},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.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"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...q},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},transformOrigin:{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"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...ii},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...ii},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...q}};oi.exports=sa});import{Scanner as is}from"@tailwindcss/oxide";import{globby as ns}from"globby";import jn from"node:fs/promises";import os from"node:path";import as from"postcss";import{Scanner as di}from"@tailwindcss/oxide";import ka from"node:fs/promises";import gi from"node:path";import{fileURLToPath as ba}from"node:url";import Se from"enhanced-resolve";import{createJiti as Xo}from"jiti";import Lt from"node:fs";import wp from"node:fs/promises";import bp,{dirname as Qr}from"node:path";import{pathToFileURL as Zr}from"node:url";import{__unstable__loadDesignSystem as Ap,compile as Sp,compileAst as $p,Features as Vp,Polyfills as Tp}from"tailwindcss";import Ct from"node:fs/promises";import Ve from"node:path";var Hn=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Jn=[".js",".cjs",".mjs"],Gn=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Yn=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Qn(e,t){for(let r of t){let n=`${e}${r}`;if((await Ct.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Ct.access(n).then(()=>!0,()=>!1))return n}return null}async function or(e,t,r,n){let i=Jn.includes(n)?Gn:Yn,o=await Qn(Ve.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=Ve.dirname(o),n=Ve.extname(o);let s=await Ct.readFile(o,"utf-8"),a=[];for(let l of Hn)for(let u of s.matchAll(l))u[1].startsWith(".")&&a.push(or(e,u[1],r,n));await Promise.all(a)}async function ar(e){let t=new Set;return await or(t,e,Ve.dirname(e),Ve.extname(e)),Array.from(t)}import*as Zo from"node:path";function At(e){return{kind:"word",value:e}}function Zn(e,t){return{kind:"function",value:e,nodes:t}}function Xn(e){return{kind:"separator",value:e}}function S(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],o=!1,s=0,a=t(i,{parent:r,replaceWith(l){o||(o=!0,Array.isArray(l)?l.length===0?(e.splice(n,1),s=0):l.length===1?(e[n]=l[0],s=1):(e.splice(n,1,...l),s=l.length):e[n]=l)}})??0;if(o){a===0?n--:n+=s-1;continue}if(a===2)return 2;if(a!==1&&i.kind==="function"&&S(i.nodes,t,i)===2)return 2}}function b(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+b(r.nodes)+")"}return t}var lr=92,eo=41,sr=58,ur=44,to=34,fr=61,cr=62,pr=60,mr=10,ro=40,io=39,dr=47,gr=32,hr=9;function k(e){e=e.replaceAll(`\r
9
3
  `,`
10
- `);let t=[],r=[],i=null,n="",l;for(let a=0;a<e.length;a++){let s=e.charCodeAt(a);switch(s){case rr:{n+=e[a]+e[a+1],a++;break}case nr:case ir:case or:case lr:case ar:case sr:case ur:case fr:case cr:{if(n.length>0){let c=mt(n);i?i.nodes.push(c):t.push(c),n=""}let o=a,u=a+1;for(;u<e.length&&(l=e.charCodeAt(u),!(l!==nr&&l!==ir&&l!==or&&l!==lr&&l!==ar&&l!==sr&&l!==ur&&l!==fr&&l!==cr));u++);a=u-1;let f=Ti(e.slice(o,u));i?i.nodes.push(f):t.push(f);break}case Ri:case Vi:{let o=a;for(let u=a+1;u<e.length;u++)if(l=e.charCodeAt(u),l===rr)u+=1;else if(l===s){a=u;break}n+=e.slice(o,a+1);break}case Ei:{let o=$i(n,[]);n="",i?i.nodes.push(o):t.push(o),r.push(o),i=o;break}case Ni:{let o=r.pop();if(n.length>0){let u=mt(n);o.nodes.push(u),n=""}r.length>0?i=r[r.length-1]:i=null;break}default:n+=String.fromCharCode(s)}}return n.length>0&&t.push(mt(n)),t}async function pr(e,t="html"){let i=new Pi({}).getCandidatesWithPositions({content:e,extension:t}),n=[];for(let{candidate:l,position:a}of i)n.push({rawCandidate:l,start:a,end:a+l.length});return n}function w(e,t){let r=[];for(let n of t.variants)r.unshift(dr(n));e.theme.prefix&&r.unshift(e.theme.prefix);let i="";if(t.kind==="static"&&(i+=t.root),t.kind==="functional"&&(i+=t.root,t.value))if(t.value.kind==="arbitrary"){if(t.value!==null){let n=ht(t.value.value),l=n?t.value.value.slice(4,-1):t.value.value,[a,s]=n?["(",")"]:["[","]"];t.value.dataType?i+=`-${a}${t.value.dataType}:${ue(l)}${s}`:i+=`-${a}${ue(l)}${s}`}}else t.value.kind==="named"&&(i+=`-${t.value.value}`);if(t.kind==="arbitrary"&&(i+=`[${t.property}:${ue(t.value)}]`),(t.kind==="arbitrary"||t.kind==="functional")&&t.modifier){let n=ht(t.modifier.value),l=n?t.modifier.value.slice(4,-1):t.modifier.value,[a,s]=n?["(",")"]:["[","]"];t.modifier.kind==="arbitrary"?i+=`/${a}${ue(l)}${s}`:t.modifier.kind==="named"&&(i+=`/${t.modifier.value}`)}return t.important&&(i+="!"),r.push(i),r.join(":")}function dr(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${ue(_i(e.selector))}]`;let t="";if(e.kind==="functional"&&(t+=e.root,e.value))if(e.value.kind==="arbitrary"){let r=ht(e.value.value),i=r?e.value.value.slice(4,-1):e.value.value,[n,l]=r?["(",")"]:["[","]"];t+=`-${n}${ue(i)}${l}`}else e.value.kind==="named"&&(t+=`-${e.value.value}`);return e.kind==="compound"&&(t+=e.root,t+="-",t+=dr(e.variant)),(e.kind==="functional"||e.kind==="compound")&&e.modifier&&(e.modifier.kind==="arbitrary"?t+=`/[${ue(e.modifier.value)}]`:e.modifier.kind==="named"&&(t+=`/${e.modifier.value}`)),t}function ue(e){let t=A(e),r=new Set;return I(t,(i,{parent:n})=>{let l=n===null?t:n.nodes??[];if(i.kind==="word"&&(i.value==="+"||i.value==="-"||i.value==="*"||i.value==="/")){let a=l.indexOf(i)??-1;if(a===-1)return;let s=l[a-1];if(s?.kind!=="separator"||s.value!==" ")return;let o=l[a+1];if(o?.kind!=="separator"||o.value!==" ")return;r.add(s),r.add(o)}else i.kind==="separator"&&i.value.trim()==="/"?i.value="/":i.kind==="separator"&&i.value.length>0&&i.value.trim()===""?(l[0]===i||l[l.length-1]===i)&&r.add(i):i.kind==="separator"&&i.value.trim()===","&&(i.value=",")}),r.size>0&&I(t,(i,{replaceWith:n})=>{r.has(i)&&(r.delete(i),n([]))}),gt(t),x(t)}function _i(e){let t=A(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?x(t[2].nodes):e}function gt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Ae(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Ae(t.value);for(let r=0;r<t.nodes.length;r++)gt([t.nodes[r]]);break}t.value=Ae(t.value),gt(t.nodes);break}case"separator":t.value=Ae(t.value);break;case"word":{t.value[0]!=="-"&&t.value[1]!=="-"&&(t.value=Ae(t.value));break}default:Oi(t)}}function ht(e){let t=A(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"}function Oi(e){throw new Error(`Unexpected value: ${e}`)}function Ae(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var mr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],je=["anchor-size"],gr=new RegExp(`(${je.join("|")})\\(`,"g");function hr(e){if(!mr.some(n=>e.includes(n)))return e;let t=!1;je.some(n=>e.includes(n))&&(gr.lastIndex=0,e=e.replace(gr,(n,l)=>(t=!0,`$${je.indexOf(l)}$(`)));let r="",i=[];for(let n=0;n<e.length;n++){let l=e[n];if(l==="("){r+=l;let a=n;for(let o=n-1;o>=0;o--){let u=e.charCodeAt(o);if(u>=48&&u<=57)a=o;else if(u>=97&&u<=122)a=o;else break}let s=e.slice(a,n);if(mr.includes(s)){i.unshift(!0);continue}else if(i[0]&&s===""){i.unshift(!0);continue}i.unshift(!1);continue}else if(l===")")r+=l,i.shift();else if(l===","&&i[0]){r+=", ";continue}else{if(l===" "&&i[0]&&r[r.length-1]===" ")continue;if((l==="+"||l==="*"||l==="/"||l==="-")&&i[0]){let a=r.trimEnd(),s=a[a.length-1];if(s==="+"||s==="*"||s==="/"||s==="-"){r+=l;continue}else if(s==="("||s===","){r+=l;continue}else e[n-1]===" "?r+=`${l} `:r+=` ${l} `}else if(i[0]&&e.startsWith("to-zero",n)){let a=n;n+=7,r+=e.slice(a,n+1)}else r+=l}}return t?r.replace(/\$(\d+)\$/g,(n,l)=>je[l]??n):r}function Se(e){if(e.indexOf("(")===-1)return me(e);let t=A(e);return yt(t),e=x(t),e=hr(e),e}function me(e,t=!1){let r="";for(let i=0;i<e.length;i++){let n=e[i];n==="\\"&&e[i+1]==="_"?(r+="_",i+=1):n==="_"&&!t?r+=" ":r+=n}return r}function yt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=me(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=me(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=me(t.nodes[r].value,!0);continue}yt([t.nodes[r]])}break}t.value=me(t.value),yt(t.nodes);break}case"separator":case"word":{t.value=me(t.value);break}default:Di(t)}}function Di(e){throw new Error(`Unexpected value: ${e}`)}var Ii=58,yr=45,vr=97,br=122;function*F(e,t){let r=y(e,":");if(t.theme.prefix){if(r.length===1||r[0]!==t.theme.prefix)return null;r.shift()}let i=r.pop(),n=[];for(let c=r.length-1;c>=0;--c){let p=t.parseVariant(r[c]);if(p===null)return;n.push(p)}let l=!1;i[i.length-1]==="!"?(l=!0,i=i.slice(0,-1)):i[0]==="!"&&(l=!0,i=i.slice(1)),t.utilities.has(i,"static")&&!i.includes("[")&&(yield{kind:"static",root:i,variants:n,important:l,raw:e});let[a,s=null,o]=y(i,"/");if(o)return;let u=s===null?null:Ui(s);if(s!==null&&u===null)return;if(a[0]==="["){if(a[a.length-1]!=="]")return;let c=a.charCodeAt(1);if(c!==yr&&!(c>=vr&&c<=br))return;a=a.slice(1,-1);let p=a.indexOf(":");if(p===-1||p===0||p===a.length-1)return;let d=a.slice(0,p),m=Se(a.slice(p+1));yield{kind:"arbitrary",property:d,value:m,modifier:u,variants:n,important:l,raw:e};return}let f;if(a[a.length-1]==="]"){let c=a.indexOf("-[");if(c===-1)return;let p=a.slice(0,c);if(!t.utilities.has(p,"functional"))return;let d=a.slice(c+1);f=[[p,d]]}else if(a[a.length-1]===")"){let c=a.indexOf("-(");if(c===-1)return;let p=a.slice(0,c);if(!t.utilities.has(p,"functional"))return;let d=a.slice(c+2,-1),m=y(d,":"),h=null;if(m.length===2&&(h=m[0],d=m[1]),d[0]!=="-"&&d[1]!=="-")return;f=[[p,h===null?`[var(${d})]`:`[${h}:var(${d})]`]]}else f=ji(a,c=>t.utilities.has(c,"functional"));for(let[c,p]of f){let d={kind:"functional",root:c,modifier:u,value:null,variants:n,important:l,raw:e};if(p===null){yield d;continue}{let m=p.indexOf("[");if(m!==-1){if(p[p.length-1]!=="]")return;let g=Se(p.slice(m+1,-1)),b="";for(let C=0;C<g.length;C++){let K=g.charCodeAt(C);if(K===Ii){b=g.slice(0,C),g=g.slice(C+1);break}if(!(K===yr||K>=vr&&K<=br))break}if(g.length===0||g.trim().length===0)continue;d.value={kind:"arbitrary",dataType:b||null,value:g}}else{let g=s===null||d.modifier?.kind==="arbitrary"?null:`${p}/${s}`;d.value={kind:"named",value:p,fraction:g}}}yield d}}function Ui(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Se(e.slice(1,-1));return t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}if(e[0]==="("&&e[e.length-1]===")"){let t=Se(e.slice(1,-1));return t.length===0||t.trim().length===0||t[0]!=="-"&&t[1]!=="-"?null:{kind:"arbitrary",value:`var(${t})`}}return{kind:"named",value:e}}function*ji(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");if(r===-1){e[0]==="@"&&t("@")&&(yield["@",e.slice(1)]);return}do{let i=e.slice(0,r);if(t(i)){let n=[i,e.slice(r+1)];if(n[1]==="")break;yield n}r=e.lastIndexOf("-",r-1)}while(r>0)}var W=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,ps=new RegExp(`^${W.source}$`);var ds=new RegExp(`^${W.source}%$`);var ms=new RegExp(`^${W.source}s*/s*${W.source}$`);var Fi=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],gs=new RegExp(`^${W.source}(${Fi.join("|")})$`);var Li=["deg","rad","grad","turn"],hs=new RegExp(`^${W.source}(${Li.join("|")})$`);var ys=new RegExp(`^${W.source} +${W.source} +${W.source}$`);function N(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function $e(e){return wr(e,.25)}function vt(e){return wr(e,.25)}function wr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function kr(e,t,r){for(let i of F(r,e)){let n=structuredClone(i),l=!1;if(n.kind==="functional"&&n.value?.kind==="arbitrary"&&n.value.value==="subgrid"&&(n.root==="grid-cols"||n.root=="grid-rows")&&(l=!0,n.value={kind:"named",value:"subgrid",fraction:null}),n.kind==="functional"&&n.value?.kind==="arbitrary"&&n.value.dataType===null&&(n.root==="from"||n.root==="via"||n.root==="to"||n.root==="font-stretch")){if(n.value.value.endsWith("%")&&N(n.value.value.slice(0,-1))){let a=parseInt(n.value.value);(n.root==="from"||n.root==="via"||n.root==="to"||n.root==="font-stretch"&&a>=50&&a<=200)&&(l=!0,n.value={kind:"named",value:n.value.value,fraction:null})}}else if(n.kind==="functional"&&n.value?.kind==="arbitrary"&&n.value.dataType===null){if(n.root==="leading")if(n.value.value==="1")l=!0,n.value={kind:"named",value:"none",fraction:null};else continue;let a=y(n.value.value,"/");if(a.every(s=>N(s))){l=!0;let s=n.value,o=n.modifier;a.length===1?n.value={kind:"named",value:n.value.value,fraction:null}:(n.value={kind:"named",value:a[0],fraction:n.value.value},n.modifier={kind:"named",value:a[1]}),e.compileAstNodes(n).length===0&&(n.value=s,n.modifier=o,l=!1)}}for(let a of Mi(n))if(a.kind==="functional"&&a.root==="data"&&a.value?.kind==="arbitrary"&&!a.value.value.includes("="))l=!0,a.value={kind:"named",value:a.value.value};else if(a.kind==="functional"&&a.root==="aria"&&a.value?.kind==="arbitrary"&&(a.value.value.endsWith("=true")||a.value.value.endsWith('="true"')||a.value.value.endsWith("='true'"))){let[s,o]=y(a.value.value,"=");if(s[s.length-1]==="~"||s[s.length-1]==="|"||s[s.length-1]==="^"||s[s.length-1]==="$"||s[s.length-1]==="*")continue;l=!0,a.value={kind:"named",value:a.value.value.slice(0,a.value.value.indexOf("="))}}else a.kind==="functional"&&a.root==="supports"&&a.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(a.value.value)&&(l=!0,a.value={kind:"named",value:a.value.value});return l?w(e,n):r}return r}function*Mi(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}var Ki=32;var zi=40;function xr(e,t=[]){for(let r=5;r<e.length;r++){let i=e.charCodeAt(r);if(i===Ki||i===zi){let n=e.slice(0,r).trim(),l=e.slice(r).trim();return S(n,l,t)}}return S(e.trim(),"",t)}function X(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,i=-1,n,l="",a=t.charCodeAt(0);if(r===1&&a===45)return"\\"+t;for(;++i<r;){if(n=t.charCodeAt(i),n===0){l+="\uFFFD";continue}if(n>=1&&n<=31||n===127||i===0&&n>=48&&n<=57||i===1&&n>=48&&n<=57&&a===45){l+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){l+=t.charAt(i);continue}l+="\\"+t.charAt(i)}return l}function Fe(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>t.length>2?String.fromCodePoint(Number.parseInt(t.slice(1).trim(),16)):t[1])}var qi=64;function ge(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function S(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function B(e,t=[]){return e.charCodeAt(0)===qi?xr(e,t):ge(e,t)}function E(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function R(e,t,r=[],i={}){for(let n=0;n<e.length;n++){let l=e[n],a=r[r.length-1]??null;if(l.kind==="context"){if(R(l.nodes,t,r,{...i,...l.context})===2)return 2;continue}r.push(l);let s=!1,o=0,u=t(l,{parent:a,context:i,path:r,replaceWith(f){s||(s=!0,Array.isArray(f)?f.length===0?(e.splice(n,1),o=0):f.length===1?(e[n]=f[0],o=1):(e.splice(n,1,...f),o=f.length):(e[n]=f,o=1))}})??0;if(r.pop(),s){u===0?n--:n+=o-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in l){r.push(l);let f=R(l.nodes,t,r,i);if(r.pop(),f===2)return 2}}}function ee(e){function t(i,n=0){let l="",a=" ".repeat(n);if(i.kind==="declaration")l+=`${a}${i.property}: ${i.value}${i.important?" !important":""};
11
- `;else if(i.kind==="rule"){l+=`${a}${i.selector} {
12
- `;for(let s of i.nodes)l+=t(s,n+1);l+=`${a}}
13
- `}else if(i.kind==="at-rule"){if(i.nodes.length===0)return`${a}${i.name} ${i.params};
14
- `;l+=`${a}${i.name}${i.params?` ${i.params} `:" "}{
15
- `;for(let s of i.nodes)l+=t(s,n+1);l+=`${a}}
16
- `}else if(i.kind==="comment")l+=`${a}/*${i.value}*/
17
- `;else if(i.kind==="context"||i.kind==="at-root")return"";return l}let r="";for(let i of e){let n=t(i);n!==""&&(r+=n)}return r}function Ar(e,t,r){for(let i of e.parseCandidate(r)){let n=structuredClone(i),l=!1;if("modifier"in n&&n.modifier?.kind==="arbitrary"&&!Ke(e,n,n.modifier.value)){let{value:a,didChange:s}=Me(n.modifier.value);n.modifier.value=a,l||=s}for(let a of n.variants)Sr(e,a)&&(l=!0);if(n.kind==="arbitrary"&&!Ke(e,n,n.value)){let{value:a,didChange:s}=Me(n.value);n.value=a,l||=s}if(n.kind==="functional"&&n.value&&n.value.kind==="arbitrary"&&!Ke(e,n,n.value.value)){let{value:a,didChange:s}=Me(n.value.value);n.value.value=a,l||=s}if(l)return w(e,n)}return r}function Me(e){let t=!1;return e.startsWith("--")&&!e.includes("(")?(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function Sr(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!Ke(e,Hi(t),t.value.value)){let{value:i,didChange:n}=Me(t.value.value);t.value.value=i,r||=n}return t.kind==="compound"&&Sr(e,t.variant)&&(r=!0),r}function Hi(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var Ji=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function Ke(e,t,r){let i=e.compileAstNodes(t).map(l=>l.node),n=!1;return R(i,l=>{if(l.kind==="declaration"&&Ji.has(l.property)&&l.value==r)return n=!0,2}),n}var Gi=["t","tr","r","br","b","bl","l","tl"];function $r(e,t,r){for(let i of e.parseCandidate(r))if(i.kind==="static"&&i.root.startsWith("bg-gradient-to-")){let n=i.root.slice(15);if(!Gi.includes(n))continue;return w(e,{...i,root:`bg-linear-to-${n}`})}return r}function Tr(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}var Nr=['"',"'","`"],Yi=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Qi=[/v-else-if=['"]$/,/v-if=['"]$/,/v-show=['"]$/,/x-if=['"]$/,/x-show=['"]$/],Zi=/placeholder=\{?['"]$/;function ze(e){let t="";for(let l=e.start-1;l>=0;l--){let a=e.contents.at(l);if(a===`
18
- `)break;t=a+t}let r="";for(let l=e.end;l<e.contents.length;l++){let a=e.contents.at(l);if(a===`
19
- `)break;r+=a}let i=Nr.some(l=>t.includes(l)),n=Nr.some(l=>r.includes(l));if(!i||!n||r[0]==="."||r.trim().startsWith("("))return!1;for(let l of Yi)if(r.trim().startsWith(l)||t.trim().endsWith(l))return!1;for(let l of Qi)if(l.test(t))return!1;return!Zi.test(t)}function Vr(e,t,r,i){e:for(let n of F(r,e))if(n.important&&n.raw[n.raw.length-1]!=="!"){if(i&&!ze(i))continue e;return w(e,n)}return r}function Er(e,t,r){for(let i of F(r,e)){let n=structuredClone(i),l=!1;return n.kind==="functional"&&n.value?.kind==="arbitrary"&&(n.root==="grid-cols"||n.root=="grid-rows"||n.root=="object")&&(l=!0,n.value.value=y(n.value.value,",").join(" ")),l?w(e,n):r}return r}import{__unstable__loadDesignSystem as Xi}from"@tailwindcss/node";import eo from"node:path";import to from"node:url";var ro=to.fileURLToPath(import.meta.url),no=eo.dirname(ro),io=new Map([["shadow","shadow-sm"],["shadow-sm","shadow-xs"],["shadow-xs","shadow-2xs"],["inset-shadow","inset-shadow-sm"],["inset-shadow-sm","inset-shadow-xs"],["inset-shadow-xs","inset-shadow-2xs"],["drop-shadow","drop-shadow-sm"],["drop-shadow-sm","drop-shadow-xs"],["rounded","rounded-sm"],["rounded-sm","rounded-xs"],["blur","blur-sm"],["blur-sm","blur-xs"],["backdrop-blur","backdrop-blur-sm"],["backdrop-blur-sm","backdrop-blur-xs"],["ring","ring-3"]]),Rr=new Map([["shadow","--shadow"],["shadow-sm","--shadow-sm"],["shadow-xs","--shadow-xs"],["shadow-2xs","--shadow-2xs"],["drop-shadow","--drop-shadow"],["drop-shadow-sm","--drop-shadow-sm"],["drop-shadow-xs","--drop-shadow-xs"],["rounded","--radius"],["rounded-sm","--radius-sm"],["rounded-xs","--radius-xs"],["blur","--blur"],["blur-sm","--blur-sm"],["blur-xs","--blur-xs"],["backdrop-blur","--backdrop-blur"],["backdrop-blur-sm","--backdrop-blur-sm"],["backdrop-blur-xs","--backdrop-blur-xs"],["ring","--ring-width"],["ring-3","--ring-width-3"]]),oo=new k(e=>Xi('@import "tailwindcss";',{base:e}));async function Pr(e,t,r,i){let n=await oo.get(no);function*l(a){for(let s of e.parseCandidate(a)){let o=structuredClone(s);o.variants=[],o.important=!1;let u=w(e,o),f=io.get(u);if(!f)continue;let[c]=e.parseCandidate(f);if(!c)continue;let p=structuredClone(c);p.variants=s.variants,p.important=s.important,yield[s,p,Rr.get(u),Rr.get(f)]}}for(let[a,s,o,u]of l(r)){let f=a.variants.length>0||a.kind==="arbitrary"?!1:a.kind==="static"?!a.root.includes("-"):a.kind==="functional"?a.value===null||!a.root.includes("-"):!1;if(!(i&&f&&!ze(i))){if(o&&u){let c=e.resolveThemeValue(o,!0),p=n.resolveThemeValue(o,!0),d=e.resolveThemeValue(u,!0),m=n.resolveThemeValue(u);if(d===void 0&&m!==void 0||c!==p||d!==m)continue}return w(e,s)}}return r}function _r(e,t,r){for(let i of e.parseCandidate(r))if(i.kind==="functional"&&i.root==="max-w"&&i.value?.value.startsWith("screen-"))return w(e,{...i,value:{...i.value,value:`[theme(screens.${i.value.value.slice(7)})]`}});return r}import lo from"postcss-selector-parser";function te(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function Or(e,t,r){for(let i of F(r,e)){let n=structuredClone(i),l=!1;for(let[a,s]of ao(n)){if(a.kind==="compound"&&(a.root==="has"||a.root==="not"||a.root==="in")&&a.modifier!==null&&"modifier"in a.variant&&(a.variant.modifier=a.modifier,a.modifier=null),a.kind==="compound"&&a.root==="group"&&a.variant.kind==="arbitrary"&&a.variant.selector==="&"){a.modifier===null?(l=!0,te(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(l=!0,te(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${a.modifier.value}]`:`in-[.group\\/${a.modifier.value}]`)));continue}if(a.kind==="arbitrary"){if(a.relative)continue;let o=lo().astSync(a.selector);if(o.nodes.length!==1)continue;if(s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===">"&&o.nodes[0].nodes[2].type==="universal"){l=!0,te(a,e.parseVariant("*"));continue}if(s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="universal"){l=!0,te(a,e.parseVariant("**"));continue}if(s===null&&o.nodes[0].nodes.length===3&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="nesting"){o.nodes[0].nodes.pop(),o.nodes[0].nodes.pop(),l=!0,te(a,e.parseVariant(`in-[${o.toString()}]`));continue}let u=null;s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===">"&&o.nodes[0].nodes[2].type==="attribute"&&(o.nodes[0].nodes=[o.nodes[0].nodes[2]],u=e.parseVariant("*")),s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="attribute"&&(o.nodes[0].nodes=[o.nodes[0].nodes[2]],u=e.parseVariant("**"));let f=o.nodes[0].filter(p=>p.type!=="nesting");if(f.length!==1)continue;let c=f[0];if(c.type==="pseudo"&&c.value===":is"){if(c.nodes.length!==1||c.nodes[0].nodes.length!==1)continue;c=c.nodes[0].nodes[0]}if(c.type==="pseudo"){let p=c,d=!1;if(c.value===":not"){if(d=!0,c.nodes.length!==1||c.nodes[0].type!=="selector"||c.nodes[0].nodes.length!==1||c.nodes[0].nodes[0].type!=="pseudo")continue;p=c.nodes[0].nodes[0]}let m=(g=>{if(g===":first-letter")return"first-letter";if(g===":first-line")return"first-line";if(g===":file-selector-button")return"file";if(g===":placeholder")return"placeholder";if(g===":backdrop")return"backdrop";if(g===":first-child")return"first";if(g===":last-child")return"last";if(g===":only-child")return"only";if(g===":first-of-type")return"first-of-type";if(g===":last-of-type")return"last-of-type";if(g===":only-of-type")return"only-of-type";if(g===":visited")return"visited";if(g===":target")return"target";if(g===":default")return"default";if(g===":checked")return"checked";if(g===":indeterminate")return"indeterminate";if(g===":placeholder-shown")return"placeholder-shown";if(g===":autofill")return"autofill";if(g===":optional")return"optional";if(g===":required")return"required";if(g===":valid")return"valid";if(g===":invalid")return"invalid";if(g===":in-range")return"in-range";if(g===":out-of-range")return"out-of-range";if(g===":read-only")return"read-only";if(g===":empty")return"empty";if(g===":focus-within")return"focus-within";if(g===":focus")return"focus";if(g===":focus-visible")return"focus-visible";if(g===":active")return"active";if(g===":enabled")return"enabled";if(g===":disabled")return"disabled";if(g===":nth-child"&&p.nodes.length===1&&p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&p.nodes[0].nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(g===":nth-child"&&p.nodes.length===1&&p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&p.nodes[0].nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[b,C]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(g===b&&p.nodes.length===1)return p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&N(p.nodes[0].nodes[0].value)?`${C}-${p.nodes[0].nodes[0].value}`:`${C}-[${p.nodes[0].toString()}]`;return null})(p.value);if(m===null)continue;d&&(m=`not-${m}`);let h=e.parseVariant(m);if(h===null)continue;l=!0,te(a,h)}else if(c.type==="attribute"){let p=c.attribute,d=c.value?c.quoted?`${c.quoteMark}${c.value}${c.quoteMark}`:c.value:null;c.insensitive&&d&&(d+=" i");let m=c.operator??"=";p.startsWith("data-")?(l=!0,p=p.slice(5),te(a,{kind:"functional",root:"data",modifier:null,value:d===null?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${m}${d}`}})):p.startsWith("aria-")&&(l=!0,p=p.slice(5),te(a,{kind:"functional",root:"aria",modifier:null,value:d===null?{kind:"arbitrary",value:p}:m==="="&&c.value==="true"&&!c.insensitive?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${m}${d}`}}))}if(u){let p=n.variants.indexOf(a);if(p===-1)continue;n.variants.splice(p,1,a,u)}}}return l?w(e,n):r}return r}function*ao(e){function*t(r,i=null){yield[r,i],r.kind==="compound"&&(yield*t(r.variant,r))}for(let r of e.variants)yield*t(r,null)}var Dr=new WeakSet;function Ir(e,t,r){if(!e.theme.prefix)return r;Dr.has(e)||(e.utilities.functional("group",()=>null),e.utilities.functional("peer",()=>null),Dr.add(e));let i=so(e,t,r);if(!i)return r;let n=e.theme.prefix,l=null;try{e.theme.prefix=null;let a=r.slice(0,i.start)+i.base+r.slice(i.end),s=[...F(a,e)];s.length>0&&(l=s[0])}finally{e.theme.prefix=n}return l?w(e,l):r}function so(e,t,r){if(!e.theme.prefix)return null;if(!t.prefix)throw new Error("Could not find the Tailwind CSS v3 `prefix` configuration inside the JavaScript config.");let n=y(r,":").pop(),l=r.length-n.length,a=l+n.length,s=!1,o=!1;return n[n.length-1]==="!"?(s=!0,n=n.slice(0,-1)):n[0]==="!"&&(s=!0,n=n.slice(1)),n[0]==="-"&&(o=!0,n=n.slice(1)),!n.startsWith(t.prefix)&&n[0]!=="["?null:(n[0]!=="["&&(n=n.slice(t.prefix.length)),o&&(n="-"+n),s&&(n+="!"),{base:n,start:l,end:a})}var uo=/([a-z]+)/;function Ur(e){let t=uo.exec(e.toLocaleLowerCase());return t?t[0]:(console.warn(`The prefix "${e} can not be used with Tailwind CSS v4 and cannot be converted to a valid one automatically. We've updated it to "tw" for you.`),"tw")}var wt={"overflow-ellipsis":"text-ellipsis","flex-grow":"grow","flex-grow-0":"grow-0","flex-shrink":"shrink","flex-shrink-0":"shrink-0","decoration-clone":"box-decoration-clone","decoration-slice":"box-decoration-slice","outline-none":"outline-hidden"},jr=new WeakSet;function Fr(e,t,r){if(!jr.has(e)){for(let i in wt)e.utilities.static(i,()=>[]);jr.add(e)}for(let i of e.parseCandidate(r))if(i.kind==="static"&&Object.hasOwn(wt,i.root))return w(e,{...i,root:wt[i.root]});return r}function Lr(e){let t=[];return Mr(e,[],(r,i)=>{if(co(r))return t.push([i,r]),1;if(po(r)){t.push([i,r[0]]);for(let n of Reflect.ownKeys(r[1]))t.push([[...i,`-${n}`],r[1][n]]);return 1}if(Array.isArray(r)&&r.every(n=>typeof n=="string"))return t.push([i,r.join(", ")]),1}),t}var fo=/^[a-zA-Z0-9-_%/\.]+$/;function q(e){if(e[0]==="container")return null;e=structuredClone(e),e[0]==="animation"&&(e[0]="animate"),e[0]==="aspectRatio"&&(e[0]="aspect"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="containers"&&(e[0]="container"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let t of e)if(!fo.test(t))return null;return e.map((t,r,i)=>t==="1"&&r!==i.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,i,n)=>`${i}-${n.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function co(e){return typeof e=="number"||typeof e=="string"}function po(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!="string"&&typeof e[0]!="number"||e[1]===void 0||e[1]===null||typeof e[1]!="object")return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!="string"||typeof e[1][t]!="string"&&typeof e[1][t]!="number")return!1;return!0}function Mr(e,t=[],r){for(let i of Reflect.ownKeys(e)){let n=e[i];if(n==null)continue;let l=[...t,i],a=r(n,l)??0;if(a!==1){if(a===2)return 2;if(!(!Array.isArray(n)&&typeof n!="object")&&Mr(n,l,r)===2)return 2}}}function re(e){let t=[];for(let r of y(e,".")){if(!r.includes("[")){t.push(r);continue}let i=0;for(;;){let n=r.indexOf("[",i),l=r.indexOf("]",n);if(n===-1||l===-1)break;n>i&&t.push(r.slice(i,n)),t.push(r.slice(n+1,l)),i=l+1}i<=r.length-1&&t.push(r.slice(i))}return t}function Kr(e,t,r){let i=kt(e);for(let n of F(r,e)){let l=structuredClone(n),a=!1;if(l.kind==="arbitrary"){let[s,o]=i(l.value,l.modifier===null?1:0);s!==l.value&&(a=!0,l.value=s,o!==null&&(l.modifier=o))}else if(l.kind==="functional"&&l.value?.kind==="arbitrary"){let[s,o]=i(l.value.value,l.modifier===null?1:0);s!==l.value.value&&(a=!0,l.value.value=s,o!==null&&(l.modifier=o))}for(let s of go(l))if(s.kind==="arbitrary"){let[o]=i(s.selector,2);o!==s.selector&&(a=!0,s.selector=o)}else if(s.kind==="functional"&&s.value?.kind==="arbitrary"){let[o]=i(s.value.value,2);o!==s.value.value&&(a=!0,s.value.value=o)}return a?w(e,l):r}return r}function kt(e,{prettyPrint:t=!1}={}){function r(a,s=0){let o=A(a);if(s&2)return[We(o,l),null];let u=0,f=0;if(I(o,d=>{d.kind==="function"&&d.value==="theme"&&(u+=1,I(d.nodes,m=>m.kind==="separator"&&m.value.includes(",")?2:m.kind==="separator"&&m.value.trim()==="/"?(f+=1,2):1))}),u===0)return[a,null];if(f===0)return[We(o,n),null];if(f>1)return[We(o,l),null];let c=null;return[We(o,(d,m)=>{let h=y(d,"/").map(g=>g.trim());if(h.length>2)return null;if(o.length===1&&h.length===2&&s&1){let[g,b]=h;if(/^\d+%$/.test(b))c={kind:"named",value:b.slice(0,-1)};else if(/^0?\.\d+$/.test(b)){let C=Number(b)*100;c={kind:Number.isInteger(C)?"named":"arbitrary",value:C.toString()}}else c={kind:"arbitrary",value:b};d=g}return n(d,m)||l(d,m)}),c]}function i(a){let s=`--${q(re(a))}`;return e.theme.get([s])?s:null}function n(a,s){let o=i(a);if(o)return s?`var(${o}, ${s})`:`var(${o})`;let u=re(a);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let f=u[1];return $e(f)?`--spacing(${f})`:null}return null}function l(a,s){let o=y(a,"/").map(c=>c.trim());a=o.shift();let u=i(a);if(!u)return null;let f=o.length>0?t?` / ${o.join(" / ")}`:`/${o.join("/")}`:"";return s?`--theme(${u}${f}, ${s})`:`--theme(${u}${f})`}return r}function We(e,t){return I(e,(r,{parent:i,replaceWith:n})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let l=r.nodes[0];if(l.kind!=="word")return;let a=l.value,s=1;for(let f=s;f<r.nodes.length&&!r.nodes[f].value.includes(",");f++)a+=x([r.nodes[f]]),s=f+1;a=mo(a);let o=r.nodes.slice(s+1),u=o.length>0?t(a,x(o)):t(a);if(u===null)return;if(i){let f=i.nodes.indexOf(r)-1;for(;f!==-1;){let c=i.nodes[f];if(c.kind==="separator"&&c.value.trim()===""){f-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(u=`(${u})`);break}}n(A(u))}}),x(e)}function mo(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}function*go(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}function zr(e,t,r){for(let i of e.parseCandidate(r)){if(i.variants.length<=1)continue;let n=[],l=[],a=[],s=i.variants;for(let f of i.variants)ho(e,f)?n.push(f):vo(e,f)?a.push(f):l.push(f);let o=l.some(f=>yo(e,f)),u=[...a,...o?l.reverse():l,...n];if(!bo(s,u))return w(e,{...i,variants:u})}return r}function ho(e,t){return t.kind==="static"&&t.root==="dark"?!0:xt(e,t).every(i=>i.kind==="at-rule")}function yo(e,t){return xt(e,t).some(i=>i.kind==="rule"&&(i.selector.includes(" ")||i.selector.includes(">")||i.selector.includes("+")||i.selector.includes("~")))}function vo(e,t){return xt(e,t).some(i=>i.kind==="rule"&&(i.selector.includes("::after")||i.selector.includes("::backdrop")||i.selector.includes("::before")||i.selector.includes("::first-letter")||i.selector.includes("::first-line")||i.selector.includes("::marker")||i.selector.includes("::placeholder")||i.selector.includes("::selection")))}function xt(e,t){let r=[],i=e.compileAstNodes({kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[t],important:!1,raw:"candidate"}).map(n=>n.node);return R(i,n=>{n.kind==="rule"&&n.selector===".candidate"||n.kind==="declaration"&&n.property==="color"&&n.value==="red"||r.push(n)}),r}function bo(e,t){return e.length!==t.length?!1:e.every((r,i)=>t[i]===r)}function Wr(e,t){if(!t[0])return e;t.sort((n,l)=>n.end-l.end||n.start-l.start);let r="",i=t[0];r+=e.slice(0,i.start),r+=i.replacement;for(let n=1;n<t.length;++n){let l=t[n];r+=e.slice(i.end,l.start),r+=l.replacement,i=l}return r+=e.slice(i.end),r}var ko=[Tr,Ir,Vr,$r,Fr,Pr,_r,Kr,zr,Ar,Er,kr,Or];async function Ct(e,t,r,i){for(let n of ko)r=await n(e,t,r,i);return r}async function Hr(e,t,r,i){let n=await pr(r,i),l=[];for(let{rawCandidate:a,start:s,end:o}of n){let u=await Ct(e,t,a,{contents:r,start:s,end:o});u!==a&&l.push({start:s,end:o,replacement:u})}return Wr(r,l)}async function Jr(e,t,r){let i=qr.isAbsolute(r)?r:qr.resolve(process.cwd(),r),n=await Br.readFile(i,"utf-8");await Br.writeFile(i,await Hr(e,t,n,wo(r)))}function Gr({designSystem:e,userConfig:t}){function r(i){let n=i.params.split(/(\s+)/),l=n[n.length-1]==="!important"||n[n.length-1]==="#{!important}";l&&n.pop();let a=n.map(s=>{if(s.trim()==="")return s;let o=y(s,":"),u=o.pop();return l&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...o,u].join(":")});return async()=>{a=await Promise.all(a.map(async s=>await Ct(e,t,s))),i.params=a.join("").trim()}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(i){let n=[];i.walkAtRules("apply",l=>{n.push(r(l))}),await Promise.allSettled(n.map(l=>l()))}}}import"postcss";import qe from"postcss-selector-parser";import*as Yr from"node:fs";import*as Qr from"node:fs/promises";import*as Ne from"node:path";import*as Zr from"node:util";import*as Be from"postcss";var ne=class e{id;root;isTailwindRoot=!1;linkedConfigPath=null;file=null;parents=new Set;children=new Set;canMigrate=!0;extension=null;static async load(t){t=Ne.resolve(process.cwd(),t);let r=await Qr.readFile(t,"utf-8"),i=Be.parse(r,{from:t});return new e(i,t)}static loadSync(t){t=Ne.resolve(process.cwd(),t);let r=Yr.readFileSync(t,"utf-8"),i=Be.parse(r,{from:t});return new e(i,t)}static async fromString(t){let r=Be.parse(t);return new e(r)}static async fromRoot(t,r){return new e(t,r)}constructor(t,r){this.id=Math.random().toString(36).slice(2),this.root=t,this.file=r??null,r&&(this.extension=Ne.extname(r))}get importRules(){let t=new Set;return this.root.walkAtRules("import",r=>{t.add(r)}),t}get isEmpty(){return this.root.toString().trim()===""}*ancestors(){for(let{item:t}of Te(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of Te(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:i}of Te(this,n=>n.parents))if(!(r.parents.size>0))for(let{meta:n}of i)for(let l of n.layers)t.add(l);return t}*pathsToRoot(){for(let{item:t,path:r}of Te(this,i=>i.parents))t.parents.size>0||(yield r)}analyzeImportPaths(){let t=[],r=[];for(let i of this.pathsToRoot()){let n=!1;for(let{meta:l}of i)for(let a of l.layers)n||=a==="utilities"||a==="components";n?t.push(i):r.push(i)}return{convertiblePaths:t,nonConvertiblePaths:r}}containsRule(t){let r=!1;if(this.root.walk(i=>{if(t(i))return r=!0,!1}),r)return!0;for(let i of this.children)if(i.item.containsRule(t))return!0;return!1}[Zr.inspect.custom](){return{...this,root:this.root.toString(),layers:Array.from(this.layers()),parents:Array.from(this.parents,t=>t.item.id),children:Array.from(this.children,t=>t.item.id),parentsMeta:Array.from(this.parents,t=>t.meta),childrenMeta:Array.from(this.children,t=>t.meta)}}};function*Te(e,t,r=[]){for(let i of t(e)){let n=[...r,i];yield*Te(i.item,t,n),yield{item:i.item,path:n}}}function Xr(e){function t(r){if(r.params!=="utilities"&&r.params!=="components")return;let i=r.clone();$(r,a=>{if(a.type!=="rule")return;let s=y(a.selector,",");if(s.length>1){let o=[];for(let u of s){let f=a.clone({selector:u});o.push(f)}a.replaceWith(o)}return 1});let n=new Set;$(r,a=>{if(a.type==="rule")return qe(s=>{s.each(o=>{$(o,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&n.add(u.value)})})}).processSync(a.selector,{updateSelector:!1}),1}),$(i,a=>{a.type==="rule"&&qe(s=>{s.each(o=>{$(o,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&n.has(u.value))return a.remove(),2})})}).processSync(a,{updateSelector:!0})});let l=[i];for(let a of n){let s=r.clone();l.push(s),$(s,o=>{if(o.type==="atrule"&&(!o.nodes||o.nodes?.length===0)&&o.remove(),o.type!=="rule")return;let u=!1;if(qe(f=>{f.each(c=>{$(c,p=>{if(p.type==="pseudo"&&p.value===":not")return 1;if(p.type==="class"&&p.value===a){u=!0;let d=c.atPosition(p.source.start.line,p.source.start.column),m=d.parent,h=(d.parent?.index(d)??0)-1;for(;h>=0&&m.at(h)?.type!=="combinator";){let g=m.at(h+1),b=m.at(h);m.at(h+1).replaceWith(b),m.at(h).replaceWith(g),h--}d.replaceWith(qe.nesting())}})})}).processSync(o,{updateSelector:!0}),!u){let f=[o],c=o.parent?.index(o)??null;if(c!==null)for(let p=c-1;p>=0&&o.parent?.nodes.at(p)?.type!=="rule";p--)o.parent?.nodes.at(p)?.type==="comment"&&f.push(o.parent?.nodes.at(p));for(let p of f)p.remove()}return 1}),s.name="utility",s.params=a,s.raws.before=`${s.raws.before??""}
4
+ `);let t=[],r=[],n=null,i="",o;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);switch(a){case lr:{i+=e[s]+e[s+1],s++;break}case sr:case ur:case fr:case cr:case pr:case mr:case dr:case gr:case hr:{if(i.length>0){let c=At(i);n?n.nodes.push(c):t.push(c),i=""}let l=s,u=s+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==sr&&o!==ur&&o!==fr&&o!==cr&&o!==pr&&o!==mr&&o!==dr&&o!==gr&&o!==hr));u++);s=u-1;let f=Xn(e.slice(l,u));n?n.nodes.push(f):t.push(f);break}case io:case to:{let l=s;for(let u=s+1;u<e.length;u++)if(o=e.charCodeAt(u),o===lr)u+=1;else if(o===a){s=u;break}i+=e.slice(l,s+1);break}case ro:{let l=Zn(i,[]);i="",n?n.nodes.push(l):t.push(l),r.push(l),n=l;break}case eo:{let l=r.pop();if(i.length>0){let u=At(i);l.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(At(i)),t}var yr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],Ke=["anchor-size"],vr=new RegExp(`(${Ke.join("|")})\\(`,"g");function wr(e){if(!yr.some(i=>e.includes(i)))return e;let t=!1;Ke.some(i=>e.includes(i))&&(vr.lastIndex=0,e=e.replace(vr,(i,o)=>(t=!0,`$${Ke.indexOf(o)}$(`)));let r="",n=[];for(let i=0;i<e.length;i++){let o=e[i];if(o==="("){r+=o;let s=i;for(let l=i-1;l>=0;l--){let u=e.charCodeAt(l);if(u>=48&&u<=57)s=l;else if(u>=97&&u<=122)s=l;else break}let a=e.slice(s,i);if(yr.includes(a)){n.unshift(!0);continue}else if(n[0]&&a===""){n.unshift(!0);continue}n.unshift(!1);continue}else if(o===")")r+=o,n.shift();else if(o===","&&n[0]){r+=", ";continue}else{if(o===" "&&n[0]&&r[r.length-1]===" ")continue;if((o==="+"||o==="*"||o==="/"||o==="-")&&n[0]){let s=r.trimEnd(),a=s[s.length-1];if(a==="+"||a==="*"||a==="/"||a==="-"){r+=o;continue}else if(a==="("||a===","){r+=o;continue}else e[i-1]===" "?r+=`${o} `:r+=` ${o} `}else if(n[0]&&e.startsWith("to-zero",i)){let s=i;i+=7,r+=e.slice(s,i+1)}else r+=o}}return t?r.replace(/\$(\d+)\$/g,(i,o)=>Ke[o]??i):r}function Te(e){if(e.indexOf("(")===-1)return be(e);let t=k(e);return St(t),e=b(t),e=wr(e),e}function be(e,t=!1){let r="";for(let n=0;n<e.length;n++){let i=e[n];i==="\\"&&e[n+1]==="_"?(r+="_",n+=1):i==="_"&&!t?r+=" ":r+=i}return r}function St(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=be(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=be(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=be(t.nodes[r].value,!0);continue}St([t.nodes[r]])}break}t.value=be(t.value),St(t.nodes);break}case"separator":case"word":{t.value=be(t.value);break}default:no(t)}}function no(e){throw new Error(`Unexpected value: ${e}`)}var v=class extends Map{constructor(r){super();this.factory=r}get(r){let n=super.get(r);return n===void 0&&(n=this.factory(r,this),this.set(r,n)),n}};var $t=new Uint8Array(256);function Ne(e){let t=0,r=e.length;for(let n=0;n<r;n++){let i=e.charCodeAt(n);switch(i){case 92:n+=1;break;case 39:case 34:for(;++n<r;){let o=e.charCodeAt(n);if(o===92){n+=1;continue}if(o===i)break}break;case 40:$t[t]=41,t++;break;case 91:$t[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===$t[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var We=new Uint8Array(256);function w(e,t){let r=0,n=[],i=0,o=e.length,s=t.charCodeAt(0);for(let a=0;a<o;a++){let l=e.charCodeAt(a);if(r===0&&l===s){n.push(e.slice(i,a)),i=a+1;continue}switch(l){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let u=e.charCodeAt(a);if(u===92){a+=1;continue}if(u===l)break}break;case 40:We[r]=41,r++;break;case 91:We[r]=93,r++;break;case 123:We[r]=125,r++;break;case 93:case 125:case 41:r>0&&l===We[r-1]&&r--;break}}return n.push(e.slice(i)),n}var oo=58,kr=45,br=97,xr=122;function*I(e,t){let r=w(e,":");if(t.theme.prefix){if(r.length===1||r[0]!==t.theme.prefix)return null;r.shift()}let n=r.pop(),i=[];for(let c=r.length-1;c>=0;--c){let p=t.parseVariant(r[c]);if(p===null)return;i.push(p)}let o=!1;n[n.length-1]==="!"?(o=!0,n=n.slice(0,-1)):n[0]==="!"&&(o=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:o,raw:e});let[s,a=null,l]=w(n,"/");if(l)return;let u=a===null?null:ao(a);if(a!==null&&u===null)return;if(s[0]==="["){if(s[s.length-1]!=="]")return;let c=s.charCodeAt(1);if(c!==kr&&!(c>=br&&c<=xr))return;s=s.slice(1,-1);let p=s.indexOf(":");if(p===-1||p===0||p===s.length-1)return;let m=s.slice(0,p),d=Te(s.slice(p+1));if(!Ne(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:u,variants:i,important:o,raw:e};return}let f;if(s[s.length-1]==="]"){let c=s.indexOf("-[");if(c===-1)return;let p=s.slice(0,c);if(!t.utilities.has(p,"functional"))return;let m=s.slice(c+1);f=[[p,m]]}else if(s[s.length-1]===")"){let c=s.indexOf("-(");if(c===-1)return;let p=s.slice(0,c);if(!t.utilities.has(p,"functional"))return;let m=s.slice(c+2,-1),d=w(m,":"),g=null;if(d.length===2&&(g=d[0],m=d[1]),m[0]!=="-"&&m[1]!=="-")return;f=[[p,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else f=lo(s,c=>t.utilities.has(c,"functional"));for(let[c,p]of f){let m={kind:"functional",root:c,modifier:u,value:null,variants:i,important:o,raw:e};if(p===null){yield m;continue}{let d=p.indexOf("[");if(d!==-1){if(p[p.length-1]!=="]")return;let h=Te(p.slice(d+1,-1));if(!Ne(h))continue;let y="";for(let $=0;$<h.length;$++){let D=h.charCodeAt($);if(D===oo){y=h.slice(0,$),h=h.slice($+1);break}if(!(D===kr||D>=br&&D<=xr))break}if(h.length===0||h.trim().length===0)continue;m.value={kind:"arbitrary",dataType:y||null,value:h}}else{let h=a===null||m.modifier?.kind==="arbitrary"?null:`${p}/${a}`;m.value={kind:"named",value:p,fraction:h}}}yield m}}function ao(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Te(e.slice(1,-1));return!Ne(t)||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}if(e[0]==="("&&e[e.length-1]===")"){let t=Te(e.slice(1,-1));return!Ne(t)||t.length===0||t.trim().length===0||t[0]!=="-"&&t[1]!=="-"?null:{kind:"arbitrary",value:`var(${t})`}}return{kind:"named",value:e}}function*lo(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");for(;r>0;){let n=e.slice(0,r);if(t(n)){let i=[n,e.slice(r+1)];if(i[1]==="")break;yield i}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function Tt(e){if(e===null)return"";let t=fo(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${Nt(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var so=new v(e=>{let t=k(e),r=new Set;return S(t,(n,{parent:i})=>{let o=i===null?t:i.nodes??[];if(n.kind==="word"&&(n.value==="+"||n.value==="-"||n.value==="*"||n.value==="/")){let s=o.indexOf(n)??-1;if(s===-1)return;let a=o[s-1];if(a?.kind!=="separator"||a.value!==" ")return;let l=o[s+1];if(l?.kind!=="separator"||l.value!==" ")return;r.add(a),r.add(l)}else n.kind==="separator"&&n.value.trim()==="/"?n.value="/":n.kind==="separator"&&n.value.length>0&&n.value.trim()===""?(o[0]===n||o[o.length-1]===n)&&r.add(n):n.kind==="separator"&&n.value.trim()===","&&(n.value=",")}),r.size>0&&S(t,(n,{replaceWith:i})=>{r.has(n)&&(r.delete(n),i([]))}),Vt(t),b(t)});function Nt(e){return so.get(e)}var xs=new v(e=>{let t=k(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?b(t[2].nodes):e});function Vt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Pe(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Pe(t.value);for(let r=0;r<t.nodes.length;r++)Vt([t.nodes[r]]);break}t.value=Pe(t.value),Vt(t.nodes);break}case"separator":t.value=Pe(t.value);break;case"word":{t.value[0]!=="-"&&t.value[1]!=="-"&&(t.value=Pe(t.value));break}default:co(t)}}var uo=new v(e=>{let t=k(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function fo(e){return uo.get(e)}function co(e){throw new Error(`Unexpected value: ${e}`)}function Pe(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function Re(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),o=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),s=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),a=(o===s?0:o<s?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(a)?e<t?-1:1:a}var J=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Rs=new RegExp(`^${J.source}$`);var Es=new RegExp(`^${J.source}%$`);var _s=new RegExp(`^${J.source}s*/s*${J.source}$`);var po=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],Os=new RegExp(`^${J.source}(${po.join("|")})$`);var mo=["deg","rad","grad","turn"],Ds=new RegExp(`^${J.source}(${mo.join("|")})$`);var Is=new RegExp(`^${J.source} +${J.source} +${J.source}$`);function N(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function G(e){return Cr(e,.25)}function Pt(e){return Cr(e,.25)}function Cr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function xe(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),t==="100%"?e:`color-mix(in oklab, ${e} ${t}, transparent)`}var ho={"--alpha":yo,"--spacing":vo,"--theme":wo,theme:ko};function yo(e,t,r,...n){let[i,o]=w(r,"/").map(s=>s.trim());if(!i||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);if(n.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);return xe(i,o)}function vo(e,t,r,...n){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(n.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${n.length+1}.`);let i=e.theme.resolve(null,["--spacing"]);if(!i)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${i} * ${r})`}function wo(e,t,r,...n){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let i=!1;r.endsWith(" inline")&&(i=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(i=!0);let o=e.resolveThemeValue(r,i);if(!o){if(n.length>0)return n.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(n.length===0)return o;let s=n.join(", ");if(s==="initial")return o;if(o==="initial")return s;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let a=k(o);return xo(a,s),b(a)}return o}function ko(e,t,r,...n){r=bo(r);let i=e.resolveThemeValue(r);if(!i&&n.length>0)return n.join(", ");if(!i)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return i}var Xs=new RegExp(Object.keys(ho).map(e=>`${e}\\(`).join("|"));function bo(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function xo(e,t){S(e,r=>{if(r.kind==="function"&&!(r.value!=="var"&&r.value!=="theme"&&r.value!=="--theme"))if(r.nodes.length===1)r.nodes.push({kind:"word",value:`, ${t}`});else{let n=r.nodes[r.nodes.length-1];n.kind==="word"&&n.value==="initial"&&(n.value=t)}})}function _t(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let o=0;o<i;o++){let s=e.charCodeAt(o),a=t.charCodeAt(o);if(s>=48&&s<=57&&a>=48&&a<=57){let l=o,u=o+1,f=o,c=o+1;for(s=e.charCodeAt(u);s>=48&&s<=57;)s=e.charCodeAt(++u);for(a=t.charCodeAt(c);a>=48&&a<=57;)a=t.charCodeAt(++c);let p=e.slice(l,u),m=t.slice(f,c),d=Number(p)-Number(m);if(d)return d;if(p<m)return-1;if(p>m)return 1;continue}if(s!==a)return s-a}return e.length-t.length}function re(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,o="",s=t.charCodeAt(0);if(r===1&&s===45)return"\\"+t;for(;++n<r;){if(i=t.charCodeAt(n),i===0){o+="\uFFFD";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&s===45){o+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){o+=t.charAt(n);continue}o+="\\"+t.charAt(n)}return o}function Be(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>t.length>2?String.fromCodePoint(Number.parseInt(t.slice(1).trim(),16)):t[1])}function Ee(e,t,{onInvalidCandidate:r}={}){let n=new Map,i=[],o=new Map;for(let a of e){if(t.invalidCandidates.has(a)){r?.(a);continue}let l=t.parseCandidate(a);if(l.length===0){r?.(a);continue}o.set(a,l)}let s=t.getVariantOrder();for(let[a,l]of o){let u=!1;for(let f of l){let c=t.compileAstNodes(f);if(c.length!==0){u=!0;for(let{node:p,propertySort:m}of c){let d=0n;for(let g of f.variants)d|=1n<<BigInt(s.get(g));n.set(p,{properties:m,variants:d,candidate:a}),i.push(p)}}}u||r?.(a)}return i.sort((a,l)=>{let u=n.get(a),f=n.get(l);if(u.variants-f.variants!==0n)return Number(u.variants-f.variants);let c=0;for(;c<u.properties.order.length&&c<f.properties.order.length&&u.properties.order[c]===f.properties.order[c];)c+=1;return(u.properties.order[c]??1/0)-(f.properties.order[c]??1/0)||f.properties.count-u.properties.count||_t(u.candidate,f.candidate)}),{astNodes:i,nodeSorting:n}}function Oe(e,t){let r=0,n=F("&",e),i=new Set,o=new v(()=>new Set),s=new v(()=>new Set);A([n],(c,{parent:p})=>{if(c.kind==="at-rule"){if(c.name==="@keyframes")return A(c.nodes,m=>{if(m.kind==="at-rule"&&m.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),1;if(c.name==="@utility"){let m=c.params.replace(/-\*$/,"");s.get(m).add(c),A(c.nodes,d=>{if(!(d.kind!=="at-rule"||d.name!=="@apply")){i.add(c);for(let g of $r(d,t))o.get(c).add(g)}});return}if(c.name==="@apply"){if(p===null)return;r|=1,i.add(p);for(let m of $r(c,t))o.get(p).add(m)}}});let a=new Set,l=[],u=new Set;function f(c,p=[]){if(!a.has(c)){if(u.has(c)){let m=p[(p.indexOf(c)+1)%p.length];throw c.kind==="at-rule"&&c.name==="@utility"&&m.kind==="at-rule"&&m.name==="@utility"&&A(c.nodes,d=>{if(d.kind!=="at-rule"||d.name!=="@apply")return;let g=d.params.split(/\s+/g);for(let h of g)for(let y of t.parseCandidate(h))switch(y.kind){case"arbitrary":break;case"static":case"functional":if(m.params.replace(/-\*$/,"")===y.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
20
5
 
21
- `}for(let a=l.length-1;a>=0;a--){let s=l[a];ct(s,o=>{if(s===i&&o.type==="comment"){let u=!1;for(let f of l)if(f!==i&&($(f,c=>{if(c.type==="comment"&&c.source?.start?.offset===o.source?.start?.offset)return o.remove(),u=!0,2}),u))return 1}if((o.type==="rule"||o.type==="atrule")&&o.nodes?.length===0)o.remove();else if(o.type==="rule"&&o.selector==="&"){let u=o.parent,f=!1;for(;u;){if(u.type==="rule"){f=!0;break}u=u.parent}f||o.replaceWith(o.nodes)}}),s.nodes?.length===0&&l.splice(a,1)}r.replaceWith(l)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:i})=>{let n=e.layers(),l=n.has("utilities")||n.has("components");if(l){let a=i({name:"layer",params:"utilities"});a.append(r.nodes),r.append(a)}r.walkAtRules("layer",t);{let a=new Map;$(r,s=>{if(s.type==="atrule"&&s.name==="utility"){let o=a.get(s.params);o?(o.append(s.nodes),s.remove()):a.set(s.params,s)}})}l&&r.each(a=>{a.type==="atrule"&&a.name==="layer"&&a.params==="utilities"&&a.replaceWith(a.nodes??[])})}}}import He from"node:path";import Co,{AtRule as Ao}from"postcss";function xo(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var i="";if(r>4&&e[3]==="\\"){var n=e[2];(n==="?"||n===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var l=e.split(/[/\\]+/);return t!==!1&&l[l.length-1]===""&&l.pop(),i+l.join("/")}function At(e){let t=xo(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var en=new WeakMap;function nn(e,{configFilePath:t,jsConfigMigration:r}){function i(){if(!e.isTailwindRoot)return;let n=en.get(e);if(n&&n.includes(t))return;n?n.push(t):en.set(e,[t]);let l=e.root;if(!e.file)return;let a=new Ao;if(r!==null){l.walkAtRules("config",o=>{o.remove()});let s=`
22
-
23
- `;s+=`
24
- @tw-bucket source {`;for(let o of r.sources){let u=He.resolve(o.base,o.pattern);s+=`@source '${tn(e,u)}';
25
- `}s+=`}
26
- `,s+=`
27
- @tw-bucket plugin {
28
- `;for(let o of r.plugins){let u=o.path[0]==="."?tn(e,He.resolve(o.base,o.path)):o.path;if(o.options===null)s+=`@plugin '${u}';
29
- `;else{s+=`@plugin '${u}' {
30
- `;for(let[f,c]of Object.entries(o.options)){let p="";typeof c=="string"?p=rn(c):Array.isArray(c)?p=c.map(d=>typeof d=="string"?rn(d):""+d).join(", "):p=""+c,s+=` ${f}: ${p};
31
- `}s+=`}
32
- `}}s+=`}
33
- `,a.append(Co.parse(s+r.css))}l.append(a.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:i}}function tn(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,i=He.relative(He.dirname(r),t);return i[0]!=="."&&(i=`./${i}`),At(i)}function rn(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import rl from"node:fs/promises";import{dirname as nl,resolve as il}from"node:path";import"postcss";var So=process.env.FEATURES_ENV!=="stable",$o=process.env.FEATURES_ENV!=="stable",To=process.env.FEATURES_ENV!=="stable",No=process.env.FEATURES_ENV!=="stable",Vo=process.env.FEATURES_ENV!=="stable",Eo=process.env.FEATURES_ENV!=="stable",Ro=process.env.FEATURES_ENV!=="stable",Po=process.env.FEATURES_ENV!=="stable",_o=process.env.FEATURES_ENV!=="stable",Oo=process.env.FEATURES_ENV!=="stable";function Ve(e,t,r){if(e===t)return 0;let i=e.indexOf("("),n=t.indexOf("("),l=i===-1?e.replace(/[\d.]+/g,""):e.slice(0,i),a=n===-1?t.replace(/[\d.]+/g,""):t.slice(0,n),s=(l===a?0:l<a?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}function ye(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),`color-mix(in oklab, ${e} ${t}, transparent)`}var Io={"--alpha":Uo,"--spacing":jo,"--theme":Fo,theme:Lo};function Uo(e,t,r,...i){let[n,l]=y(r,"/").map(a=>a.trim());if(!n||!l)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${l||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${l||"50%"})\``);return ye(n,l)}function jo(e,t,r,...i){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(i.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${i.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${r})`}function Fo(e,t,r,...i){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let n=!1;r.endsWith(" inline")&&(n=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(n=!0);let l=e.resolveThemeValue(r,n);if(!l){if(i.length>0)return i.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(i.length===0)return l;let a=i.join(", ");if(a==="initial")return l;if(l==="initial")return a;if(l.startsWith("var(")||l.startsWith("theme(")||l.startsWith("--theme(")){let s=A(l);return Ko(s,a),x(s)}return l}function Lo(e,t,r,...i){r=Mo(r);let n=e.resolveThemeValue(r);if(!n&&i.length>0)return i.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var _f=new RegExp(Object.keys(Io).map(e=>`${e}\\(`).join("|"));function Mo(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}function Ko(e,t){I(e,r=>{if(r.kind==="function"&&!(r.value!=="var"&&r.value!=="theme"&&r.value!=="--theme"))if(r.nodes.length===1)r.nodes.push({kind:"word",value:`, ${t}`});else{let i=r.nodes[r.nodes.length-1];i.kind==="word"&&i.value==="initial"&&(i.value=t)}})}function ve(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Ee(e,t,r,i=[]){for(let n of t)if(n!=null)for(let l of Reflect.ownKeys(n)){i.push(l);let a=r(e[l],n[l],i);a!==void 0?e[l]=a:!ve(e[l])||!ve(n[l])?e[l]=n[l]:e[l]=Ee({},[e[l],n[l]],r,i),i.pop()}return e}function Tt(e,t,r){return function(n,l){let a=n.lastIndexOf("/"),s=null;a!==-1&&(s=n.slice(a+1).trim(),n=n.slice(0,a).trim());let o=(()=>{let u=re(n),[f,c]=qo(e.theme,u),p=r(an(t()??{},u)??null);if(typeof p=="string"&&(p=p.replace("<alpha-value>","1")),typeof f!="object")return typeof c!="object"&&c&4?p??f:f;if(p!==null&&typeof p=="object"&&!Array.isArray(p)){let d=Ee({},[p],(m,h)=>h);if(f===null&&Object.hasOwn(p,"__CSS_VALUES__")){let m={};for(let h in p.__CSS_VALUES__)m[h]=p[h],delete d[h];f=m}for(let m in f)m!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[m]&4&&an(d,m.split("-"))!==void 0||(d[Fe(m)]=f[m]));return d}if(Array.isArray(f)&&Array.isArray(c)&&Array.isArray(p)){let d=f[0],m=f[1];c[0]&4&&(d=p[0]??d);for(let h of Object.keys(m))c[1][h]&4&&(m[h]=p[1][h]??m[h]);return[d,m]}return f??p})();return s&&typeof o=="string"&&(o=ye(o,s)),o??l}}function qo(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=q(t),i=new Map,n=new k(()=>new Map),l=e.namespace(`--${r}`);if(l.size===0)return[null,0];let a=new Map;for(let[f,c]of l){if(!f||!f.includes("--")){i.set(f,c),a.set(f,e.getOptions(f?`--${r}-${f}`:`--${r}`));continue}let p=f.indexOf("--"),d=f.slice(0,p),m=f.slice(p+2);m=m.replace(/-([a-z])/g,(h,g)=>g.toUpperCase()),n.get(d===""?null:d).set(m,[c,e.getOptions(`--${r}${f}`)])}let s=e.getOptions(`--${r}`);for(let[f,c]of n){let p=i.get(f);if(typeof p!="string")continue;let d={},m={};for(let[h,[g,b]]of c)d[h]=g,m[h]=b;i.set(f,[p,d]),a.set(f,[s,m])}let o={},u={};for(let[f,c]of i)sn(o,[f??"DEFAULT"],c);for(let[f,c]of a)sn(u,[f??"DEFAULT"],c);return t[t.length-1]==="DEFAULT"?[o?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in o&&Object.keys(o).length===1?[o.DEFAULT,u.DEFAULT??0]:(o.__CSS_VALUES__=u,[o,u])}function an(e,t){for(let r=0;r<t.length;++r){let i=t[r];if(e?.[i]===void 0){if(t[r+1]===void 0)return;t[r+1]=`${i}-${t[r+1]}`;continue}e=e[i]}return e}function sn(e,t,r){for(let i of t.slice(0,-1))e[i]===void 0&&(e[i]={}),e=e[i];e[t[t.length-1]]=r}function Je(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(i=>Object.entries(i));for(let[i,n]of r)if(typeof n!="object"){if(!i.startsWith("--")){if(n==="@slot"){t.push(B(i,[S("@slot")]));continue}i=i.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(E(i,String(n)))}else if(Array.isArray(n))for(let l of n)typeof l=="string"?t.push(E(i,l)):t.push(B(i,Je(l)));else n!==null&&t.push(B(i,Je(n)));return t}function un(e){let t=[];if("keyframes"in e.theme)for(let[r,i]of Object.entries(e.theme.keyframes))t.push(S("@keyframes",r,Je(i)));return t}var Ge={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.085 224.283)",900:"oklch(0.398 0.07 227.392)",950:"oklch(0.302 0.056 229.695)"},sky:{50:"oklch(0.977 0.013 236.62)",100:"oklch(0.951 0.026 236.824)",200:"oklch(0.901 0.058 230.902)",300:"oklch(0.828 0.111 230.318)",400:"oklch(0.746 0.16 232.661)",500:"oklch(0.685 0.169 237.323)",600:"oklch(0.588 0.158 241.966)",700:"oklch(0.5 0.134 242.749)",800:"oklch(0.443 0.11 240.79)",900:"oklch(0.391 0.09 240.876)",950:"oklch(0.293 0.066 243.157)"},blue:{50:"oklch(0.97 0.014 254.604)",100:"oklch(0.932 0.032 255.585)",200:"oklch(0.882 0.059 254.128)",300:"oklch(0.809 0.105 251.813)",400:"oklch(0.707 0.165 254.624)",500:"oklch(0.623 0.214 259.815)",600:"oklch(0.546 0.245 262.881)",700:"oklch(0.488 0.243 264.376)",800:"oklch(0.424 0.199 265.638)",900:"oklch(0.379 0.146 265.522)",950:"oklch(0.282 0.091 267.935)"},indigo:{50:"oklch(0.962 0.018 272.314)",100:"oklch(0.93 0.034 272.788)",200:"oklch(0.87 0.065 274.039)",300:"oklch(0.785 0.115 274.713)",400:"oklch(0.673 0.182 276.935)",500:"oklch(0.585 0.233 277.117)",600:"oklch(0.511 0.262 276.966)",700:"oklch(0.457 0.24 277.023)",800:"oklch(0.398 0.195 277.366)",900:"oklch(0.359 0.144 278.697)",950:"oklch(0.257 0.09 281.288)"},violet:{50:"oklch(0.969 0.016 293.756)",100:"oklch(0.943 0.029 294.588)",200:"oklch(0.894 0.057 293.283)",300:"oklch(0.811 0.111 293.571)",400:"oklch(0.702 0.183 293.541)",500:"oklch(0.606 0.25 292.717)",600:"oklch(0.541 0.281 293.009)",700:"oklch(0.491 0.27 292.581)",800:"oklch(0.432 0.232 292.759)",900:"oklch(0.38 0.189 293.745)",950:"oklch(0.283 0.141 291.089)"},purple:{50:"oklch(0.977 0.014 308.299)",100:"oklch(0.946 0.033 307.174)",200:"oklch(0.902 0.063 306.703)",300:"oklch(0.827 0.119 306.383)",400:"oklch(0.714 0.203 305.504)",500:"oklch(0.627 0.265 303.9)",600:"oklch(0.558 0.288 302.321)",700:"oklch(0.496 0.265 301.924)",800:"oklch(0.438 0.218 303.724)",900:"oklch(0.381 0.176 304.987)",950:"oklch(0.291 0.149 302.717)"},fuchsia:{50:"oklch(0.977 0.017 320.058)",100:"oklch(0.952 0.037 318.852)",200:"oklch(0.903 0.076 319.62)",300:"oklch(0.833 0.145 321.434)",400:"oklch(0.74 0.238 322.16)",500:"oklch(0.667 0.295 322.15)",600:"oklch(0.591 0.293 322.896)",700:"oklch(0.518 0.253 323.949)",800:"oklch(0.452 0.211 324.591)",900:"oklch(0.401 0.17 325.612)",950:"oklch(0.293 0.136 325.661)"},pink:{50:"oklch(0.971 0.014 343.198)",100:"oklch(0.948 0.028 342.258)",200:"oklch(0.899 0.061 343.231)",300:"oklch(0.823 0.12 346.018)",400:"oklch(0.718 0.202 349.761)",500:"oklch(0.656 0.241 354.308)",600:"oklch(0.592 0.249 0.584)",700:"oklch(0.525 0.223 3.958)",800:"oklch(0.459 0.187 3.815)",900:"oklch(0.408 0.153 2.432)",950:"oklch(0.284 0.109 3.907)"},rose:{50:"oklch(0.969 0.015 12.422)",100:"oklch(0.941 0.03 12.58)",200:"oklch(0.892 0.058 10.001)",300:"oklch(0.81 0.117 11.638)",400:"oklch(0.712 0.194 13.428)",500:"oklch(0.645 0.246 16.439)",600:"oklch(0.586 0.253 17.585)",700:"oklch(0.514 0.222 16.935)",800:"oklch(0.455 0.188 13.697)",900:"oklch(0.41 0.159 10.272)",950:"oklch(0.271 0.105 12.094)"}};function fe(e){return{__BARE_VALUE__:e}}var L=fe(e=>{if(N(e.value))return e.value}),P=fe(e=>{if(N(e.value))return`${e.value}%`}),ie=fe(e=>{if(N(e.value))return`${e.value}px`}),fn=fe(e=>{if(N(e.value))return`${e.value}ms`}),Ye=fe(e=>{if(N(e.value))return`${e.value}deg`}),Qo=fe(e=>{if(e.fraction===null)return;let[t,r]=y(e.fraction,"/");if(!(!N(t)||!N(r)))return e.fraction}),cn=fe(e=>{if(N(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Zo={accentColor:({theme:e})=>e("colors"),animation:{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"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...Qo},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...P}),backdropContrast:({theme:e})=>({...e("contrast"),...P}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...P}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Ye}),backdropInvert:({theme:e})=>({...e("invert"),...P}),backdropOpacity:({theme:e})=>({...e("opacity"),...P}),backdropSaturate:({theme:e})=>({...e("saturate"),...P}),backdropSepia:({theme:e})=>({...e("sepia"),...P}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...ie},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)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...P},caretColor:({theme:e})=>e("colors"),colors:()=>({...Ge}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","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",...L},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...P},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...ie}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...L},flexShrink:{0:"0",DEFAULT:"1",...L},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},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"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...P},grayscale:{0:"0",DEFAULT:"100%",...P},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{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"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridRow:{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"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridTemplateColumns:{none:"none",subgrid:"subgrid",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))",...cn},gridTemplateRows:{none:"none",subgrid:"subgrid",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))",...cn},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...Ye},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...P},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{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"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...L},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...P},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",...L},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ie},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ie},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ie},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ie},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Ye},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...P},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...P},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...P},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Ye},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.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"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...L},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ie},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ie},transformOrigin:{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"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...fn},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...fn},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...L}};var Xo={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function ce(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Xo)};for(let n of t)Vt(r,n);for(let n of r.configs)"darkMode"in n&&n.darkMode!==void 0&&(r.result.darkMode=n.darkMode??null),"prefix"in n&&n.prefix!==void 0&&(r.result.prefix=n.prefix??""),"blocklist"in n&&n.blocklist!==void 0&&(r.result.blocklist=n.blocklist??[]),"important"in n&&n.important!==void 0&&(r.result.important=n.important??!1);let i=tl(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:i}}function el(e,t){if(Array.isArray(e)&&ve(e[0]))return e.concat(t);if(Array.isArray(t)&&ve(t[0])&&ve(e))return[e,...t];if(Array.isArray(t))return t}function Vt(e,{config:t,base:r,path:i,reference:n}){let l=[];for(let o of t.plugins??[])"__isOptionsFunction"in o?l.push({...o(),reference:n}):"handler"in o?l.push({...o,reference:n}):l.push({handler:o,reference:n});if(Array.isArray(t.presets)&&t.presets.length===0)throw new Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let o of t.presets??[])Vt(e,{path:i,base:r,config:o,reference:n});for(let o of l)e.plugins.push(o),o.config&&Vt(e,{path:i,base:r,config:o.config,reference:!!o.reference});let a=t.content??[],s=Array.isArray(a)?a:a.files;for(let o of s)e.content.files.push(typeof o=="object"?o:{base:r,pattern:o});e.configs.push(t)}function tl(e){let t=new Set,r=Tt(e.design,()=>e.theme,n),i=Object.assign(r,{theme:r,colors:Ge});function n(l){return typeof l=="function"?l(i)??null:l??null}for(let l of e.configs){let a=l.theme??{},s=a.extend??{};for(let o in a)o!=="extend"&&t.add(o);Object.assign(e.theme,a);for(let o in s)e.extend[o]??=[],e.extend[o].push(s[o])}delete e.theme.extend;for(let l in e.extend){let a=[e.theme[l],...e.extend[l]];e.theme[l]=()=>{let s=a.map(n);return Ee({},s,el)}}for(let l in e.theme)e.theme[l]=n(e.theme[l]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let l of Object.keys(e.theme.screens)){let a=e.theme.screens[l];a&&typeof a=="object"&&("raw"in a||"max"in a||"min"in a&&(e.theme.screens[l]=a.min))}return t}function pn({center:e,padding:t,screens:r},i){let n=[],l=null;if(e&&n.push(E("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&n.push(E("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){l=new Map;let a=Array.from(i.theme.namespace("--breakpoint").entries());if(a.sort((s,o)=>Ve(s[1],o[1],"asc")),a.length>0){let[s]=a[0];n.push(S("@media",`(width >= --theme(--breakpoint-${s}))`,[E("max-width","none")]))}for(let[s,o]of Object.entries(r)){if(typeof o=="object")if("min"in o)o=o.min;else continue;l.set(s,S("@media",`(width >= ${o})`,[E("max-width",o)]))}}if(typeof t=="object"&&t!==null){let a=Object.entries(t).filter(([s])=>s!=="DEFAULT").map(([s,o])=>[s,i.theme.resolveValue(s,["--breakpoint"]),o]).filter(Boolean);a.sort((s,o)=>Ve(s[1],o[1],"asc"));for(let[s,,o]of a)if(l&&l.has(s))l.get(s).nodes.push(E("padding-inline",o));else{if(l)continue;n.push(S("@media",`(width >= theme(--breakpoint-${s}))`,[E("padding-inline",o)]))}}if(l)for(let[,a]of l)n.push(a);return n}function Et({addVariant:e,config:t}){let r=t("darkMode",null),[i,n=".dark"]=Array.isArray(r)?r:[r];if(i==="variant"){let l;if(Array.isArray(n)||typeof n=="function"?l=n:typeof n=="string"&&(l=[n]),Array.isArray(l))for(let a of l)a===".dark"?(i=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):a.includes("&")||(i=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));n=l}i===null||(i==="selector"?e("dark",`&:where(${n}, ${n} *)`):i==="media"?e("dark","@media (prefers-color-scheme: dark)"):i==="variant"?e("dark",n):i==="class"&&e("dark",`&:is(${n} *)`))}function dn(e){return(Array.isArray(e)?e:[e]).map(r=>typeof r=="string"?{min:r}:r&&typeof r=="object"?r:null).map(r=>{if(r===null)return null;if("raw"in r)return r.raw;let i="";return r.max!==void 0&&(i+=`${r.max} >= `),i+="width",r.min!==void 0&&(i+=` >= ${r.min}`),`(${i})`}).filter(Boolean).join(", ")}function gn(e){let t,r=null,i=null,n=null;for(let l=0;l<e.length;l++){let a=e[l];if(a.kind!=="separator"){if(a.kind==="word"&&!t){if(!a.value||a.value[0]!=='"'&&a.value[0]!=="'")return null;t=a.value.slice(1,-1);continue}if(a.kind==="function"&&a.value.toLowerCase()==="url"||!t)return null;if((a.kind==="word"||a.kind==="function")&&a.value.toLowerCase()==="layer"){if(r)return null;if(n)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in a?r=x(a.nodes):r="";continue}if(a.kind==="function"&&a.value.toLowerCase()==="supports"){if(n)return null;n=x(a.nodes);continue}i=x(e.slice(l));break}}return t?{uri:t,layer:r,media:i,supports:n}:null}function hn(){async function e(t){let r=t.source?.input.file;if(!r)return;let i=[];t.walkAtRules("import",n=>{try{let[l,...a]=y(n.params," "),s=gn(A(l)),o=s.uri[0]===".",u=s.uri.endsWith(".css");if(o&&u)return;let f=il(nl(r),s.uri);u||(f+=".css"),i.push(rl.stat(f).then(()=>{let c=u?"":".css",p=o?s.uri:`./${s.uri}`;n.params=[`'${p}${c}'`,...a].join(" ")}))}catch{}}),await Promise.allSettled(i)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function yn({designSystem:e,userConfig:t}={}){function r(i){if(!e||!t)return;let{resolvedConfig:n}=ce(e,[{base:"",config:t}]),l=n?.theme?.screens||{},a=new k(s=>{let o=e?.resolveThemeValue(`--breakpoint-${s}`,!0)??l?.[s];return typeof o=="string"?`(width >= theme(--breakpoint-${s}))`:o?dn(o):null});i.walkAtRules("screen",s=>{s.name="media",s.params=`screen(${s.params})`}),i.walkAtRules(s=>{if(s.name!=="media")return;let o=s.params.match(/screen\(([^)]+)\)/);if(!o)return;let u=a.get(o[1]);u&&(s.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as ol}from"postcss";function vn(){function e(t){let r="",i=[],n=[],l=null;t.each(a=>{if(a.type==="atrule"){if(a.name==="config"||a.name==="source"||a.name==="theme"||a.name==="utility"||a.name==="custom-variant"||a.name==="variant"){i.length>0&&n.push([r,i.splice(0)]);return}if(a.name==="tailwind"&&a.params==="base"||a.name==="import"&&a.params.match(/^["']tailwindcss\/base["']/)){i.length>0&&n.push([r,i.splice(0)]),l??="base",r="base";return}if(a.name==="tailwind"&&a.params==="components"||a.name==="import"&&a.params.match(/^["']tailwindcss\/components["']/)){i.length>0&&n.push([r,i.splice(0)]),l??="components",r="components";return}if(a.name==="tailwind"&&a.params==="utilities"||a.name==="import"&&a.params.match(/^["']tailwindcss\/utilities["']/)){i.length>0&&n.push([r,i.splice(0)]),l??="utilities",r="utilities";return}if(a.name==="layer"){i.length>0&&n.push([r,i.splice(0)]);return}if(a.name==="import"){i.length>0&&n.push([r,i.splice(0)]),n.push([r,[a]]);return}}r===""&&(a.type==="comment"||a.type==="atrule"&&!a.nodes||a.type==="atrule"&&a.name==="charset")||i.push(a)});for(let[a,s]of n){let o=a||l||"";if(o===""||s.every(c=>c.type==="comment"))continue;if(s.every(c=>c.type==="atrule"&&c.name==="import")){for(let c of s)if(!(c.type!=="atrule"||c.name!=="import")&&!c.params.includes("layer(")){let p=y(c.params," ");p.splice(1,0,`layer(${o})`),c.params=p.join(" "),c.raws.tailwind_injected_layer=!0}continue}let u=s[0],f=new ol({name:"layer",params:o,nodes:s.map(c=>c===u?c:c.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(f)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import ll from"dedent";import al from"postcss";var sl="currentColor",ul=ll,fl=ul`
34
- /*
35
- The default border color has changed to \`currentColor\` in Tailwind CSS v4,
36
- so we've added these compatibility styles to make sure everything still
37
- looks the same as it did with Tailwind CSS v3.
38
-
39
- If we ever want to remove these styles, we need to add an explicit border
40
- color utility to any element that depends on these defaults.
41
- */
42
- @layer base {
43
- *,
44
- ::after,
45
- ::before,
46
- ::backdrop,
47
- ::file-selector-button {
48
- border-color: theme(borderColor.DEFAULT);
49
- }
50
- }
51
- `;function bn({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function i(l){let a=`--${q(re(l))}`;return!!e.theme.get([a])}function n(l){let a=!1;if(l.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return a=!0,!1}),!a)return;let s="";r!==sl&&(s+=fl,s+=`
6
+ ${L([c])}
7
+ Relies on:
52
8
 
53
- `),s=`
54
- @tw-bucket compatibility {
55
- ${s}
56
- }
57
- `;let o=al.parse(s);o.walkDecls(u=>{u.value.includes("theme(")&&(u.value=cl(A(u.value),f=>i(f)?r:f==="borderColor.DEFAULT"?"var(--color-gray-200, currentColor)":null))}),l.walkAtRules("theme",u=>{u.walkDecls("--border-color",f=>{f.remove()}),u.nodes?.length===0&&u.remove()}),l.append(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:n}}function cl(e,t){return I(e,(r,{replaceWith:i})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let n=r.nodes[0];if(n.kind!=="word")return;let l=n.value,a=1;for(let u=a;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)l+=x([r.nodes[u]]),a=u+1;l=pl(l);let s=r.nodes.slice(a+1),o=s.length>0?t(l,x(s)):t(l);if(o===null)return;i(A(o))}}),x(e)}function pl(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}import{AtRule as Qe}from"postcss";var Rt=["theme","base","components","utilities"];function wn(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(i){let n=null,l=null,a=[],s=null,o=null,u=null,f=null,c=[];i.walkAtRules(p=>{if(p.name==="import"&&p.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(p.params=p.params.replace("tailwindcss/tailwind.css","tailwindcss")),p.name==="import"&&p.params.match(/^["']tailwindcss["']/))p.params+=t;else if(p.name==="tailwind"&&p.params==="base"||p.name==="import"&&p.params.match(/^["']tailwindcss\/base["']$/))c.push("base"),a.push(p),n=p;else if(p.name==="tailwind"&&p.params==="utilities"||p.name==="import"&&p.params.match(/^["']tailwindcss\/utilities["']$/))c.push("utilities"),a.push(p),l=p;else if(p.name==="tailwind"&&p.params==="components"||p.name==="tailwind"&&p.params==="screens"||p.name==="tailwind"&&p.params==="variants"||p.name==="import"&&p.params.match(/^["']tailwindcss\/components["']$/))p.remove();else if(p.name==="responsive")if(p.nodes){for(let d of p.nodes)d.raws.tailwind_pretty=!0;p.replaceWith(p.nodes)}else p.remove()}),n!==null&&l!==null?(s||Ze(a).before(new Qe({name:"import",params:`'tailwindcss'${t}`})),n?.remove(),l?.remove()):l!==null?(o||Ze(a).before(new Qe({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),l?.remove()):n!==null&&(f||Ze(a).before(new Qe({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||Ze(a).before(new Qe({name:"import",params:"'tailwindcss/preflight' layer(base)"})),n?.remove());{let p=c.toSorted((d,m)=>Rt.indexOf(d)-Rt.indexOf(m));if(c.some((d,m)=>d!==p[m])){let d=Rt.toSorted((m,h)=>c.indexOf(m)-c.indexOf(h));i.prepend({name:"layer",params:d.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function Ze(e){let t=e.at(0),r=t.prev();for(;r;){if(r.type==="rule"&&(t=r),r.type==="atrule")if(r.name==="charset"||r.name==="import"){r=r.prev();continue}else if(r.name==="layer"&&!r.nodes){r=r.prev();continue}else t=r;r=r.prev()}return t}import"postcss";function kn({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=kt(e,{prettyPrint:!0});t.walkDecls(i=>{let[n]=r(i.value);i.value=n}),t.walkAtRules(i=>{if(i.name==="media"||i.name==="custom-media"||i.name==="container"||i.name==="supports"){let[n]=r(i.params,2);i.params=n}})}}}import"postcss";function xn(){function e(t){t.walkAtRules("variants",r=>{r.name==="variants"&&(r.name="layer",r.params="utilities")})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-variants-directive",OnceExit:e}}import{__unstable__loadDesignSystem as Rn,compile as xl}from"@tailwindcss/node";import Cl from"node:fs/promises";import oe,{dirname as Pn}from"node:path";import{fileURLToPath as Al}from"node:url";import be from"enhanced-resolve";import{createJiti as bl}from"jiti";import _t from"node:fs";import pm from"node:fs/promises";import mm,{dirname as Sn}from"node:path";import{pathToFileURL as $n}from"node:url";import{__unstable__loadDesignSystem as ym,compile as vm,compileAst as bm,Features as wm}from"tailwindcss";import Pt from"node:fs/promises";import Re from"node:path";var dl=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],ml=[".js",".cjs",".mjs"],gl=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],hl=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function yl(e,t){for(let r of t){let i=`${e}${r}`;if((await Pt.stat(i).catch(()=>null))?.isFile())return i}for(let r of t){let i=`${e}/index${r}`;if(await Pt.access(i).then(()=>!0,()=>!1))return i}return null}async function Cn(e,t,r,i){let n=ml.includes(i)?gl:hl,l=await yl(Re.resolve(r,t),n);if(l===null||e.has(l))return;e.add(l),r=Re.dirname(l),i=Re.extname(l);let a=await Pt.readFile(l,"utf-8"),s=[];for(let o of dl)for(let u of a.matchAll(o))u[1].startsWith(".")&&s.push(Cn(e,u[1],r,i));await Promise.all(s)}async function An(e){let t=new Set;return await Cn(t,e,Re.dirname(e),Re.extname(e)),Array.from(t)}import*as vl from"node:path";async function Xe(e,t,r,i){if(e[0]!=="."){let s=await Vn(e,t,i);if(!s)throw new Error(`Could not resolve '${e}' from '${t}'`);let o=await Nn($n(s).href);return{base:Sn(s),module:o.default??o}}let n=await Vn(e,t,i);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,a]=await Promise.all([Nn($n(n).href+"?id="+Date.now()),An(n)]);for(let s of a)r(s);return{base:Sn(n),module:l.default??l}}var Tn=null;async function Nn(e){if(typeof globalThis.__tw_load=="function"){let t=await globalThis.__tw_load(e);if(t)return t}try{return await import(e)}catch{return Tn??=bl(import.meta.url,{moduleCache:!1,fsCache:!1}),await Tn.import(e)}}var Ot=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],Cm=be.ResolverFactory.createResolver({fileSystem:new be.CachedInputFileSystem(_t,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:Ot});var wl=be.ResolverFactory.createResolver({fileSystem:new be.CachedInputFileSystem(_t,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:Ot}),kl=be.ResolverFactory.createResolver({fileSystem:new be.CachedInputFileSystem(_t,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:Ot});async function Vn(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,t);if(i)return Promise.resolve(i)}if(r){let i=await r(e,t);if(i)return i}return En(wl,e,t).catch(()=>En(kl,e,t))}function En(e,t,r){return new Promise((i,n)=>e.resolve({},r,t,{},(l,a)=>{if(l)return n(l);i(a)}))}var Sl=Al(import.meta.url),Pe=Pn(Sl),_n=String.raw;async function On(e,t){try{e===null?e=await Dt(t.base):oe.isAbsolute(e)||(e=oe.resolve(t.base,e));let r=oe.relative(Pe,e);!r.startsWith(".")&&!oe.isAbsolute(r)&&(r="./"+r);let i=await $l(e),n=i.prefix?Ur(i.prefix):null,l=_n`
58
- @import 'tailwindcss' ${n?`prefix(${n})`:""};
59
- @config '${r}';
60
- `,[a,s]=await Promise.all([xl(l,{base:Pe,onDependency:()=>{}}),Rn(l,{base:Pe})]);return{designSystem:s,sources:a.sources,userConfig:i,newPrefix:n,configFilePath:e}}catch(r){T("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function $l(e){let[t,r]=await Promise.all([Rn(_n`
61
- @import 'tailwindcss';
62
- `,{base:Pe}),Xe(e,Pe,()=>{}).then(i=>i.module)]);return ce(t,[{base:Pn(e),config:r,reference:!1}]).resolvedConfig}var Tl=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function Dt(e,t=e){for(let r of Nl(e,t))for(let i of Tl){let n=oe.resolve(r,i);try{return await Cl.access(n),n}catch{}}throw new Error(`No configuration file found for ${v(O(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${v("--config")} option.`)}function*Nl(e,t=e){let r=oe.resolve(e),i=oe.resolve(t);if(!r.startsWith(i))throw new Error(`The path ${e} is not a parent of ${t}`);if(r===i){yield r;return}let n=r;do yield n,n=oe.dirname(n);while(n!==i);yield i}async function Rl(e,t,r){return typeof e=="string"&&(e=await ne.fromString(e),e.file=r??null),et().use(hn()).use(Gr(t)).use(yn(t)).use(xn()).use(Xr(e)).use(vn()).use(wn(t)).use(nn(e,t)).use(bn(t)).use(kn(t)).process(e.root,{from:e.file??void 0})}async function Dn(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await Rl(e,t)}async function In(e){let t=await El(),r=[],i=new k(o=>{if(t(o))return null;try{let u=ne.loadSync(o);return e.push(u),r.push(()=>n.process(u.root,{from:u.file})),u}catch{return null}}),n=et([{postcssPlugin:"mark-import-nodes",AtRule:{import(o){let u=o.params.match(/['"](.*)['"]/)?.[1];if(!u)return;let f=o.source?.input.file?H.dirname(o.source.input.file):process.cwd(),c=!1;try{if(u[0]!==".")try{c=dt(`./${u}`,f)}catch{}c||(c=dt(u,f))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;T(`Failed to resolve import: ${v(u)} in ${v(O(o.source?.input.file,f))}. Skipping.`,{prefix:"\u21B3 "});return}if(!c)return;let p=i.get(c);if(!p)return;o.raws.tailwind_destination_sheet_id=p.id;let d=o.source?.input.file?i.get(o.source.input.file):void 0,m=[];for(let h of y(o.params," "))h.startsWith("layer(")&&h.endsWith(")")&&m.push(h.slice(6,-1).trim());if(d){let h={layers:m};p.parents.add({item:d,meta:h}),d.children.add({item:p,meta:h})}}}}]);for(let o of e)o.file&&(i.set(o.file,o),r.push(()=>n.process(o.root,{from:o.file??void 0})));for(;r.length>0;)await r.shift()();let l=process.cwd();function a(o){let u=[];for(let f of o){if(!f.item.file)continue;let c=f.item.file.replace(l,""),p=f.meta.layers.join(", ");p.length>0?u.push(`${c} (layers: ${p})`):u.push(c)}return u.join(" <- ")}let s=[];for(let o of e){if(!o.file)continue;let{convertiblePaths:u,nonConvertiblePaths:f}=o.analyzeImportPaths();if(!(u.length>0&&f.length>0))continue;o.canMigrate=!1;let p=o.file.replace(l,"");for(let d of u)s.push(`- ${p} <- ${a(d)}`);for(let d of f)s.push(`- ${p} <- ${a(d)}`)}if(s.length===0){let o=new Set;for(let u of e)u.root.walkAtRules("config",()=>(u.isTailwindRoot=!0,!1)),!u.isTailwindRoot&&u.root.walkAtRules(f=>{(f.name==="tailwind"||f.name==="import"&&f.params.match(/^["']tailwindcss["']/)||f.name==="import"&&f.params.match(/^["']tailwindcss\/.*?["']$/))&&(u.isTailwindRoot=!0,o.add(u))});if(o.size<=1)return;{let u=new k(()=>new Set);for(let c of o)u.get(c).add(c);let f=!0;e:for(;f;){f=!1;for(let[c,p]of u)for(let[d,m]of u){if(c===d)continue;let h=[c].concat(Array.from(c.ancestors()).reverse()),g=[d].concat(Array.from(d.ancestors()).reverse());for(let b of h)for(let C of g){if(b!==C)continue;let K=b;u.delete(c),u.delete(d);for(let Y of p)u.get(K).add(Y);for(let Y of m)u.get(K).add(Y);f=!0;continue e}}}for(let[c,p]of u){c.isTailwindRoot=!0;for(let d of p)c!==d&&(d.isTailwindRoot=!1)}return}}{let o=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
63
- `;throw o+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
64
- `,new Error(o+s.join(`
65
- `))}}async function Un(e,{configPath:t,base:r}){let i=e.filter(u=>u.isTailwindRoot);if(i.length===0)throw new Error(`Cannot find any CSS files that reference Tailwind CSS.
66
- Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${v("@tailwind")}.`);let n=i.filter(u=>{let f=!1;return u.root.walkAtRules("config",c=>{let p=H.resolve(H.dirname(u.file),c.params.slice(1,-1));return u.linkedConfigPath=p,f=!0,!1}),!f});if(n.length===0)return;let l=new Map,a=new k(()=>new Set);for(let u of n){if(!u.file)continue;let f=t;t===null?f=await Dt(H.dirname(u.file),r):H.isAbsolute(f)||(f=H.resolve(r,f)),l.set(u,f),a.get(f).add(u)}let s=new Set;for(let u of a.values())if(u.size>1)for(let f of u)s.add(f);if(s.size>1){for(let u of s)T(`Could not determine configuration file for: ${v(O(u.file,r))}
67
- Update your stylesheet to use ${v("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let o=O;for(let[u,f]of l)try{if(!u||!u.file)return;V(`Linked ${v(o(f,r))} to ${v(o(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=f;let c=H.relative(H.dirname(u.file),f);!c.startsWith(".")&&!H.isAbsolute(c)&&(c="./"+c),c=Vl(c);{let p=u.root,d=et.atRule({name:"config",params:`'${c}'`});u.root.walkAtRules(m=>{(m.name==="tailwind"||m.name==="import")&&(p=m)}),p.type==="root"?u.root.prepend(d):p.type==="atrule"&&p.after(d)}}catch(c){T("Could not load the configuration file: "+c.message,{prefix:"\u21B3 "}),process.exit(1)}}async function jn(e){let t=new Map,r=new Map;for(let s of e)t.set(s.id,s),s.file&&r.set(s.file,s);let i=new Set;for(let s of e){if(s.isTailwindRoot)continue;let o=!1,u=s.layers().size>0;$(s.root,f=>{if(f.type==="atrule"&&f.name==="utility")o=!0;else{if(f.type==="atrule"&&f.name==="import"&&f.params.includes("layer(")||f.type==="atrule"&&f.name==="layer"||f.type==="comment")return 1;u=!0}return o&&u?2:1}),o&&u&&i.add(s)}let n=new Map;for(let s of e){if(!s.file||s.parents.size===0||!i.has(s)&&!Array.from(s.descendants()).some(p=>i.has(p)))continue;let o=et.root();$(s.root,p=>{if(p.type==="atrule"&&p.name==="utility")return o.append(p),1});let u=s.file.replace(/\.css$/,".utilities.css"),f=0;for(;r.has(u);)f+=1,u=s.file.replace(/\.css$/,`.utilities.${f}.css`);let c=await ne.fromRoot(o,u);c.extension=f>0?`.utilities.${f}.css`:".utilities.css",n.set(s,c),t.set(c.id,c)}for(let[s,o]of n){for(let u of s.parents){let f=n.get(u.item);f&&o.parents.add({item:f,meta:u.meta})}for(let u of s.children){let f=n.get(u.item);f&&o.children.add({item:f,meta:u.meta})}}for(let s of e){let o=n.get(s),u=new Set;for(let f of s.importRules){let c=f.raws.tailwind_destination_sheet_id;if(!c)continue;let p=t.get(c);if(!p)continue;let d=n.get(p);if(!d)continue;let m=f.params.match(/(['"])(.*)\1/);if(!m)return;let h=m[1],g=m[2],b=g.replace(/\.css$/,d.extension),C=f.clone({params:`${h}${b}${h}`,raws:{tailwind_injected_layer:f.raws.tailwind_injected_layer,tailwind_original_params:`${h}${g}${h}`,tailwind_destination_sheet_id:d.id}});o?u.add(C):f.after(C)}o&&u.size>0&&o.root.prepend(Array.from(u))}let l=new k(()=>new Set);for(let s of t.values())for(let o of s.importRules){let u=o.raws.tailwind_destination_sheet_id;if(!u)continue;let f=t.get(u);f&&l.get(f).add(o)}let a=[];for(let s of e.slice()){for(let o of s.descendants())a.push(o);a.push(s)}for(let s of a){let o=n.get(s);if(o&&s.isEmpty){s.root=o.root;for(let u of l.get(o))u.params=u.raws.tailwind_original_params;for(let u of l.get(s))u.remove();n.delete(s)}}e.push(...n.values())}import{Scanner as qn}from"@tailwindcss/oxide";import zl from"node:fs/promises";import Hn from"node:path";import{fileURLToPath as Wl}from"node:url";var Jn=yi(Kn());import nt from"tree-sitter";import it from"tree-sitter-typescript";var It=new nt;It.setLanguage(it.typescript);var Ut=String.raw,Fl=new nt.Query(it.typescript,Ut`
9
+ ${L([m])}`)}u.add(c);for(let m of o.get(c))for(let d of s.get(m))p.push(c),f(d,p),p.pop();a.add(c),u.delete(c),l.push(c)}}for(let c of i)f(c);for(let c of l)if("nodes"in c)for(let p=0;p<c.nodes.length;p++){let m=c.nodes[p];if(m.kind!=="at-rule"||m.name!=="@apply")continue;let d=m.params.split(/\s+/g);{let g=Ee(d,t,{onInvalidCandidate:y=>{throw new Error(`Cannot apply unknown utility class: ${y}`)}}).astNodes,h=[];for(let y of g)if(y.kind==="rule")for(let $ of y.nodes)h.push($);else h.push(y);c.nodes.splice(p,1,...h)}}return r}function*$r(e,t){for(let r of e.params.split(/\s+/g))for(let n of t.parseCandidate(r))switch(n.kind){case"arbitrary":break;case"static":case"functional":yield n.root;break;default:}}var Vo=32;var To=40;function Vr(e,t=[]){for(let r=5;r<e.length;r++){let n=e.charCodeAt(r);if(n===Vo||n===To){let i=e.slice(0,r).trim(),o=e.slice(r).trim();return C(i,o,t)}}return C(e.trim(),"",t)}function Tr(e){let t,r=null,n=null,i=null;for(let o=0;o<e.length;o++){let s=e[o];if(s.kind!=="separator"){if(s.kind==="word"&&!t){if(!s.value||s.value[0]!=='"'&&s.value[0]!=="'")return null;t=s.value.slice(1,-1);continue}if(s.kind==="function"&&s.value.toLowerCase()==="url"||!t)return null;if((s.kind==="word"||s.kind==="function")&&s.value.toLowerCase()==="layer"){if(r)return null;if(i)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in s?r=b(s.nodes):r="";continue}if(s.kind==="function"&&s.value.toLowerCase()==="supports"){if(i)return null;i=b(s.nodes);continue}n=b(e.slice(o));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function Pr(e){let t=[];return Rr(e,[],(r,n)=>{if(Po(r))return t.push([n,r]),1;if(Ro(r)){t.push([n,r[0]]);for(let i of Reflect.ownKeys(r[1]))t.push([[...n,`-${i}`],r[1][i]]);return 1}if(Array.isArray(r)&&r.every(i=>typeof i=="string"))return n[0]==="fontSize"?(t.push([n,r[0]]),r.length>=2&&t.push([[...n,"-line-height"],r[1]])):t.push([n,r.join(", ")]),1}),t}var No=/^[a-zA-Z0-9-_%/\.]+$/;function Q(e){if(e[0]==="container")return null;e=structuredClone(e),e[0]==="animation"&&(e[0]="animate"),e[0]==="aspectRatio"&&(e[0]="aspect"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="containers"&&(e[0]="container"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let t of e)if(!No.test(t))return null;return e.map((t,r,n)=>t==="1"&&r!==n.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,n,i)=>`${n}-${i.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function Po(e){return typeof e=="number"||typeof e=="string"}function Ro(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!="string"&&typeof e[0]!="number"||e[1]===void 0||e[1]===null||typeof e[1]!="object")return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!="string"||typeof e[1][t]!="string"&&typeof e[1][t]!="number")return!1;return!0}function Rr(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let o=[...t,n],s=r(i,o)??0;if(s!==1){if(s===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&Rr(i,o,r)===2)return 2}}}function ie(e){let t=[];for(let r of w(e,".")){if(!r.includes("[")){t.push(r);continue}let n=0;for(;;){let i=r.indexOf("[",n),o=r.indexOf("]",i);if(i===-1||o===-1)break;i>n&&t.push(r.slice(n,i)),t.push(r.slice(i+1,o)),n=o+1}n<=r.length-1&&t.push(r.slice(n))}return t}function Ae(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function De(e,t,r,n=[]){for(let i of t)if(i!=null)for(let o of Reflect.ownKeys(i)){n.push(o);let s=r(e[o],i[o],n);s!==void 0?e[o]=s:!Ae(e[o])||!Ae(i[o])?e[o]=i[o]:e[o]=De({},[e[o],i[o]],r,n),n.pop()}return e}function It(e,t,r){return function(i,o){let s=i.lastIndexOf("/"),a=null;s!==-1&&(a=i.slice(s+1).trim(),i=i.slice(0,s).trim());let l=(()=>{let u=ie(i),[f,c]=Eo(e.theme,u),p=r(Er(t()??{},u)??null);if(typeof p=="string"&&(p=p.replace("<alpha-value>","1")),typeof f!="object")return typeof c!="object"&&c&4?p??f:f;if(p!==null&&typeof p=="object"&&!Array.isArray(p)){let m=De({},[p],(d,g)=>g);if(f===null&&Object.hasOwn(p,"__CSS_VALUES__")){let d={};for(let g in p.__CSS_VALUES__)d[g]=p[g],delete m[g];f=d}for(let d in f)d!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[d]&4&&Er(m,d.split("-"))!==void 0||(m[Be(d)]=f[d]));return m}if(Array.isArray(f)&&Array.isArray(c)&&Array.isArray(p)){let m=f[0],d=f[1];c[0]&4&&(m=p[0]??m);for(let g of Object.keys(d))c[1][g]&4&&(d[g]=p[1][g]??d[g]);return[m,d]}return f??p})();return a&&typeof l=="string"&&(l=xe(l,a)),l??o}}function Eo(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=Q(t),n=new Map,i=new v(()=>new Map),o=e.namespace(`--${r}`);if(o.size===0)return[null,0];let s=new Map;for(let[f,c]of o){if(!f||!f.includes("--")){n.set(f,c),s.set(f,e.getOptions(f?`--${r}-${f}`:`--${r}`));continue}let p=f.indexOf("--"),m=f.slice(0,p),d=f.slice(p+2);d=d.replace(/-([a-z])/g,(g,h)=>h.toUpperCase()),i.get(m===""?null:m).set(d,[c,e.getOptions(`--${r}${f}`)])}let a=e.getOptions(`--${r}`);for(let[f,c]of i){let p=n.get(f);if(typeof p!="string")continue;let m={},d={};for(let[g,[h,y]]of c)m[g]=h,d[g]=y;n.set(f,[p,m]),s.set(f,[a,d])}let l={},u={};for(let[f,c]of n)_r(l,[f??"DEFAULT"],c);for(let[f,c]of s)_r(u,[f??"DEFAULT"],c);return t[t.length-1]==="DEFAULT"?[l?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in l&&Object.keys(l).length===1?[l.DEFAULT,u.DEFAULT??0]:(l.__CSS_VALUES__=u,[l,u])}function Er(e,t){for(let r=0;r<t.length;++r){let n=t[r];if(e?.[n]===void 0){if(t[r+1]===void 0)return;t[r+1]=`${n}-${t[r+1]}`;continue}e=e[n]}return e}function _r(e,t,r){for(let n of t.slice(0,-1))e[n]===void 0&&(e[n]={}),e=e[n];e[t[t.length-1]]=r}function _o(e){return{kind:"combinator",value:e}}function Oo(e,t){return{kind:"function",value:e,nodes:t}}function Ie(e){return{kind:"selector",value:e}}function Do(e){return{kind:"separator",value:e}}function Io(e){return{kind:"value",value:e}}function He(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],o=!1,s=0,a=t(i,{parent:r,replaceWith(l){o||(o=!0,Array.isArray(l)?l.length===0?(e.splice(n,1),s=0):l.length===1?(e[n]=l[0],s=1):(e.splice(n,1,...l),s=l.length):(e[n]=l,s=1))}})??0;if(o){a===0?n--:n+=s-1;continue}if(a===2)return 2;if(a!==1&&i.kind==="function"&&He(i.nodes,t,i)===2)return 2}}function Je(e){let t="";for(let r of e)switch(r.kind){case"combinator":case"selector":case"separator":case"value":{t+=r.value;break}case"function":t+=r.value+"("+Je(r.nodes)+")"}return t}var Or=92,jo=93,Dr=41,Uo=58,Ir=44,Mo=34,Fo=46,jr=62,Ur=10,Lo=35,Mr=91,Fr=40,Lr=43,zo=39,zr=32,Kr=9,Wr=126;function jt(e){e=e.replaceAll(`\r
10
+ `,`
11
+ `);let t=[],r=[],n=null,i="",o;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);switch(a){case Ir:case jr:case Ur:case zr:case Lr:case Kr:case Wr:{if(i.length>0){let p=Ie(i);n?n.nodes.push(p):t.push(p),i=""}let l=s,u=s+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==Ir&&o!==jr&&o!==Ur&&o!==zr&&o!==Lr&&o!==Kr&&o!==Wr));u++);s=u-1;let f=e.slice(l,u),c=f.trim()===","?Do(f):_o(f);n?n.nodes.push(c):t.push(c);break}case Fr:{let l=Oo(i,[]);if(i="",l.value!==":not"&&l.value!==":where"&&l.value!==":has"&&l.value!==":is"){let u=s+1,f=0;for(let p=s+1;p<e.length;p++){if(o=e.charCodeAt(p),o===Fr){f++;continue}if(o===Dr){if(f===0){s=p;break}f--}}let c=s;l.nodes.push(Io(e.slice(u,c))),i="",s=c,n?n.nodes.push(l):t.push(l);break}n?n.nodes.push(l):t.push(l),r.push(l),n=l;break}case Dr:{let l=r.pop();if(i.length>0){let u=Ie(i);l.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}case Fo:case Uo:case Lo:{if(i.length>0){let l=Ie(i);n?n.nodes.push(l):t.push(l)}i=String.fromCharCode(a);break}case Mr:{if(i.length>0){let f=Ie(i);n?n.nodes.push(f):t.push(f)}i="";let l=s,u=0;for(let f=s+1;f<e.length;f++){if(o=e.charCodeAt(f),o===Mr){u++;continue}if(o===jo){if(u===0){s=f;break}u--}}i+=e.slice(l,s+1);break}case zo:case Mo:{let l=s;for(let u=s+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Or)u+=1;else if(o===a){s=u;break}i+=e.slice(l,s+1);break}case Or:{let l=e.charCodeAt(s+1);i+=String.fromCharCode(a)+String.fromCharCode(l),s+=1;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(Ie(i)),t}function Ge(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(F(n,[C("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(V(n,String(i)))}else if(Array.isArray(i))for(let o of i)typeof o=="string"?t.push(V(n,o)):t.push(F(n,Ge(o)));else i!==null&&t.push(F(n,Ge(i)));return t}function qr(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(C("@keyframes",r,Ge(n)));return t}var Ye={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)"}};function me(e){return{__BARE_VALUE__:e}}var B=me(e=>{if(N(e.value))return e.value}),_=me(e=>{if(N(e.value))return`${e.value}%`}),ne=me(e=>{if(N(e.value))return`${e.value}px`}),Hr=me(e=>{if(N(e.value))return`${e.value}ms`}),Qe=me(e=>{if(N(e.value))return`${e.value}deg`}),Bo=me(e=>{if(e.fraction===null)return;let[t,r]=w(e.fraction,"/");if(!(!N(t)||!N(r)))return e.fraction}),Jr=me(e=>{if(N(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),qo={accentColor:({theme:e})=>e("colors"),animation:{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"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...Bo},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),..._}),backdropContrast:({theme:e})=>({...e("contrast"),..._}),backdropGrayscale:({theme:e})=>({...e("grayscale"),..._}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Qe}),backdropInvert:({theme:e})=>({...e("invert"),..._}),backdropOpacity:({theme:e})=>({...e("opacity"),..._}),backdropSaturate:({theme:e})=>({...e("saturate"),..._}),backdropSepia:({theme:e})=>({...e("sepia"),..._}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...ne},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)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",..._},caretColor:({theme:e})=>e("colors"),colors:()=>({...Ye}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","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",...B},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",..._},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...ne}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...B},flexShrink:{0:"0",DEFAULT:"1",...B},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},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"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",..._},grayscale:{0:"0",DEFAULT:"100%",..._},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{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"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...B},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...B},gridRow:{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"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...B},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...B},gridTemplateColumns:{none:"none",subgrid:"subgrid",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))",...Jr},gridTemplateRows:{none:"none",subgrid:"subgrid",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))",...Jr},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...Qe},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",..._},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{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"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...B},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",..._},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",...B},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Qe},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",..._},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",..._},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",..._},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Qe},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.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"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...B},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},transformOrigin:{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"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Hr},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Hr},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...B}};var Ho={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function de(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Ho)};for(let i of t)Ut(r,i);for(let i of r.configs)"darkMode"in i&&i.darkMode!==void 0&&(r.result.darkMode=i.darkMode??null),"prefix"in i&&i.prefix!==void 0&&(r.result.prefix=i.prefix??""),"blocklist"in i&&i.blocklist!==void 0&&(r.result.blocklist=i.blocklist??[]),"important"in i&&i.important!==void 0&&(r.result.important=i.important??!1);let n=Go(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function Jo(e,t){if(Array.isArray(e)&&Ae(e[0]))return e.concat(t);if(Array.isArray(t)&&Ae(t[0])&&Ae(e))return[e,...t];if(Array.isArray(t))return t}function Ut(e,{config:t,base:r,path:n,reference:i}){let o=[];for(let l of t.plugins??[])"__isOptionsFunction"in l?o.push({...l(),reference:i}):"handler"in l?o.push({...l,reference:i}):o.push({handler:l,reference:i});if(Array.isArray(t.presets)&&t.presets.length===0)throw new Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let l of t.presets??[])Ut(e,{path:n,base:r,config:l,reference:i});for(let l of o)e.plugins.push(l),l.config&&Ut(e,{path:n,base:r,config:l.config,reference:!!l.reference});let s=t.content??[],a=Array.isArray(s)?s:s.files;for(let l of a)e.content.files.push(typeof l=="object"?l:{base:r,pattern:l});e.configs.push(t)}function Go(e){let t=new Set,r=It(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:Ye});function i(o){return typeof o=="function"?o(n)??null:o??null}for(let o of e.configs){let s=o.theme??{},a=s.extend??{};for(let l in s)l!=="extend"&&t.add(l);Object.assign(e.theme,s);for(let l in a)e.extend[l]??=[],e.extend[l].push(a[l])}delete e.theme.extend;for(let o in e.extend){let s=[e.theme[o],...e.extend[o]];e.theme[o]=()=>{let a=s.map(i);return De({},a,Jo)}}for(let o in e.theme)e.theme[o]=i(e.theme[o]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let o of Object.keys(e.theme.screens)){let s=e.theme.screens[o];s&&typeof s=="object"&&("raw"in s||"max"in s||"min"in s&&(e.theme.screens[o]=s.min))}return t}function Gr({center:e,padding:t,screens:r},n){let i=[],o=null;if(e&&i.push(V("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(V("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){o=new Map;let s=Array.from(n.theme.namespace("--breakpoint").entries());if(s.sort((a,l)=>Re(a[1],l[1],"asc")),s.length>0){let[a]=s[0];i.push(C("@media",`(width >= --theme(--breakpoint-${a}))`,[V("max-width","none")]))}for(let[a,l]of Object.entries(r)){if(typeof l=="object")if("min"in l)l=l.min;else continue;o.set(a,C("@media",`(width >= ${l})`,[V("max-width",l)]))}}if(typeof t=="object"&&t!==null){let s=Object.entries(t).filter(([a])=>a!=="DEFAULT").map(([a,l])=>[a,n.theme.resolveValue(a,["--breakpoint"]),l]).filter(Boolean);s.sort((a,l)=>Re(a[1],l[1],"asc"));for(let[a,,l]of s)if(o&&o.has(a))o.get(a).nodes.push(V("padding-inline",l));else{if(o)continue;i.push(C("@media",`(width >= theme(--breakpoint-${a}))`,[V("padding-inline",l)]))}}if(o)for(let[,s]of o)i.push(s);return i}function Mt({addVariant:e,config:t}){let r=t("darkMode",null),[n,i=".dark"]=Array.isArray(r)?r:[r];if(n==="variant"){let o;if(Array.isArray(i)||typeof i=="function"?o=i:typeof i=="string"&&(o=[i]),Array.isArray(o))for(let s of o)s===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):s.includes("&")||(n=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=o}n===null||(n==="selector"?e("dark",`&:where(${i}, ${i} *)`):n==="media"?e("dark","@media (prefers-color-scheme: dark)"):n==="variant"?e("dark",i):n==="class"&&e("dark",`&:is(${i} *)`))}function Yr(e){return(Array.isArray(e)?e:[e]).map(r=>typeof r=="string"?{min:r}:r&&typeof r=="object"?r:null).map(r=>{if(r===null)return null;if("raw"in r)return r.raw;let n="";return r.max!==void 0&&(n+=`${r.max} >= `),n+="width",r.min!==void 0&&(n+=` >= ${r.min}`),`(${n})`}).filter(Boolean).join(", ")}var Yo=64;function Y(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function C(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function F(e,t=[]){return e.charCodeAt(0)===Yo?Vr(e,t):Y(e,t)}function V(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function qe(e){return{kind:"comment",value:e}}function A(e,t,r=[],n={}){for(let i=0;i<e.length;i++){let o=e[i],s=r[r.length-1]??null;if(o.kind==="context"){if(A(o.nodes,t,r,{...n,...o.context})===2)return 2;continue}r.push(o);let a=!1,l=0,u=t(o,{parent:s,context:n,path:r,replaceWith(f){a||(a=!0,Array.isArray(f)?f.length===0?(e.splice(i,1),l=0):f.length===1?(e[i]=f[0],l=1):(e.splice(i,1,...f),l=f.length):(e[i]=f,l=1))}})??0;if(r.pop(),a){u===0?i--:i+=l-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in o){r.push(o);let f=A(o.nodes,t,r,n);if(r.pop(),f===2)return 2}}}function L(e){function t(n,i=0){let o="",s=" ".repeat(i);if(n.kind==="declaration")o+=`${s}${n.property}: ${n.value}${n.important?" !important":""};
12
+ `;else if(n.kind==="rule"){o+=`${s}${n.selector} {
13
+ `;for(let a of n.nodes)o+=t(a,i+1);o+=`${s}}
14
+ `}else if(n.kind==="at-rule"){if(n.nodes.length===0)return`${s}${n.name} ${n.params};
15
+ `;o+=`${s}${n.name}${n.params?` ${n.params} `:" "}{
16
+ `;for(let a of n.nodes)o+=t(a,i+1);o+=`${s}}
17
+ `}else if(n.kind==="comment")o+=`${s}/*${n.value}*/
18
+ `;else if(n.kind==="context"||n.kind==="at-root")return"";return o}let r="";for(let n of e){let i=t(n);i!==""&&(r+=i)}return r}function Qo(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//")}var o=e.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),n+o.join("/")}function Ft(e){let t=Qo(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function Ze(e,t,r,n){if(e[0]!=="."){let a=await ti(e,t,n);if(!a)throw new Error(`Could not resolve '${e}' from '${t}'`);let l=await ei(Zr(a).href);return{base:Qr(a),module:l.default??l}}let i=await ti(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,s]=await Promise.all([ei(Zr(i).href+"?id="+Date.now()),ar(i)]);for(let a of s)r(a);return{base:Qr(i),module:o.default??o}}var Xr=null;async function ei(e){if(typeof globalThis.__tw_load=="function"){let t=await globalThis.__tw_load(e);if(t)return t}try{return await import(e)}catch{return Xr??=Xo(import.meta.url,{moduleCache:!1,fsCache:!1}),await Xr.import(e)}}var zt=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],Rp=Se.ResolverFactory.createResolver({fileSystem:new Se.CachedInputFileSystem(Lt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:zt});var ea=Se.ResolverFactory.createResolver({fileSystem:new Se.CachedInputFileSystem(Lt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:zt}),ta=Se.ResolverFactory.createResolver({fileSystem:new Se.CachedInputFileSystem(Lt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:zt});async function ti(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let n=globalThis.__tw_resolve(e,t);if(n)return Promise.resolve(n)}if(r){let n=await r(e,t);if(n)return n}return ri(ea,e,t).catch(()=>ri(ta,e,t))}function ri(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(o,s)=>{if(o)return i(o);n(s)}))}var hi=qn(ai());import tt from"tree-sitter";import rt from"tree-sitter-typescript";var Kt=new tt;Kt.setLanguage(rt.typescript);var Wt=String.raw,ua=new tt.Query(rt.typescript,Wt`
68
19
  ; export default {}
69
20
  (export_statement
70
21
  value: [
@@ -115,7 +66,7 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
115
66
  ]
116
67
  )
117
68
  )
118
- `),Ll=new nt.Query(it.typescript,Ut`
69
+ `),fa=new tt.Query(rt.typescript,Wt`
119
70
  (call_expression
120
71
  function: [
121
72
  (call_expression
@@ -168,7 +119,7 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
168
119
  (string (string_fragment) @module_string)
169
120
  )
170
121
  )
171
- `);function jt(e){try{let r=It.parse(e).rootNode,i=Kl(e),n=Fl.matches(r),l=[];for(let a of n)for(let s of a.captures)if(s.name==="imports"){for(let o of s.node.children)if(!(o.type==="["||o.type==="]"||o.type===","))switch(o.type){case"identifier":let u=i[o.text];if(!u||u.export!==null)return null;l.push([u.module,null]);break;case"string":l.push([o.children[1].text,null]);break;case"call_expression":let f=Ll.matches(o);if(f.length===0)return null;let c=null,p=null,d=null,m=null,h=f.flatMap(g=>g.captures);for(let g=0;g<h.length;g++){let b=h[g];switch(b.name){case"module_identifier":{p=b.node.text;break}case"module_string":{c=b.node.text;break}case"property":{if(m!==null)return null;m=b.node.text;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":{if(m===null)return null;d??={},d[m]=zn(b),m=null;break}case"array_value":{if(m===null)return null;d??={};let C=[],K=g;e:for(let Y=g+1;Y<h.length;Y++){let ft=h[Y];switch(ft.name){case"property":{if(ft.node.text!==m)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":C.push(zn(ft)),K=Y}}g=K,d[m]=C,m=null;break}case"_name":case"_empty_args":break;default:return null}}if(m!==null)return null;if(p!==null){let g=i[p];if(!g||g.export!==null&&g.export!=="*")return null;c=g.module}if(c===null)return null;l.push([c,d]);break;default:return null}}return l}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var Ml=new nt.Query(it.typescript,Ut`
122
+ `);function Bt(e){try{let r=Kt.parse(e).rootNode,n=pa(e),i=ua.matches(r),o=[];for(let s of i)for(let a of s.captures)if(a.name==="imports"){for(let l of a.node.children)if(!(l.type==="["||l.type==="]"||l.type===","))switch(l.type){case"identifier":let u=n[l.text];if(!u||u.export!==null)return null;o.push([u.module,null]);break;case"string":o.push([l.children[1].text,null]);break;case"call_expression":let f=fa.matches(l);if(f.length===0)return null;let c=null,p=null,m=null,d=null,g=f.flatMap(h=>h.captures);for(let h=0;h<g.length;h++){let y=g[h];switch(y.name){case"module_identifier":{p=y.node.text;break}case"module_string":{c=y.node.text;break}case"property":{if(d!==null)return null;d=y.node.text;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":{if(d===null)return null;m??={},m[d]=li(y),d=null;break}case"array_value":{if(d===null)return null;m??={};let $=[],D=h;e:for(let te=h+1;te<g.length;te++){let xt=g[te];switch(xt.name){case"property":{if(xt.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":$.push(li(xt)),D=te}}h=D,m[d]=$,d=null;break}case"_name":case"_empty_args":break;default:return null}}if(d!==null)return null;if(p!==null){let h=n[p];if(!h||h.export!==null&&h.export!=="*")return null;c=h.module}if(c===null)return null;o.push([c,m]);break;default:return null}}return o}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var ca=new tt.Query(rt.typescript,Wt`
172
123
  ; ESM import
173
124
  (import_statement
174
125
  (import_clause
@@ -207,35 +158,92 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
207
158
  )
208
159
  )
209
160
  )
210
- `);function Kl(e){let r=It.parse(e).rootNode,i=Ml.matches(r),n={};for(let l of i){let a=[],s="";for(let o=0;o<l.captures.length;o++){let u=l.captures[o];switch(u.name){case"default":a.push({name:u.node.text,export:null});break;case"imported-name":a.push({name:u.node.text,export:u.node.text});break;case"imported-from":s=u.node.text;break;case"imported-namespace":a.push({name:u.node.text,export:"*"});break;case"imported-alias":if(a.length<1)throw new Error("Unexpected alias: "+JSON.stringify(i,null,2));let f=a[a.length-1],c=f.name;f.export=c,f.name=u.node.text;break}}for(let{name:o,export:u}of a)n[o]={module:s,export:u}}return n}function zn(e){return e.name==="num_value"?parseFloat(e.node.text):e.name==="null_value"?null:e.name==="true_value"?!0:e.name==="false_value"?!1:e.node.text}var Bl=Wl(import.meta.url),ql=Hn.dirname(Bl);async function Gn(e,t,r){let[i,n]=await Promise.all([Xe(t,ql,()=>{}).then(u=>u.module),zl.readFile(t,"utf-8")]);if(!Ql(i,n))return U(`The configuration file at ${v(O(t,r))} could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.`,{prefix:"\u21B3 "}),null;let l=[],a=[],s=[];if("darkMode"in i&&s.push(Jl(i)),"content"in i&&(l=await Yl(i,t,r)),"theme"in i){let u=await Hl(e,i,r);u&&s.push(u)}"corePlugins"in i&&U("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let o=jt(n);if(o!==null)for(let[u,f]of o)a.push({base:r,path:u,options:f});return{sources:l,plugins:a,css:s.join(`
211
- `)}}async function Hl(e,t,r){let i={base:r,config:{...t,plugins:[],presets:void 0},reference:!1},{resolvedConfig:n,replacedThemeKeys:l}=ce(e,[i]),a=new Map(Array.from(l.entries()).map(([f])=>[f,!1]));na(e,n,l);let s="",o=`
161
+ `);function pa(e){let r=Kt.parse(e).rootNode,n=ca.matches(r),i={};for(let o of n){let s=[],a="";for(let l=0;l<o.captures.length;l++){let u=o.captures[l];switch(u.name){case"default":s.push({name:u.node.text,export:null});break;case"imported-name":s.push({name:u.node.text,export:u.node.text});break;case"imported-from":a=u.node.text;break;case"imported-namespace":s.push({name:u.node.text,export:"*"});break;case"imported-alias":if(s.length<1)throw new Error("Unexpected alias: "+JSON.stringify(n,null,2));let f=s[s.length-1],c=f.name;f.export=c,f.name=u.node.text;break}}for(let{name:l,export:u}of s)i[l]={module:a,export:u}}return i}function li(e){return e.name==="num_value"?parseFloat(e.node.text):e.name==="null_value"?null:e.name==="true_value"?!0:e.name==="false_value"?!1:e.node.text}import va from"node:fs";import fi from"node:path";import{stripVTControlCharacters as ci}from"node:util";import U from"picocolors";import $e from"enhanced-resolve";import qt from"node:fs";import{createRequire as ma}from"node:module";var da=ma(import.meta.url).resolve;function si(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return da(e)}var ga=$e.ResolverFactory.createResolver({fileSystem:new $e.CachedInputFileSystem(qt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),ha=$e.ResolverFactory.createResolver({fileSystem:new $e.CachedInputFileSystem(qt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function ui(e,t){try{return ga.resolveSync({},t,e)}catch{return ha.resolveSync({},t,e)}}var ya=$e.ResolverFactory.createResolver({fileSystem:new $e.CachedInputFileSystem(qt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function Ht(e,t){return ya.resolveSync({},t,e)}var it={indent:2};function nt(){return`${U.italic(U.bold(U.blue("\u2248")))} tailwindcss ${U.blue(`v${wa()}`)}`}function x(e){return`${U.dim(U.blue("`"))}${U.blue(e)}${U.dim(U.blue("`"))}`}function P(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=fi.relative(t,e);return n.startsWith("..")||(n=`.${fi.sep}${n}`),r&&n.length>e.length?e:n}function je(e,t){if(e.includes(`
162
+ `))return e.split(`
163
+ `).flatMap(s=>je(s,t));let r=e.split(" "),n=[],i="",o=0;for(let s of r){let a=ci(s).length;o+a+1>t&&(n.push(i),i="",o=0),i+=(o?" ":"")+s,o+=a+(o?1:0)}return o&&n.push(i),n}function Ue(e,t=0){return`${" ".repeat(t+it.indent)}${e}`}function ot(e,{art:t=U.gray("\u2502"),prefix:r="",print:n=le}){let i=r.length,o=" ",s=o.length,a=ci(t).length,u=process.stderr.columns-i-s*2-a;je(e,u).map((f,c)=>n(`${t}${o}${c===0?r:" ".repeat(i)}${f}${o}`)),n()}function j(e,{prefix:t="",print:r=le}={}){ot(e,{art:U.green("\u2502"),prefix:t,print:r})}function z(e,{prefix:t="",print:r=le}={}){ot(e,{art:U.blue("\u2502"),prefix:t,print:r})}function R(e,{prefix:t="",print:r=le}={}){ot(e,{art:U.red("\u2502"),prefix:t,print:r})}function at(e,{prefix:t="",print:r=le}={}){ot(e,{art:U.yellow("\u2502"),prefix:t,print:r})}function le(e=""){process.stderr.write(`${e}
164
+ `)}function K(e=""){process.stdout.write(`${e}
165
+ `)}function wa(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(va.readFileSync(si("tailwindcss/package.json"),"utf-8"));return e}var xa=ba(import.meta.url),Ca=gi.dirname(xa);async function yi(e,t,r){let[n,i]=await Promise.all([Ze(t,Ca,()=>{}).then(u=>u.module),ka.readFile(t,"utf-8")]);if(!Ta(n,i))return z(`The configuration file at ${x(P(t,r))} could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.`,{prefix:"\u21B3 "}),null;let o=[],s=[],a=[];if("darkMode"in n&&a.push(Sa(n)),"content"in n&&(o=await Va(n,t,r)),"theme"in n){let u=await Aa(e,n,r);u&&a.push(u)}"corePlugins"in n&&z("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let l=Bt(i);if(l!==null)for(let[u,f]of l)s.push({base:r,path:u,options:f});return{sources:o,plugins:s,css:a.join(`
166
+ `)}}async function Aa(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1},{resolvedConfig:i,replacedThemeKeys:o}=de(e,[n]),s=new Map(Array.from(o.entries()).map(([f])=>[f,!1]));Oa(e,i,o);let a="",l=`
212
167
  @tw-bucket theme {
213
- `;o+=`
168
+ `;l+=`
214
169
  @theme {
215
- `;let u=!1;for(let[f,c]of Lr(n.theme)){if(typeof c!="string"&&typeof c!="number")continue;if(typeof c=="string"&&(c=c.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),f[0]==="opacity"&&(typeof c=="number"||typeof c=="string")){let m=typeof c=="string"?parseFloat(c):c;if(m>=0&&m<=1&&(c=m*100+"%"),typeof c=="string"&&f[1]===c.replace(/%$/,"")&&vt(f[1]))continue}if(f[0]==="keyframes")continue;u=!0;let p=Gl(f);if(p!==s&&(o+=`
216
- `,s=p),a.has(f[0])&&a.get(f[0])===!1){a.set(f[0],!0);let m=q([f[0]]);m!==null&&(o+=` ${X(`--${m}`)}-*: initial;
217
- `)}let d=q(f);d!==null&&(o+=` ${X(`--${d}`)}: ${c};
218
- `)}if("keyframes"in n.theme&&(u=!0,o+=`
219
- `+ea(n.theme.keyframes)),!u)return null;if(o+=`}
220
- `,"container"in n.theme){let f=pn(n.theme.container,e);f.length>0&&(o+=`
221
- `+ee([S("@utility","container",f)]))}return o+=`}
222
- `,o}function Jl(e){let t="";if(Et({config:()=>e.darkMode,addVariant:(l,a)=>t=a}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
170
+ `;let u=!1;for(let[f,c]of Pr(i.theme)){if(typeof c!="string"&&typeof c!="number")continue;if(typeof c=="string"&&(c=c.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),f[0]==="opacity"&&(typeof c=="number"||typeof c=="string")){let d=typeof c=="string"?parseFloat(c):c;if(d>=0&&d<=1&&(c=d*100+"%"),typeof c=="string"&&f[1]===c.replace(/%$/,"")&&Pt(f[1]))continue}if(f[0]==="keyframes")continue;u=!0;let p=$a(f);if(p!==a&&(l+=`
171
+ `,a=p),s.has(f[0])&&s.get(f[0])===!1){s.set(f[0],!0);let d=Q([f[0]]);d!==null&&(l+=` ${re(`--${d}`)}-*: initial;
172
+ `)}let m=Q(f);m!==null&&(l+=` ${re(`--${m}`)}: ${c};
173
+ `)}if("keyframes"in i.theme&&(u=!0,l+=`
174
+ `+Ra(i.theme.keyframes)),!u)return null;if(l+=`}
175
+ `,"container"in i.theme){let f=Gr(i.theme.container,e);f.length>0&&(l+=`
176
+ `+L([C("@utility","container",f)]))}return l+=`}
177
+ `,l}function Sa(e){let t="";if(Mt({config:()=>e.darkMode,addVariant:(o,s)=>t=s}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
223
178
  @tw-bucket custom-variant {
224
179
  @custom-variant dark (${t[0]});
225
180
  }
226
- `;let n="";for(let l of t)l.includes("{")?n+=l.replace("}","{ @slot }}")+`
227
- `:n+=l+`{ @slot }
228
- `;return n!==""?`
181
+ `;let i="";for(let o of t)o.includes("{")?i+=o.replace("}","{ @slot }}")+`
182
+ `:i+=o+`{ @slot }
183
+ `;return i!==""?`
229
184
  @tw-bucket custom-variant {
230
- @custom-variant dark {${n}};
185
+ @custom-variant dark {${i}};
231
186
  }
232
- `:""}function Gl(e){let t=[];for(let r=0;r<e.length-1;r++){let i=e[r];if(e[r+1][0]==="-")break;t.push(i)}return t.join("-")}async function Yl(e,t,r){let i=ta(r),n=[],l=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,a=Array.isArray(e.content)?e.content.map(s=>({base:r,pattern:s})):(e.content?.files??[]).map(s=>typeof s=="string"&&l?{base:Hn.dirname(t),pattern:s}:{base:r,pattern:s});for(let{base:s,pattern:o}of a){if(typeof o!="string")throw new Error("Unsupported content value: "+o);let u=ra({base:s,pattern:o[0]==="!"?o.slice(1):o,negated:o[0]==="!"}),f=!0;for(let c of u)if(!i.includes(c)){f=!1;break}f||n.push({base:s,pattern:o})}return n}function Ql(e,t){function r(s){return typeof s=="function"?!1:Array.isArray(s)?s.every(r):typeof s=="object"&&s!==null?Object.values(s).every(r):["string","number","boolean","undefined"].includes(typeof s)}let{plugins:i,theme:n,...l}=e;if(!r(l))return!1;let a=["darkMode","content","theme","plugins","presets","prefix","corePlugins"];if(Object.keys(e).some(s=>!a.includes(s))||jt(t)===null||e.presets&&e.presets.length>0)return!1;if(n&&typeof n=="object"){if(n.extend&&!Wn(n.extend))return!1;let{extend:s,...o}=n;if(!Wn(o))return!1}return!0}var Zl=[...Object.keys(Jn.default),"containers"],Xl=["supports","data","aria"];function Wn(e){for(let t of Object.keys(e))if(!Zl.includes(t)||Xl.includes(t))return!1;if("screens"in e&&typeof e.screens=="object"&&e.screens!==null){for(let t of Object.values(e.screens))if(typeof t=="object"&&t!==null&&("max"in t||"raw"in t))return!1}return!0}function ea(e){let t=un({theme:{keyframes:e}});return ee(t).trim()+`
233
- `}function ta(e){let t=new qn({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function ra(e){let t=new qn({sources:[e]});return t.scan(),t.files}function na(e,t,r){if(r.has("spacing"))return;let i=e.theme.get(["--spacing"]);if(!i)return;let[n,l]=Bn(i);if(!(!n||!l)&&i&&!r.has("spacing"))for(let[a,s]of Object.entries(t.theme.spacing??{})){let[o,u]=Bn(s);o!==null&&$e(a)&&u===l&&parseFloat(o)===Number(a)*parseFloat(n)&&(delete t.theme.spacing[a],e.theme.clearNamespace(X(`--spacing-${a.replaceAll(".","_")}`),0))}}function Bn(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import G from"node:fs/promises";import Ft from"node:path";import{exec as ia}from"node:child_process";import we from"node:fs/promises";import{dirname as oa,resolve as ke}from"node:path";import{promisify as la}from"node:util";var Yn=la(ia),Qn={default:"-D",bun:"-d"};function se(e){return{async add(t,r="dependencies"){let i=await Xn.get(e),n=t.slice();r==="devDependencies"&&n.push(Qn[i]||Qn.default);let l=`${i} add ${n.join(" ")}`;try{return await Yn(l,{cwd:e})}catch(a){throw T(`An error occurred while running \`${l}\`
187
+ `:""}function $a(e){let t=[];for(let r=0;r<e.length-1;r++){let n=e[r];if(e[r+1][0]==="-")break;t.push(n)}return t.join("-")}async function Va(e,t,r){let n=Ea(r),i=[],o=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,s=Array.isArray(e.content)?e.content.map(a=>({base:r,pattern:a})):(e.content?.files??[]).map(a=>typeof a=="string"&&o?{base:gi.dirname(t),pattern:a}:{base:r,pattern:a});for(let{base:a,pattern:l}of s){if(typeof l!="string")throw new Error("Unsupported content value: "+l);let u=_a({base:a,pattern:l[0]==="!"?l.slice(1):l,negated:l[0]==="!"}),f=!0;for(let c of u)if(!n.includes(c)){f=!1;break}f||i.push({base:a,pattern:l})}return i}function Ta(e,t){function r(a){return typeof a=="function"?!1:Array.isArray(a)?a.every(r):typeof a=="object"&&a!==null?Object.values(a).every(r):["string","number","boolean","undefined"].includes(typeof a)}let{plugins:n,theme:i,...o}=e;if(!r(o))return!1;let s=["darkMode","content","theme","plugins","presets","prefix","corePlugins"];if(Object.keys(e).some(a=>!s.includes(a))||Bt(t)===null||e.presets&&e.presets.length>0)return!1;if(i&&typeof i=="object"){if(i.extend&&!pi(i.extend))return!1;let{extend:a,...l}=i;if(!pi(l))return!1}return!0}var Na=[...Object.keys(hi.default),"containers"],Pa=["supports","data","aria"];function pi(e){for(let t of Object.keys(e))if(!Na.includes(t)||Pa.includes(t))return!1;if("screens"in e&&typeof e.screens=="object"&&e.screens!==null){for(let t of Object.values(e.screens))if(typeof t=="object"&&t!==null&&("max"in t||"raw"in t))return!1}return!0}function Ra(e){let t=qr({theme:{keyframes:e}});return L(t).trim()+`
188
+ `}function Ea(e){let t=new di({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function _a(e){let t=new di({sources:[e]});return t.scan(),t.files}function Oa(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,o]=mi(n);if(!(!i||!o)&&n&&!r.has("spacing"))for(let[s,a]of Object.entries(t.theme.spacing??{})){let[l,u]=mi(a);l!==null&&G(s)&&u===o&&parseFloat(l)===Number(s)*parseFloat(i)&&(delete t.theme.spacing[s],e.theme.clearNamespace(re(`--spacing-${s.replaceAll(".","_")}`),0))}}function mi(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import X from"node:fs/promises";import Jt from"node:path";import{exec as Da}from"node:child_process";import he from"node:fs/promises";import{dirname as Ia,resolve as ye}from"node:path";import{promisify as ja}from"node:util";var vi=ja(Da),wi={default:"-D",bun:"-d"};function ve(e){return{async add(t,r="dependencies"){let n=await bi.get(e),i=t.slice();r==="devDependencies"&&i.push(wi[n]||wi.default);let o=`${n} add ${i.join(" ")}`;try{return await vi(o,{cwd:e})}catch(s){throw R(`An error occurred while running \`${o}\`
234
189
 
235
- ${a.stdout}
236
- ${a.stderr}`,{prefix:"\u21B3 "}),a}},async remove(t){let i=`${await Xn.get(e)} remove ${t.join(" ")}`;try{return await Yn(i,{cwd:e})}catch(n){throw T(`An error occurred while running \`${i}\`
190
+ ${s.stdout}
191
+ ${s.stderr}`,{prefix:"\u21B3 "}),s}},async has(t){try{let r=ye(e,"package.json");return(await he.readFile(r,"utf-8")).includes(`"${t}":`)}catch{}return!1},async remove(t){let n=`${await bi.get(e)} remove ${t.join(" ")}`;try{return await vi(n,{cwd:e})}catch(i){throw R(`An error occurred while running \`${n}\`
237
192
 
238
- ${n.stdout}
239
- ${n.stderr}`,{prefix:"\u21B3 "}),n}}}}var Zn=!1,Xn=new k(async e=>{do{let t=ke(e,"package.json");try{let i=await we.readFile(t,"utf-8"),n=JSON.parse(i);if(n.packageManager){if(n.packageManager.includes("bun"))return"bun";if(n.packageManager.includes("yarn"))return"yarn";if(n.packageManager.includes("pnpm"))return"pnpm";if(n.packageManager.includes("npm"))return"npm"}}catch{}try{return await we.access(ke(e,"bun.lockb")),"bun"}catch{}try{return await we.access(ke(e,"bun.lock")),"bun"}catch{}try{return await we.access(ke(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await we.access(ke(e,"yarn.lock")),"yarn"}catch{}try{return await we.access(ke(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=oa(e),r===e)return Zn||(Zn=!0,Ie("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function ti(e){let t=!1,r=!1,i=!1,n=!1,l=!1,a=Ft.resolve(e,"package.json"),s;try{s=JSON.parse(await G.readFile(a,"utf-8"))}catch{}let o=await ua(e);if(o){let u=await aa(o);t=!0,u&&(r=!0,i=u.didAddPostcssClient,n=u.didRemoveAutoprefixer,l=u.didRemovePostCSSImport)}if(!t&&s&&"postcss"in s){let u=await ei(s.postcss);t=!0,u&&(await G.writeFile(a,JSON.stringify({...s,postcss:u?.json},null,2)),r=!0,i=u.didAddPostcssClient,n=u.didRemoveAutoprefixer,l=u.didRemovePostCSSImport)}if(!t){let u=await ca(e),f=null;if(u){try{f=JSON.parse(await G.readFile(u,"utf-8"))}catch{}if(f){let c=await ei(f);t=!0,c&&(await G.writeFile(u,JSON.stringify(c.json,null,2)),r=!0,i=c.didAddPostcssClient,n=c.didRemoveAutoprefixer,l=c.didRemovePostCSSImport)}}}if(!t){U("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(i){let u=Object.hasOwn(s?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(s?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(u!==null)try{await se(e).add(["@tailwindcss/postcss@latest"],u),V(`Installed package: ${v("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(n)try{await se(e).remove(["autoprefixer"]),V(`Removed package: ${v("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(l)try{await se(e).remove(["postcss-import"]),V(`Removed package: ${v("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&o&&V(`Migrated PostCSS configuration: ${v(O(o,e))}`,{prefix:"\u21B3 "})}async function aa(e){function t(p){return/['"]?tailwindcss['"]?\: ?\{\}/.test(p)}function r(p){return/['"]?postcss-import['"]?\: ?\{\}/.test(p)}function i(p){return/['"]?autoprefixer['"]?\: ?\{\}/.test(p)}function n(p){return/['"]tailwindcss\/nesting['"]\: ?(\{\}|['"]postcss-nesting['"])/.test(p)}if(U("Migrating PostCSS configuration\u2026"),!await pa(e))return Ie("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let a=!1,s=!1,o=!1,f=(await G.readFile(e,"utf-8")).split(`
240
- `),c=[];for(let p=0;p<f.length;p++){let d=f[p];if(t(d))a=!0,c.push(d.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(i(d))s=!0;else if(r(d)){let m=!1;for(let h=p+1;h<f.length;h++){let g=f[h];if(t(g))break;if(!n(g)){m=!0;break}}m?c.push(d):o=!0}else if(n(d)){let m=f[p+1];t(m)||c.push(d)}else c.push(d)}return await G.writeFile(e,c.join(`
241
- `)),{didAddPostcssClient:a,didRemoveAutoprefixer:s,didRemovePostCSSImport:o}}async function ei(e){function t(f,c){return f==="tailwindcss"&&ot(c)}function r(f,c){return f==="postcss-import"&&ot(c)}function i(f,c){return f==="autoprefixer"&&ot(c)}function n(f,c){return f==="tailwindcss/nesting"&&(c==="postcss-nesting"||ot(c))}let l=!1,a=!1,s=!1,o=Object.entries(e.plugins||{}),u=[];for(let f=0;f<o.length;f++){let[c,p]=o[f];if(t(c,p))l=!0,u.push(["@tailwindcss/postcss",p]);else if(i(c,p))a=!0;else if(r(c,p)){let d=!1;for(let m=f+1;m<o.length;m++){let[h,g]=o[m];if(t(h,g))break;if(!n(h,g)){d=!0;break}}d?u.push([c,p]):s=!0}else if(n(c,p)){let[d,m]=o[f+1];t(d,m)||u.push([c,p])}else u.push([c,p])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:l,didRemoveAutoprefixer:a,didRemovePostCSSImport:s}}var sa=[".postcssrc.js",".postcssrc.mjs",".postcssrc.cjs",".postcssrc.ts",".postcssrc.mts",".postcssrc.cts","postcss.config.js","postcss.config.mjs","postcss.config.cjs","postcss.config.ts","postcss.config.mts","postcss.config.cts"];async function ua(e){for(let t of sa){let r=Ft.resolve(e,t);try{return await G.access(r),r}catch{}}return null}var fa=[".postcssrc",".postcssrc.json"];async function ca(e){for(let t of fa){let r=Ft.resolve(e,t);try{return await G.access(r),r}catch{}}return null}async function pa(e){let t=await G.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function ot(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import da from"node:fs/promises";import ma from"node:path";async function ri(e){let t=ma.resolve(e,"package.json");try{(await da.readFile(t,"utf-8")).includes("prettier-plugin-tailwindcss")&&(await se(e).add(["prettier-plugin-tailwindcss@latest"]),V(`Updated package: ${v("prettier-plugin-tailwindcss")}`,{prefix:"\u21B3 "}))}catch{}}import ga from"mri";function ii(e,t=process.argv.slice(2)){let r=ga(t),i={_:r._};for(let[n,{type:l,alias:a,default:s=l==="boolean"?!1:null}]of Object.entries(e)){if(i[n]=s,a){let o=a.slice(1);r[o]!==void 0&&(i[n]=ni(r[o],l))}{let o=n.slice(2);r[o]!==void 0&&(i[n]=ni(r[o],l))}}return i}function ni(e,t){switch(t){case"string":return st(e);case"boolean":return lt(e);case"number":return at(e);case"boolean | string":return lt(e)??st(e);case"number | string":return at(e)??st(e);case"boolean | number":return lt(e)??at(e);case"boolean | number | string":return lt(e)??at(e)??st(e);default:throw new Error(`Unhandled type: ${t}`)}}function lt(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function at(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function st(e){return`${e}`}import{execSync as ha}from"node:child_process";function Lt(){try{return ha("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}import{normalizePath as ya}from"@tailwindcss/node";import va from"braces";import Mt from"node:path";function oi(e){return va(e.pattern,{expand:!0}).map(t=>{let r={...e},[i,n]=ba(t),l=ya(e.base);i!==null?r.base=Mt.posix.join(l,i):r.base=l,n===null?r.pattern="**/*":r.pattern=n;let a=Mt.basename(r.base);return a.includes(".")&&(r.pattern=a,r.base=Mt.dirname(r.base)),r})}function ba(e){if(!e.includes("*"))return[e,null];let t=null;for(let n=0;n<e.length;n++){let l=e[n];if(l==="/"&&(t=n),l==="*"||l==="!")break}if(t===null)return[null,e];let r=e.slice(0,t).trim(),i=e.slice(t+1).trim();return[r||null,i||null]}import wa from"node:fs/promises";async function li(e,t){try{let r=Zt(`${e}/package.json`,t);if(!r)return null;let{version:i}=JSON.parse(await wa.readFile(r,"utf8"));return i}catch{return null}}var ui={"--config":{type:"string",description:"Path to the configuration file",alias:"-c"},"--help":{type:"boolean",description:"Display usage information",alias:"-h"},"--force":{type:"boolean",description:"Force the migration",alias:"-f"},"--version":{type:"boolean",description:"Display the version number",alias:"-v"}},ut=ii(ui);ut["--help"]&&(tr({usage:["npx @tailwindcss/upgrade"],options:ui}),process.exit(0));async function Ca(){let e=process.cwd();Q(Oe()),Q();let t=[];ut["--force"]||Lt()&&(T("Git directory is not clean. Please stash or commit your changes before migrating."),U(`You may use the ${v("--force")} flag to silence this warning and perform the migration.`),process.exit(1));let r=await li("tailwindcss",e);r&&Number(r.split(".")[0])!==3&&(T(`Tailwind CSS v${r} found. The migration tool can only be run on v3 projects.`),process.exit(1));{let i=ut._.map(o=>ka.resolve(e,o));i.length===0&&(U("Searching for CSS files in the current directory and its subdirectories\u2026"),i=await ai(["**/*.css"],{absolute:!0,gitignore:!0})),i=i.filter(o=>o.endsWith(".css"));let n=await Promise.allSettled(i.map(o=>ne.load(o)));for(let o of n)o.status==="rejected"&&T(`${o.reason?.message??o.reason}`,{prefix:"\u21B3 "});let l=n.filter(o=>o.status==="fulfilled").map(o=>o.value);try{await In(l)}catch(o){T(`${o?.message??o}`,{prefix:"\u21B3 "})}try{await Un(l,{configPath:ut["--config"],base:e})}catch(o){T(`${o?.message??o}`,{prefix:"\u21B3 "})}l.some(o=>o.isTailwindRoot)&&U("Migrating JavaScript configuration files\u2026");let a=new Map,s=new Map;for(let o of l){if(!o.isTailwindRoot)continue;let u=await On(o.linkedConfigPath,{base:e});a.set(o,u);let f=await Gn(u.designSystem,u.configFilePath,e);s.set(o,f),f!==null&&t.push(()=>si.rm(u.configFilePath)),f!==null&&V(`Migrated configuration file: ${v(O(u.configFilePath,e))}`,{prefix:"\u21B3 "})}a.size>0&&U("Migrating templates\u2026");for(let o of a.values()){let u=new Set;for(let c of o.sources.flatMap(p=>oi(p))){let p=await ai([c.pattern],{absolute:!0,gitignore:!0,cwd:c.base});for(let d of p)u.add(d)}let f=Array.from(u);f.sort(),await Promise.allSettled(f.map(c=>Jr(o.designSystem,o.userConfig,c))),V(`Migrated templates for configuration file: ${v(O(o.configFilePath,e))}`,{prefix:"\u21B3 "})}l.length>0&&U("Migrating stylesheets\u2026"),await Promise.all(l.map(async o=>{try{let u=a.get(o),f=s.get(o);if(!u){for(let c of o.ancestors())if(c.isTailwindRoot){u??=a.get(c),f??=s.get(c);break}}await Dn(o,{...u,jsConfigMigration:f})}catch(u){T(`${u?.message??u} in ${v(O(o.file,e))}`,{prefix:"\u21B3 "})}}));try{await jn(l)}catch(o){T(`${o?.message??o}`,{prefix:"\u21B3 "})}for(let o of l)for(let u of o.importRules){if(!u.raws.tailwind_injected_layer)continue;let f=l.find(c=>c.id===u.raws.tailwind_destination_sheet_id);f&&f.containsRule(c=>c.type==="atrule"&&c.name==="utility")&&(u.params=u.params.replace(/ layer\([^)]+\)/,"").trim())}for(let o of l)await xa([Yt(),qt()]).process(o.root,{from:o.file});for(let o of l)o.file&&(await si.writeFile(o.file,o.root.toString()),o.isTailwindRoot&&V(`Migrated stylesheet: ${v(O(o.file,e))}`,{prefix:"\u21B3 "}))}await ti(e),U("Updating dependencies\u2026"),await ri(e);try{await se(e).add(["tailwindcss@latest"]),V(`Updated package: ${v("tailwindcss")}`,{prefix:"\u21B3 "})}catch{}await Promise.allSettled(t.map(i=>i())),Lt()?V("Verify the changes and commit them to your repository."):V("No changes were made to your repository.")}Ca().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
193
+ ${i.stdout}
194
+ ${i.stderr}`,{prefix:"\u21B3 "}),i}}}}var ki=!1,bi=new v(async e=>{do{let t=ye(e,"package.json");try{let n=await he.readFile(t,"utf-8"),i=JSON.parse(n);if(i.packageManager){if(i.packageManager.includes("bun"))return"bun";if(i.packageManager.includes("yarn"))return"yarn";if(i.packageManager.includes("pnpm"))return"pnpm";if(i.packageManager.includes("npm"))return"npm"}}catch{}try{return await he.access(ye(e,"bun.lockb")),"bun"}catch{}try{return await he.access(ye(e,"bun.lock")),"bun"}catch{}try{return await he.access(ye(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await he.access(ye(e,"yarn.lock")),"yarn"}catch{}try{return await he.access(ye(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=Ia(e),r===e)return ki||(ki=!0,at("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function Ci(e){let t=!1,r=!1,n=!1,i=!1,o=!1,s=Jt.resolve(e,"package.json"),a;try{a=JSON.parse(await X.readFile(s,"utf-8"))}catch{}let l=await Fa(e);if(l){let u=await Ua(l);t=!0,u&&(r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t&&a&&"postcss"in a){let u=await xi(a.postcss);t=!0,u&&(await X.writeFile(s,JSON.stringify({...a,postcss:u?.json},null,2)),r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t){let u=await za(e),f=null;if(u){try{f=JSON.parse(await X.readFile(u,"utf-8"))}catch{}if(f){let c=await xi(f);t=!0,c&&(await X.writeFile(u,JSON.stringify(c.json,null,2)),r=!0,n=c.didAddPostcssClient,i=c.didRemoveAutoprefixer,o=c.didRemovePostCSSImport)}}}if(!t){z("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let u=Object.hasOwn(a?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(a?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(u!==null)try{await ve(e).add(["@tailwindcss/postcss@latest"],u),j(`Installed package: ${x("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await ve(e).remove(["autoprefixer"]),j(`Removed package: ${x("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(o)try{await ve(e).remove(["postcss-import"]),j(`Removed package: ${x("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&l&&j(`Migrated PostCSS configuration: ${x(P(l,e))}`,{prefix:"\u21B3 "})}async function Ua(e){function t(p){return/['"]?tailwindcss['"]?\: ?\{\}/.test(p)}function r(p){return/['"]?postcss-import['"]?\: ?\{\}/.test(p)}function n(p){return/['"]?autoprefixer['"]?\: ?\{\}/.test(p)}function i(p){return/['"]tailwindcss\/nesting['"]\: ?(\{\}|['"]postcss-nesting['"])/.test(p)}if(z("Migrating PostCSS configuration\u2026"),!await Ka(e))return at("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let s=!1,a=!1,l=!1,f=(await X.readFile(e,"utf-8")).split(`
195
+ `),c=[];for(let p=0;p<f.length;p++){let m=f[p];if(t(m))s=!0,c.push(m.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(n(m))a=!0;else if(r(m)){let d=!1;for(let g=p+1;g<f.length;g++){let h=f[g];if(t(h))break;if(!i(h)){d=!0;break}}d?c.push(m):l=!0}else if(i(m)){let d=f[p+1];t(d)||c.push(m)}else c.push(m)}return await X.writeFile(e,c.join(`
196
+ `)),{didAddPostcssClient:s,didRemoveAutoprefixer:a,didRemovePostCSSImport:l}}async function xi(e){function t(f,c){return f==="tailwindcss"&&lt(c)}function r(f,c){return f==="postcss-import"&&lt(c)}function n(f,c){return f==="autoprefixer"&&lt(c)}function i(f,c){return f==="tailwindcss/nesting"&&(c==="postcss-nesting"||lt(c))}let o=!1,s=!1,a=!1,l=Object.entries(e.plugins||{}),u=[];for(let f=0;f<l.length;f++){let[c,p]=l[f];if(t(c,p))o=!0,u.push(["@tailwindcss/postcss",p]);else if(n(c,p))s=!0;else if(r(c,p)){let m=!1;for(let d=f+1;d<l.length;d++){let[g,h]=l[d];if(t(g,h))break;if(!i(g,h)){m=!0;break}}m?u.push([c,p]):a=!0}else if(i(c,p)){let[m,d]=l[f+1];t(m,d)||u.push([c,p])}else u.push([c,p])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:o,didRemoveAutoprefixer:s,didRemovePostCSSImport:a}}var Ma=[".postcssrc.js",".postcssrc.mjs",".postcssrc.cjs",".postcssrc.ts",".postcssrc.mts",".postcssrc.cts","postcss.config.js","postcss.config.mjs","postcss.config.cjs","postcss.config.ts","postcss.config.mts","postcss.config.cts"];async function Fa(e){for(let t of Ma){let r=Jt.resolve(e,t);try{return await X.access(r),r}catch{}}return null}var La=[".postcssrc",".postcssrc.json"];async function za(e){for(let t of La){let r=Jt.resolve(e,t);try{return await X.access(r),r}catch{}}return null}async function Ka(e){let t=await X.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function lt(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as Ha}from"globby";import Ja from"node:path";import Ga from"postcss";import{__unstable__loadDesignSystem as Ba,compileAst as qa}from"@tailwindcss/node";import*as Si from"node:fs";import*as $i from"node:fs/promises";import*as se from"node:path";import*as Vi from"node:util";import*as st from"postcss";import Em from"postcss";var Wa=33;function Ai(e){function t(n,i){if(n.type==="decl")i.push(V(n.prop,n.value,n.important));else if(n.type==="rule"){let o=F(n.selector);n.each(s=>t(s,o.nodes)),i.push(o)}else if(n.type==="atrule"){let o=C(`@${n.name}`,n.params);n.each(s=>t(s,o.nodes)),i.push(o)}else if(n.type==="comment"){if(n.text.charCodeAt(0)!==Wa)return;i.push(qe(n.text))}}let r=[];return e.each(n=>t(n,r)),r}var H=class e{id;root;isTailwindRoot=!1;linkedConfigPath=null;file=null;parents=new Set;children=new Set;canMigrate=!0;extension=null;static async load(t){t=se.resolve(process.cwd(),t);let r=await $i.readFile(t,"utf-8"),n=st.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=se.resolve(process.cwd(),t);let r=Si.readFileSync(t,"utf-8"),n=st.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=st.parse(t);return new e(r)}static async fromRoot(t,r){return new e(t,r)}constructor(t,r){this.id=Math.random().toString(36).slice(2),this.root=t,this.file=r??null,r&&(this.extension=se.extname(r))}get importRules(){let t=new Set;return this.root.walkAtRules("import",r=>{t.add(r)}),t}get isEmpty(){return this.root.toString().trim()===""}*ancestors(){for(let{item:t}of Me(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of Me(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of Me(this,i=>i.parents))if(!(r.parents.size>0))for(let{meta:i}of n)for(let o of i.layers)t.add(o);return t}*pathsToRoot(){for(let{item:t,path:r}of Me(this,n=>n.parents))t.parents.size>0||(yield r)}analyzeImportPaths(){let t=[],r=[];for(let n of this.pathsToRoot()){let i=!1;for(let{meta:o}of n)for(let s of o.layers)i||=s==="utilities"||s==="components";i?t.push(n):r.push(n)}return{convertiblePaths:t,nonConvertiblePaths:r}}containsRule(t){let r=!1;if(this.root.walk(n=>{if(t(n))return r=!0,!1}),r)return!0;for(let n of this.children)if(n.item.containsRule(t))return!0;return!1}async compiler(){return!this.isTailwindRoot||!this.file?null:qa(Ai(this.root),{base:se.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:Ba(this.root.toString(),{base:se.dirname(this.file)})}[Vi.inspect.custom](){return{...this,root:this.root.toString(),layers:Array.from(this.layers()),parents:Array.from(this.parents,t=>t.item.id),children:Array.from(this.children,t=>t.item.id),parentsMeta:Array.from(this.parents,t=>t.meta),childrenMeta:Array.from(this.children,t=>t.meta)}}};function*Me(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*Me(n.item,t,i),yield{item:n.item,path:i}}}async function Ti(e){let t=await Ha(),r=[],n=new v(l=>{if(t(l))return null;try{let u=H.loadSync(l);return e.push(u),r.push(()=>i.process(u.root,{from:u.file})),u}catch{return null}}),i=Ga([{postcssPlugin:"mark-import-nodes",AtRule:{import(l){let u=l.params.match(/['"](.*)['"]/)?.[1];if(!u)return;let f=l.source?.input.file?Ja.dirname(l.source.input.file):process.cwd(),c=!1;try{if(u[0]!==".")try{c=Ht(`./${u}`,f)}catch{}c||(c=Ht(u,f))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;R(`Failed to resolve import: ${x(u)} in ${x(P(l.source?.input.file,f))}. Skipping.`,{prefix:"\u21B3 "});return}if(!c)return;let p=n.get(c);if(!p)return;l.raws.tailwind_destination_sheet_id=p.id;let m=l.source?.input.file?n.get(l.source.input.file):void 0,d=[];for(let g of w(l.params," "))g.startsWith("layer(")&&g.endsWith(")")&&d.push(g.slice(6,-1).trim());if(m){let g={layers:d};p.parents.add({item:m,meta:g}),m.children.add({item:p,meta:g})}}}}]);for(let l of e)l.file&&(n.set(l.file,l),r.push(()=>i.process(l.root,{from:l.file??void 0})));for(;r.length>0;)await r.shift()();let o=process.cwd();function s(l){let u=[];for(let f of l){if(!f.item.file)continue;let c=f.item.file.replace(o,""),p=f.meta.layers.join(", ");p.length>0?u.push(`${c} (layers: ${p})`):u.push(c)}return u.join(" <- ")}let a=[];for(let l of e){if(!l.file)continue;let{convertiblePaths:u,nonConvertiblePaths:f}=l.analyzeImportPaths();if(!(u.length>0&&f.length>0))continue;l.canMigrate=!1;let p=l.file.replace(o,"");for(let m of u)a.push(`- ${p} <- ${s(m)}`);for(let m of f)a.push(`- ${p} <- ${s(m)}`)}if(a.length===0){let l=new Set;for(let u of e)u.root.walkAtRules("config",()=>(u.isTailwindRoot=!0,!1)),!u.isTailwindRoot&&u.root.walkAtRules(f=>{(f.name==="tailwind"||f.name==="import"&&f.params.match(/^["']tailwindcss["']/)||f.name==="import"&&f.params.match(/^["']tailwindcss\/.*?["']$/))&&(u.isTailwindRoot=!0,l.add(u))});if(l.size<=1)return;{let u=new v(()=>new Set);for(let c of l)u.get(c).add(c);let f=!0;e:for(;f;){f=!1;for(let[c,p]of u)for(let[m,d]of u){if(c===m)continue;let g=[c].concat(Array.from(c.ancestors()).reverse()),h=[m].concat(Array.from(m.ancestors()).reverse());for(let y of g)for(let $ of h){if(y!==$)continue;let D=y;u.delete(c),u.delete(m);for(let te of p)u.get(D).add(te);for(let te of d)u.get(D).add(te);f=!0;continue e}}}for(let[c,p]of u){c.isTailwindRoot=!0;for(let m of p)c!==m&&(m.isTailwindRoot=!1)}return}}{let l=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
197
+ `;throw l+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
198
+ `,new Error(l+a.join(`
199
+ `))}}import Ni from"postcss";import{format as Pi}from"prettier";function T(e,t){let r;return e.each?.((n,i)=>{let o=t(n,i,e)??0;if(o===2)return r=!1,r;if(o!==1)return r=T(n,t),r}),r}function Gt(e,t){e?.each?.(r=>{Gt(r,t),t(r)})}var Ri={parser:"css",semi:!0,singleQuote:!0};function Ei(){async function e(t){let r=[];T(t,(i,o,s)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=s,r.unshift(i))});let n=[];for(let i of r){let o=i.type==="atrule"&&i.name==="tw-bucket"?i.toString().trim().replace(/@tw-bucket(.*?){([\s\S]*)}/,"$2"):i.toString();if(i.type==="atrule"&&i.name==="tw-bucket"&&i.params==="user"){n.push(o);continue}if(i.type==="atrule"&&i.name==="tw-bucket"){n.push(await Pi(o,Ri));continue}i.replaceWith(Ni.parse(`${i.raws.before??""}${(await Pi(o,Ri)).trim()}`))}t.removeAll(),t.append(Ni.parse(n.map(i=>i.trim()).filter(Boolean).join(`
200
+
201
+ `)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as ul}from"@tailwindcss/node";import fe from"node:path";import fl from"postcss";import{__unstable__loadDesignSystem as ji,compile as rl}from"@tailwindcss/node";import il from"node:fs/promises";import ue,{dirname as Ui}from"node:path";import{fileURLToPath as nl}from"node:url";import Qa from"semver";import{readFileSync as Ya}from"node:fs";import ed from"node:fs/promises";function _i(e,t){try{let r=ui(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(Ya(r,"utf8"));return n}catch{return null}}function E(e){return Qa.satisfies(Xa(),`>=${e}.0.0 <${e+1}.0.0`)}var Za=new v(e=>{let t=_i("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function Xa(e=process.cwd()){return Za.get(e)}var Oi=new WeakSet;function Di(e,t,r){if(!e.theme.prefix||!t||!E(3))return r;Oi.has(e)||(e.utilities.functional("group",()=>null),e.utilities.functional("peer",()=>null),Oi.add(e));let n=el(e,t,r);if(!n)return r;let i=e.theme.prefix,o=null;try{e.theme.prefix=null;let s=r.slice(0,n.start)+n.base+r.slice(n.end),a=[...I(s,e)];a.length>0&&(o=a[0])}finally{e.theme.prefix=i}return o?e.printCandidate(o):r}function el(e,t,r){if(!e.theme.prefix)return null;if(!t.prefix)throw new Error("Could not find the Tailwind CSS v3 `prefix` configuration inside the JavaScript config.");let i=w(r,":").pop(),o=r.length-i.length,s=o+i.length,a=!1,l=!1;return i[i.length-1]==="!"?(a=!0,i=i.slice(0,-1)):i[0]==="!"&&(a=!0,i=i.slice(1)),i[0]==="-"&&(l=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),l&&(i="-"+i),a&&(i+="!"),{base:i,start:o,end:s})}var tl=/([a-z]+)/;function Ii(e){let t=tl.exec(e.toLocaleLowerCase());return t?t[0]:(console.warn(`The prefix "${e} can not be used with Tailwind CSS v4 and cannot be converted to a valid one automatically. We've updated it to "tw" for you.`),"tw")}var ol=nl(import.meta.url),Fe=Ui(ol),Mi=String.raw;async function Fi(e,t){try{e===null?e=await Yt(t.base):ue.isAbsolute(e)||(e=ue.resolve(t.base,e));let r=ue.relative(Fe,e);!r.startsWith(".")&&!ue.isAbsolute(r)&&(r="./"+r);let n=await al(e),i=n.prefix?Ii(n.prefix):null,o=Mi`
202
+ @import 'tailwindcss' ${i?`prefix(${i})`:""};
203
+ @config '${r}';
204
+ `,[s,a]=await Promise.all([rl(o,{base:Fe,onDependency:()=>{}}),ji(o,{base:Fe})]);return{designSystem:a,sources:s.sources,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){R("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function al(e){let[t,r]=await Promise.all([ji(Mi`
205
+ @import 'tailwindcss';
206
+ `,{base:Fe}),Ze(e,Fe,()=>{}).then(n=>n.module)]);return de(t,[{base:Ui(e),config:r,reference:!1}]).resolvedConfig}var ll=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function Yt(e,t=e){for(let r of sl(e,t))for(let n of ll){let i=ue.resolve(r,n);try{return await il.access(i),i}catch{}}throw new Error(`No configuration file found for ${x(P(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${x("--config")} option.`)}function*sl(e,t=e){let r=ue.resolve(e),n=ue.resolve(t);if(!r.startsWith(n))throw new Error(`The path ${e} is not a parent of ${t}`);if(r===n){yield r;return}let i=r;do yield i,i=ue.dirname(i);while(i!==n);yield n}async function Li(e,{configPath:t,base:r}){let n=e.filter(u=>u.isTailwindRoot);if(n.length===0)throw new Error(`Cannot find any CSS files that reference Tailwind CSS.
207
+ Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${x("@tailwind")}.`);let i=n.filter(u=>{let f=!1;return u.root.walkAtRules("config",c=>{let p=fe.resolve(fe.dirname(u.file),c.params.slice(1,-1));return u.linkedConfigPath=p,f=!0,!1}),!f});if(i.length===0)return;let o=new Map,s=new v(()=>new Set);for(let u of i){if(!u.file)continue;let f=t;t===null?f=await Yt(fe.dirname(u.file),r):fe.isAbsolute(f)||(f=fe.resolve(r,f)),o.set(u,f),s.get(f).add(u)}let a=new Set;for(let u of s.values())if(u.size>1)for(let f of u)a.add(f);if(a.size>1){for(let u of a)R(`Could not determine configuration file for: ${x(P(u.file,r))}
208
+ Update your stylesheet to use ${x("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let l=P;for(let[u,f]of o)try{if(!u||!u.file)return;j(`Linked ${x(l(f,r))} to ${x(l(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=f;let c=fe.relative(fe.dirname(u.file),f);!c.startsWith(".")&&!fe.isAbsolute(c)&&(c="./"+c),c=ul(c);{let p=u.root,m=fl.atRule({name:"config",params:`'${c}'`});u.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(p=d)}),p.type==="root"?u.root.prepend(m):p.type==="atrule"&&p.after(m)}}catch(c){R("Could not load the configuration file: "+c.message,{prefix:"\u21B3 "}),process.exit(1)}}import Ql from"postcss";import cn from"node:fs/promises";import pn,{extname as Il}from"node:path";function zi(e,t){if(!t[0])return e;t.sort((i,o)=>i.end-o.end||i.start-o.start);let r="",n=t[0];r+=e.slice(0,n.start),r+=n.replacement;for(let i=1;i<t.length;++i){let o=t[i];r+=e.slice(n.end,o.start),r+=o.replacement,n=o}return r+=e.slice(n.end),r}import{Scanner as cl}from"@tailwindcss/oxide";async function Ki(e,t="html"){let n=new cl({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:o,position:s}of n)i.push({rawCandidate:o,start:s,end:s+o.length});return i}var Le=new v(e=>{let t=/^(?<value>-?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)$/i.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let n=t.groups?.unit;if(n===void 0)return null;let i=Number(r);return Number.isNaN(i)?null:[i,n]});var ee=new v(e=>new v(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[Y(".x",[C("@apply",t)])];return pl(e,()=>Oe(r,e)),r=structuredClone(r),A(r,(i,{replaceWith:o})=>{i.kind==="declaration"?(i.value===void 0||i.property==="--tw-sort")&&o([]):i.kind==="context"||i.kind==="at-root"?o(i.nodes):i.kind==="comment"&&o([])}),A(r,i=>{if(i.kind==="declaration"&&i.value!==void 0){if(i.value.includes("var(")){let o=k(i.value),s=new Set;S(o,(a,{replaceWith:l})=>{if(a.kind!=="function"||a.value!=="var"||a.nodes.length!==1&&a.nodes.length<3)return;let u=a.nodes[0].value;e.theme.prefix&&u.startsWith(`--${e.theme.prefix}-`)&&(u=u.slice(`--${e.theme.prefix}-`.length));let f=e.resolveThemeValue(u);if(!s.has(u)&&(s.add(u),f!==void 0&&(a.nodes.length===1&&a.nodes.push(...k(`,${f}`)),a.nodes.length>=3))){let c=b(a.nodes),p=`${a.nodes[0].value},${f}`;c===p&&l(k(f))}}),i.value=b(o)}if(i.value.includes("calc")){let o=!1,s=k(i.value);S(s,(a,{replaceWith:l})=>{if(a.kind!=="function"||a.value!=="calc"||a.nodes.length!==5||a.nodes[2].kind!=="word"&&a.nodes[2].value!=="*")return;let u=Le.get(a.nodes[0].value);if(u===null)return;let[f,c]=u,p=Number(a.nodes[4].value);Number.isNaN(p)||(o=!0,l(k(`${f*p}${c}`)))}),o&&(i.value=b(s))}i.value=Nt(i.value)}}),L(r)}catch{return Symbol()}})),ze=new v(e=>new v(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[Y(".x",[C("@apply",`${t}:flex`)])];return Oe(r,e),A(r,i=>{if(i.kind==="at-rule"&&i.params.includes(" "))i.params=i.params.replaceAll(" ","");else if(i.kind==="rule"){let o=jt(i.selector),s=!1;He(o,(a,{replaceWith:l})=>{a.kind==="separator"&&a.value!==" "?(a.value=a.value.trim(),s=!0):a.kind==="function"&&a.value===":is"?a.nodes.length===1?(s=!0,l(a.nodes)):a.nodes.length===2&&a.nodes[0].kind==="selector"&&a.nodes[0].value==="*"&&a.nodes[1].kind==="selector"&&a.nodes[1].value[0]===":"&&(s=!0,l(a.nodes[1])):a.kind==="function"&&a.value[0]===":"&&a.nodes[0]?.kind==="selector"&&a.nodes[0]?.value[0]===":"&&(s=!0,a.nodes.unshift({kind:"selector",value:"*"}))}),s&&(i.selector=Je(o))}}),L(r)}catch{return Symbol()}}));function pl(e,t){let r=e.theme.values.get,n=new Set;e.theme.values.get=i=>{let o=r.call(e.theme.values,i);return o===void 0||o.options&1&&(n.add(o),o.options&=-2),o};try{return t()}finally{e.theme.values.get=r;for(let i of n)i.options|=1}}var ml=new v(e=>{let t=ee.get(e),r=new v(()=>[]);for(let[n,i]of e.getClassList()){let o=t.get(n);if(typeof o=="string"){r.get(o).push(n);for(let s of i.modifiers){if(G(s))continue;let a=`${n}/${s}`,l=t.get(a);typeof l=="string"&&r.get(l).push(a)}}}return r}),Qt=new v(()=>new Map),dl=new v(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=Le.get(t);if(!r)return null;let[n,i]=r;return new v(o=>{let s=Le.get(o);if(!s)return null;let[a,l]=s;return l!==i?null:a/n})});function Zt(e,t,r){let n=ml.get(e),i=ee.get(e);for(let s of e.parseCandidate(r)){if(s.kind!=="arbitrary"&&!(s.kind==="functional"&&s.value?.kind==="arbitrary"))continue;let a=e.printCandidate(s);if(a!==r)return Zt(e,t,a);let l=structuredClone(s),u=structuredClone(l);u.important=!1,u.variants=[];let f=e.printCandidate(u);if(Qt.get(e).has(f)){let p=structuredClone(Qt.get(e).get(f));return p.variants=l.variants,p.important=l.important,e.printCandidate(p)}let c=i.get(f);if(typeof c=="string")for(let p of o(c,u)){let m=e.printCandidate(p);if(i.get(m)===c&&gl(e,l,p))return p=structuredClone(p),Qt.get(e).set(f,p),p.variants=l.variants,p.important=l.important,Object.assign(l,p),e.printCandidate(l)}}return r;function*o(s,a){let l=n.get(s);if(!(l.length>1)){if(l.length===0&&a.modifier){let u={...a,modifier:null},f=i.get(e.printCandidate(u));if(typeof f=="string")for(let c of o(f,u))yield Object.assign({},c,{modifier:a.modifier})}if(l.length===1)for(let u of ke(e,l[0]))yield u;else if(l.length===0){let u=a.kind==="arbitrary"?a.value:a.value?.value??null;if(u===null)return;let f=dl.get(e)?.get(u);for(let c of e.utilities.keys("functional")){for(let p of ke(e,`${c}-${u}`))yield p;if(a.modifier)for(let p of ke(e,`${c}-${u}${a.modifier}`))yield p;if(f!==null){for(let p of ke(e,`${c}-${f}`))yield p;if(a.modifier)for(let p of ke(e,`${c}-${f}${Tt(a.modifier)}`))yield p}for(let p of ke(e,`${c}-[${u}]`))yield p;if(a.modifier)for(let p of ke(e,`${c}-[${u}]${Tt(a.modifier)}`))yield p}}}}}function ke(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function gl(e,t,r){let n=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?n=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(n=t.value),n===null)return!0;let i=e.candidatesToCss([e.printCandidate(r)]).join(`
209
+ `),o=!0;return S(k(n),s=>{if(s.kind==="function"&&s.value==="var"){let a=s.nodes[0].value;if(!new RegExp(`var\\(${a}[,)]\\s*`,"g").test(i)||i.includes(`${a}:`))return o=!1,2}}),o}function*ce(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}for(let r of e.variants)yield*t(r,null)}function Wi(e,t,r){let n=ee.get(e);for(let i of I(r,e)){let o=structuredClone(i),s=!1;if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let a=n.get(r);if(a!==null){for(let l of Bi(o))if(n.get(e.printCandidate({...o,value:l}))===a){s=!0,o.value=l;break}}}for(let[a]of ce(o))if(a.kind==="functional"&&a.root==="data"&&a.value?.kind==="arbitrary"&&!a.value.value.includes("="))s=!0,a.value={kind:"named",value:a.value.value};else if(a.kind==="functional"&&a.root==="aria"&&a.value?.kind==="arbitrary"&&(a.value.value.endsWith("=true")||a.value.value.endsWith('="true"')||a.value.value.endsWith("='true'"))){let[l,u]=w(a.value.value,"=");if(l[l.length-1]==="~"||l[l.length-1]==="|"||l[l.length-1]==="^"||l[l.length-1]==="$"||l[l.length-1]==="*")continue;s=!0,a.value={kind:"named",value:a.value.value.slice(0,a.value.value.indexOf("="))}}else a.kind==="functional"&&a.root==="supports"&&a.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(a.value.value)&&(s=!0,a.value={kind:"named",value:a.value.value});return s?e.printCandidate(o):r}return r}function*Bi(e,t=e.value?.value??"",r=new Set){if(r.has(t))return;if(r.add(t),yield{kind:"named",value:t,fraction:null},t.endsWith("%")&&G(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,s]=t.split("/");N(o)&&N(s)&&(yield{kind:"named",value:o,fraction:`${o}/${s}`})}let n=new Set;for(let o of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))n.add(o[0].trim());let i=Array.from(n).sort((o,s)=>o.length-s.length);for(let o of i)yield*Bi(e,o,r)}function W(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}var hl=new v(e=>{let t=ze.get(e),r=new v(()=>[]);for(let[n,i]of e.variants.entries())if(i.kind==="static"){let o=t.get(n);if(typeof o!="string")continue;r.get(o).push(n)}return r});function qi(e,t,r){let n=ze.get(e),i=hl.get(e);for(let o of e.parseCandidate(r)){if(o.variants.length<=0)return r;let s=structuredClone(o);for(let[a]of ce(s)){if(a.kind==="compound")continue;let l=e.printVariant(a),u=n.get(l);if(typeof u!="string")continue;let f=i.get(u);if(f.length!==1)continue;let c=f[0],p=e.parseVariant(c);p!==null&&W(a,p)}return e.printCandidate(s)}return r}function Hi(e,t,r){for(let n of e.parseCandidate(r)){let i=structuredClone(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!ft(e,i,i.modifier.value)){let{value:s,didChange:a}=ut(i.modifier.value);i.modifier.value=s,o||=a}for(let s of i.variants)Ji(e,s)&&(o=!0);if(i.kind==="arbitrary"&&!ft(e,i,i.value)){let{value:s,didChange:a}=ut(i.value);i.value=s,o||=a}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!ft(e,i,i.value.value)){let{value:s,didChange:a}=ut(i.value.value);i.value.value=s,o||=a}if(o)return e.printCandidate(i)}return r}function ut(e){let t=!1;return e.startsWith("--")&&!e.includes("(")?(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function Ji(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!ft(e,yl(t),t.value.value)){let{value:n,didChange:i}=ut(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&Ji(e,t.variant)&&(r=!0),r}function yl(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var vl=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function ft(e,t,r){let n=e.compileAstNodes(t).map(o=>o.node),i=!1;return A(n,o=>{if(o.kind==="declaration"&&vl.has(o.property)&&o.value==r)return i=!0,2}),i}var wl=["t","tr","r","br","b","bl","l","tl"];function Gi(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="static"&&n.root.startsWith("bg-gradient-to-")){let i=n.root.slice(15);if(!wl.includes(i))continue;return e.printCandidate({...n,root:`bg-linear-to-${i}`})}return r}function Yi(e,t,r){let n=ee.get(e);for(let i of e.parseCandidate(r))if(i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.dataType!==null){let o=e.printCandidate({...i,value:{...i.value,dataType:null}});if(n.get(r)===n.get(o))return o}return r}function Qi(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}var Zi=['"',"'","`"],kl=["&&","||","?","===","==","!=","!==",">",">=","<","<="],bl=[/v-else-if=['"]$/,/v-if=['"]$/,/v-show=['"]$/,/x-if=['"]$/,/x-show=['"]$/],xl=/placeholder=\{?['"]$/;function ct(e){let t="";for(let o=e.start-1;o>=0;o--){let s=e.contents.at(o);if(s===`
210
+ `)break;t=s+t}let r="";for(let o=e.end;o<e.contents.length;o++){let s=e.contents.at(o);if(s===`
211
+ `)break;r+=s}let n=Zi.some(o=>t.includes(o)),i=Zi.some(o=>r.includes(o));if(!n||!i||r[0]==="."||r.trim().startsWith("("))return!1;for(let o of kl)if(r.trim().startsWith(o)||t.trim().endsWith(o))return!1;for(let o of bl)if(o.test(t))return!1;return!xl.test(t)}function Xi(e,t,r,n){e:for(let i of I(r,e))if(i.important&&i.raw[i.raw.length-1]!=="!"){if(n&&!ct(n))continue e;return e.printCandidate(i)}return r}function en(e,t,r){for(let n of I(r,e)){let i=structuredClone(n),o=!1;return i.kind==="functional"&&i.value?.kind==="arbitrary"&&(i.root==="grid-cols"||i.root=="grid-rows"||i.root=="object")&&(o=!0,i.value.value=w(i.value.value,",").join(" ")),o?e.printCandidate(i):r}return r}import{__unstable__loadDesignSystem as Cl}from"@tailwindcss/node";import Al from"node:path";import Sl from"node:url";var $l=Sl.fileURLToPath(import.meta.url),Vl=Al.dirname($l),Tl=new Map([["shadow","shadow-sm"],["shadow-sm","shadow-xs"],["shadow-xs","shadow-2xs"],["inset-shadow","inset-shadow-sm"],["inset-shadow-sm","inset-shadow-xs"],["inset-shadow-xs","inset-shadow-2xs"],["drop-shadow","drop-shadow-sm"],["drop-shadow-sm","drop-shadow-xs"],["rounded","rounded-sm"],["rounded-sm","rounded-xs"],["blur","blur-sm"],["blur-sm","blur-xs"],["backdrop-blur","backdrop-blur-sm"],["backdrop-blur-sm","backdrop-blur-xs"],["ring","ring-3"]]),tn=new Map([["shadow","--shadow"],["shadow-sm","--shadow-sm"],["shadow-xs","--shadow-xs"],["shadow-2xs","--shadow-2xs"],["drop-shadow","--drop-shadow"],["drop-shadow-sm","--drop-shadow-sm"],["drop-shadow-xs","--drop-shadow-xs"],["rounded","--radius"],["rounded-sm","--radius-sm"],["rounded-xs","--radius-xs"],["blur","--blur"],["blur-sm","--blur-sm"],["blur-xs","--blur-xs"],["backdrop-blur","--backdrop-blur"],["backdrop-blur-sm","--backdrop-blur-sm"],["backdrop-blur-xs","--backdrop-blur-xs"],["ring","--ring-width"],["ring-3","--ring-width-3"]]),Nl=new v(e=>Cl('@import "tailwindcss";',{base:e}));async function rn(e,t,r,n){if(!E(3))return r;let i=await Nl.get(Vl);function*o(s){for(let a of e.parseCandidate(s)){let l=structuredClone(a);l.variants=[],l.important=!1;let u=e.printCandidate(l),f=Tl.get(u);if(!f)continue;let[c]=e.parseCandidate(f);if(!c)continue;let p=structuredClone(c);p.variants=a.variants,p.important=a.important,yield[a,p,tn.get(u),tn.get(f)]}}for(let[s,a,l,u]of o(r)){let f=s.variants.length>0||s.kind==="arbitrary"?!1:s.kind==="static"?!s.root.includes("-"):s.kind==="functional"?s.value===null||!s.root.includes("-"):!1;if(!(n&&f&&!ct(n))){if(l&&u){let c=e.resolveThemeValue(l,!0),p=i.resolveThemeValue(l,!0),m=e.resolveThemeValue(u,!0),d=i.resolveThemeValue(u);if(m===void 0&&d!==void 0||c!==p||m!==d)continue}return e.printCandidate(a)}}return r}function nn(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return e.printCandidate({...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}import Pl from"postcss-selector-parser";function on(e,t,r){let n=ze.get(e);for(let i of I(r,e)){let o=structuredClone(i),s=!1;for(let[a,l]of ce(o)){if(a.kind==="compound"&&(a.root==="has"||a.root==="not"||a.root==="in")&&a.modifier!==null&&"modifier"in a.variant&&(a.variant.modifier=a.modifier,a.modifier=null),a.kind==="compound"&&a.root==="group"&&a.variant.kind==="arbitrary"&&a.variant.selector==="&"){a.modifier===null?(s=!0,W(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(s=!0,W(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${a.modifier.value}]`:`in-[.group\\/${a.modifier.value}]`)));continue}if(a.kind==="arbitrary"){if(a.relative)continue;let u=Pl().astSync(a.selector);if(u.nodes.length!==1)continue;if(l===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===">"&&u.nodes[0].nodes[2].type==="universal"){s=!0,W(a,e.parseVariant("*"));continue}if(l===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===" "&&u.nodes[0].nodes[2].type==="universal"){s=!0,W(a,e.parseVariant("**"));continue}if(l===null&&u.nodes[0].nodes.length===3&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===" "&&u.nodes[0].nodes[2].type==="nesting"){u.nodes[0].nodes.pop(),u.nodes[0].nodes.pop(),s=!0,W(a,e.parseVariant(`in-[${u.toString()}]`));continue}if(l===null&&u.nodes[0].nodes[0].type==="tag"&&(u.nodes[0].nodes[0].value.startsWith("@media")||u.nodes[0].nodes[0].value.startsWith("@supports"))){let m=n.get(e.printVariant(a)),d=k(u.nodes[0].toString().trim()),g=!1;if(S(d,(h,{replaceWith:y})=>{h.kind==="word"&&h.value==="not"&&(g=!0,y([]))}),d=k(b(d)),S(d,h=>{h.kind==="separator"&&h.value!==" "&&h.value.trim()===""&&(h.value=" ")}),g){let h=e.parseVariant(`not-[${b(d)}]`);if(h===null)continue;let y=n.get(e.printVariant(h));if(m===y){s=!0,W(a,h);continue}}}let f=null;l===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===">"&&u.nodes[0].nodes[2].type==="attribute"&&(u.nodes[0].nodes=[u.nodes[0].nodes[2]],f=e.parseVariant("*")),l===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===" "&&u.nodes[0].nodes[2].type==="attribute"&&(u.nodes[0].nodes=[u.nodes[0].nodes[2]],f=e.parseVariant("**"));let c=u.nodes[0].filter(m=>m.type!=="nesting");if(c.length!==1)continue;let p=c[0];if(p.type==="pseudo"&&p.value===":is"){if(p.nodes.length!==1||p.nodes[0].nodes.length!==1)continue;p=p.nodes[0].nodes[0]}if(p.type==="pseudo"){let m=p,d=!1;if(p.value===":not"){if(d=!0,p.nodes.length!==1||p.nodes[0].type!=="selector"||p.nodes[0].nodes.length!==1||p.nodes[0].nodes[0].type!=="pseudo")continue;m=p.nodes[0].nodes[0]}let g=(y=>{if(y===":nth-child"&&m.nodes.length===1&&m.nodes[0].nodes.length===1&&m.nodes[0].nodes[0].type==="tag"&&m.nodes[0].nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(y===":nth-child"&&m.nodes.length===1&&m.nodes[0].nodes.length===1&&m.nodes[0].nodes[0].type==="tag"&&m.nodes[0].nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[$,D]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(y===$&&m.nodes.length===1)return m.nodes[0].nodes.length===1&&m.nodes[0].nodes[0].type==="tag"&&N(m.nodes[0].nodes[0].value)?`${D}-${m.nodes[0].nodes[0].value}`:`${D}-[${m.nodes[0].toString()}]`;if(d){let $=n.get(e.printVariant(a)),D=n.get(`not-[${y}]`);if($===D)return`[&${y}]`}return null})(m.value);if(g===null)continue;d&&(g=`not-${g}`);let h=e.parseVariant(g);if(h===null)continue;s=!0,W(a,structuredClone(h))}else if(p.type==="attribute"){let m=p.attribute,d=p.value?p.quoted?`${p.quoteMark}${p.value}${p.quoteMark}`:p.value:null;p.insensitive&&d&&(d+=" i");let g=p.operator??"=";m.startsWith("data-")?(s=!0,m=m.slice(5),W(a,{kind:"functional",root:"data",modifier:null,value:d===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${g}${d}`}})):m.startsWith("aria-")&&(s=!0,m=m.slice(5),W(a,{kind:"functional",root:"aria",modifier:null,value:d===null?{kind:"arbitrary",value:m}:g==="="&&p.value==="true"&&!p.insensitive?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${g}${d}`}}))}if(f){let m=o.variants.indexOf(a);if(m===-1)continue;o.variants.splice(m,1,a,f)}}}return s?e.printCandidate(o):r}return r}function an(e,t,r){let n=ee.get(e);for(let i of e.parseCandidate(r)){let o=structuredClone(i);if(o.kind==="functional"&&o.modifier!==null||o.kind==="arbitrary"&&o.modifier!==null){let s=n.get(r),a=o.modifier,l=!1;if(s===n.get(e.printCandidate({...o,modifier:null}))&&(l=!0,o.modifier=null),!l){let u={kind:"named",value:a.value.endsWith("%")?a.value.slice(0,-1):a.value,fraction:null};s===n.get(e.printCandidate({...o,modifier:u}))&&(l=!0,o.modifier=u)}return l?e.printCandidate(o):r}}return r}var pt={"overflow-ellipsis":"text-ellipsis","flex-grow":"grow","flex-grow-0":"grow-0","flex-shrink":"shrink","flex-shrink-0":"shrink-0","decoration-clone":"box-decoration-clone","decoration-slice":"box-decoration-slice","bg-left-top":"bg-top-left","bg-left-bottom":"bg-bottom-left","bg-right-top":"bg-top-right","bg-right-bottom":"bg-bottom-right","object-left-top":"object-top-left","object-left-bottom":"object-bottom-left","object-right-top":"object-top-right","object-right-bottom":"object-bottom-right"},ln=new WeakSet;function sn(e,t,r){if(E(3)&&(pt["outline-none"]="outline-hidden"),!ln.has(e)){for(let n in pt)e.utilities.static(n,()=>[]);ln.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(pt,n.root))return e.printCandidate({...n,root:pt[n.root]});return r}function un(e,t,r){let n=Xt(e);for(let i of I(r,e)){let o=structuredClone(i),s=!1;if(o.kind==="arbitrary"){let[a,l]=n(o.value,o.modifier===null?1:0);a!==o.value&&(s=!0,o.value=a,l!==null&&(o.modifier=l))}else if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let[a,l]=n(o.value.value,o.modifier===null?1:0);a!==o.value.value&&(s=!0,o.value.value=a,l!==null&&(o.modifier=l))}for(let[a]of ce(o))if(a.kind==="arbitrary"){let[l]=n(a.selector,2);l!==a.selector&&(s=!0,a.selector=l)}else if(a.kind==="functional"&&a.value?.kind==="arbitrary"){let[l]=n(a.value.value,2);l!==a.value.value&&(s=!0,a.value.value=l)}return s?e.printCandidate(o):r}return r}function Xt(e,{prettyPrint:t=!1}={}){function r(s,a=0){let l=k(s);if(a&2)return[mt(l,o),null];let u=0,f=0;if(S(l,m=>{m.kind==="function"&&m.value==="theme"&&(u+=1,S(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?2:d.kind==="separator"&&d.value.trim()==="/"?(f+=1,2):1))}),u===0)return[s,null];if(f===0)return[mt(l,i),null];if(f>1)return[mt(l,o),null];let c=null;return[mt(l,(m,d)=>{let g=w(m,"/").map(h=>h.trim());if(g.length>2)return null;if(l.length===1&&g.length===2&&a&1){let[h,y]=g;if(/^\d+%$/.test(y))c={kind:"named",value:y.slice(0,-1)};else if(/^0?\.\d+$/.test(y)){let $=Number(y)*100;c={kind:Number.isInteger($)?"named":"arbitrary",value:$.toString()}}else c={kind:"arbitrary",value:y};m=h}return i(m,d)||o(m,d)}),c]}function n(s){let a=`--${Q(ie(s))}`;return e.theme.get([a])?a:null}function i(s,a){let l=n(s);if(l)return a?`var(${l}, ${a})`:`var(${l})`;let u=ie(s);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let f=u[1];return G(f)?`--spacing(${f})`:null}return null}function o(s,a){let l=w(s,"/").map(c=>c.trim());s=l.shift();let u=n(s);if(!u)return null;let f=l.length>0?t?` / ${l.join(" / ")}`:`/${l.join("/")}`:"";return a?`--theme(${u}${f}, ${a})`:`--theme(${u}${f})`}return r}function mt(e,t){return S(e,(r,{parent:n,replaceWith:i})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let o=r.nodes[0];if(o.kind!=="word")return;let s=o.value,a=1;for(let f=a;f<r.nodes.length&&!r.nodes[f].value.includes(",");f++)s+=b([r.nodes[f]]),a=f+1;s=Rl(s);let l=r.nodes.slice(a+1),u=l.length>0?t(s,b(l)):t(s);if(u===null)return;if(n){let f=n.nodes.indexOf(r)-1;for(;f!==-1;){let c=n.nodes[f];if(c.kind==="separator"&&c.value.trim()===""){f-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(u=`(${u})`);break}}i(k(u))}}),b(e)}function Rl(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function fn(e,t,r){if(!E(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],o=[],s=[],a=n.variants;for(let f of n.variants)El(e,f)?i.push(f):Ol(e,f)?s.push(f):o.push(f);let l=o.some(f=>_l(e,f)),u=[...s,...l?o.reverse():o,...i];if(!Dl(a,u))return e.printCandidate({...n,variants:u})}return r}function El(e,t){return t.kind==="static"&&t.root==="dark"?!0:er(e,t).every(n=>n.kind==="at-rule")}function _l(e,t){return er(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function Ol(e,t){return er(e,t).some(n=>n.kind==="rule"&&(n.selector.includes("::after")||n.selector.includes("::backdrop")||n.selector.includes("::before")||n.selector.includes("::first-letter")||n.selector.includes("::first-line")||n.selector.includes("::marker")||n.selector.includes("::placeholder")||n.selector.includes("::selection")))}function er(e,t){let r=[],n=e.compileAstNodes({kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[t],important:!1,raw:"candidate"}).map(i=>i.node);return A(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function Dl(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var jl=[Qi,Di,Xi,Gi,sn,rn,nn,un,fn,Hi,en,Zt,on,qi,Yi,Wi,an];async function tr(e,t,r,n){let i=r;for(let o of jl)r=await o(e,t,r,n);if(r===i)for(let o of I(r,e))return e.printCandidate(o);return r}async function mn(e,t,r,n){let i=await Ki(r,n),o=[];for(let{rawCandidate:s,start:a,end:l}of i){let u=await tr(e,t,s,{contents:r,start:a,end:l});u!==s&&o.push({start:a,end:l,replacement:u})}return zi(r,o)}async function dn(e,t,r){let n=pn.isAbsolute(r)?r:pn.resolve(process.cwd(),r),i=await cn.readFile(n,"utf-8");await cn.writeFile(n,await mn(e,t,i,Il(r)))}function gn({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),o=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";o&&i.pop();let s=i.map(a=>{if(a.trim()==="")return a;let l=w(a,":"),u=l.pop();return o&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...l,u].join(":")});return async()=>{e&&(s=await Promise.all(s.map(async a=>await tr(e,t,a))),n.params=s.join("").trim())}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",o=>{i.push(r(o))}),await Promise.allSettled(i.map(o=>o()))}}}import"postcss";import dt from"postcss-selector-parser";function yn(e){function t(r){if(!E(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();T(r,s=>{if(s.type!=="rule")return;let a=w(s.selector,",");if(a.length>1){let l=[];for(let u of a){let f=s.clone({selector:u});l.push(f)}s.replaceWith(l)}return 1});let i=new Set;T(r,s=>{if(s.type==="rule")return dt(a=>{a.each(l=>{T(l,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(s.selector,{updateSelector:!1}),1}),T(n,s=>{s.type==="rule"&&dt(a=>{a.each(l=>{T(l,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return s.remove(),2})})}).processSync(s,{updateSelector:!0})});let o=[n];for(let s of i){let a=r.clone();o.push(a),T(a,l=>{if(l.type==="atrule"&&(!l.nodes||l.nodes?.length===0)&&l.remove(),l.type!=="rule")return;let u=!1;if(dt(f=>{f.each(c=>{T(c,p=>{if(p.type==="pseudo"&&p.value===":not")return 1;if(p.type==="class"&&p.value===s){u=!0;let m=c.atPosition(p.source.start.line,p.source.start.column),d=m.parent,g=(m.parent?.index(m)??0)-1;for(;g>=0&&d.at(g)?.type!=="combinator";){let h=d.at(g+1),y=d.at(g);d.at(g+1).replaceWith(y),d.at(g).replaceWith(h),g--}m.replaceWith(dt.nesting())}})})}).processSync(l,{updateSelector:!0}),!u){let f=[l],c=l.parent?.index(l)??null;if(c!==null)for(let p=c-1;p>=0&&l.parent?.nodes.at(p)?.type!=="rule";p--)l.parent?.nodes.at(p)?.type==="comment"&&f.push(l.parent?.nodes.at(p));for(let p of f)p.remove()}return 1}),a.name="utility",a.params=s,a.raws.before=`${a.raws.before??""}
212
+
213
+ `}for(let s=o.length-1;s>=0;s--){let a=o[s];Gt(a,l=>{if(a===n&&l.type==="comment"){let u=!1;for(let f of o)if(f!==n&&(T(f,c=>{if(c.type==="comment"&&c.source?.start?.offset===l.source?.start?.offset)return l.remove(),u=!0,2}),u))return 1}if((l.type==="rule"||l.type==="atrule")&&l.nodes?.length===0)l.remove();else if(l.type==="rule"&&l.selector==="&"){let u=l.parent,f=!1;for(;u;){if(u.type==="rule"){f=!0;break}u=u.parent}f||l.replaceWith(l.nodes)}}),a.nodes?.length===0&&o.splice(s,1)}r.replaceWith(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:n})=>{let i=e.layers(),o=i.has("utilities")||i.has("components");if(o){let s=n({name:"layer",params:"utilities"});s.append(r.nodes),r.append(s)}r.walkAtRules("layer",t);{let s=new Map;T(r,a=>{if(a.type==="atrule"&&a.name==="utility"){let l=s.get(a.params);l?(l.append(a.nodes),a.remove()):s.set(a.params,a)}})}o&&r.each(s=>{s.type==="atrule"&&s.name==="layer"&&s.params==="utilities"&&s.replaceWith(s.nodes??[])})}}}import gt from"node:path";import Ul,{AtRule as Ml}from"postcss";var vn=new WeakMap;function bn(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=vn.get(e);if(i&&i.includes(t))return;i?i.push(t):vn.set(e,[t]);let o=e.root;if(!e.file)return;let s=new Ml;if(r!==null){o.walkAtRules("config",l=>{l.remove()});let a=`
214
+
215
+ `;a+=`
216
+ @tw-bucket source {`;for(let l of r.sources){let u=gt.resolve(l.base,l.pattern);a+=`@source '${wn(e,u)}';
217
+ `}a+=`}
218
+ `,a+=`
219
+ @tw-bucket plugin {
220
+ `;for(let l of r.plugins){let u=l.path[0]==="."?wn(e,gt.resolve(l.base,l.path)):l.path;if(l.options===null)a+=`@plugin '${u}';
221
+ `;else{a+=`@plugin '${u}' {
222
+ `;for(let[f,c]of Object.entries(l.options)){let p="";typeof c=="string"?p=kn(c):Array.isArray(c)?p=c.map(m=>typeof m=="string"?kn(m):""+m).join(", "):p=""+c,a+=` ${f}: ${p};
223
+ `}a+=`}
224
+ `}}a+=`}
225
+ `,s.append(Ul.parse(a+r.css))}o.append(s.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function wn(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=gt.relative(gt.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),Ft(n)}function kn(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import Fl from"node:fs/promises";import{dirname as Ll,resolve as zl}from"node:path";import"postcss";function xn(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[o,...s]=w(i.params," "),a=Tr(k(o));if(!a)return;let l=a.uri[0]===".",u=a.uri.endsWith(".css");if(l&&u)return;let f=zl(Ll(r),a.uri);u||(f+=".css"),n.push(Fl.stat(f).then(()=>{let c=u?"":".css",p=l?a.uri:`./${a.uri}`;i.params=[`'${p}${c}'`,...s].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function Cn({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=de(e,[{base:"",config:t,reference:!1}]),o=i?.theme?.screens||{},s=new v(a=>{let l=e?.resolveThemeValue(`--breakpoint-${a}`,!0)??o?.[a];return typeof l=="string"?`(width >= theme(--breakpoint-${a}))`:l?Yr(l):null});n.walkAtRules("screen",a=>{a.name="media",a.params=`screen(${a.params})`}),n.walkAtRules(a=>{if(a.name!=="media")return;let l=a.params.match(/screen\(([^)]+)\)/);if(!l)return;let u=s.get(l[1]);u&&(a.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as Kl}from"postcss";function An(){function e(t){let r="",n=[],i=[],o=null;t.each(s=>{if(s.type==="atrule"){if(s.name==="config"||s.name==="source"||s.name==="theme"||s.name==="utility"||s.name==="custom-variant"||s.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(s.name==="tailwind"&&s.params==="base"||s.name==="import"&&s.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="base",r="base";return}if(s.name==="tailwind"&&s.params==="components"||s.name==="import"&&s.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="components",r="components";return}if(s.name==="tailwind"&&s.params==="utilities"||s.name==="import"&&s.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="utilities",r="utilities";return}if(s.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(s.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[s]]);return}}r===""&&(s.type==="comment"||s.type==="atrule"&&!s.nodes||s.type==="atrule"&&s.name==="charset")||n.push(s)});for(let[s,a]of i){let l=s||o||"";if(l===""||a.every(c=>c.type==="comment"))continue;if(a.every(c=>c.type==="atrule"&&c.name==="import")){for(let c of a)if(!(c.type!=="atrule"||c.name!=="import")&&!c.params.includes("layer(")){let p=w(c.params," ");p.splice(1,0,`layer(${l})`),c.params=p.join(" "),c.raws.tailwind_injected_layer=!0}continue}let u=a[0],f=new Kl({name:"layer",params:l,nodes:a.map(c=>c===u?c:c.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(f)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import Wl from"dedent";import Bl from"postcss";var ql="currentcolor",Hl=Wl,Jl=Hl`
226
+ /*
227
+ The default border color has changed to \`currentcolor\` in Tailwind CSS v4,
228
+ so we've added these compatibility styles to make sure everything still
229
+ looks the same as it did with Tailwind CSS v3.
230
+
231
+ If we ever want to remove these styles, we need to add an explicit border
232
+ color utility to any element that depends on these defaults.
233
+ */
234
+ @layer base {
235
+ *,
236
+ ::after,
237
+ ::before,
238
+ ::backdrop,
239
+ ::file-selector-button {
240
+ border-color: theme(borderColor.DEFAULT);
241
+ }
242
+ }
243
+ `;function Sn({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(o){if(!e)return!1;let s=`--${Q(ie(o))}`;return!!e.theme.get([s])}function i(o){if(!E(3))return;let s=!1;if(o.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return s=!0,!1}),!s)return;let a="";r!==ql&&(a+=Jl,a+=`
244
+
245
+ `),a=`
246
+ @tw-bucket compatibility {
247
+ ${a}
248
+ }
249
+ `;let l=Bl.parse(a);l.walkDecls(u=>{u.value.includes("theme(")&&(u.value=Gl(k(u.value),f=>n(f)?r:f==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),o.walkAtRules("theme",u=>{u.walkDecls("--border-color",f=>{f.remove()}),u.nodes?.length===0&&u.remove()}),o.append(l)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function Gl(e,t){return S(e,(r,{replaceWith:n})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let i=r.nodes[0];if(i.kind!=="word")return;let o=i.value,s=1;for(let u=s;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=b([r.nodes[u]]),s=u+1;o=Yl(o);let a=r.nodes.slice(s+1),l=a.length>0?t(o,b(a)):t(o);if(l===null)return;n(k(l))}}),b(e)}function Yl(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}import{AtRule as ht}from"postcss";var rr=["theme","base","components","utilities"];function $n(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,s=[],a=null,l=null,u=null,f=null,c=[];n.walkAtRules(p=>{if(p.name==="import"&&p.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(p.params=p.params.replace("tailwindcss/tailwind.css","tailwindcss")),p.name==="import"&&p.params.match(/^["']tailwindcss["']/))p.params+=t;else if(p.name==="tailwind"&&p.params==="base"||p.name==="import"&&p.params.match(/^["']tailwindcss\/base["']$/))c.push("base"),s.push(p),i=p;else if(p.name==="tailwind"&&p.params==="utilities"||p.name==="import"&&p.params.match(/^["']tailwindcss\/utilities["']$/))c.push("utilities"),s.push(p),o=p;else if(p.name==="tailwind"&&p.params==="components"||p.name==="tailwind"&&p.params==="screens"||p.name==="tailwind"&&p.params==="variants"||p.name==="import"&&p.params.match(/^["']tailwindcss\/components["']$/))p.remove();else if(p.name==="responsive")if(p.nodes){for(let m of p.nodes)m.raws.tailwind_pretty=!0;p.replaceWith(p.nodes)}else p.remove()}),i!==null&&o!==null?(a||yt(s).before(new ht({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(l||yt(s).before(new ht({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(f||yt(s).before(new ht({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||yt(s).before(new ht({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let p=c.toSorted((m,d)=>rr.indexOf(m)-rr.indexOf(d));if(c.some((m,d)=>m!==p[d])){let m=rr.toSorted((d,g)=>c.indexOf(d)-c.indexOf(g));n.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function yt(e){let t=e.at(0),r=t.prev();for(;r;){if(r.type==="rule"&&(t=r),r.type==="atrule")if(r.name==="charset"||r.name==="import"){r=r.prev();continue}else if(r.name==="layer"&&!r.nodes){r=r.prev();continue}else t=r;r=r.prev()}return t}import"postcss";function Vn({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=Xt(e,{prettyPrint:!0});t.walkDecls(n=>{let[i]=r(n.value);n.value=i}),t.walkAtRules(n=>{if(n.name==="media"||n.name==="custom-media"||n.name==="container"||n.name==="supports"){let[i]=r(n.params,2);n.params=i}})}}}import"postcss";function Tn(){function e(t){t.walkAtRules("variants",r=>{r.name==="variants"&&(r.name="layer",r.params="utilities")})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-variants-directive",OnceExit:e}}async function Nn(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await Zl(e,t)}async function Zl(e,t,r){return typeof e=="string"&&(e=await H.fromString(e),e.file=r??null),Ql().use(xn()).use(gn(t)).use(Cn(t)).use(Tn()).use(yn(e)).use(An()).use($n(t)).use(bn(e,t)).use(Sn(t)).use(Vn(t)).process(e.root,{from:e.file??void 0})}import Xl from"postcss";var Pn=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function En(){async function e(t){{let a=function(l,...u){s=l,o.get(l).nodes?.push(...i.splice(0),...u)};var n=a;let i=[],o=new v(l=>{let u=Xl.atRule({name:"tw-bucket",params:l,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",l=>{o.set(l.params,l)});let s="user";T(t,l=>{if(l.type==="atrule"&&l.name==="tw-bucket")return 1;if(l.type==="comment"){if(i.length>0){i.push(l);return}let u=Rn(l.prev(),l)??1/0,f=Rn(l,l.next())??1/0;u<f?o.get(s).nodes?.push(l):i.push(l)}else l.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(l.name)?a(l.name,l):l.type==="atrule"&&l.name==="layer"&&!l.nodes||l.type==="atrule"&&l.name==="import"||l.type==="atrule"&&l.name==="charset"||l.type==="atrule"&&l.name==="tailwind"?a("import",l):(l.type==="rule"||l.type,a("user",l));return 1}),i.length>0&&a(s)}let r=new Map;t.walkAtRules("tw-bucket",i=>{let o=r.get(i.params);if(!o){r.set(i.params,i);return}i.nodes&&o.append(...i.nodes)}),t.walkAtRules("tw-bucket",i=>{i.nodes?.length||i.remove()});{let i=Array.from(r.values()).sort((o,s)=>{let a=Pn.indexOf(o.params),l=Pn.indexOf(s.params);return a-l});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Rn(e,t){return!e||!t||!e.source||!t.source||!e.source.start||!t.source.start||!e.source.end||!t.source.end?null:Math.abs(e.source.end.line-t.source.start.line)}import es from"postcss";async function _n(e){let t=new Map,r=new Map;for(let a of e)t.set(a.id,a),a.file&&r.set(a.file,a);let n=new Set;for(let a of e){if(a.isTailwindRoot)continue;let l=!1,u=a.layers().size>0;T(a.root,f=>{if(f.type==="atrule"&&f.name==="utility")l=!0;else{if(f.type==="atrule"&&f.name==="import"&&f.params.includes("layer(")||f.type==="atrule"&&f.name==="layer"||f.type==="comment")return 1;u=!0}return l&&u?2:1}),l&&u&&n.add(a)}let i=new Map;for(let a of e){if(!a.file||a.parents.size===0||!n.has(a)&&!Array.from(a.descendants()).some(p=>n.has(p)))continue;let l=es.root();T(a.root,p=>{if(p.type==="atrule"&&p.name==="utility")return l.append(p),1});let u=a.file.replace(/\.css$/,".utilities.css"),f=0;for(;r.has(u);)f+=1,u=a.file.replace(/\.css$/,`.utilities.${f}.css`);let c=await H.fromRoot(l,u);c.extension=f>0?`.utilities.${f}.css`:".utilities.css",i.set(a,c),t.set(c.id,c)}for(let[a,l]of i){for(let u of a.parents){let f=i.get(u.item);f&&l.parents.add({item:f,meta:u.meta})}for(let u of a.children){let f=i.get(u.item);f&&l.children.add({item:f,meta:u.meta})}}for(let a of e){let l=i.get(a),u=new Set;for(let f of a.importRules){let c=f.raws.tailwind_destination_sheet_id;if(!c)continue;let p=t.get(c);if(!p)continue;let m=i.get(p);if(!m)continue;let d=f.params.match(/(['"])(.*)\1/);if(!d)return;let g=d[1],h=d[2],y=h.replace(/\.css$/,m.extension),$=f.clone({params:`${g}${y}${g}`,raws:{tailwind_injected_layer:f.raws.tailwind_injected_layer,tailwind_original_params:`${g}${h}${g}`,tailwind_destination_sheet_id:m.id}});l?u.add($):f.after($)}l&&u.size>0&&l.root.prepend(Array.from(u))}let o=new v(()=>new Set);for(let a of t.values())for(let l of a.importRules){let u=l.raws.tailwind_destination_sheet_id;if(!u)continue;let f=t.get(u);f&&o.get(f).add(l)}let s=[];for(let a of e.slice()){for(let l of a.descendants())s.push(l);s.push(a)}for(let a of s){let l=i.get(a);if(l&&a.isEmpty){a.root=l.root;for(let u of o.get(l))u.params=u.raws.tailwind_original_params;for(let u of o.get(a))u.remove();i.delete(a)}}e.push(...i.values())}import pe from"picocolors";function On({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(K(nt()),e&&(K(),K(`${pe.dim("Invalid command:")} ${e}`)),t&&t.length>0){K(),K(pe.dim("Usage:"));for(let[i,o]of t.entries()){let s=o.slice(0,o.indexOf("[")),a=o.slice(o.indexOf("["));a=a.replace(/\[.*?\]/g,f=>pe.dim(f));let u=je(a,n-it.indent-s.length-1);u.length>1&&i!==0&&K(),K(Ue(`${s}${u.shift()}`));for(let f of u)K(Ue(f,s.length))}}if(r){let i=0;for(let{alias:l}of Object.values(r))l&&(i=Math.max(i,l.length));let o=[],s=0;for(let[l,{alias:u}]of Object.entries(r)){let f=[u&&`${u.padStart(i)}`,u?l:" ".repeat(i+2)+l].filter(Boolean).join(", ");o.push(f),s=Math.max(s,f.length)}K(),K(pe.dim("Options:"));let a=8;for(let{description:l,default:u=null}of Object.values(r)){let f=o.shift(),c=a+(s-f.length),p=2,m=n-f.length-c-p-it.indent,d=je(u!==null?`${l} ${pe.dim(`[default:\u202F${x(`${u}`)}]`)}`:l,m);K(Ue(`${pe.blue(f)} ${pe.dim(pe.gray("\xB7")).repeat(c)} ${d.shift()}`));for(let g of d)K(Ue(`${" ".repeat(f.length+c+p)}${g}`))}}}import ts from"mri";function In(e,t=process.argv.slice(2)){let r=ts(t),n={_:r._};for(let[i,{type:o,alias:s,default:a=o==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=a,s){let l=s.slice(1);r[l]!==void 0&&(n[i]=Dn(r[l],o))}{let l=i.slice(2);r[l]!==void 0&&(n[i]=Dn(r[l],o))}}return n}function Dn(e,t){switch(t){case"string":return kt(e);case"boolean":return vt(e);case"number":return wt(e);case"boolean | string":return vt(e)??kt(e);case"number | string":return wt(e)??kt(e);case"boolean | number":return vt(e)??wt(e);case"boolean | number | string":return vt(e)??wt(e)??kt(e);default:throw new Error(`Unhandled type: ${t}`)}}function vt(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function wt(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function kt(e){return`${e}`}import{execSync as rs}from"node:child_process";function ir(){try{return rs("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}var Un={"--config":{type:"string",description:"Path to the configuration file",alias:"-c"},"--help":{type:"boolean",description:"Display usage information",alias:"-h"},"--force":{type:"boolean",description:"Force the migration",alias:"-f"},"--version":{type:"boolean",description:"Display the version number",alias:"-v"}},bt=In(Un);bt["--help"]&&(On({usage:["npx @tailwindcss/upgrade"],options:Un}),process.exit(0));async function ls(){let e=process.cwd();le(nt()),le();let t=[];bt["--force"]||ir()&&(R("Git directory is not clean. Please stash or commit your changes before migrating."),z(`You may use the ${x("--force")} flag to silence this warning and perform the migration.`),process.exit(1));{let r=bt._.map(u=>os.resolve(e,u));r.length===0&&(z("Searching for CSS files in the current directory and its subdirectories\u2026"),r=await ns(["**/*.css"],{absolute:!0,gitignore:!0})),r=r.filter(u=>u.endsWith(".css"));let n=await Promise.allSettled(r.map(u=>H.load(u)));for(let u of n)u.status==="rejected"&&R(`${u.reason?.message??u.reason}`,{prefix:"\u21B3 "});let i=n.filter(u=>u.status==="fulfilled").map(u=>u.value),o=new Map(i.map(u=>[u,u.root.toString()]));try{await Ti(i)}catch(u){R(`${u?.message??u}`,{prefix:"\u21B3 "})}if(E(3))try{await Li(i,{configPath:bt["--config"],base:e})}catch(u){R(`${u?.message??u}`,{prefix:"\u21B3 "})}i.some(u=>u.isTailwindRoot&&u.linkedConfigPath)&&z("Migrating JavaScript configuration files\u2026");let s=new Map,a=new Map;for(let u of i){if(!u.isTailwindRoot||!E(3)&&!u.linkedConfigPath)continue;let f=await Fi(u.linkedConfigPath,{base:e});s.set(u,f);let c=await yi(f.designSystem,f.configFilePath,e);a.set(u,c),c!==null&&t.push(()=>jn.rm(f.configFilePath)),c!==null&&j(`Migrated configuration file: ${x(P(f.configFilePath,e))}`,{prefix:"\u21B3 "})}if(i.length>0&&z("Migrating stylesheets\u2026"),await Promise.all(i.map(async u=>{try{let f=s.get(u),c=a.get(u)??null;if(!f){for(let p of u.ancestors())if(p.isTailwindRoot){f??=s.get(p),c??=a.get(p)??null;break}}await Nn(u,{newPrefix:f?.newPrefix??null,designSystem:f?.designSystem??await u.designSystem(),userConfig:f?.userConfig??null,configFilePath:f?.configFilePath??null,jsConfigMigration:c})}catch(f){R(`${f?.message??f} in ${x(P(u.file,e))}`,{prefix:"\u21B3 "})}})),E(3)){try{await _n(i)}catch(u){R(`${u?.message??u}`,{prefix:"\u21B3 "})}for(let u of i)for(let f of u.importRules){if(!f.raws.tailwind_injected_layer)continue;let c=i.find(p=>p.id===f.raws.tailwind_destination_sheet_id);c&&c.containsRule(p=>p.type==="atrule"&&p.name==="utility")&&(f.params=f.params.replace(/ layer\([^)]+\)/,"").trim())}}for(let u of i)o.get(u)!==u.root.toString()&&await as([En(),Ei()]).process(u.root,{from:u.file});for(let u of i)u.file&&(await jn.writeFile(u.file,u.root.toString()),u.isTailwindRoot&&j(`Migrated stylesheet: ${x(P(u.file,e))}`,{prefix:"\u21B3 "}));z("Updating dependencies\u2026");for(let u of["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"])try{(u==="tailwindcss"||await ve(e).has(u))&&(await ve(e).add([`${u}@latest`]),j(`Updated package: ${x(u)}`,{prefix:"\u21B3 "}))}catch{}let l=i.filter(u=>u.isTailwindRoot&&u.file);l.length>0&&z("Migrating templates\u2026");{let u=new Set;for(let f of l){let c=await f.compiler();if(!c)continue;let p=await f.designSystem();if(!p)continue;let m=(c.root==="none"?[]:c.root===null?[{base:e,pattern:"**/*",negated:!1}]:[{...c.root,negated:!1}]).concat(c.sources),d=s.get(f),g=new is({sources:m}),h=[];for(let y of g.files)y.endsWith(".css")||u.has(y)||(u.add(y),h.push(y));await Promise.allSettled(h.map(y=>dn(p,d?.userConfig??null,y))),d?.configFilePath?j(`Migrated templates for configuration file: ${x(P(d.configFilePath,e))}`,{prefix:"\u21B3 "}):j(`Migrated templates for: ${x(P(f.file??"<unknown>",e))}`,{prefix:"\u21B3 "})}}}E(3)&&await Ci(e),await Promise.allSettled(t.map(r=>r())),ir()?j("Verify the changes and commit them to your repository."):j("No changes were made to your repository.")}ls().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});