@tailwindcss/upgrade 0.0.0-insiders.babe825 → 0.0.0-insiders.bb21271

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 (3) hide show
  1. package/README.md +5 -5
  2. package/dist/index.mjs +68 -67
  3. package/package.json +18 -18
package/dist/index.mjs CHANGED
@@ -1,22 +1,22 @@
1
1
  #!/usr/bin/env node
2
- var ko=Object.create;var kr=Object.defineProperty;var bo=Object.getOwnPropertyDescriptor;var xo=Object.getOwnPropertyNames;var Co=Object.getPrototypeOf,Ao=Object.prototype.hasOwnProperty;var So=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $o=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xo(t))!Ao.call(e,i)&&i!==r&&kr(e,i,{get:()=>t[i],enumerable:!(n=bo(t,i))||n.enumerable});return e};var To=(e,t,r)=>(r=e!=null?ko(Co(e)):{},$o(t||!e||!e.__esModule?kr(r,"default",{value:e,enumerable:!0}):r,e));var ji=So((gg,Mi)=>{"use strict";var dt=new Uint8Array(256);function Vl(e,t){let r=0,n=[],i=0,a=e.length,o=t.charCodeAt(0);for(let u=0;u<a;u++){let l=e.charCodeAt(u);if(r===0&&l===o){n.push(e.slice(i,u)),i=u+1;continue}switch(l){case 92:u+=1;break;case 39:case 34:for(;++u<a;){let s=e.charCodeAt(u);if(s===92){u+=1;continue}if(s===l)break}break;case 40:dt[r]=41,r++;break;case 91:dt[r]=93,r++;break;case 123:dt[r]=125,r++;break;case 93:case 125:case 41:r>0&&l===dt[r-1]&&r--;break}}return n.push(e.slice(i)),n}var se=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,ug=new RegExp(`^${se.source}$`),cg=new RegExp(`^${se.source}%$`),fg=new RegExp(`^${se.source}s*/s*${se.source}$`),Pl=["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"],pg=new RegExp(`^${se.source}(${Pl.join("|")})$`),_l=["deg","rad","grad","turn"],mg=new RegExp(`^${se.source}(${_l.join("|")})$`),dg=new RegExp(`^${se.source} +${se.source} +${se.source}$`);function ye(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var Ol={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 Ee(e){return{__BARE_VALUE__:e}}var ee=Ee(e=>{if(ye(e.value))return e.value}),D=Ee(e=>{if(ye(e.value))return`${e.value}%`}),he=Ee(e=>{if(ye(e.value))return`${e.value}px`}),Ui=Ee(e=>{if(ye(e.value))return`${e.value}ms`}),gt=Ee(e=>{if(ye(e.value))return`${e.value}deg`}),Dl=Ee(e=>{if(e.fraction===null)return;let[t,r]=Vl(e.fraction,"/");if(!(!ye(t)||!ye(r)))return e.fraction}),Li=Ee(e=>{if(ye(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Il={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",...Dl},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...D}),backdropContrast:({theme:e})=>({...e("contrast"),...D}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...D}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...gt}),backdropInvert:({theme:e})=>({...e("invert"),...D}),backdropOpacity:({theme:e})=>({...e("opacity"),...D}),backdropSaturate:({theme:e})=>({...e("saturate"),...D}),backdropSepia:({theme:e})=>({...e("sepia"),...D}),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",...he},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",...D},caretColor:({theme:e})=>e("colors"),colors:()=>({...Ol}),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",...ee},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...D},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"),...he}),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",...ee},flexShrink:{0:"0",DEFAULT:"1",...ee},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%",...D},grayscale:{0:"0",DEFAULT:"100%",...D},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",...ee},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",...ee},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",...ee},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",...ee},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))",...Li},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))",...Li},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",...gt},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%",...D},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",...ee},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",...D},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",...ee},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},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",...he},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...gt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...D},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",...D},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%",...D},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...gt},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",...ee},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",...he},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},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",...Ui},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Ui},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",...ee}};Mi.exports=Il});import{Scanner as Vu}from"@tailwindcss/oxide";import{globby as Pu}from"globby";import vo from"fs/promises";import _u from"path";import H from"picocolors";import Ou from"postcss";import{Scanner as Gi}from"@tailwindcss/oxide";import Gl from"fs/promises";import Hi from"path";import{fileURLToPath as Hl}from"url";import Me from"enhanced-resolve";import{createJiti as El}from"jiti";import ir from"fs";import Jd from"fs/promises";import Vi from"path";import{pathToFileURL as Pi}from"url";import{__unstable__loadDesignSystem as eg,compile as tg,compileAst as rg,Features as ig,Polyfills as ng}from"tailwindcss";import Ut from"fs/promises";import Ke from"path";var Eo=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Ro=[".js",".cjs",".mjs"],No=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Vo=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Po(e,t){for(let r of t){let n=`${e}${r}`;if((await Ut.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Ut.access(n).then(()=>!0,()=>!1))return n}return null}async function br(e,t,r,n){let i=Ro.includes(n)?No:Vo,a=await Po(Ke.resolve(r,t),i);if(a===null||e.has(a))return;e.add(a),r=Ke.dirname(a),n=Ke.extname(a);let o=await Ut.readFile(a,"utf-8"),u=[];for(let l of Eo)for(let s of o.matchAll(l))s[1].startsWith(".")&&u.push(br(e,s[1],r,n));await Promise.all(u)}async function xr(e){let t=new Set;return await br(t,e,Ke.dirname(e),Ke.extname(e)),Array.from(t)}import*as Tl from"path";function Y(e){return{kind:"word",value:e}}function _o(e,t){return{kind:"function",value:e,nodes:t}}function Oo(e){return{kind:"separator",value:e}}function S(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+S(r.nodes)+")"}return t}var Cr=92,Do=41,Ar=58,Sr=44,Io=34,$r=61,Tr=62,Er=60,Rr=10,Uo=40,Lo=39,Mo=47,Nr=32,Vr=9;function x(e){e=e.replaceAll(`\r
2
+ var yl=Object.create;var ni=Object.defineProperty;var vl=Object.getOwnPropertyDescriptor;var wl=Object.getOwnPropertyNames;var bl=Object.getPrototypeOf,xl=Object.prototype.hasOwnProperty;var Cl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Al=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of wl(t))!xl.call(e,i)&&i!==r&&ni(e,i,{get:()=>t[i],enumerable:!(n=vl(t,i))||n.enumerable});return e};var Sl=(e,t,r)=>(r=e!=null?yl(bl(e)):{},Al(t||!e||!e.__esModule?ni(r,"default",{value:e,enumerable:!0}):r,e));var Mn=Cl((a0,Un)=>{"use strict";var $t=new Uint8Array(256);function Bs(e,t){let r=0,n=[],i=0,o=e.length,a=t.charCodeAt(0);for(let l=0;l<o;l++){let s=e.charCodeAt(l);if(r===0&&s===a){n.push(e.slice(i,l)),i=l+1;continue}switch(s){case 92:l+=1;break;case 39:case 34:for(;++l<o;){let u=e.charCodeAt(l);if(u===92){l+=1;continue}if(u===s)break}break;case 40:$t[r]=41,r++;break;case 91:$t[r]=93,r++;break;case 123:$t[r]=125,r++;break;case 93:case 125:case 41:r>0&&s===$t[r-1]&&r--;break}}return n.push(e.slice(i)),n}var de=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,t0=new RegExp(`^${de.source}$`),r0=new RegExp(`^${de.source}%$`),i0=new RegExp(`^${de.source}\\s*/\\s*${de.source}$`),Hs=["cm","mm","Q","in","pc","pt","px","em","ex","ch","cap","ic","rem","rex","rch","rcap","ric","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","svi","svb","svmin","svmax","lvw","lvh","lvi","lvb","lvmin","lvmax","dvw","dvh","dvi","dvb","dvmin","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],n0=new RegExp(`^${de.source}(${Hs.join("|")})$`),Ys=["deg","rad","grad","turn"],o0=new RegExp(`^${de.source}(${Ys.join("|")})$`),l0=new RegExp(`^${de.source} +${de.source} +${de.source}$`);function xe(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var Gs={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 none)",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 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},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)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},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 Pe(e){return{__BARE_VALUE__:e}}var ae=Pe(e=>{if(xe(e.value))return e.value}),F=Pe(e=>{if(xe(e.value))return`${e.value}%`}),be=Pe(e=>{if(xe(e.value))return`${e.value}px`}),In=Pe(e=>{if(xe(e.value))return`${e.value}ms`}),Tt=Pe(e=>{if(xe(e.value))return`${e.value}deg`}),qs=Pe(e=>{if(e.fraction===null)return;let[t,r]=Bs(e.fraction,"/");if(!(!xe(t)||!xe(r)))return e.fraction}),Ln=Pe(e=>{if(xe(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Js={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",...qs},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...F}),backdropContrast:({theme:e})=>({...e("contrast"),...F}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...F}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Tt}),backdropInvert:({theme:e})=>({...e("invert"),...F}),backdropOpacity:({theme:e})=>({...e("opacity"),...F}),backdropSaturate:({theme:e})=>({...e("saturate"),...F}),backdropSepia:({theme:e})=>({...e("sepia"),...F}),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",...be},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",...F},caretColor:({theme:e})=>e("colors"),colors:()=>({...Gs}),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",...ae},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...F},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"),...be}),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",...ae},flexShrink:{0:"0",DEFAULT:"1",...ae},fontFamily:{sans:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"','"Noto Sans"',"Arial","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%",...F},grayscale:{0:"0",DEFAULT:"100%",...F},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",...ae},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",...ae},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",...ae},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",...ae},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",...Tt},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%",...F},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",...ae},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",...F},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",...ae},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...be},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...be},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",...be},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...be},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Tt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...F},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",...F},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%",...F},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Tt},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",...ae},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",...be},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...be},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",...In},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...In},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",...ae}};Un.exports=Js});import{Scanner as Zc}from"@tailwindcss/oxide";import{globby as Qc,isGitIgnored as Xc}from"globby";import hl from"fs/promises";import ii from"path";import X from"picocolors";import ef from"postcss";import{Scanner as Yn}from"@tailwindcss/oxide";import su from"fs/promises";import Gn from"path";import{fileURLToPath as uu}from"url";import Be from"enhanced-resolve";import{createJiti as Ks}from"jiti";import Mr from"fs";import Kh from"fs/promises";import Ur from"path";import{pathToFileURL as Vn}from"url";import{__unstable__loadDesignSystem as Hh,compile as Yh,compileAst as Gh,Features as qh,Polyfills as Jh}from"tailwindcss";import rr from"fs/promises";import qe from"path";var $l=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Tl=[".js",".cjs",".mjs"],Nl=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],El=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Rl(e,t){for(let r of t){let n=`${e}${r}`;if((await rr.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await rr.access(n).then(()=>!0,()=>!1))return n}return null}async function oi(e,t,r,n){let i=Tl.includes(n)?Nl:El,o=await Rl(qe.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=qe.dirname(o),n=qe.extname(o);let a=await rr.readFile(o,"utf-8"),l=[];for(let s of $l)for(let u of a.matchAll(s))u[1].startsWith(".")&&l.push(oi(e,u[1],r,n));await Promise.all(l)}async function li(e){let t=new Set;return await oi(t,e,qe.dirname(e),qe.extname(e)),Array.from(t)}import*as Rn from"path";function O(e){return{kind:"word",value:e}}function Vl(e,t){return{kind:"function",value:e,nodes:t}}function Pl(e){return{kind:"separator",value:e}}function A(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+A(r.nodes)+")"}return t}var ai=92,_l=41,si=58,ui=44,Ol=34,ci=61,fi=62,pi=60,mi=10,Dl=40,Il=39,Ll=47,di=32,gi=9;function x(e){e=e.replaceAll(`\r
3
3
  `,`
4
- `);let t=[],r=[],n=null,i="",a;for(let o=0;o<e.length;o++){let u=e.charCodeAt(o);switch(u){case Cr:{i+=e[o]+e[o+1],o++;break}case Mo:{if(i.length>0){let s=Y(i);n?n.nodes.push(s):t.push(s),i=""}let l=Y(e[o]);n?n.nodes.push(l):t.push(l);break}case Ar:case Sr:case $r:case Tr:case Er:case Rr:case Nr:case Vr:{if(i.length>0){let p=Y(i);n?n.nodes.push(p):t.push(p),i=""}let l=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==Ar&&a!==Sr&&a!==$r&&a!==Tr&&a!==Er&&a!==Rr&&a!==Nr&&a!==Vr));s++);o=s-1;let c=Oo(e.slice(l,s));n?n.nodes.push(c):t.push(c);break}case Lo:case Io:{let l=o;for(let s=o+1;s<e.length;s++)if(a=e.charCodeAt(s),a===Cr)s+=1;else if(a===u){o=s;break}i+=e.slice(l,o+1);break}case Uo:{let l=_o(i,[]);i="",n?n.nodes.push(l):t.push(l),r.push(l),n=l;break}case Do:{let l=r.pop();if(i.length>0){let s=Y(i);l?.nodes.push(s),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(u)}}return i.length>0&&t.push(Y(i)),t}var Lt=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function Pr(e){return e.indexOf("(")!==-1&&Lt.some(t=>e.includes(`${t}(`))}function _r(e){if(!Lt.some(a=>e.includes(a)))return e;let t="",r=[],n=null,i=null;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=48&&o<=57||n!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?n=a:(i=n,n=null),o===40){t+=e[a];let u=a;for(let s=a-1;s>=0;s--){let c=e.charCodeAt(s);if(c>=48&&c<=57)u=s;else if(c>=97&&c<=122)u=s;else break}let l=e.slice(u,a);if(Lt.includes(l)){r.unshift(!0);continue}else if(r[0]&&l===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(o===41)t+=e[a],r.shift();else if(o===44&&r[0]){t+=", ";continue}else{if(o===32&&r[0]&&t.charCodeAt(t.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&r[0]){let u=t.trimEnd(),l=u.charCodeAt(u.length-1),s=u.charCodeAt(u.length-2),c=e.charCodeAt(a+1);if((l===101||l===69)&&s>=48&&s<=57){t+=e[a];continue}else if(l===43||l===42||l===47||l===45){t+=e[a];continue}else if(l===40||l===44){t+=e[a];continue}else e.charCodeAt(a-1)===32?t+=`${e[a]} `:l>=48&&l<=57||c>=48&&c<=57||l===41||c===40||c===43||c===42||c===47||c===45||i!==null&&i===a-1?t+=` ${e[a]} `:t+=e[a]}else t+=e[a]}}return t}function Fe(e){if(e.indexOf("(")===-1)return _e(e);let t=x(e);return Mt(t),e=S(t),e=_r(e),e}function _e(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 Mt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=_e(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=_e(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=_e(t.nodes[r].value,!0);continue}Mt([t.nodes[r]])}break}t.value=_e(t.value),Mt(t.nodes);break}case"separator":case"word":{t.value=_e(t.value);break}default:jo(t)}}function jo(e){throw new Error(`Unexpected value: ${e}`)}var y=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 jt=new Uint8Array(256);function Oe(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 a=e.charCodeAt(n);if(a===92){n+=1;continue}if(a===i)break}break;case 40:jt[t]=41,t++;break;case 91:jt[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===jt[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var tt=new Uint8Array(256);function b(e,t){let r=0,n=[],i=0,a=e.length,o=t.charCodeAt(0);for(let u=0;u<a;u++){let l=e.charCodeAt(u);if(r===0&&l===o){n.push(e.slice(i,u)),i=u+1;continue}switch(l){case 92:u+=1;break;case 39:case 34:for(;++u<a;){let s=e.charCodeAt(u);if(s===92){u+=1;continue}if(s===l)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&&l===tt[r-1]&&r--;break}}return n.push(e.slice(i)),n}var zt=(o=>(o[o.Continue=0]="Continue",o[o.Skip=1]="Skip",o[o.Stop=2]="Stop",o[o.Replace=3]="Replace",o[o.ReplaceSkip=4]="ReplaceSkip",o[o.ReplaceStop=5]="ReplaceStop",o))(zt||{}),w={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function k(e,t){typeof t=="function"?Or(e,t):Or(e,t.enter,t.exit)}function Or(e,t=()=>w.Continue,r=()=>w.Continue){let n=[[e,0,null]],i={parent:null,depth:0,path(){let a=[];for(let o=1;o<n.length;o++){let u=n[o][2];u&&a.push(u)}return a}};for(;n.length>0;){let a=n.length-1,o=n[a],u=o[0],l=o[1],s=o[2];if(l>=u.length){n.pop();continue}if(i.parent=s,i.depth=a,l>=0){let m=u[l],d=t(m,i)??w.Continue;switch(d.kind){case 0:{m.nodes&&m.nodes.length>0&&n.push([m.nodes,0,m]),o[1]=~l;continue}case 2:return;case 1:{o[1]=~l;continue}case 3:{u.splice(l,1,...d.nodes);continue}case 5:{u.splice(l,1,...d.nodes);return}case 4:{u.splice(l,1,...d.nodes),o[1]+=d.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${zt[d.kind]??`Unknown(${d.kind})`}\` in enter.`)}}let c=~l,p=u[c],f=r(p,i)??w.Continue;switch(f.kind){case 0:o[1]=c+1;continue;case 2:return;case 3:{u.splice(c,1,...f.nodes),o[1]=c+f.nodes.length;continue}case 5:{u.splice(c,1,...f.nodes);return}case 4:{u.splice(c,1,...f.nodes),o[1]=c+f.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${zt[f.kind]??`Unknown(${f.kind})`}\` in exit.`)}}}var zo=58,Dr=45,Ir=97,Ur=122;function M(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(De),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(De),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(De),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function De(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:De(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*ie(e,t){let r=b(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 p=r.length-1;p>=0;--p){let f=t.parseVariant(r[p]);if(f===null)return;i.push(f)}let a=!1;n[n.length-1]==="!"?(a=!0,n=n.slice(0,-1)):n[0]==="!"&&(a=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:a,raw:e});let[o,u=null,l]=b(n,"/");if(l)return;let s=u===null?null:Ko(u);if(u!==null&&s===null)return;if(o[0]==="["){if(o[o.length-1]!=="]")return;let p=o.charCodeAt(1);if(p!==Dr&&!(p>=Ir&&p<=Ur))return;o=o.slice(1,-1);let f=o.indexOf(":");if(f===-1||f===0||f===o.length-1)return;let m=o.slice(0,f),d=Fe(o.slice(f+1));if(!Oe(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:s,variants:i,important:a,raw:e};return}let c;if(o[o.length-1]==="]"){let p=o.indexOf("-[");if(p===-1)return;let f=o.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=o.slice(p+1);c=[[f,m]]}else if(o[o.length-1]===")"){let p=o.indexOf("-(");if(p===-1)return;let f=o.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=o.slice(p+2,-1),d=b(m,":"),g=null;if(d.length===2&&(g=d[0],m=d[1]),m[0]!=="-"||m[1]!=="-"||!Oe(m))return;c=[[f,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else c=Fo(o,p=>t.utilities.has(p,"functional"));for(let[p,f]of c){let m={kind:"functional",root:p,modifier:s,value:null,variants:i,important:a,raw:e};if(f===null){yield m;continue}{let d=f.indexOf("[");if(d!==-1){if(f[f.length-1]!=="]")return;let h=Fe(f.slice(d+1,-1));if(!Oe(h))continue;let v=null;for(let C=0;C<h.length;C++){let I=h.charCodeAt(C);if(I===zo){v=h.slice(0,C),h=h.slice(C+1);break}if(!(I===Dr||I>=Ir&&I<=Ur))break}if(h.length===0||h.trim().length===0||v==="")continue;m.value={kind:"arbitrary",dataType:v||null,value:h}}else{let h=u===null||m.modifier?.kind==="arbitrary"?null:`${f}/${u}`;m.value={kind:"named",value:f,fraction:h}}}yield m}}function Ko(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Fe(e.slice(1,-1));return!Oe(t)||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}return e[0]==="("&&e[e.length-1]===")"?(e=e.slice(1,-1),e[0]!=="-"||e[1]!=="-"||!Oe(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:Fe(e)})):{kind:"named",value:e}}function*Fo(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]===""||i[0]==="@"&&t("@")&&e[r]==="-")break;yield i}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function Ft(e){if(e===null)return"";let t=qo(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${Wt(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var Wo=new y(e=>{let t=x(e),r=new Set;return k(t,(n,i)=>{let a=i.parent===null?t:i.parent.nodes??[];if(n.kind==="word"&&(n.value==="+"||n.value==="-"||n.value==="*"||n.value==="/")){let o=a.indexOf(n)??-1;if(o===-1)return;let u=a[o-1];if(u?.kind!=="separator"||u.value!==" ")return;let l=a[o+1];if(l?.kind!=="separator"||l.value!==" ")return;r.add(u),r.add(l)}else n.kind==="separator"&&n.value.length>0&&n.value.trim()===""?(a[0]===n||a[a.length-1]===n)&&r.add(n):n.kind==="separator"&&n.value.trim()===","&&(n.value=",")}),r.size>0&&k(t,n=>{if(r.has(n))return r.delete(n),w.ReplaceSkip([])}),Kt(t),S(t)});function Wt(e){return Wo.get(e)}var Qu=new y(e=>{let t=x(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"?S(t[2].nodes):e});function Kt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=We(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=We(t.value);for(let r=0;r<t.nodes.length;r++)Kt([t.nodes[r]]);break}t.value=We(t.value),Kt(t.nodes);break}case"separator":t.value=We(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=We(t.value));break}default:Yo(t)}}var Bo=new y(e=>{let t=x(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function qo(e){return Bo.get(e)}function Yo(e){throw new Error(`Unexpected value: ${e}`)}function We(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var Go=process.env.FEATURES_ENV!=="stable";function Be(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),a=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),o=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),u=(a===o?0:a<o?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(u)?e<t?-1:1:u}var ne=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,lc=new RegExp(`^${ne.source}$`);var sc=new RegExp(`^${ne.source}%$`);var uc=new RegExp(`^${ne.source}s*/s*${ne.source}$`);var Ho=["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"],Jo=new RegExp(`^${ne.source}(${Ho.join("|")})$`);function Lr(e){return Jo.test(e)||Pr(e)}var Zo=["deg","rad","grad","turn"],cc=new RegExp(`^${ne.source}(${Zo.join("|")})$`);var fc=new RegExp(`^${ne.source} +${ne.source} +${ne.source}$`);function _(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function oe(e){return Mr(e,.25)}function Bt(e){return Mr(e,.25)}function Mr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function Ie(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 Xo={"--alpha":ea,"--spacing":ta,"--theme":ra,theme:ia};function ea(e,t,r,...n){let[i,a]=b(r,"/").map(o=>o.trim());if(!i||!a)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${a||"50%"})\``);if(n.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${a||"50%"})\``);return Ie(i,a)}function ta(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 ra(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 a=e.resolveThemeValue(r,i);if(!a){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 a;let o=n.join(", ");if(o==="initial")return a;if(a==="initial")return o;if(a.startsWith("var(")||a.startsWith("theme(")||a.startsWith("--theme(")){let u=x(a);return oa(u,o),S(u)}return a}function ia(e,t,r,...n){r=na(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 Vc=new RegExp(Object.keys(Xo).map(e=>`${e}\\(`).join("|"));function na(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],a=e[n+1];i==="\\"&&(a===r||a==="\\")?(t+=a,n++):t+=i}return t}function oa(e,t){k(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 qt(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let a=0;a<i;a++){let o=e.charCodeAt(a),u=t.charCodeAt(a);if(o>=48&&o<=57&&u>=48&&u<=57){let l=a,s=a+1,c=a,p=a+1;for(o=e.charCodeAt(s);o>=48&&o<=57;)o=e.charCodeAt(++s);for(u=t.charCodeAt(p);u>=48&&u<=57;)u=t.charCodeAt(++p);let f=e.slice(l,s),m=t.slice(c,p),d=Number(f)-Number(m);if(d)return d;if(f<m)return-1;if(f>m)return 1;continue}if(o!==u)return o-u}return e.length-t.length}function zr(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,n=e.length-1;for(;Ue(e.charCodeAt(t));)t++;{for(r=t;t<n;t++){let c=e.charCodeAt(t);if(c===92){t++;continue}if(!(c>=65&&c<=90)&&!(c>=97&&c<=122)&&!(c>=48&&c<=57)&&!(c===45||c===95))break}if(r===t)return null}let i=e.slice(r,t);for(;Ue(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let a=null,o=e.charCodeAt(t);if(o===61)a="=",t++;else if((o===126||o===124||o===94||o===36||o===42)&&e.charCodeAt(t+1)===61)a=e[t]+"=",t+=2;else return null;for(;Ue(e.charCodeAt(t));)t++;if(t===n)return null;let u="",l=null;if(o=e.charCodeAt(t),o===39||o===34){l=e[t],t++,r=t;for(let c=t;c<n;c++){let p=e.charCodeAt(c);p===o?t=c+1:p===92&&c++}u=e.slice(r,t-1)}else{for(r=t;t<n&&!Ue(e.charCodeAt(t));)t++;u=e.slice(r,t)}for(;Ue(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:a,quote:l,value:u,sensitivity:null};let s=null;switch(e.charCodeAt(t)){case 105:case 73:{s="i",t++;break}case 115:case 83:{s="s",t++;break}default:return null}for(;Ue(e.charCodeAt(t));)t++;return t!==n?null:{attribute:i,operator:a,quote:l,value:u,sensitivity:s}}function Ue(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}function me(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,a="",o=t.charCodeAt(0);if(r===1&&o===45)return"\\"+t;for(;++n<r;){if(i=t.charCodeAt(n),i===0){a+="\uFFFD";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&o===45){a+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(n);continue}a+="\\"+t.charAt(n)}return a}function it(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 Kr(e){let t=[];return Fr(e,[],(r,n)=>{if(sa(r))return t.push([n,r]),1;if(ua(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 la=/^[a-zA-Z0-9-_%/\.]+$/;function Z(e){if(e[0]==="container")return null;e=e.slice(),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(!la.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 sa(e){return typeof e=="number"||typeof e=="string"}function ua(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 Fr(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let a=[...t,n],o=r(i,a)??0;if(o!==1){if(o===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&Fr(i,a,r)===2)return 2}}}var ca=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,Ce=new y(e=>{let t=ca.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let n=Number(r);if(Number.isNaN(n))return null;let i=t.groups?.unit;return i===void 0?[n,null]:[n,i]});function Wr(e,t=null){let r=!1,n=x(e);return k(n,{exit(i){if(i.kind==="word"&&i.value!=="0"){let a=fa(i.value,t);return a===null||a===i.value?void 0:(r=!0,w.ReplaceSkip(Y(a)))}else if(i.kind==="function"&&(i.value==="calc"||i.value==="")){if(i.nodes.length!==5)return;let a=Ce.get(i.nodes[0].value),o=i.nodes[2].value,u=Ce.get(i.nodes[4].value);if(o==="*"&&(a?.[0]===0&&a?.[1]===null||u?.[0]===0&&u?.[1]===null))return r=!0,w.ReplaceSkip(Y("0"));if(a===null||u===null)return;switch(o){case"*":{if(a[1]===u[1]||a[1]===null&&u[1]!==null||a[1]!==null&&u[1]===null)return r=!0,w.ReplaceSkip(Y(`${a[0]*u[0]}${a[1]??""}`));break}case"+":{if(a[1]===u[1])return r=!0,w.ReplaceSkip(Y(`${a[0]+u[0]}${a[1]??""}`));break}case"-":{if(a[1]===u[1])return r=!0,w.ReplaceSkip(Y(`${a[0]-u[0]}${a[1]??""}`));break}case"/":{if(u[0]!==0&&(a[1]===null&&u[1]===null||a[1]!==null&&u[1]===null))return r=!0,w.ReplaceSkip(Y(`${a[0]/u[0]}${a[1]??""}`));break}}}}}),r?S(n):e}function fa(e,t=null){let r=Ce.get(e);if(r===null)return null;let[n,i]=r;if(i===null)return`${n}`;if(n===0&&Lr(e))return"0";switch(i.toLowerCase()){case"in":return`${n*96}px`;case"cm":return`${n*96/2.54}px`;case"mm":return`${n*96/2.54/10}px`;case"q":return`${n*96/2.54/10/4}px`;case"pc":return`${n*96/6}px`;case"pt":return`${n*96/72}px`;case"rem":return t!==null?`${n*t}px`:null;case"grad":return`${n*.9}deg`;case"rad":return`${n*180/Math.PI}deg`;case"turn":return`${n*360}deg`;case"ms":return`${n/1e3}s`;case"khz":return`${n*1e3}hz`;default:return`${n}${i}`}}function Br(e,t="top",r="right",n="bottom",i="left"){return Hr(`${e}-${t}`,`${e}-${r}`,`${e}-${n}`,`${e}-${i}`)}function Hr(e="top",t="right",r="bottom",n="left"){return{1:[[e,0],[t,0],[r,0],[n,0]],2:[[e,0],[t,1],[r,0],[n,1]],3:[[e,0],[t,1],[r,2],[n,1]],4:[[e,0],[t,1],[r,2],[n,3]]}}function Ae(e,t){return{1:[[e,0],[t,0]],2:[[e,0],[t,1]]}}var qr={inset:Hr(),margin:Br("margin"),padding:Br("padding"),gap:Ae("row-gap","column-gap")},Yr={"inset-block":Ae("top","bottom"),"inset-inline":Ae("left","right"),"margin-block":Ae("margin-top","margin-bottom"),"margin-inline":Ae("margin-left","margin-right"),"padding-block":Ae("padding-top","padding-bottom"),"padding-inline":Ae("padding-left","padding-right")},Gr={"border-block":["border-bottom","border-top"],"border-block-color":["border-bottom-color","border-top-color"],"border-block-style":["border-bottom-style","border-top-style"],"border-block-width":["border-bottom-width","border-top-width"],"border-inline":["border-left","border-right"],"border-inline-color":["border-left-color","border-right-color"],"border-inline-style":["border-left-style","border-right-style"],"border-inline-width":["border-left-width","border-right-width"]};function Jr(e,t){if(t&2){if(e.property in Yr){let r=b(e.value," ");return Yr[e.property][r.length]?.map(([n,i])=>$(n,r[i],e.important))}if(e.property in Gr)return Gr[e.property]?.map(r=>$(r,e.value,e.important))}if(e.property in qr){let r=b(e.value," ");return qr[e.property][r.length]?.map(([n,i])=>$(n,r[i],e.important))}return null}function pa(e){return{kind:"combinator",value:e}}function ma(e,t){return{kind:"function",value:e,nodes:t}}function de(e){return{kind:"selector",value:e}}function da(e){return{kind:"separator",value:e}}function ga(e){return{kind:"value",value:e}}function Se(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+"("+Se(r.nodes)+")"}return t}var Zr=92,ha=93,Qr=41,ya=58,Xr=44,va=34,wa=46,ei=62,ti=10,ka=35,ri=91,ii=40,ni=43,ba=39,oi=32,ai=9,li=126,xa=38,Ca=42;function nt(e){e=e.replaceAll(`\r
4
+ `);let t=[],r=[],n=null,i="",o;for(let a=0;a<e.length;a++){let l=e.charCodeAt(a);switch(l){case ai:{i+=e[a]+e[a+1],a++;break}case Ll:{if(i.length>0){let u=O(i);n?n.nodes.push(u):t.push(u),i=""}let s=O(e[a]);n?n.nodes.push(s):t.push(s);break}case si:case ui:case ci:case fi:case pi:case mi:case di:case gi:{if(i.length>0){let p=O(i);n?n.nodes.push(p):t.push(p),i=""}let s=a,u=a+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==si&&o!==ui&&o!==ci&&o!==fi&&o!==pi&&o!==mi&&o!==di&&o!==gi));u++);a=u-1;let c=Pl(e.slice(s,u));n?n.nodes.push(c):t.push(c);break}case Il:case Ol:{let s=a;for(let u=a+1;u<e.length;u++)if(o=e.charCodeAt(u),o===ai)u+=1;else if(o===l){a=u;break}i+=e.slice(s,a+1);break}case Dl:{let s=Vl(i,[]);i="",n?n.nodes.push(s):t.push(s),r.push(s),n=s;break}case _l:{let s=r.pop();if(i.length>0){let u=O(i);s?.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(l)}}return i.length>0&&t.push(O(i)),t}var ir=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function hi(e){return e.indexOf("(")!==-1&&ir.some(t=>e.includes(`${t}(`))}function nr(e){if(!ir.some(o=>e.includes(o)))return e;let t="",r=[],n=null,i=null;for(let o=0;o<e.length;o++){let a=e.charCodeAt(o);if(a>=48&&a<=57||n!==null&&(a===37||a>=97&&a<=122||a>=65&&a<=90)?n=o:(i=n,n=null),a===40){t+=e[o];let l=o;for(let u=o-1;u>=0;u--){let c=e.charCodeAt(u);if(c>=48&&c<=57)l=u;else if(c>=97&&c<=122)l=u;else break}let s=e.slice(l,o);if(ir.includes(s)){r.unshift(!0);continue}else if(r[0]&&s===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(a===41)t+=e[o],r.shift();else if(a===44&&r[0]){t+=", ";continue}else{if(a===32&&r[0]&&t.charCodeAt(t.length-1)===32)continue;if((a===43||a===42||a===47||a===45)&&r[0]){let l=t.trimEnd(),s=l.charCodeAt(l.length-1),u=l.charCodeAt(l.length-2),c=e.charCodeAt(o+1);if((s===101||s===69)&&u>=48&&u<=57){t+=e[o];continue}else if(s===43||s===42||s===47||s===45){t+=e[o];continue}else if(s===40||s===44){t+=e[o];continue}else e.charCodeAt(o-1)===32?t+=`${e[o]} `:s>=48&&s<=57||c>=48&&c<=57||s===41||c===40||c===43||c===42||c===47||c===45||i!==null&&i===o-1?t+=` ${e[o]} `:t+=e[o]}else t+=e[o]}}return t}function lr(e){if(e.indexOf("(")===-1)return Ue(e);let t=x(e);return or(t),e=A(t),e=nr(e),e}function Ue(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 or(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Ue(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Ue(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=Ue(t.nodes[r].value,!0);continue}or([t.nodes[r]])}break}t.value=Ue(t.value),or(t.nodes);break}case"separator":case"word":{t.value=Ue(t.value);break}default:Ul(t)}}function Ul(e){throw new Error(`Unexpected value: ${e}`)}var y=class extends Map{constructor(r){super();this.factory=r}factory;get(r){let n=super.get(r);return n===void 0&&(n=this.factory(r,this),this.set(r,n)),n}};var ar=new Uint8Array(256);function pt(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:ar[t]=41,t++;break;case 91:ar[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;if(t>0&&i===ar[t-1])t--;else if(i!==125)return!1;break;case 59:if(t===0)return!1;break}}return t===0}var mt=new Uint8Array(256);function b(e,t){let r=0,n=[],i=0,o=e.length,a=t.charCodeAt(0);for(let l=0;l<o;l++){let s=e.charCodeAt(l);if(r===0&&s===a){n.push(e.slice(i,l)),i=l+1;continue}switch(s){case 92:l+=1;break;case 39:case 34:for(;++l<o;){let u=e.charCodeAt(l);if(u===92){l+=1;continue}if(u===s)break}break;case 40:mt[r]=41,r++;break;case 91:mt[r]=93,r++;break;case 123:mt[r]=125,r++;break;case 93:case 125:case 41:r>0&&s===mt[r-1]&&r--;break}}return n.push(e.slice(i)),n}var sr=(a=>(a[a.Continue=0]="Continue",a[a.Skip=1]="Skip",a[a.Stop=2]="Stop",a[a.Replace=3]="Replace",a[a.ReplaceSkip=4]="ReplaceSkip",a[a.ReplaceStop=5]="ReplaceStop",a))(sr||{}),v={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function w(e,t){typeof t=="function"?ki(e,t):ki(e,t.enter,t.exit)}function ki(e,t=()=>v.Continue,r=()=>v.Continue){let n={value:[e,0,null],prev:null},i={parent:null,depth:0,index:0,siblings:e,path(){let o=[],a=n;for(;a;){let l=a.value[2];l&&o.push(l),a=a.prev}return o.reverse(),o}};for(;n!==null;){let o=n.value,a=o[0],l=o[1],s=o[2];if(l>=a.length){n=n.prev,i.depth-=1;continue}if(i.parent=s,i.siblings=a,l>=0){i.index=l;let f=a[l],m=t(f,i)??v.Continue;switch(m.kind){case 0:{f.nodes&&f.nodes.length>0&&(i.depth+=1,n={value:[f.nodes,0,f],prev:n}),o[1]=~l;continue}case 2:return;case 1:{o[1]=~l;continue}case 3:{a.splice(l,1,...m.nodes);continue}case 5:{a.splice(l,1,...m.nodes);return}case 4:{a.splice(l,1,...m.nodes),o[1]+=m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${sr[m.kind]??`Unknown(${m.kind})`}\` in enter.`)}}let u=~l;i.index=u;let c=a[u],p=r(c,i)??v.Continue;switch(p.kind){case 0:o[1]=u+1;continue;case 2:return;case 3:{a.splice(u,1,...p.nodes),o[1]=u+p.nodes.length;continue}case 5:{a.splice(u,1,...p.nodes);return}case 4:{a.splice(u,1,...p.nodes),o[1]=u+p.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${sr[p.kind]??`Unknown(${p.kind})`}\` in exit.`)}}}var Ml=58,yi=45,vi=97,wi=122,bi=/^[a-zA-Z0-9_.%-]+$/;function M(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Me),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Me),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Me),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Me(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:Me(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}var zl=64;function*ce(e,t){let r=b(e,":");if(t.theme.prefix){if(r.length===1||r[0]!==t.theme.prefix)return null;r.shift()}let n=r.pop();if(r.length>zl)return;let i=[];for(let p=r.length-1;p>=0;--p){let f=t.parseVariant(r[p]);if(f===null)return;i.push(f)}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 a=b(n,"/");if(a.length>2)return;let[l,s=null]=a,u=s===null?null:jl(s);if(s!==null&&u===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let p=l.charCodeAt(1);if(p!==yi&&!(p>=vi&&p<=wi))return;l=l.slice(1,-1);let f=l.indexOf(":");if(f===-1||f===0||f===l.length-1)return;let m=l.slice(0,f),d=cr(l.slice(f+1));if(d===null)return;yield{kind:"arbitrary",property:m,value:d,modifier:u,variants:i,important:o,raw:e};return}let c;if(l[l.length-1]==="]"){let p=l.indexOf("-[");if(p===-1)return;let f=l.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=l.slice(p+1);c=[[f,m]]}else if(l[l.length-1]===")"){let p=l.indexOf("-(");if(p===-1)return;let f=l.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=l.slice(p+2,-1),d=b(m,":"),h=null;if(d.length===2&&(h=d[0],m=d[1]),m[0]!=="-"||m[1]!=="-"||!pt(m))return;c=[[f,h===null?`[var(${m})]`:`[${h}:var(${m})]`]]}else c=Kl(l,p=>t.utilities.has(p,"functional"),t.utilities.maxNameLength);for(let[p,f]of c){let m={kind:"functional",root:p,modifier:u,value:null,variants:i,important:o,raw:e};if(f===null){yield m;continue}{let d=f.indexOf("[");if(d!==-1){if(f[f.length-1]!=="]")return;let g=cr(f.slice(d+1,-1));if(g===null)continue;let k=null;for(let S=0;S<g.length;S++){let T=g.charCodeAt(S);if(T===Ml){k=g.slice(0,S),g=g.slice(S+1);break}if(!(T===yi||T>=vi&&T<=wi))break}if(g.length===0||g.trim().length===0||k==="")continue;m.value={kind:"arbitrary",dataType:k||null,value:g}}else{let g=s===null||m.modifier?.kind==="arbitrary"?null:`${f}/${s}`;if(!bi.test(f))continue;m.value={kind:"named",value:f,fraction:g}}}yield m}}function jl(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=cr(e.slice(1,-1));return t===null||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}return e[0]==="("&&e[e.length-1]===")"?(e=e.slice(1,-1),e[0]!=="-"||e[1]!=="-"||!pt(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:lr(e)})):bi.test(e)?{kind:"named",value:e}:null}function*Kl(e,t,r){t(e)&&(yield[e,null]);let n=e.lastIndexOf("-",r);for(;n>0;){let i=e.slice(0,n);if(t(i)){let o=[i,e.slice(n+1)];if(o[1]===""||o[0]==="@"&&t("@")&&e[n]==="-")break;yield o}n=e.lastIndexOf("-",n-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function fr(e){if(e===null)return"";let t=Bl(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${pr(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var Fl=new y(e=>{let t=x(e),r=new Set,n=new Set(["~",">","+","-","*","/"]);return w(t,(i,o)=>{if(i.kind==="word"&&n.has(i.value)){let a=o.index;if(a===-1)return;let l=o.siblings[a-1];if(l?.kind!=="separator"||l.value!==" ")return;let s=o.siblings[a+1];if(s?.kind!=="separator"||s.value!==" ")return;let u=o.siblings[a-2];if(u&&n.has(u.value))return;let c=o.siblings[a+2];if(c&&n.has(c.value))return;r.add(l),r.add(s)}else if(i.kind==="separator"&&i.value.length>0&&i.value.trim()==="")(o.siblings[0]===i||o.siblings[o.siblings.length-1]===i)&&r.add(i);else if(i.kind==="separator"&&i.value.trim()===",")i.value=",";else if(i.kind==="function"&&i.value.startsWith("--")){let a=o.index;if(a<=0)return;let l=o.siblings[a-1];if(l?.kind==="separator"&&l.value===",")return;let s=o.siblings[a-2];return s&&!n.has(s.value)?void 0:v.ReplaceSkip({kind:"function",value:"",nodes:[i]})}}),r.size>0&&w(t,i=>{if(r.has(i))return r.delete(i),v.ReplaceSkip([])}),ur(t),A(t)});function pr(e){return Fl.get(e)}var vf=new y(e=>{let t=x(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"?A(t[2].nodes):e});function ur(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Je(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Je(t.value);for(let r=0;r<t.nodes.length;r++)ur([t.nodes[r]]);break}t.value=Je(t.value),ur(t.nodes);break}case"separator":t.value=Je(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=Je(t.value));break}default:Hl(t)}}var Wl=new y(e=>{let t=x(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function Bl(e){return Wl.get(e)}function Hl(e){throw new Error(`Unexpected value: ${e}`)}function Je(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function cr(e){return pt(e)?lr(e):null}function Ze(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),a=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),l=(o===a?0:o<a?-1:1)||(r==="asc"?parseFloat(e)-parseFloat(t):parseFloat(t)-parseFloat(e));return Number.isNaN(l)?e<t?-1:1:l}var Yl=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,z=new y(e=>{let t=Yl.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let n=Number(r);if(Number.isNaN(n))return null;let i=t.groups?.unit;return i===void 0?[n,null]:[n,i]});function ve(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,o="",a=t.charCodeAt(0);if(r===1&&a===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&&a===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 Qe(e){return e.replace(/\\(?:([\dA-Fa-f]{1,6})[\t\n\f\r ]?|([\S\s]))/g,(t,r,n)=>{if(!r)return n;let i=Number.parseInt(r,16);return i===0||i>1114111||i>=55296&&i<=57343?"\uFFFD":String.fromCodePoint(i)})}var fe=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Rf=new RegExp(`^${fe.source}$`);var Vf=new RegExp(`^${fe.source}%$`);var Pf=new RegExp(`^${fe.source}\\s*/\\s*${fe.source}$`);var Gl=["cm","mm","Q","in","pc","pt","px","em","ex","ch","cap","ic","rem","rex","rch","rcap","ric","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","svi","svb","svmin","svmax","lvw","lvh","lvi","lvb","lvmin","lvmax","dvw","dvh","dvi","dvb","dvmin","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],ql=new RegExp(`^${fe.source}(${Gl.join("|")})$`),Jl=/^(--spacing)\(/i;function mr(e){return ql.test(e)||Jl.test(e)||hi(e)}var Zl=["deg","rad","grad","turn"],_f=new RegExp(`^${fe.source}(${Zl.join("|")})$`);var Of=new RegExp(`^${fe.source} +${fe.source} +${fe.source}$`);function j(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Z(e){return xi(e,.25)}function dr(e){return xi(e,.25)}function xi(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function ze(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 Xl={"--alpha":ea,"--spacing":ta,"--theme":ra,theme:ia};function ea(e,t,r,...n){let[i,o]=b(r,"/").map(a=>a.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 ze(i,o)}function ta(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.");let o=z.get(r);if(o){if(o[0]===0)return"0px";if(o[0]===1)return i}return`calc(${i} * ${r})`}function ra(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 a=n.join(", ");if(a==="initial")return o;if(o==="initial")return a;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let l=x(o);return oa(l,a),A(l)}return o}function ia(e,t,r,...n){r=na(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 lp=new RegExp(Object.keys(Xl).map(e=>`${e}\\(`).join("|"));function na(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 oa(e,t){w(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 gt(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let o=0;o<i;o++){let a=e.charCodeAt(o),l=t.charCodeAt(o);if(a>=48&&a<=57&&l>=48&&l<=57){let s=o,u=o+1,c=o,p=o+1;for(a=e.charCodeAt(u);a>=48&&a<=57;)a=e.charCodeAt(++u);for(l=t.charCodeAt(p);l>=48&&l<=57;)l=t.charCodeAt(++p);let f=e.slice(s,u),m=t.slice(c,p),d=Number(f)-Number(m);if(d)return d;if(f<m)return-1;if(f>m)return 1;continue}if(a!==l)return a-l}return e.length-t.length}function gr(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,n=e.length-1;for(;je(e.charCodeAt(t));)t++;{for(r=t;t<n;t++){let c=e.charCodeAt(t);if(c===92){t++;continue}if(!(c>=65&&c<=90)&&!(c>=97&&c<=122)&&!(c>=48&&c<=57)&&!(c===45||c===95)&&!(c>=128))break}if(r===t)return null}let i=e.slice(r,t);for(;je(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let o=null,a=e.charCodeAt(t);if(a===61)o="=",t++;else if((a===126||a===124||a===94||a===36||a===42)&&e.charCodeAt(t+1)===61)o=e[t]+"=",t+=2;else return null;for(;je(e.charCodeAt(t));)t++;if(t===n)return null;let l="",s=null;if(a=e.charCodeAt(t),a===39||a===34){s=e[t],t++,r=t;for(let c=t;c<n;c++){let p=e.charCodeAt(c);p===a?t=c+1:p===92&&c++}l=e.slice(r,t-1)}else{for(r=t;t<n&&!je(e.charCodeAt(t));)t++;l=e.slice(r,t)}for(;je(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:o,quote:s,value:l,sensitivity:null};let u=null;switch(e.charCodeAt(t)){case 105:case 73:{u="i",t++;break}case 115:case 83:{u="s",t++;break}default:return null}for(;je(e.charCodeAt(t));)t++;return t!==n?null:{attribute:i,operator:o,quote:s,value:l,sensitivity:u}}function je(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}function Si(e){let t=!1;return w(e,{exit(r){if(r.kind!=="function"||r.value!=="calc"&&r.value!==""||r.nodes.length!==5||r.nodes[2].kind!=="word"||r.nodes[2].value!=="*"&&r.nodes[2].value!=="+")return;let n=r.nodes[0],i=r.nodes[4];if(la(n,i)){t=!0;let o={kind:"function",value:r.value,nodes:[i,r.nodes[1],r.nodes[2],r.nodes[3],n]};return v.ReplaceSkip(o)}}}),[t,e]}function la(e,t){let r=e.kind==="word"?z.get(e.value):null,n=t.kind==="word"?z.get(t.value):null;if(r!==null&&n===null)return!0;if(r===null&&n!==null)return!1;if(r!==null&&n!==null){let[i,o]=r,[a,l]=n;if(o===null&&l!==null)return!0;if(o!==null&&l===null)return!1;if(i!==a)return i-a>0;if(o!==l)return(o??"").localeCompare(l??"")>0}return A([e]).localeCompare(A([t]))>0}function $i(e){let t=[];return Ti(e,[],(r,n)=>{if(ca(r))return t.push([n,r]),1;if(fa(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 aa={borderWidth:"border-width",outlineWidth:"outline-width",ringColor:"ring-color",ringWidth:"ring-width",transitionDuration:"transition-duration",transitionTimingFunction:"transition-timing-function"},sa={animation:"animate",aspectRatio:"aspect",borderRadius:"radius",boxShadow:"shadow",colors:"color",containers:"container",fontFamily:"font",fontSize:"text",letterSpacing:"tracking",lineHeight:"leading",maxWidth:"container",screens:"breakpoint",transitionTimingFunction:"ease"},ua=/^[a-zA-Z0-9-_%/.]+$/;function te(e){let t=aa[e[0]];if(t&&e[1]==="DEFAULT")return`default-${t}`;if(e[0]==="container")return null;for(let n of e)if(!ua.test(n))return null;let r=sa[e[0]];return r&&(e=e.slice(),e[0]=r),e.map((n,i,o)=>n==="1"&&i!==o.length-1?"":n).map((n,i)=>(n=n.replaceAll(".","_"),(i===0||n.startsWith("-")||n==="lineHeight")&&(n=n.replace(/([a-z])([A-Z])/g,(a,l,s)=>`${l}-${s.toLowerCase()}`)),n)).filter((n,i)=>n!=="DEFAULT"||i!==e.length-1).join("-")}function ca(e){return typeof e=="number"||typeof e=="string"}function fa(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 Ti(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let o=[...t,n],a=r(i,o)??0;if(a!==1){if(a===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&Ti(i,o,r)===2)return 2}}}function et(e,t=null,r=!0){let[n,i]=tt(x(e),t,r);return n?A(i):e}function tt(e,t=null,r=!0){let n=!1;return w(e,{exit(i,o){if(i.kind==="word"&&i.value!=="0"){let a=Ni(i.value,t,r);if(a===null||a===i.value)return;if(a==="0"&&o.parent?.kind==="function"){let l=Ni(i.value,t,!1);return l===null?void 0:(n=!0,v.ReplaceSkip(O(l)))}return n=!0,v.ReplaceSkip(O(a))}else if(i.kind==="function"&&(i.value==="calc"||i.value==="")){if(i.nodes.length!==5||i.nodes[2].kind!=="word")return;let a=i.nodes[0],l=i.nodes[2].value,s=i.nodes[4],u=a.kind==="word"?z.get(a.value):null,c=s.kind==="word"?z.get(s.value):null;if(l==="*"&&(u?.[0]===0&&u?.[1]===null||c?.[0]===0&&c?.[1]===null))return n=!0,v.ReplaceSkip(O("0"));if(l==="*"&&u?.[0]===0&&u?.[1]!==null&&c?.[1]===null)return n=!0,o.parent?.kind==="function"?v.ReplaceSkip(O(`0${u[1]}`)):v.ReplaceSkip(O("0"));if(l==="*"&&c?.[0]===0&&c?.[1]!==null&&u?.[1]===null)return n=!0,o.parent?.kind==="function"?v.ReplaceSkip(O(`0${c[1]}`)):v.ReplaceSkip(O("0"));if(l==="*"){if(u?.[0]===1&&u?.[1]===null)return n=!0,v.ReplaceSkip(s);if(c?.[0]===1&&c?.[1]===null)return n=!0,v.ReplaceSkip(a)}if(l==="*"||l==="+"){let p=u??c,f=u===null?a:c===null?s:null;if(p!==null&&f!==null&&f.kind==="function"&&(f.value==="calc"||f.value==="")&&f.nodes.length===5&&f.nodes[2].kind==="word"&&f.nodes[2].value===l){let m=f.nodes[0],d=f.nodes[4],h=m.kind==="word"?z.get(m.value):null,g=d.kind==="word"?z.get(d.value):null,k=h??g,S=h===null?m:g===null?d:null;if(k!==null&&S!==null){if(l==="*"&&!(p[1]===null&&k[1]===null||p[1]===null&&k[1]!==null||p[1]!==null&&k[1]===null)||l==="+"&&p[1]!==k[1])return;let T;switch(l){case"*":{T=`${p[0]*k[0]}${p[1]??k[1]??""}`;break}case"+":{T=`${p[0]+k[0]}${p[1]??k[1]??""}`;break}default:return}if(n=!0,l==="*"&&T==="1")return v.ReplaceSkip(S);let C={kind:"function",value:i.value,nodes:[O(T),i.nodes[1],i.nodes[2],i.nodes[3],S]};return v.ReplaceSkip(C)}}}if(u===null||c===null)return;switch(l){case"*":{if(u[1]===c[1]||u[1]===null&&c[1]!==null||u[1]!==null&&c[1]===null)return n=!0,v.ReplaceSkip(O(`${u[0]*c[0]}${u[1]??c[1]??""}`));break}case"+":{if(u[1]===c[1])return n=!0,v.ReplaceSkip(O(`${u[0]+c[0]}${u[1]??""}`));break}case"-":{if(u[1]===c[1])return n=!0,v.ReplaceSkip(O(`${u[0]-c[0]}${u[1]??""}`));break}case"/":{if(c[0]!==0&&(u[1]===null&&c[1]===null||u[1]!==null&&c[1]===null)){let p=u[0]/c[0];if(Math.round(p*100)/100!==p)break;return n=!0,v.ReplaceSkip(O(`${p}${u[1]??""}`))}break}}}}}),[n,e]}function Ni(e,t=null,r=!0){let n=z.get(e);if(n===null)return null;let[i,o]=n;if(o===null)return`${i}`;if(i===0&&mr(e))return r?"0":`0${o}`;if(!r)return`${e}`;switch(o.toLowerCase()){case"in":return`${i*96}px`;case"cm":return`${i*96/2.54}px`;case"mm":return`${i*96/2.54/10}px`;case"q":return`${i*96/2.54/10/4}px`;case"pc":return`${i*96/6}px`;case"pt":return`${i*96/72}px`;case"rem":return t!==null?`${i*t}px`:null;case"grad":return`${i*.9}deg`;case"rad":return`${i*180/Math.PI}deg`;case"turn":return`${i*360}deg`;case"ms":return`${i/1e3}s`;case"khz":return`${i*1e3}hz`;default:return`${i}${o}`}}function Ee(e,t="top",r="right",n="bottom",i="left"){return Pi(`${e}-${t}`,`${e}-${r}`,`${e}-${n}`,`${e}-${i}`)}function Pi(e="top",t="right",r="bottom",n="left"){return{1:[[e,0],[t,0],[r,0],[n,0]],2:[[e,0],[t,1],[r,0],[n,1]],3:[[e,0],[t,1],[r,2],[n,1]],4:[[e,0],[t,1],[r,2],[n,3]]}}function G(e,t){return{1:[[e,0],[t,0]],2:[[e,0],[t,1]]}}var Ei={inset:Pi(),margin:Ee("margin"),padding:Ee("padding"),"scroll-margin":Ee("scroll-margin"),"scroll-padding":Ee("scroll-padding"),"border-width":Ee("border","top-width","right-width","bottom-width","left-width"),"border-style":Ee("border","top-style","right-style","bottom-style","left-style"),"border-color":Ee("border","top-color","right-color","bottom-color","left-color"),gap:G("row-gap","column-gap"),overflow:G("overflow-x","overflow-y"),"overscroll-behavior":G("overscroll-behavior-x","overscroll-behavior-y")},Ri={"inset-block":G("top","bottom"),"inset-inline":G("left","right"),"margin-block":G("margin-top","margin-bottom"),"margin-inline":G("margin-left","margin-right"),"padding-block":G("padding-top","padding-bottom"),"padding-inline":G("padding-left","padding-right"),"scroll-margin-block":G("scroll-margin-top","scroll-margin-bottom"),"scroll-margin-inline":G("scroll-margin-left","scroll-margin-right"),"scroll-padding-block":G("scroll-padding-top","scroll-padding-bottom"),"scroll-padding-inline":G("scroll-padding-left","scroll-padding-right")},Vi={"border-block":["border-bottom","border-top"],"border-block-color":["border-bottom-color","border-top-color"],"border-block-style":["border-bottom-style","border-top-style"],"border-block-width":["border-bottom-width","border-top-width"],"border-inline":["border-left","border-right"],"border-inline-color":["border-left-color","border-right-color"],"border-inline-style":["border-left-style","border-right-style"],"border-inline-width":["border-left-width","border-right-width"]};function _i(e,t){if(t&2){if(e.property in Ri){let r=b(e.value," ");return Ri[e.property][r.length]?.map(([n,i])=>N(n,r[i],e.important))}if(e.property in Vi)return Vi[e.property]?.map(r=>N(r,e.value,e.important))}if(e.property in Ei){let r=b(e.value," ");return Ei[e.property][r.length]?.map(([n,i])=>N(n,r[i],e.important))}return null}function pa(e){return{kind:"combinator",value:e}}function hr(e){return{kind:"complex",nodes:e}}function Oi(e){return{kind:"compound",nodes:e}}function ma(e,t){return{kind:"function",value:e,nodes:t}}function da(e){return{kind:"list",nodes:e}}function me(e){return{kind:"selector",value:e}}function Di(e){return{kind:"value",value:e}}var ga=new Set([":before",":after",":first-line",":first-letter"]);function wr(e){return e.kind!=="selector"&&e.kind!=="function"?!1:e.value.startsWith("::")||ga.has(e.value.toLowerCase())}function re(e,t=!1){let r="";for(let n of e)switch(n.kind){case"selector":case"value":{r+=n.value;break}case"combinator":{t||n.value===" "?r+=n.value:r+=` ${n.value} `;break}case"function":{r+=`${n.value}(${re(n.nodes,t)})`;break}case"complex":case"compound":{r+=re(n.nodes,t);break}case"list":{r+=n.nodes.map(i=>re([i],t)).join(t?",":", ");break}}return r}var Ii=92,ha=93,Li=41,Ui=58,Mi=44,ka=34,ya=46,zi=62,kr=10,va=35,ji=91,Ki=40,Fi=43,wa=39,yr=32,vr=9,Wi=126,ba=38,xa=42;function Ke(e){e=e.replaceAll(`\r
5
5
  `,`
6
- `);let t=[],r=[],n=null,i="",a;for(let o=0;o<e.length;o++){let u=e.charCodeAt(o);switch(u){case Xr:case ei:case ti:case oi:case ni:case ai:case li:{if(i.length>0){let f=de(i);n?n.nodes.push(f):t.push(f),i=""}let l=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==Xr&&a!==ei&&a!==ti&&a!==oi&&a!==ni&&a!==ai&&a!==li));s++);o=s-1;let c=e.slice(l,s),p=c.trim()===","?da(c):pa(c);n?n.nodes.push(p):t.push(p);break}case ii:{let l=ma(i,[]);if(i="",l.value!==":not"&&l.value!==":where"&&l.value!==":has"&&l.value!==":is"){let s=o+1,c=0;for(let f=o+1;f<e.length;f++){if(a=e.charCodeAt(f),a===ii){c++;continue}if(a===Qr){if(c===0){o=f;break}c--}}let p=o;l.nodes.push(ga(e.slice(s,p))),i="",o=p,n?n.nodes.push(l):t.push(l);break}n?n.nodes.push(l):t.push(l),r.push(l),n=l;break}case Qr:{let l=r.pop();if(i.length>0){let s=de(i);l.nodes.push(s),i=""}r.length>0?n=r[r.length-1]:n=null;break}case wa:case ya:case ka:{if(i.length>0){let l=de(i);n?n.nodes.push(l):t.push(l)}i=e[o];break}case ri:{if(i.length>0){let c=de(i);n?n.nodes.push(c):t.push(c)}i="";let l=o,s=0;for(let c=o+1;c<e.length;c++){if(a=e.charCodeAt(c),a===ri){s++;continue}if(a===ha){if(s===0){o=c;break}s--}}i+=e.slice(l,o+1);break}case ba:case va:{let l=o;for(let s=o+1;s<e.length;s++)if(a=e.charCodeAt(s),a===Zr)s+=1;else if(a===u){o=s;break}i+=e.slice(l,o+1);break}case xa:case Ca:{if(i.length>0){let l=de(i);n?n.nodes.push(l):t.push(l),i=""}n?n.nodes.push(de(e[o])):t.push(de(e[o]));break}case Zr:{i+=e[o]+e[o+1],o+=1;break}default:i+=e[o]}}return i.length>0&&t.push(de(i)),t}function j(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function Q(e){let t=[];for(let r of b(e,".")){if(!r.includes("[")){t.push(r);continue}let n=0;for(;;){let i=r.indexOf("[",n),a=r.indexOf("]",i);if(i===-1||a===-1)break;i>n&&t.push(r.slice(n,i)),t.push(r.slice(i+1,a)),n=a+1}n<=r.length-1&&t.push(r.slice(n))}return t}function Gt(e){let t=e;return t.storage[ci]??=Aa(),t.storage[Sa]??=$a(t),t.storage[Ta]??=Ea(),t.storage[pi]??=Na(),t.storage[mi]??=Pa(),t.storage[Ht]??=Ua(t),t.storage[di]??=ja(t),t.storage[te]??=Qa(t),t.storage[yi]??=el(),t.storage[Yt]??=tl(t),t.storage[Jt]??=rl(t),t.storage[st]??=il(t),t.storage[vi]??=nl(t),t}var ci=Symbol();function Aa(){return new y(e=>new y(t=>({rem:e,features:t})))}function fi(e,t){let r=0;return t?.collapse&&(r|=1),t?.logicalToPhysical&&(r|=2),Gt(e).storage[ci].get(t?.rem??null).get(r)}var Sa=Symbol();function $a(e){return new y(t=>new y(r=>({features:r,designSystem:e,signatureOptions:t})))}var Ta=Symbol();function Ea(){return new y(e=>{let t=e.designSystem,r=t.theme.prefix?`${t.theme.prefix}:`:"",n=t.storage[pi].get(e),i=t.storage[mi].get(e);return new y((a,o)=>{for(let u of t.parseCandidate(a)){let l=u.variants.slice().reverse().flatMap(p=>n.get(p)),s=u.important;if(s||l.length>0){let f=o.get(t.printCandidate({...u,variants:[],important:!1}));return t.theme.prefix!==null&&l.length>0&&(f=f.slice(r.length)),l.length>0&&(f=`${l.map(m=>t.printVariant(m)).join(":")}:${f}`),s&&(f+="!"),t.theme.prefix!==null&&l.length>0&&(f=`${r}${f}`),f}let c=i.get(a);if(c!==a)return c}return a})})}var Ra=[Ia,Ha,Ja,qa],pi=Symbol();function Na(){return new y(e=>new y(t=>{let r=[t];for(let n of Ra)for(let i of r.splice(0)){let a=n(De(i),e);if(Array.isArray(a)){r.push(...a);continue}else r.push(a)}return r}))}var Va=[Oa,Da,za,Fa,Ba,Ya,Ga,Za],mi=Symbol();function Pa(){return new y(e=>{let t=e.designSystem;return new y(r=>{for(let n of t.parseCandidate(r)){let i=M(n);for(let o of Va)i=o(i,e);let a=t.printCandidate(i);if(r!==a)return a}return r})})}var _a=["t","tr","r","br","b","bl","l","tl"];function Oa(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let t=e.root.slice(15);return _a.includes(t)&&(e.root=`bg-linear-to-${t}`),e}return e}function Da(e,t){let r=t.designSystem.storage[Ht];if(e.kind==="arbitrary"){let[n,i]=r(e.value,e.modifier===null?1:0);n!==e.value&&(e.value=n,i!==null&&(e.modifier=i))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[n,i]=r(e.value.value,e.modifier===null?1:0);n!==e.value.value&&(e.value.value=n,i!==null&&(e.modifier=i))}return e}function Ia(e,t){let r=t.designSystem.storage[Ht],n=lt(e);for(let[i]of n)if(i.kind==="arbitrary"){let[a]=r(i.selector,2);a!==i.selector&&(i.selector=a)}else if(i.kind==="functional"&&i.value?.kind==="arbitrary"){let[a]=r(i.value.value,2);a!==i.value.value&&(i.value.value=a)}return e}var Ht=Symbol();function Ua(e){return t(e);function t(r){function n(u,l=0){let s=x(u);if(l&2)return[ot(s,o),null];let c=0,p=0;if(k(s,d=>{d.kind==="function"&&d.value==="theme"&&(c+=1,k(d.nodes,g=>g.kind==="separator"&&g.value.includes(",")?w.Stop:g.kind==="word"&&g.value==="/"?(p+=1,w.Stop):w.Skip))}),c===0)return[u,null];if(p===0)return[ot(s,a),null];if(p>1)return[ot(s,o),null];let f=null;return[ot(s,(d,g)=>{let h=b(d,"/").map(v=>v.trim());if(h.length>2)return null;if(s.length===1&&h.length===2&&l&1){let[v,C]=h;if(/^\d+%$/.test(C))f={kind:"named",value:C.slice(0,-1)};else if(/^0?\.\d+$/.test(C)){let I=Number(C)*100;f={kind:Number.isInteger(I)?"named":"arbitrary",value:I.toString()}}else f={kind:"arbitrary",value:C};d=v}return a(d,g)||o(d,g)}),f]}function i(u,l=!0){let s=`--${Z(Q(u))}`;return r.theme.get([s])?l&&r.theme.prefix?`--${r.theme.prefix}-${s.slice(2)}`:s:null}function a(u,l){let s=i(u);if(s)return l?`var(${s}, ${l})`:`var(${s})`;let c=Q(u);if(c[0]==="spacing"&&r.theme.get(["--spacing"])){let p=c[1];return oe(p)?`--spacing(${p})`:null}return null}function o(u,l){let s=b(u,"/").map(f=>f.trim());u=s.shift();let c=i(u,!1);if(!c)return null;let p=s.length>0?`/${s.join("/")}`:"";return l?`--theme(${c}${p}, ${l})`:`--theme(${c}${p})`}return n}}function ot(e,t){return k(e,(r,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 a=i.value,o=1;for(let s=o;s<r.nodes.length&&!r.nodes[s].value.includes(",");s++)a+=S([r.nodes[s]]),o=s+1;a=La(a);let u=r.nodes.slice(o+1),l=u.length>0?t(a,S(u)):t(a);if(l===null)return;if(n.parent){let s=n.parent.nodes.indexOf(r)-1;for(;s!==-1;){let c=n.parent.nodes[s];if(c.kind==="separator"&&c.value.trim()===""){s-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(l=`(${l})`);break}}return w.Replace(x(l))}}),S(e)}function La(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],a=e[n+1];i==="\\"&&(a===r||a==="\\")?(t+=a,n++):t+=i}return t}function*lt(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function le(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function Ma(e,t){let r=e.printCandidate(t);return e.theme.prefix&&r.startsWith(`${e.theme.prefix}:`)?r.slice(e.theme.prefix.length+1):r}var di=Symbol();function ja(e){let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=Ce.get(t);if(!r)return null;let[n,i]=r;return new y(a=>{let o=Ce.get(a);if(!o)return null;let[u,l]=o;return l!==i?null:u/n})}function za(e,t){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let r=t.designSystem,n=r.storage[Jt].get(t.signatureOptions),i=r.storage[te].get(t.signatureOptions),a=r.printCandidate(e),o=i.get(a);if(typeof o!="string")return e;for(let l of u(o,e)){let s=r.printCandidate(l);if(i.get(s)===o&&Ka(r,e,l))return l}return e;function*u(l,s){let c=n.get(l);if(!(c.length>1)){if(c.length===0&&s.modifier){let p={...s,modifier:null},f=i.get(r.printCandidate(p));if(typeof f=="string")for(let m of u(f,p))yield Object.assign({},m,{modifier:s.modifier})}if(c.length===1)for(let p of le(r,c[0]))yield p;else if(c.length===0){let p=s.kind==="arbitrary"?s.value:s.value?.value??null;if(p===null)return;let f=r.storage[di]?.get(p)??null,m="";f!==null&&f<0&&(m="-",f=Math.abs(f));for(let d of Array.from(r.utilities.keys("functional")).sort((g,h)=>+(g[0]==="-")-+(h[0]==="-"))){m&&(d=`${m}${d}`);for(let g of le(r,`${d}-${p}`))yield g;if(s.modifier)for(let g of le(r,`${d}-${p}${s.modifier}`))yield g;if(f!==null){for(let g of le(r,`${d}-${f}`))yield g;if(s.modifier)for(let g of le(r,`${d}-${f}${Ft(s.modifier)}`))yield g}for(let g of le(r,`${d}-[${p}]`))yield g;if(s.modifier)for(let g of le(r,`${d}-[${p}]${Ft(s.modifier)}`))yield g}}}}}function Ka(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(`
7
- `),a=!0;return k(x(n),o=>{if(o.kind==="function"&&o.value==="var"){let u=o.nodes[0].value;if(!new RegExp(`var\\(${u}[,)]\\s*`,"g").test(i)||i.includes(`${u}:`))return a=!1,w.Stop}}),a}function Fa(e,t){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=t.designSystem,n=r.storage[Jt].get(t.signatureOptions),i=r.storage[te].get(t.signatureOptions),a=r.printCandidate(e),o=i.get(a);if(typeof o!="string")return e;for(let l of u(o,e)){let s=r.printCandidate(l);if(i.get(s)===o)return l}return e;function*u(l,s){let c=n.get(l);if(!(c.length>1)){if(c.length===0&&s.modifier){let p={...s,modifier:null},f=i.get(r.printCandidate(p));if(typeof f=="string")for(let m of u(f,p))yield Object.assign({},m,{modifier:s.modifier})}if(c.length===1)for(let p of le(r,c[0]))yield p}}}var Wa=new Map([["order-none","order-0"],["break-words","wrap-break-word"]]);function Ba(e,t){let r=t.designSystem,n=r.storage[te].get(t.signatureOptions),i=Ma(r,e),a=Wa.get(i)??null;if(a===null)return e;let o=n.get(i);if(typeof o!="string")return e;let u=n.get(a);if(typeof u!="string"||o!==u)return e;let[l]=le(r,a);return l}function qa(e,t){let r=t.designSystem,n=r.storage[st],i=r.storage[vi],a=lt(e);for(let[o]of a){if(o.kind==="compound")continue;let u=r.printVariant(o),l=n.get(u);if(typeof l!="string")continue;let s=i.get(l);if(s.length!==1)continue;let c=s[0],p=r.parseVariant(c);p!==null&&j(o,p)}return e}function Ya(e,t){let r=t.designSystem,n=r.storage[te].get(t.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let i=r.printCandidate({...e,value:{...e.value,dataType:null}});n.get(r.printCandidate(e))===n.get(i)&&(e.value.dataType=null)}return e}function Ga(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=t.designSystem,n=r.storage[te].get(t.signatureOptions),i=n.get(r.printCandidate(e));if(i===null)return e;for(let a of gi(e))if(n.get(r.printCandidate({...e,value:a}))===i)return e.value=a,e;return e}function Ha(e){let t=lt(e);for(let[r]of t)if(r.kind==="functional"&&r.root==="data"&&r.value?.kind==="arbitrary"&&!r.value.value.includes("="))r.value={kind:"named",value:r.value.value};else if(r.kind==="functional"&&r.root==="aria"&&r.value?.kind==="arbitrary"&&(r.value.value.endsWith("=true")||r.value.value.endsWith('="true"')||r.value.value.endsWith("='true'"))){let[n,i]=b(r.value.value,"=");if(n[n.length-1]==="~"||n[n.length-1]==="|"||n[n.length-1]==="^"||n[n.length-1]==="$"||n[n.length-1]==="*")continue;r.value={kind:"named",value:r.value.value.slice(0,r.value.value.indexOf("="))}}else r.kind==="functional"&&r.root==="supports"&&r.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(r.value.value)&&(r.value={kind:"named",value:r.value.value});return e}function*gi(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("%")&&oe(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[a,o]=t.split("/");_(a)&&_(o)&&(yield{kind:"named",value:a,fraction:`${a}/${o}`})}let n=new Set;for(let a of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))n.add(a[0].trim());let i=Array.from(n).sort((a,o)=>a.length-o.length);for(let a of i)yield*gi(e,a,r)}function ui(e){return!e.some(t=>t.kind==="separator"&&t.value.trim()===",")}function at(e){let t=e.value.trim();return e.kind==="selector"&&t[0]==="["&&t[t.length-1]==="]"}function Ja(e,t){let r=[e],n=t.designSystem,i=n.storage[st],a=lt(e);for(let[o,u]of a)if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="arbitrary"){if(o.relative)continue;let l=nt(o.selector.trim());if(!ui(l))continue;if(u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===">"&&l[2].kind==="selector"&&l[2].value==="*"){j(o,n.parseVariant("*"));continue}if(u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===""&&l[2].kind==="selector"&&l[2].value==="*"){j(o,n.parseVariant("**"));continue}if(u===null&&l.length===3&&l[1].kind==="combinator"&&l[1].value.trim()===""&&l[2].kind==="selector"&&l[2].value==="&"){l.pop(),l.pop(),j(o,n.parseVariant(`in-[${Se(l)}]`));continue}if(u===null&&l[0].kind==="selector"&&(l[0].value==="@media"||l[0].value==="@supports")){let f=i.get(n.printVariant(o)),m=x(Se(l)),d=!1;if(k(m,g=>{if(g.kind==="word"&&g.value==="not")return d=!0,w.Replace([])}),m=x(S(m)),k(m,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),d){let g=n.parseVariant(`not-[${S(m)}]`);if(g===null)continue;let h=i.get(n.printVariant(g));if(f===h){j(o,g);continue}}}let s=null;u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value.trim()==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===">"&&l[2].kind==="selector"&&(at(l[2])||l[2].value[0]===":")&&(l=[l[2]],s=n.parseVariant("*")),u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value.trim()==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===""&&l[2].kind==="selector"&&(at(l[2])||l[2].value[0]===":")&&(l=[l[2]],s=n.parseVariant("**"));let c=l.filter(f=>!(f.kind==="selector"&&f.value.trim()==="&"));if(c.length!==1)continue;let p=c[0];if(p.kind==="function"&&p.value===":is"){if(!ui(p.nodes)||p.nodes.length!==1||!at(p.nodes[0]))continue;p=p.nodes[0]}if(p.kind==="function"&&p.value[0]===":"||p.kind==="selector"&&p.value[0]===":"){let f=p,m=!1;if(f.kind==="function"&&f.value===":not"){if(m=!0,f.nodes.length!==1||f.nodes[0].kind!=="selector"&&f.nodes[0].kind!=="function"||f.nodes[0].value[0]!==":")continue;f=f.nodes[0]}let d=(h=>{if(h===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="odd")return m?(m=!1,"even"):"odd";if(h===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="even")return m?(m=!1,"odd"):"even";for(let[v,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(h===v&&f.kind==="function"&&f.nodes.length===1)return f.nodes.length===1&&f.nodes[0].kind==="value"&&_(f.nodes[0].value)?`${C}-${f.nodes[0].value}`:`${C}-[${Se(f.nodes)}]`;if(m){let v=i.get(n.printVariant(o)),C=i.get(`not-[${h}]`);if(v===C)return`[&${h}]`}return null})(f.value);if(d===null){if(s)return j(o,{kind:"arbitrary",selector:p.value,relative:!1}),[s,o];continue}m&&(d=`not-${d}`);let g=n.parseVariant(d);if(g===null)continue;j(o,g)}else if(at(p)){let f=zr(p.value);if(f===null)continue;if(f.attribute.startsWith("data-")){let m=f.attribute.slice(5);j(o,{kind:"functional",root:"data",modifier:null,value:f.value===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}else if(f.attribute.startsWith("aria-")){let m=f.attribute.slice(5);j(o,{kind:"functional",root:"aria",modifier:null,value:f.value===null?{kind:"arbitrary",value:m}:f.operator==="="&&f.value==="true"&&f.sensitivity===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${f.attribute}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}else j(o,{kind:"arbitrary",selector:p.value,relative:!1})}if(s)return[s,o]}return r}function Za(e,t){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=t.designSystem,n=r.storage[te].get(t.signatureOptions),i=n.get(r.printCandidate(e)),a=e.modifier;if(i===n.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let o={kind:"named",value:a.value.endsWith("%")?a.value.includes(".")?`${Number(a.value.slice(0,-1))}`:a.value.slice(0,-1):a.value,fraction:null};if(i===n.get(r.printCandidate({...e,modifier:o})))return e.modifier=o,e}{let o={kind:"named",value:`${parseFloat(a.value)*100}`,fraction:null};if(i===n.get(r.printCandidate({...e,modifier:o})))return e.modifier=o,e}return e}var te=Symbol();function Qa(e){return new y(t=>new y(r=>{try{r=e.theme.prefix&&!r.startsWith(e.theme.prefix)?`${e.theme.prefix}:${r}`:r;let n=[ae(".x",[E("@apply",r)])];return ol(e,()=>{for(let a of e.parseCandidate(r))e.compileAstNodes(a,1);Ye(n,e)}),hi(e,n,t),W(n)}catch{return Symbol()}}))}function hi(e,t,r){let{rem:n}=r;return k(t,{enter(i,a){if(i.kind==="declaration"){if(i.value===void 0||i.property==="--tw-sort")return w.Replace([]);if(i.property.startsWith("--tw-")&&(a.parent?.nodes??[]).some(o=>o.kind==="declaration"&&i.value===o.value&&i.important===o.important&&!o.property.startsWith("--tw-")))return w.Replace([]);if(r.features&1){let o=Jr(i,r.features);if(o)return w.Replace(o)}i.value.includes("var(")&&(i.value=Xa(i.value,e)),i.value=Wr(i.value,n),i.value=Wt(i.value)}else{if(i.kind==="context"||i.kind==="at-root")return w.Replace(i.nodes);if(i.kind==="comment")return w.Replace([]);if(i.kind==="at-rule"&&i.name==="@property")return w.Replace([])}},exit(i){(i.kind==="rule"||i.kind==="at-rule")&&i.nodes.sort((a,o)=>a.kind!=="declaration"||o.kind!=="declaration"?0:a.property.localeCompare(o.property))}}),t}function Xa(e,t){let r=!1,n=x(e),i=new Set;return k(n,a=>{if(a.kind!=="function"||a.value!=="var"||a.nodes.length!==1&&a.nodes.length<3)return;let o=a.nodes[0].value;t.theme.prefix&&o.startsWith(`--${t.theme.prefix}-`)&&(o=o.slice(`--${t.theme.prefix}-`.length));let u=t.resolveThemeValue(o);if(!i.has(o)&&(i.add(o),u!==void 0&&(a.nodes.length===1&&(r=!0,a.nodes.push(...x(`,${u}`))),a.nodes.length>=3))){let l=S(a.nodes),s=`${a.nodes[0].value},${u}`;if(l===s)return r=!0,w.Replace(x(u))}}),r?S(n):e}var yi=Symbol();function el(){return new y(e=>new y(t=>new y(r=>new Set)))}var Yt=Symbol();function tl(e){return new y(t=>new y(r=>{let n=new y(a=>new Set);e.theme.prefix&&!r.startsWith(e.theme.prefix)&&(r=`${e.theme.prefix}:${r}`);let i=e.parseCandidate(r);return i.length===0||k(hi(e,e.compileAstNodes(i[0]).map(a=>G(a.node)),t),a=>{a.kind==="declaration"&&(n.get(a.property).add(a.value),e.storage[yi].get(t).get(a.property).get(a.value).add(r))}),n}))}var Jt=Symbol();function rl(e){return new y(t=>{let r=e.storage[te].get(t),n=new y(()=>[]);for(let[i,a]of e.getClassList()){let o=r.get(i);if(typeof o=="string"){if(i[0]==="-"&&i.endsWith("-0")){let u=r.get(i.slice(1));if(typeof u=="string"&&o===u)continue}n.get(o).push(i),e.storage[Yt].get(t).get(i);for(let u of a.modifiers){if(oe(u))continue;let l=`${i}/${u}`,s=r.get(l);typeof s=="string"&&(n.get(s).push(l),e.storage[Yt].get(t).get(l))}}}return n})}var st=Symbol();function il(e){return new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[ae(".x",[E("@apply",`${t}:flex`)])];return Ye(r,e),k(r,i=>{if(i.kind==="at-rule"&&i.params.includes(" "))i.params=i.params.replaceAll(" ","");else if(i.kind==="rule"){let a=nt(i.selector),o=!1;k(a,u=>{if(u.kind==="separator"&&u.value!==" ")u.value=u.value.trim(),o=!0;else if(u.kind==="function"&&u.value===":is"){if(u.nodes.length===1)return o=!0,w.Replace(u.nodes);if(u.nodes.length===2&&u.nodes[0].kind==="selector"&&u.nodes[0].value==="*"&&u.nodes[1].kind==="selector"&&u.nodes[1].value[0]===":")return o=!0,w.Replace(u.nodes[1])}else u.kind==="function"&&u.value[0]===":"&&u.nodes[0]?.kind==="selector"&&u.nodes[0]?.value[0]===":"&&(o=!0,u.nodes.unshift({kind:"selector",value:"*"}))}),o&&(i.selector=Se(a))}}),W(r)}catch{return Symbol()}})}var vi=Symbol();function nl(e){let t=e.storage[st],r=new y(()=>[]);for(let[n,i]of e.variants.entries())if(i.kind==="static"){let a=t.get(n);if(typeof a!="string")continue;r.get(a).push(n)}return r}function ol(e,t){let r=e.theme.values.get,n=new Set;e.theme.values.get=i=>{let a=r.call(e.theme.values,i);return a===void 0||a.options&1&&(n.add(a),a.options&=-2),a};try{return t()}finally{e.theme.values.get=r;for(let i of n)i.options|=1}}function Ge(e,t,{onInvalidCandidate:r,respectImportant:n}={}){let i=new Map,a=[],o=new Map;for(let s of e){if(t.invalidCandidates.has(s)){r?.(s);continue}let c=t.parseCandidate(s);if(c.length===0){r?.(s);continue}o.set(s,c)}let u=0;(n??!0)&&(u|=1);let l=t.getVariantOrder();for(let[s,c]of o){let p=!1;for(let f of c){let m=t.compileAstNodes(f,u);if(m.length!==0){p=!0;for(let{node:d,propertySort:g}of m){let h=0n;for(let v of f.variants)h|=1n<<BigInt(l.get(v));i.set(d,{properties:g,variants:h,candidate:s}),a.push(d)}}}p||r?.(s)}return a.sort((s,c)=>{let p=i.get(s),f=i.get(c);if(p.variants-f.variants!==0n)return Number(p.variants-f.variants);let m=0;for(;m<p.properties.order.length&&m<f.properties.order.length&&p.properties.order[m]===f.properties.order[m];)m+=1;return(p.properties.order[m]??1/0)-(f.properties.order[m]??1/0)||f.properties.count-p.properties.count||qt(p.candidate,f.candidate)}),{astNodes:a,nodeSorting:i}}function Ye(e,t){let r=0,n=F("&",e),i=new Set,a=new y(()=>new Set),o=new y(()=>new Set);k([n],(p,f)=>{if(p.kind==="at-rule"){if(p.name==="@keyframes")return k(p.nodes,m=>{if(m.kind==="at-rule"&&m.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),w.Skip;if(p.name==="@utility"){let m=p.params.replace(/-\*$/,"");o.get(m).add(p),k(p.nodes,d=>{if(!(d.kind!=="at-rule"||d.name!=="@apply")){i.add(p);for(let g of ki(d,t))a.get(p).add(g)}});return}if(p.name==="@apply"){if(f.parent===null)return;r|=1,i.add(f.parent);for(let m of ki(p,t))for(let d of f.path())i.has(d)&&a.get(d).add(m)}}});let u=new Set,l=[],s=new Set;function c(p,f=[]){if(!u.has(p)){if(s.has(p)){let m=f[(f.indexOf(p)+1)%f.length];throw p.kind==="at-rule"&&p.name==="@utility"&&m.kind==="at-rule"&&m.name==="@utility"&&k(p.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 v of t.parseCandidate(h))switch(v.kind){case"arbitrary":break;case"static":case"functional":if(m.params.replace(/-\*$/,"")===v.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
6
+ `);let t=[],r=t,n=!1,i=[],o=null,a="",l;function s(c=r){return c.length===1?c[0]:n?hr(c):Oi(c)}function u(c){let p=r[r.length-1];p?.kind==="compound"?p.nodes.push(c):p&&p.kind!=="list"&&p.kind!=="combinator"?r[r.length-1]=Oi([p,c]):r.push(c)}for(let c=0;c<e.length;c++){let p=e.charCodeAt(c);switch(p){case Mi:{for(a.length>0&&(u(me(a)),a="");c+1<e.length&&(l=e.charCodeAt(c+1),!(l!==kr&&l!==yr&&l!==vr));c++);if(o)o.nodes.push(s()),r=[],n=!1;else{let f=r.splice(0),m=s(f),d=da([m]);r.push(d),o=d,r=[],n=!1}break}case zi:case kr:case yr:case Fi:case vr:case Wi:{a.length>0&&(u(me(a)),a="");let f=c,m=c+1;for(;m<e.length&&(l=e.charCodeAt(m),!(l!==zi&&l!==kr&&l!==yr&&l!==Fi&&l!==vr&&l!==Wi));m++);c=m-1;let d=e.slice(f,m).trim();if(d===""&&(r.length===0||m>=e.length||e.charCodeAt(m)===Mi))break;r.push(pa(d===""?" ":d)),n=!0;break}case Ki:{let f=ma(a,[]);if(a="",f.value!==":not"&&f.value!==":where"&&f.value!==":has"&&f.value!==":is"&&f.value!==":-moz-any"&&f.value!==":-webkit-any"){let m=c+1,d=0;for(let k=c+1;k<e.length;k++){if(l=e.charCodeAt(k),l===Ki){d++;continue}if(l===Li){if(d===0){c=k;break}d--}}let h=c,g=e.slice(m,h);if(f.value===":nth-child"||f.value===":nth-last-child"){let k=g.indexOf("of ");if(k!==-1){f.nodes.push(Di(g.slice(0,k+3)),...Ke(g.slice(k+3))),a="",c=h,u(f);break}}f.nodes.push(Di(g)),a="",c=h,u(f);break}u(f),i.push({target:r,currentList:o,containsCombinator:n}),r=f.nodes,n=!1,o=null;break}case Li:{a.length>0&&(u(me(a)),a=""),o?o.nodes.push(s()):n&&r.splice(0,r.length,hr(r.splice(0)));let f=i.pop();r=f?.target??t,o=f?.currentList??null,n=f?.containsCombinator??!1;break}case ya:case Ui:case va:{if(p===Ui&&a===":"){a+=e[c];break}a.length>0&&u(me(a)),a=e[c];break}case ji:{a.length>0&&(u(me(a)),a="");let f=c,m=0;for(let d=c+1;d<e.length;d++){if(l=e.charCodeAt(d),l===ji){m++;continue}if(l===ha){if(m===0){c=d;break}m--}}u(me(e.slice(f,c+1)));break}case wa:case ka:{let f=c;for(let m=c+1;m<e.length;m++)if(l=e.charCodeAt(m),l===Ii)m+=1;else if(l===p){c=m;break}a+=e.slice(f,c+1);break}case ba:case xa:{a.length>0&&(u(me(a)),a=""),u(me(e[c]));break}case Ii:{a+=e[c]+e[c+1],c+=1;break}default:a+=e[c]}}return a.length>0&&u(me(a)),o?o.nodes.push(s()):n&&r.splice(0,r.length,hr(r.splice(0))),t}function W(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function ie(e){let t=[];for(let r of b(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 Tr(e,t){let r=e;return r.storage[Zi]??=Ca(),r.storage[Sa]??=$a(r),r.storage[Ta]??=Na(),r.storage[on]??=Ma(),r.storage[ln]??=ja(),r.storage[Rr]??=Ya(r),r.storage[Sr]??=Za(r,t),r.storage[se]??=ps(r),r.storage[ms]??=ds(r),r.storage[fn]??=ys(),r.storage[$r]??=vs(r),r.storage[Vr]??=ws(r),r.storage[wt]??=bs(r),r.storage[pn]??=xs(r),r.storage[rt]??=Aa(r),r}var Zi=Symbol();function Ca(){return new y(e=>new y(t=>({rem:e,features:t})))}var rt=Symbol();function Aa(e){return new y(t=>{let r=e.storage[se].get(t);return function(i,o){let a=typeof i=="string"?i:e.printCandidate(i),l=r.get(a);if(typeof l!="string")return!1;let s=typeof o=="string"?o:e.printCandidate(o),u=r.get(s);return typeof u!="string"?!1:l===u}})}function Qi(e,t){let r=0;return t?.collapse&&(r|=1),t?.logicalToPhysical&&(r|=2),Tr(e,t).storage[Zi].get(t?.rem??null).get(r)}var Sa=Symbol();function $a(e){return new y(t=>new y(r=>({features:r,designSystem:e,signatureOptions:t})))}var Ta=Symbol();function Na(){return new y(e=>{let t=e.designSystem,r=t.theme.prefix?`${t.theme.prefix}:`:"",n=t.storage[on].get(e),i=t.storage[ln].get(e);return new y((o,a)=>{let l=Pa(o);if(l!==o&&t.parseCandidate(l).length>0)return a.get(l);for(let s of t.parseCandidate(o)){let u=s.variants.slice().reverse().flatMap(f=>n.get(f)),c=s.important;if(c||u.length>0){let m=a.get(t.printCandidate({...s,variants:[],important:!1}));return t.theme.prefix!==null&&u.length>0&&(m=m.slice(r.length)),u.length>0&&(m=`${u.map(d=>t.printVariant(d)).join(":")}:${m}`),c&&(m+="!"),t.theme.prefix!==null&&u.length>0&&(m=`${r}${m}`),m}let p=i.get(o);if(p!==o)return p}return o})})}var oe=92,Bi=91,Ea=93,Nr=40,Xi=41,en=34,tn=39,Hi=58,Ra=33,Va=62,Cr=95,Fe=45;function Pa(e){if(e.indexOf("\\")===-1||e.indexOf("[")===-1)return e;let t="",r=0,n=[],i=!1,o="",a=-1,l=0;for(;l<e.length;){let s=e.charCodeAt(l);if(r===0){if(s===oe){t+=e.slice(l,l+2),l+=2;continue}if(s===Bi){r=1,n=[];let u=e.charCodeAt(l-1),c=e.charCodeAt(l+1);i=(l===0||u===Hi||u===Ra)&&(c>=97&&c<=122||c===Fe||c===oe)}t+=e[l],l++;continue}if(s===oe||rn(s)){let u=!i&&!n.includes(!0),[c,p]=_a(e,l,u),f=e.slice(l,p);c!==f&&Oa(e,t,f,c,p)&&(c=f),p===l&&(c=e[l],p++),t+=c,o=c,a=p,l=p;continue}switch(s){case tn:case en:{let u=l+1;for(;u<e.length;){let c=e.charCodeAt(u);if(c===oe){u+=2;continue}if(u++,c===s)break}t+=e.slice(l,u),l=u;continue}case Bi:r++;break;case Ea:r--;break;case Hi:i=!1;break;case Nr:n.push(a===l&&Ar(o));break;case Xi:n.pop();break}t+=e[l],l++}return t}function _a(e,t,r){let n="",i=-1,o=-1,a=!1,l=t;for(;l<e.length;){let s=e.charCodeAt(l),u=s;if(s===oe){let c=l,p=e.charCodeAt(l+1);if(Number.isNaN(p))break;let f=p,m=xr(p),d=!0,h=!0;if(m){let k=l+1;for(;k<l+7&&xr(e.charCodeAt(k));)k++;f=parseInt(e.slice(l+1,k),16),d=k-l-1===6,l=k;let S=e.charCodeAt(l);La(S)?(l++,d=!0):S===Cr&&(l++,d=!0,h=r)}else l+=2;let g=h&&nn(f)&&!(a&&xr(f));if(g)if(i===-1){if(Er(f))g=!1;else if(f===Fe){let k=e.charCodeAt(l);g=yt(k)||k===Fe||k===oe||k>=128}}else Ia(i,o===-1?f:o)||(g=!1);g?(n+=String.fromCharCode(f),u=f,a=!1):(n+=e.slice(c,l),u=oe,a=m&&!d)}else if(rn(s))n+=e[l],a=!1,l++;else break;i===-1?i=u:o===-1&&(o=u)}return[n,l]}function Oa(e,t,r,n,i){return!!(n==="--"&&e.charCodeAt(i)===Va||n.startsWith("--")&&t.endsWith("<!")||e.charCodeAt(i)===Nr&&Ar(n)&&!Ar(r)&&Da(e,i))}function Ar(e){return e.endsWith("url")||e.endsWith("var")||e.endsWith("theme")}function Da(e,t){let r=0;for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===oe)t++;else if(n===tn||n===en)for(;++t<e.length;){let i=e.charCodeAt(t);if(i===oe)t++;else{if(i===Cr)return!0;if(i===n)break}}else if(n===Nr)r++;else if(n===Xi){if(--r===0)return!1}else if(n===Cr)return!0}return!1}function Ia(e,t){return e===Fe?yt(t)||t===Fe||t===oe||t>=128:yt(e)||e===oe||e>=128}function rn(e){return nn(e)||e>=128}function nn(e){return yt(e)||Er(e)||e===Fe}function yt(e){return e>=97&&e<=122||e>=65&&e<=90}function Er(e){return e>=48&&e<=57}function xr(e){return Er(e)||e>=97&&e<=102||e>=65&&e<=70}function La(e){return e===32||e===9||e===10||e===12||e===13}var Ua=[Ba,ss,us,os],on=Symbol();function Ma(){return new y(e=>new y(t=>{let r=[t];for(let n of Ua)for(let i of r.splice(0)){let o=n(Me(i),e);if(Array.isArray(o)){r.push(...o);continue}else r.push(o)}return r}))}var za=[Fa,Wa,Ha,cs,Qa,es,ns,ls,as,fs],ln=Symbol();function ja(){return new y(e=>{let t=e.designSystem;return new y(r=>{for(let n of t.parseCandidate(r)){let i=M(n);for(let a of za)i=a(i,e);let o=t.printCandidate(i);if(r!==o)return o}return r})})}var Ka=["t","tr","r","br","b","bl","l","tl"];function Fa(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let t=e.root.slice(15);return Ka.includes(t)&&(e.root=`bg-linear-to-${t}`),e}return e}function Wa(e,t){let r=t.designSystem.storage[Rr];if(e.kind==="arbitrary"){let[n,i]=r(e.value,e.modifier===null?1:0);n!==e.value&&(e.value=n,i!==null&&(e.modifier=i))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[n,i]=r(e.value.value,e.modifier===null?1:0);n!==e.value.value&&(e.value.value=n,i!==null&&(e.modifier=i))}return e}function Ba(e,t){let r=t.designSystem.storage[Rr],n=vt(e);for(let[i]of n)if(i.kind==="arbitrary"){let[o]=r(i.selector,2);o!==i.selector&&(i.selector=o)}else if(i.kind==="functional"&&i.value?.kind==="arbitrary"){let[o]=r(i.value.value,2);o!==i.value.value&&(i.value.value=o)}return e}function Ha(e,t){return e.kind==="arbitrary"?e.value=Yi(e.value,t.designSystem):e.kind==="functional"&&e.value?.kind==="arbitrary"&&(e.value.value=Yi(e.value.value,t.designSystem)),e}function Yi(e,t){let r=t.theme.prefix?`--${t.theme.prefix}-spacing`:"--spacing",n=x(e);return w(n,i=>{if(!(i.kind!=="function"||i.value!=="calc")&&i.nodes.length===5&&!(i.nodes[2].kind!=="word"||i.nodes[2].value!=="*")&&!(i.nodes[0].kind!=="function"||i.nodes[0].value!=="var"||i.nodes[0].nodes.length!==1||i.nodes[0].nodes[0].kind!=="word"||i.nodes[0].nodes[0].value!==r))return v.Replace(x(`--spacing(${A([i.nodes[4]])})`))}),A(n)}var Rr=Symbol();function Ya(e){return t(e);function t(r){function n(u,c=0){let p=x(u);if(c&2)return[ht(p,s),null];let f=0,m=0;if(w(p,g=>{g.kind==="function"&&g.value==="theme"&&(f+=1,w(g.nodes,k=>k.kind==="separator"&&k.value.includes(",")?v.Stop:k.kind==="word"&&k.value==="/"?(m+=1,v.Stop):v.Skip))}),f===0)return[u,null];if(m===0)return[ht(p,l),null];if(m>1)return[ht(p,s),null];let d=null;return[ht(p,(g,k)=>{let S=b(g,"/").map(T=>T.trim());if(S.length>2)return null;if(p.length===1&&S.length===2&&c&1){let[T,C]=S;/^\d+%$/.test(C)?d=i(Number(C.slice(0,-1))):/^0?\.\d+$/.test(C)?d=i(o(Number(C))):d={kind:"arbitrary",value:C},g=T}return l(g,k)||s(g,k)}),d]}function i(u){if(Number.isInteger(u)){let c=r.theme.resolveValue(`${u}`,["--opacity"]);if(c===null)return{kind:"named",value:`${u}`};if((c.endsWith("%")?Number(c.slice(0,-1)):o(Number(c)))===u)return{kind:"named",value:`${u}`}}return{kind:"arbitrary",value:`${u}%`}}function o(u){return Number((u*100).toFixed(10))}function a(u,c=!0){let p=`--${te(ie(u))}`;return r.theme.get([p])?c&&r.theme.prefix?`--${r.theme.prefix}-${p.slice(2)}`:p:null}function l(u,c){let p=a(u);if(p)return c?`var(${p}, ${c})`:`var(${p})`;let f=ie(u);if(f[0]==="spacing"&&r.theme.get(["--spacing"])){let m=f[1];return Z(m)?`--spacing(${m})`:null}return null}function s(u,c){let p=b(u,"/").map(d=>d.trim());u=p.shift();let f=a(u,!1);if(!f)return null;let m=p.length>0?`/${p.join("/")}`:"";return c?`--theme(${f}${m}, ${c})`:`--theme(${f}${m})`}return n}}function ht(e,t){return w(e,(r,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,a=1;for(let u=a;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=A([r.nodes[u]]),a=u+1;o=Ga(o);let l=r.nodes.slice(a+1),s=l.length>0?t(o,A(l)):t(o);if(s===null)return;{let u=n.index-1;for(;u!==-1;){let c=n.siblings[u];if(c.kind==="separator"&&c.value.trim()===""){u-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(s=`(${s})`);break}}return v.Replace(x(s))}}),A(e)}function Ga(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*vt(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function ne(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function qa(e,t){let r=e.printCandidate(t);return e.theme.prefix&&r.startsWith(`${e.theme.prefix}:`)?r.slice(e.theme.prefix.length+1):r}var Sr=Symbol(),an=1536,Ja=an/16;function Gi(e,t,r){let n=t.resolveThemeValue("--spacing");if(n===void 0)return!1;let i=z.get(et(n,r));if(i===null)return!1;let[o,a]=i,l=e*o;return a==="px"?l<=an:a==="rem"?l<=Ja:!1}function Za(e,t){let r=e.resolveThemeValue("--spacing");if(r===void 0)return null;r=et(r,t?.rem??null);let n=z.get(r);if(!n)return null;let[i,o]=n;return new y(a=>{if(i===0)return null;let l=z.get(et(a,t?.rem??null));if(!l)return null;let[s,u]=l;return u!==o?null:s/i})}function Qa(e,t){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let r=t.designSystem,n=r.storage[Vr].get(t.signatureOptions),i=r.storage[se].get(t.signatureOptions),o=r.storage[rt].get(t.signatureOptions),a=r.printCandidate(e),l=i.get(a);if(typeof l!="string")return e;for(let u of s(l,e))if(o(e,u)&&Xa(r,e,u))return u;return e;function*s(u,c){let p=n.get(u);if(p.length>1){let f;for(let m of p)if(m[0]!=="-"){if(f)return;f=m}if(f)for(let m of ne(r,f))yield m;return}if(p.length===0&&c.modifier){let f={...c,modifier:null},m=i.get(r.printCandidate(f));if(typeof m=="string")for(let d of s(m,f))yield Object.assign({},d,{modifier:c.modifier})}if(p.length===1)for(let f of ne(r,p[0]))yield f;else if(p.length===0){let f=c.kind==="arbitrary"?c.value:c.value?.value??null;if(f===null)return;if(t.signatureOptions.rem!==null&&c.kind==="functional"&&c.value?.kind==="arbitrary"){let h=r.storage[Sr]?.get(f)??null;h!==null&&Z(h)&&Gi(h,r,t.signatureOptions.rem)&&(yield Object.assign({},c,{value:{kind:"named",value:h,fraction:null}}))}let m=r.storage[Sr]?.get(f)??null,d="";m!==null&&m<0&&(d="-",m=Math.abs(m));for(let h of Array.from(r.utilities.keys("functional")).sort((g,k)=>+(g[0]==="-")-+(k[0]==="-"))){d&&(h=`${d}${h}`);for(let g of ne(r,`${h}-${f}`))yield g;if(c.modifier)for(let g of ne(r,`${h}-${f}${c.modifier}`))yield g;if(m!==null&&Z(m)&&Gi(m,r,t.signatureOptions.rem)){for(let g of ne(r,`${h}-${m}`))yield g;if(c.modifier)for(let g of ne(r,`${h}-${m}${fr(c.modifier)}`))yield g}for(let g of ne(r,`${h}-[${f}]`))yield g;if(c.modifier)for(let g of ne(r,`${h}-[${f}]${fr(c.modifier)}`))yield g}}}}function Xa(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(`
7
+ `),o=!0;return w(x(n),a=>{if(a.kind==="function"&&a.value==="var"){let l=a.nodes[0].value;if(!new RegExp(`var\\(${l}[,)]\\s*`,"g").test(i)||i.includes(`${l}:`))return o=!1,v.Stop}}),o}function es(e,t){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=t.designSystem,n=r.storage[Vr].get(t.signatureOptions),i=r.storage[se].get(t.signatureOptions),o=r.storage[rt].get(t.signatureOptions),a=r.printCandidate(e),l=i.get(a);if(typeof l!="string")return e;for(let u of s(l,e))if(o(e,u))return u;return e;function*s(u,c){let p=n.get(u);if(p.length>1){let f;for(let m of p)if(m[0]!=="-"){if(f)return;f=m}if(f)for(let m of ne(r,f))yield m;return}if(p.length===0&&c.modifier){let f={...c,modifier:null},m=i.get(r.printCandidate(f));if(typeof m=="string")for(let d of s(m,f))yield Object.assign({},d,{modifier:c.modifier})}if(p.length===1)for(let f of ne(r,p[0]))yield f}}var ts=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),rs=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*is(e){let t=ts.get(e);t&&(yield t);for(let[r,n]of rs){let i=e.replace(r,n);i!==e&&(yield i)}}function ns(e,t){let r=t.designSystem,n=r.storage[rt].get(t.signatureOptions),i=qa(r,e);for(let o of is(i)){if(!n(e,o))continue;let[a]=ne(r,o);return a}return e}function os(e,t){let r=t.designSystem,n=r.storage[wt].get(t.signatureOptions.rem),i=r.storage[pn].get(t.signatureOptions.rem),o=vt(e);for(let[a]of o){if(a.kind==="compound")continue;let l=r.printVariant(a),s=n.get(l);if(typeof s!="string")continue;let u=i.get(s);if(u.length===0||u.includes(l))continue;let c=u[0],p=r.parseVariant(c);p!==null&&W(a,p)}return e}function ls(e,t){let r=t.designSystem,n=r.storage[se].get(t.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let i=r.printCandidate({...e,value:{...e.value,dataType:null}});n.get(r.printCandidate(e))===n.get(i)&&(e.value.dataType=null)}return e}function as(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=t.designSystem,n=r.storage[se].get(t.signatureOptions),i=n.get(r.printCandidate(e));if(i===null)return e;for(let o of sn(e))if(n.get(r.printCandidate({...e,value:o}))===i)return e.value=o,e;return e}function ss(e){let t=vt(e);for(let[r]of t)if(r.kind==="functional"&&r.root==="data"&&r.value?.kind==="arbitrary"&&!r.value.value.includes("="))r.value={kind:"named",value:r.value.value};else if(r.kind==="functional"&&r.root==="aria"&&r.value?.kind==="arbitrary"&&(r.value.value.endsWith("=true")||r.value.value.endsWith('="true"')||r.value.value.endsWith("='true'"))){let[n,i]=b(r.value.value,"=");if(n[n.length-1]==="~"||n[n.length-1]==="|"||n[n.length-1]==="^"||n[n.length-1]==="$"||n[n.length-1]==="*")continue;r.value={kind:"named",value:r.value.value.slice(0,r.value.value.indexOf("="))}}else r.kind==="functional"&&r.root==="supports"&&r.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(r.value.value)&&(r.value={kind:"named",value:r.value.value});return e}function*sn(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("%")&&Z(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,a]=t.split("/");j(o)&&j(a)&&(yield{kind:"named",value:o,fraction:`${o}/${a}`})}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,a)=>o.length-a.length);for(let o of i)yield*sn(e,o,r)}function qi(e){return!(e.length===1&&e[0].kind==="list")}function kt(e){return e.value[0]==="["&&e.value[e.value.length-1]==="]"}function us(e,t){let r=[e],n=t.designSystem,i=n.storage[wt].get(t.signatureOptions.rem),o=vt(e);for(let[a,l]of 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==="arbitrary"){if(a.relative)continue;let s=Ke(a.selector);if(!qi(s))continue;if(s.length===1&&s[0].kind==="complex"&&(s=s[0].nodes),l===null&&s.length===3&&s[0].kind==="selector"&&s[0].value==="&"&&s[1].kind==="combinator"&&s[1].value===">"&&s[2].kind==="selector"&&s[2].value==="*"){W(a,n.parseVariant("*"));continue}if(l===null&&s.length===3&&s[0].kind==="selector"&&s[0].value==="&"&&s[1].kind==="combinator"&&s[1].value===" "&&s[2].kind==="selector"&&s[2].value==="*"){W(a,n.parseVariant("**"));continue}if(l===null&&s.length===1&&s[0].kind==="compound"&&s[0].nodes.length===2&&s[0].nodes[0].kind==="selector"&&s[0].nodes[0].value==="&"&&s[0].nodes[1].kind==="function"&&s[0].nodes[1].value===":has"&&s[0].nodes[1].nodes.length===1&&s[0].nodes[1].nodes[0].kind==="selector"){W(a,n.parseVariant(`has-[${re(s[0].nodes[1].nodes,!0)}]`));continue}if(l===null&&s.length===3&&s[0].kind==="selector"&&s[1].kind==="combinator"&&s[1].value===" "&&s[2].kind==="selector"&&s[2].value==="&"){s.pop(),s.pop(),W(a,n.parseVariant(`in-[${re(s,!0)}]`));continue}if(l===null&&s[0].kind==="selector"&&(s[0].value==="@media"||s[0].value==="@supports")){let f=i.get(n.printVariant(a)),m=x(re(s,!0)),d=!1;if(w(m,h=>{if(h.kind==="word"&&h.value==="not")return d=!0,v.Replace([])}),m=x(A(m)),w(m,h=>{h.kind==="separator"&&h.value!==" "&&h.value.trim()===""&&(h.value=" ")}),d){let h=n.parseVariant(`not-[${A(m)}]`);if(h===null)continue;let g=i.get(n.printVariant(h));if(f===g){W(a,h);continue}}}let u=null;l===null&&s.length===3&&s[0].kind==="selector"&&s[0].value==="&"&&s[1].kind==="combinator"&&s[1].value===">"&&s[2].kind==="selector"&&(s[2].value[0]===":"||kt(s[2]))&&(s=[s[2]],u=n.parseVariant("*")),l===null&&s.length===3&&s[0].kind==="selector"&&s[0].value==="&"&&s[1].kind==="combinator"&&s[1].value===" "&&s[2].kind==="selector"&&(s[2].value[0]===":"||kt(s[2]))&&(s=[s[2]],u=n.parseVariant("**"));let c=s;if(w(c,{enter(f){if(f.kind==="selector"&&f.value==="&")return v.Replace([]);if(f.kind==="function")return v.Skip},exit(f){if(f.kind==="compound"&&f.nodes.length===1)return v.ReplaceSkip(f.nodes)}}),c.length!==1)continue;let p=c[0];if(p.kind==="function"&&p.value===":is"){if(!qi(p.nodes)||p.nodes.length!==1||p.nodes[0].kind==="selector"&&!kt(p.nodes[0]))continue;p=p.nodes[0]}if(p.kind==="function"&&p.value[0]===":"||p.kind==="selector"&&p.value[0]===":"){let f=p,m=!1;if(f.kind==="function"&&f.value===":not"){if(m=!0,f.nodes.length!==1||f.nodes[0].kind!=="selector"&&f.nodes[0].kind!=="function"||f.nodes[0].value[0]!==":")continue;f=f.nodes[0]}let d=(g=>{if(g===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="odd")return m?(m=!1,"even"):"odd";if(g===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="even")return m?(m=!1,"odd"):"even";for(let[k,S]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===k&&f.kind==="function"&&f.nodes.length===1)return f.nodes.length===1&&f.nodes[0].kind==="value"&&j(f.nodes[0].value)?`${S}-${f.nodes[0].value}`:`${S}-[${re(f.nodes,!0)}]`;if(m){let k=i.get(n.printVariant(a)),S=i.get(`not-[${g}]`);if(k===S)return`[&${g}]`}return null})(f.value);if(d===null){if(u)return W(a,{kind:"arbitrary",selector:wr(p)?`&${p.value}`:p.value,relative:!1}),[u,a];continue}m&&(d=`not-${d}`);let h=n.parseVariant(d);if(h===null)continue;W(a,h)}else if(p.kind==="selector"&&kt(p)){let f=gr(p.value);if(f===null)continue;if(f.attribute.startsWith("data-")){let m=f.attribute.slice(5);W(a,{kind:"functional",root:"data",modifier:null,value:f.value===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}else if(f.attribute.startsWith("aria-")){let m=f.attribute.slice(5);W(a,{kind:"functional",root:"aria",modifier:null,value:f.value===null?{kind:"arbitrary",value:m}:f.operator==="="&&f.value==="true"&&f.sensitivity===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${f.attribute}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}else W(a,{kind:"arbitrary",selector:p.value,relative:!1})}if(u)return[u,a]}return r}function cs(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let n=t.designSystem.storage[rt].get(t.signatureOptions),i=x(e.value.value);if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let[o,a]=tt(i,null,!1);if(o){let l=M(e);l.value.value=A(a),n(e,l)&&(e=l,i=a)}}if(e.root[0]==="-"){if(i.length===1&&i[0].kind==="function"&&i[0].value==="var")return e;let o=x(`calc(${e.value.value} * -1)`),[a,l]=tt(o,null,!1);if(a){let s=M(e);s.root=s.root.slice(1),s.value.value=A(l),n(e,s)&&(e=s,i=l)}}if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let o=i[0].nodes;if(o.length===5&&o[1].kind==="separator"&&o[1].value===" "&&o[2].kind==="word"&&o[2].value==="*"&&o[3].kind==="separator"&&o[3].value===" "){let a=o[4].kind==="word"&&o[4].value==="-1"?o[0]:o[0].kind==="word"&&o[0].value==="-1"?o[4]:null;if(a){let l=M(e);l.root=`-${e.root}`,l.value.value=A([a]),n(e,l)&&(e=l)}}}return e}function fs(e,t){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=t.designSystem,n=r.storage[se].get(t.signatureOptions),i=n.get(r.printCandidate(e)),o=e.modifier;if(i===n.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let a={kind:"named",value:o.value.endsWith("%")?o.value.includes(".")?`${Number(o.value.slice(0,-1))}`:o.value.slice(0,-1):o.value,fraction:null};if(i===n.get(r.printCandidate({...e,modifier:a})))return e.modifier=a,e}{let a={kind:"named",value:`${parseFloat(o.value)*100}`,fraction:null};if(i===n.get(r.printCandidate({...e,modifier:a})))return e.modifier=a,e}return e}var se=Symbol();function ps(e){return new y(t=>new y(r=>{try{return q(un(e,r,t))}catch{return Symbol()}}))}var ms=Symbol();function ds(e){return new y(t=>new y(r=>{try{let n=new y(()=>new Set),i=un(e,r,t,n),o=[];return w(i,a=>{a.kind==="declaration"&&o.push(Array.from(n.get(a)).sort().join(" "))}),o}catch{return null}}))}function un(e,t,r,n){t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let i=[pe(".x",[E("@apply",t)])];return Cs(e,()=>{for(let o of e.parseCandidate(t))e.compileAstNodes(o,1);it(i,e)}),cn(e,i,r,n),i}var Ji=/#(?:[a-f0-9]{8}|[a-f0-9]{6}|[a-f0-9]{4}|[a-f0-9]{3})/gi,gs={"--tw-duration":"transition-duration","--tw-ease":"transition-timing-function","--tw-leading":"line-height","--tw-tracking":"letter-spacing"};function cn(e,t,r,n){let{rem:i}=r;return w(t,{enter(o,a){if(o.kind==="declaration"){if(o.value===void 0||o.property==="--tw-sort")return v.Replace([]);if(o.property.startsWith("--tw-")){let f=gs[o.property]??o.property.slice(5);if(a.siblings.some(m=>m.kind==="declaration"&&m.property===f&&o.value===m.value&&o.important===m.important))return v.Replace([])}if(r.features&1){let f=_i(o,r.features);if(f)return v.Replace(f)}o.value.includes("var(")&&(o.value=ks(o.value,e,n?.get(o)));let l=x(o.value),[s,u]=tt(l,i),[c,p]=Si(u);(s||c)&&(o.value=A(p)),o.value=pr(o.value)}else{if(o.kind==="context"||o.kind==="at-root")return v.Replace(o.nodes);if(o.kind==="comment")return v.Replace([]);if(o.kind==="at-rule"&&o.name==="@property")return v.Replace([])}},exit(o){if(o.kind==="rule"||o.kind==="at-rule"){if(o.nodes.length>1){let a=new Set;for(let l=o.nodes.length-1;l>=0;l--){let s=o.nodes[l];s.kind==="declaration"&&s.value!==void 0&&(a.has(s.property)&&o.nodes.splice(l,1),a.add(s.property))}}o.nodes.sort((a,l)=>a.kind!=="declaration"||l.kind!=="declaration"?0:a.property.localeCompare(l.property))}else if(o.kind==="declaration"&&o.value){if(o.property[0]==="-"&&o.property[1]==="-")return;Ji.lastIndex=0,o.value=o.value.replace(Ji,a=>a.toLowerCase())}}}),t}var hs=["initial","inherit","revert","revert-layer","revert-rule","unset"];function ks(e,t,r){let n=!1,i=x(e),o=new Set;return w(i,a=>{if(a.kind!=="function"||a.value!=="var"||a.nodes.length!==1&&a.nodes.length<3)return;let l=a.nodes[0].value;t.theme.prefix&&l.startsWith(`--${t.theme.prefix}-`)&&(l=l.slice(`--${t.theme.prefix}-`.length));let s=t.resolveThemeValue(l);if(!o.has(l)&&(o.add(l),s!==void 0&&!hs.includes(s.toLowerCase())&&(a.nodes.length===1&&(n=!0,a.nodes.push(...x(`,${s}`))),a.nodes.length>=3))){let u=A(a.nodes),c=`${a.nodes[0].value},${s}`;if(u===c)return n=!0,r?.add(l),v.Replace(x(s))}}),n?A(i):e}var fn=Symbol();function ys(){return new y(e=>new y(t=>new y(r=>new Set)))}var $r=Symbol();function vs(e){return new y(t=>new y(r=>{let n=new y(o=>new Set);e.theme.prefix&&!r.startsWith(e.theme.prefix)&&(r=`${e.theme.prefix}:${r}`);let i=e.parseCandidate(r);if(i.length===0)return n;try{let o=e.compileAstNodes(i[0]).map(a=>Q(a.node));w(cn(e,o,t),a=>{a.kind==="declaration"&&(n.get(a.property).add(a.value),e.storage[fn].get(t).get(a.property).get(a.value).add(r))})}catch{}return n}))}var Vr=Symbol();function ws(e){return new y(t=>{let r=e.storage[se].get(t),n=new y(()=>[]);for(let[i,o]of e.getClassList()){let a=r.get(i);if(typeof a=="string"){if(i[0]==="-"&&i.endsWith("-0")){let l=r.get(i.slice(1));if(typeof l=="string"&&a===l)continue}n.get(a).push(i),e.storage[$r].get(t).get(i);for(let l of o.modifiers){if(Z(l))continue;let s=`${i}/${l}`,u=r.get(s);typeof u=="string"&&(n.get(u).push(s),e.storage[$r].get(t).get(s))}}}return n})}var wt=Symbol();function bs(e){return new y(t=>new y(r=>{try{r=e.theme.prefix&&!r.startsWith(e.theme.prefix)?`${e.theme.prefix}:${r}`:r;let n=[pe(".x",[E("@apply",`${r}:flex`)])];return it(n,e),w(n,o=>{if(o.kind==="at-rule")o.params=et(o.params,t),o.params.includes(" ")&&(o.params=o.params.replaceAll(" ",""));else if(o.kind==="rule"){let a=Ke(o.selector),l=!1;w(a,s=>{if(s.kind==="list"||s.kind==="combinator")l=!0;else if(s.kind==="function"&&s.value===":is"){if(s.nodes.length===1)return l=!0,v.Replace(s.nodes);if(s.nodes.length===2&&s.nodes[0].kind==="selector"&&s.nodes[0].value==="*"&&s.nodes[1].kind==="selector"&&s.nodes[1].value[0]===":")return l=!0,v.Replace(s.nodes[1])}else s.kind==="function"&&s.value[0]===":"&&s.nodes[0]?.kind==="selector"&&s.nodes[0]?.value[0]===":"&&(l=!0,s.nodes.unshift({kind:"selector",value:"*"}))}),l&&(o.selector=re(a,!0))}}),q(n)}catch{return Symbol()}}))}var pn=Symbol();function xs(e){return new y(t=>{let r=e.storage[wt].get(t),n=new y(()=>[]);for(let[i,o]of e.variants.entries())if(o.kind==="static"){let a=r.get(i);if(typeof a!="string")continue;n.get(a).push(i)}else if(o.kind==="functional")for(let a of e.variants.getCompletions(i)){let l=i==="@"?`@${a}`:`${i}-${a}`,s=r.get(l);typeof s=="string"&&n.get(s).push(l)}return n})}function Cs(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 im=new y(e=>{let t=[];return w(x(e),r=>{if(!(r.kind!=="function"||r.value!=="var"))return w(r.nodes,n=>{n.kind!=="word"||n.value[0]!=="-"||n.value[1]!=="-"||t.push(n.value)}),v.Skip}),t});function nt(e,t,{onInvalidCandidate:r,respectImportant:n}={}){let i=new Map,o=[],a=new Map;for(let u of e){if(t.invalidCandidates.has(u)){r?.(u);continue}let c=t.parseCandidate(u);if(c.length===0){r?.(u);continue}a.set(u,c)}let l=0;(n??!0)&&(l|=1);let s=a.size>1?t.getVariantOrder():null;for(let[u,c]of a){let p=!1;for(let f of c){let m=t.compileAstNodes(f,l);if(m.length!==0){p=!0;for(let{node:d,propertySort:h}of m){let g=0n;if(s!==null)for(let k of f.variants)g|=1n<<BigInt(s.get(k));i.set(d,{properties:h,variants:g,candidate:u}),o.push(d)}}}p||r?.(u)}return o.sort((u,c)=>{let p=i.get(u),f=i.get(c);if(p.variants-f.variants!==0n)return Number(p.variants-f.variants);let m=0;for(;m<p.properties.order.length&&m<f.properties.order.length&&p.properties.order[m]===f.properties.order[m];)m+=1;return(p.properties.order[m]??1/0)-(f.properties.order[m]??1/0)||f.properties.count-p.properties.count||gt(p.candidate,f.candidate)}),{astNodes:o,nodeSorting:i}}function it(e,t){let r=0,n=H("&",e),i=new Set,o=new y(()=>new Set),a=new y(()=>new Set);w([n],(p,f)=>{if(p.kind==="at-rule"){if(p.name==="@keyframes")return w(p.nodes,m=>{if(m.kind==="at-rule"&&m.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),v.Skip;if(p.name==="@utility"){let m=p.params.replace(/-\*$/,"");a.get(m).add(p),w(p.nodes,d=>{if(!(d.kind!=="at-rule"||d.name!=="@apply")){i.add(p);for(let h of kn(d,t))o.get(p).add(h)}});return}if(p.name==="@apply"){if(f.parent===null)return;r|=1,i.add(f.parent);for(let m of kn(p,t))for(let d of f.path())i.has(d)&&o.get(d).add(m)}}});let l=new Set,s=[],u=new Set;function c(p,f=[]){if(!l.has(p)){if(u.has(p)){let m=f[(f.indexOf(p)+1)%f.length];throw p.kind==="at-rule"&&p.name==="@utility"&&m.kind==="at-rule"&&m.name==="@utility"&&w(p.nodes,d=>{if(d.kind!=="at-rule"||d.name!=="@apply")return;let h=d.params.split(/\s+/g);for(let g of h)for(let k of t.parseCandidate(g))switch(k.kind){case"arbitrary":break;case"static":case"functional":if(m.params.replace(/-\*$/,"")===k.root)throw new Error(`You cannot \`@apply\` the \`${g}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
8
8
 
9
- ${W([p])}
9
+ ${q([p])}
10
10
  Relies on:
11
11
 
12
- ${W([m])}`)}s.add(p);for(let m of a.get(p))for(let d of o.get(m))f.push(p),c(d,f),f.pop();u.add(p),s.delete(p),l.push(p)}}for(let p of i)c(p);for(let p of l)"nodes"in p&&k(p.nodes,f=>{if(f.kind!=="at-rule"||f.name!=="@apply")return;let m=f.params.split(/(\s+)/g),d={},g=0;for(let[h,v]of m.entries())h%2===0&&(d[v]=g),g+=v.length;{let h=Object.keys(d),v=Ge(h,t,{respectImportant:!1,onInvalidCandidate:T=>{if(t.theme.prefix&&!T.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${T}\`. Did you mean \`${t.theme.prefix}:${T}\`?`);if(t.invalidCandidates.has(T))throw new Error(`Cannot apply utility class \`${T}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let J=b(T,":");if(J.length>1){let et=J.pop();if(t.candidatesToCss([et])[0]){let Ve=t.candidatesToCss(J.map(Pe=>`${Pe}:[--tw-variant-check:1]`)),pe=J.filter((Pe,It)=>Ve[It]===null);if(pe.length>0){if(pe.length===1)throw new Error(`Cannot apply utility class \`${T}\` because the ${pe.map(Pe=>`\`${Pe}\``)} variant does not exist.`);{let Pe=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${T}\` because the ${Pe.format(pe.map(It=>`\`${It}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${T}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${T}\``)}}),C=f.src,I=v.astNodes.map(T=>{let J=v.nodeSorting.get(T)?.candidate,et=J?d[J]:void 0;if(T=G(T),!C||!J||et===void 0)return k([T],pe=>{pe.src=C}),T;let Ve=[C[0],C[1],C[2]];return Ve[1]+=7+et,Ve[2]=Ve[1]+J.length,k([T],pe=>{pe.src=Ve}),T}),q=[];for(let T of I)if(T.kind==="rule")for(let J of T.nodes)q.push(J);else q.push(T);return w.Replace(q)}});return r}function*ki(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 pl=32,ml=9;var dl=40;function bi(e,t=[]){let r=e,n="";for(let i=5;i<e.length;i++){let a=e.charCodeAt(i);if(a===pl||a===ml||a===dl){r=e.slice(0,i),n=e.slice(i);break}}return E(r.trim(),n.trim(),t)}function xi(e){let t,r=null,n=null,i=null;for(let a=0;a<e.length;a++){let o=e[a];if(o.kind!=="separator"){if(o.kind==="word"&&!t){if(!o.value||o.value[0]!=='"'&&o.value[0]!=="'")return null;t=o.value.slice(1,-1);continue}if(o.kind==="function"&&o.value.toLowerCase()==="url"||!t)return null;if((o.kind==="word"||o.kind==="function")&&o.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 o?r=S(o.nodes):r="";continue}if(o.kind==="function"&&o.value.toLowerCase()==="supports"){if(i)return null;i=S(o.nodes);continue}n=S(e.slice(a));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function Le(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function He(e,t,r,n=[]){for(let i of t)if(i!=null)for(let a of Reflect.ownKeys(i)){n.push(a);let o=r(e[a],i[a],n);o!==void 0?e[a]=o:!Le(e[a])||!Le(i[a])?e[a]=i[a]:e[a]=He({},[e[a],i[a]],r,n),n.pop()}return e}function Xt(e,t,r){return function(i,a){let o=i.lastIndexOf("/"),u=null;o!==-1&&(u=i.slice(o+1).trim(),i=i.slice(0,o).trim());let l=(()=>{let s=Q(i),[c,p]=gl(e.theme,s),f=r(Ai(t()??{},s)??null);if(typeof f=="string"&&(f=f.replace("<alpha-value>","1")),typeof c!="object")return typeof p!="object"&&p&4?f??c:c;if(f!==null&&typeof f=="object"&&!Array.isArray(f)){let m=He({},[f],(d,g)=>g);if(c===null&&Object.hasOwn(f,"__CSS_VALUES__")){let d={};for(let g in f.__CSS_VALUES__)d[g]=f[g],delete m[g];c=d}for(let d in c)d!=="__CSS_VALUES__"&&(f?.__CSS_VALUES__?.[d]&4&&Ai(m,d.split("-"))!==void 0||(m[it(d)]=c[d]));return m}if(Array.isArray(c)&&Array.isArray(p)&&Array.isArray(f)){let m=c[0],d=c[1];p[0]&4&&(m=f[0]??m);for(let g of Object.keys(d))p[1][g]&4&&(d[g]=f[1][g]??d[g]);return[m,d]}return c??f})();return u&&typeof l=="string"&&(l=Ie(l,u)),l??a}}function gl(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=Z(t),n=new Map,i=new y(()=>new Map),a=e.namespace(`--${r}`);if(a.size===0)return[null,0];let o=new Map;for(let[c,p]of a){if(!c||!c.includes("--")){n.set(c,p),o.set(c,e.getOptions(c?`--${r}-${c}`:`--${r}`));continue}let f=c.indexOf("--"),m=c.slice(0,f),d=c.slice(f+2);d=d.replace(/-([a-z])/g,(g,h)=>h.toUpperCase()),i.get(m===""?null:m).set(d,[p,e.getOptions(`--${r}${c}`)])}let u=e.getOptions(`--${r}`);for(let[c,p]of i){let f=n.get(c);if(typeof f!="string")continue;let m={},d={};for(let[g,[h,v]]of p)m[g]=h,d[g]=v;n.set(c,[f,m]),o.set(c,[u,d])}let l={},s={};for(let[c,p]of n)Si(l,[c??"DEFAULT"],p);for(let[c,p]of o)Si(s,[c??"DEFAULT"],p);return t[t.length-1]==="DEFAULT"?[l?.DEFAULT??null,s.DEFAULT??0]:"DEFAULT"in l&&Object.keys(l).length===1?[l.DEFAULT,s.DEFAULT??0]:(l.__CSS_VALUES__=s,[l,s])}function Ai(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}if(typeof e=="string")return;e=e[n]}return e}function Si(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 ct(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(i!=null&&i!==!1)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(F(n,[E("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push($(n,String(i)))}else if(Array.isArray(i))for(let a of i)typeof a=="string"?t.push($(n,a)):t.push(F(n,ct(a)));else t.push(F(n,ct(i)));return t}function $i(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(E("@keyframes",r,ct(n)));return t}var ft={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 $e(e){return{__BARE_VALUE__:e}}var X=$e(e=>{if(_(e.value))return e.value}),O=$e(e=>{if(_(e.value))return`${e.value}%`}),ge=$e(e=>{if(_(e.value))return`${e.value}px`}),Ti=$e(e=>{if(_(e.value))return`${e.value}ms`}),pt=$e(e=>{if(_(e.value))return`${e.value}deg`}),vl=$e(e=>{if(e.fraction===null)return;let[t,r]=b(e.fraction,"/");if(!(!_(t)||!_(r)))return e.fraction}),Ei=$e(e=>{if(_(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),wl={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",...vl},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"),...pt}),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",...ge},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:()=>({...ft}),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",...X},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"),...ge}),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",...X},flexShrink:{0:"0",DEFAULT:"1",...X},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",...X},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",...X},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",...X},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",...X},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))",...Ei},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))",...Ei},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",...pt},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",...X},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",...X},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ge},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ge},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",...ge},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ge},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...pt},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",...pt},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",...X},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",...ge},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ge},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",...Ti},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Ti},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",...X}};var kl={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Te(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(kl)};for(let i of t)er(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=xl(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function bl(e,t){if(Array.isArray(e)&&Le(e[0]))return e.concat(t);if(Array.isArray(t)&&Le(t[0])&&Le(e))return[e,...t];if(Array.isArray(t))return t}function er(e,{config:t,base:r,path:n,reference:i,src:a}){let o=[];for(let s of t.plugins??[])"__isOptionsFunction"in s?o.push({...s(),reference:i,src:a}):"handler"in s?o.push({...s,reference:i,src:a}):o.push({handler:s,reference:i,src:a});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 s of t.presets??[])er(e,{path:n,base:r,config:s,reference:i,src:a});for(let s of o)e.plugins.push(s),s.config&&er(e,{path:n,base:r,config:s.config,reference:!!s.reference,src:s.src??a});let u=t.content??[],l=Array.isArray(u)?u:u.files;for(let s of l)e.content.files.push(typeof s=="object"?s:{base:r,pattern:s});e.configs.push(t)}function xl(e){let t=new Set,r=Xt(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:ft});function i(a){return typeof a=="function"?a(n)??null:a??null}for(let a of e.configs){let o=a.theme??{},u=o.extend??{};for(let l in o)l!=="extend"&&t.add(l);Object.assign(e.theme,o);for(let l in u)e.extend[l]??=[],e.extend[l].push(u[l])}delete e.theme.extend;for(let a in e.extend){let o=[e.theme[a],...e.extend[a]];e.theme[a]=()=>{let u=o.map(i);return He({},u,bl)}}for(let a in e.theme)e.theme[a]=i(e.theme[a]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let a of Object.keys(e.theme.screens)){let o=e.theme.screens[a];o&&typeof o=="object"&&("raw"in o||"max"in o||"min"in o&&(e.theme.screens[a]=o.min))}return t}function Ri({center:e,padding:t,screens:r},n){let i=[],a=null;if(e&&i.push($("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push($("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){a=new Map;let o=Array.from(n.theme.namespace("--breakpoint").entries());if(o.sort((u,l)=>Be(u[1],l[1],"asc")),o.length>0){let[u]=o[0];i.push(E("@media",`(width >= --theme(--breakpoint-${u}))`,[$("max-width","none")]))}for(let[u,l]of Object.entries(r)){if(typeof l=="object")if("min"in l)l=l.min;else continue;a.set(u,E("@media",`(width >= ${l})`,[$("max-width",l)]))}}if(typeof t=="object"&&t!==null){let o=Object.entries(t).filter(([u])=>u!=="DEFAULT").map(([u,l])=>[u,n.theme.resolveValue(u,["--breakpoint"]),l]).filter(Boolean);o.sort((u,l)=>Be(u[1],l[1],"asc"));for(let[u,,l]of o)if(a&&a.has(u))a.get(u).nodes.push($("padding-inline",l));else{if(a)continue;i.push(E("@media",`(width >= theme(--breakpoint-${u}))`,[$("padding-inline",l)]))}}if(a)for(let[,o]of a)i.push(o);return i}function tr({addVariant:e,config:t}){let r=t("darkMode",null),[n,i=".dark"]=Array.isArray(r)?r:[r];if(n==="variant"){let a;if(Array.isArray(i)||typeof i=="function"?a=i:typeof i=="string"&&(a=[i]),Array.isArray(a))for(let o of a)o===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):o.includes("&")||(n=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=a}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 Ni(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 Sl=64;function ae(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function E(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function F(e,t=[]){return e.charCodeAt(0)===Sl?bi(e,t):ae(e,t)}function $(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function ut(e){return{kind:"comment",value:e}}function G(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(G),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(G),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(G),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(G),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function W(e,t){let r=0,n={file:null,code:""};function i(o,u=0){let l="",s=" ".repeat(u);if(o.kind==="declaration"){if(l+=`${s}${o.property}: ${o.value}${o.important?" !important":""};
13
- `,t){r+=s.length;let c=r;r+=o.property.length,r+=2,r+=o.value?.length??0,o.important&&(r+=11);let p=r;r+=2,o.dst=[n,c,p]}}else if(o.kind==="rule"){if(l+=`${s}${o.selector} {
14
- `,t){r+=s.length;let c=r;r+=o.selector.length,r+=1;let p=r;o.dst=[n,c,p],r+=2}for(let c of o.nodes)l+=i(c,u+1);l+=`${s}}
15
- `,t&&(r+=s.length,r+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let c=`${s}${o.name} ${o.params};
16
- `;if(t){r+=s.length;let p=r;r+=o.name.length,r+=1,r+=o.params.length;let f=r;r+=2,o.dst=[n,p,f]}return c}if(l+=`${s}${o.name}${o.params?` ${o.params} `:" "}{
17
- `,t){r+=s.length;let c=r;r+=o.name.length,o.params&&(r+=1,r+=o.params.length),r+=1;let p=r;o.dst=[n,c,p],r+=2}for(let c of o.nodes)l+=i(c,u+1);l+=`${s}}
18
- `,t&&(r+=s.length,r+=2)}else if(o.kind==="comment"){if(l+=`${s}/*${o.value}*/
19
- `,t){r+=s.length;let c=r;r+=2+o.value.length+2;let p=r;o.dst=[n,c,p],r+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return l}let a="";for(let o of e)a+=i(o,0);return n.code=a,a}function $l(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 a=e.split(/[/\\]+/);return t!==!1&&a[a.length-1]===""&&a.pop(),n+a.join("/")}function rr(e){let t=$l(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function mt(e,t,r,n){if(e[0]!=="."){let u=await Di(e,t,n);if(!u)throw new Error(`Could not resolve '${e}' from '${t}'`);let l=await Oi(Pi(u).href);return{path:u,base:Vi.dirname(u),module:l.default??l}}let i=await Di(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[a,o]=await Promise.all([Oi(Pi(i).href+"?id="+Date.now()),xr(i)]);for(let u of o)r(u);return{path:i,base:Vi.dirname(i),module:a.default??a}}var _i=null;async function Oi(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 _i??=El(import.meta.url,{moduleCache:!1,fsCache:!1}),await _i.import(e)}}var nr=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],lg=Me.ResolverFactory.createResolver({fileSystem:new Me.CachedInputFileSystem(ir,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:nr});var Rl=Me.ResolverFactory.createResolver({fileSystem:new Me.CachedInputFileSystem(ir,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:nr}),Nl=Me.ResolverFactory.createResolver({fileSystem:new Me.CachedInputFileSystem(ir,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:nr});async function Di(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 Ii(Rl,e,t).catch(()=>Ii(Nl,e,t))}function Ii(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(a,o)=>{if(a)return i(a);n(o)}))}var Ji=To(ji());import ht from"tree-sitter";import yt from"tree-sitter-typescript";var or=new ht;or.setLanguage(yt.typescript);var ar=String.raw,Ul=new ht.Query(yt.typescript,ar`
12
+ ${q([m])}`)}u.add(p);for(let m of o.get(p))for(let d of a.get(m))f.push(p),c(d,f),f.pop();l.add(p),u.delete(p),s.push(p)}}for(let p of i)c(p);for(let p of s)"nodes"in p&&w(p.nodes,f=>{if(f.kind!=="at-rule"||f.name!=="@apply")return;let m=f.params.split(/(\s+)/g),d={},h=[],g=[],k=0;for(let[T,C]of m.entries())T%2===0&&(C[0]==="-"&&C[1]==="-"?g.push(C):h.push(C),d[C]=k),k+=C.length;if(g.length){if(h.length===0)return v.Skip;let T=g.join(" ");throw new Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${T}\` into a separate rule.`)}if(f.nodes.length>0&&h.length){let T=h.join(" ");throw new Error(`The rule \`@apply ${T}\` must not have a body.`)}{let T=Object.keys(d),C=nt(T,t,{respectImportant:!1,onInvalidCandidate:V=>{if(t.theme.prefix&&!V.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${V}\`. Did you mean \`${t.theme.prefix}:${V}\`?`);if(t.invalidCandidates.has(V))throw new Error(`Cannot apply utility class \`${V}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let ee=b(V,":");if(ee.length>1){let ft=ee.pop();if(t.candidatesToCss([ft])[0]){let Ie=t.candidatesToCss(ee.map(Le=>`${Le}:[--tw-variant-check:1]`)),ye=ee.filter((Le,tr)=>Ie[tr]===null);if(ye.length>0){if(ye.length===1)throw new Error(`Cannot apply utility class \`${V}\` because the ${ye.map(Le=>`\`${Le}\``)} variant does not exist.`);{let Le=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${V}\` because the ${Le.format(ye.map(tr=>`\`${tr}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${V}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${V}\``)}}),R=f.src,ke=C.astNodes.map(V=>{let ee=C.nodeSorting.get(V)?.candidate,ft=ee?d[ee]:void 0;if(V=Q(V),!R||!ee||ft===void 0)return w([V],ye=>{ye.src=R}),V;let Ie=[R[0],R[1],R[2]];return Ie[1]+=7+ft,Ie[2]=Ie[1]+ee.length,w([V],ye=>{ye.src=Ie}),V}),De=[];for(let V of ke)if(V.kind==="rule")for(let ee of V.nodes)De.push(ee);else De.push(V);return v.Replace(De)}});return r}function*kn(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 Ns=32,Es=9;var Rs=40;function vn(e,t=[]){let r=e,n="";for(let i=5;i<e.length;i++){let o=e.charCodeAt(i);if(o===Ns||o===Es||o===Rs){r=e.slice(0,i),n=e.slice(i);break}}return E(r.trim(),n.trim(),t)}function wn(e){let t,r=null,n=null,i=null;for(let o=0;o<e.length;o++){let a=e[o];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(i)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in a?r=A(a.nodes):r="";continue}if(a.kind==="function"&&a.value.toLowerCase()==="supports"){if(i)return null;i=A(a.nodes);continue}n=A(e.slice(o));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function We(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function lt(e,t,r,n=[]){for(let i of t)if(i!=null)for(let o of Reflect.ownKeys(i)){n.push(o);let a=r(e[o],i[o],n);a!==void 0?e[o]=a:!We(e[o])||!We(i[o])?e[o]=i[o]:e[o]=lt({},[e[o],i[o]],r,n),n.pop()}return e}function Or(e,t,r){return function(i,o){let a=i.lastIndexOf("/"),l=null;a!==-1&&(l=i.slice(a+1).trim(),i=i.slice(0,a).trim());let s=(()=>{let u=ie(i),[c,p]=Vs(e.theme,u),f=r(bn(t()??{},u)??null);if(typeof f=="string"&&(f=f.replace("<alpha-value>","1")),typeof c!="object")return typeof p!="object"&&p&4?f??c:c;if(f!==null&&typeof f=="object"&&!Array.isArray(f)){let m=lt({},[f],(d,h)=>h);if(c===null&&Object.hasOwn(f,"__CSS_VALUES__")){let d={};for(let h in f.__CSS_VALUES__)d[h]=f[h],delete m[h];c=d}for(let d in c)d!=="__CSS_VALUES__"&&(f?.__CSS_VALUES__?.[d]&4&&bn(m,d.split("-"))!==void 0||(m[Qe(d)]=c[d]));return m}if(Array.isArray(c)&&Array.isArray(p)&&Array.isArray(f)){let m=c[0],d=c[1];p[0]&4&&(m=f[0]??m);for(let h of Object.keys(d))p[1][h]&4&&(d[h]=f[1][h]??d[h]);return[m,d]}return u.length>1&&c!==null&&typeof c=="object"&&!Array.isArray(c)&&"DEFAULT"in c?c.DEFAULT:c??f})();return l&&typeof s=="string"&&(s=ze(s,l)),s??o}}function Vs(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=te(t),n=new Map,i=new y(()=>new Map),o=e.namespace(`--${r}`);if(o.size===0)return[null,0];let a=new Map;for(let[c,p]of o){if(!c||!c.includes("--")){n.set(c,p),a.set(c,e.getOptions(c?`--${r}-${c}`:`--${r}`));continue}let f=c.indexOf("--"),m=c.slice(0,f),d=c.slice(f+2);d=d.replace(/-([a-z])/g,(h,g)=>g.toUpperCase()),i.get(m===""?null:m).set(d,[p,e.getOptions(`--${r}${c}`)])}let l=e.getOptions(`--${r}`);for(let[c,p]of i){let f=n.get(c);if(typeof f!="string")continue;let m={},d={};for(let[h,[g,k]]of p)m[h]=g,d[h]=k;n.set(c,[f,m]),a.set(c,[l,d])}let s={},u={};for(let[c,p]of n)xn(s,[c??"DEFAULT"],p);for(let[c,p]of a)xn(u,[c??"DEFAULT"],p);return t[t.length-1]==="DEFAULT"?[s?.DEFAULT??null,u.DEFAULT??0]:t.length>1&&"DEFAULT"in s&&Object.keys(s).length===1?[s.DEFAULT,u.DEFAULT??0]:(s.__CSS_VALUES__=u,[s,u])}function bn(e,t){for(let r=0;r<t.length;++r){let n=t[r];if(e==null||typeof e!="object"||!Object.hasOwn(e,n)){if(t[r+1]===void 0)return;t[r+1]=`${n}-${t[r+1]}`;continue}e=e[n]}return e}function xn(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 xt(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(i!=null&&i!==!1)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(H(n,[E("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(N(n,String(i)))}else if(Array.isArray(i))for(let o of i)typeof o=="string"?t.push(N(n,o)):t.push(H(n,xt(o)));else t.push(H(n,xt(i)));return t}function Cn(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(E("@keyframes",r,xt(n)));return t}var Ct={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 none)",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 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},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)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},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 Re(e){return{__BARE_VALUE__:e}}var le=Re(e=>{if(j(e.value))return e.value}),K=Re(e=>{if(j(e.value))return`${e.value}%`}),we=Re(e=>{if(j(e.value))return`${e.value}px`}),An=Re(e=>{if(j(e.value))return`${e.value}ms`}),At=Re(e=>{if(j(e.value))return`${e.value}deg`}),Os=Re(e=>{if(e.fraction===null)return;let[t,r]=b(e.fraction,"/");if(!(!j(t)||!j(r)))return e.fraction}),Sn=Re(e=>{if(j(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Ds={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",...Os},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...K}),backdropContrast:({theme:e})=>({...e("contrast"),...K}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...K}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...At}),backdropInvert:({theme:e})=>({...e("invert"),...K}),backdropOpacity:({theme:e})=>({...e("opacity"),...K}),backdropSaturate:({theme:e})=>({...e("saturate"),...K}),backdropSepia:({theme:e})=>({...e("sepia"),...K}),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",...we},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",...K},caretColor:({theme:e})=>e("colors"),colors:()=>({...Ct}),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",...le},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...K},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"),...we}),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",...le},flexShrink:{0:"0",DEFAULT:"1",...le},fontFamily:{sans:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"','"Noto Sans"',"Arial","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%",...K},grayscale:{0:"0",DEFAULT:"100%",...K},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",...le},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",...le},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",...le},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",...le},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))",...Sn},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))",...Sn},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",...At},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%",...K},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",...le},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",...K},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",...le},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},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",...we},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...At},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...K},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",...K},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%",...K},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...At},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",...le},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",...we},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},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",...An},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...An},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",...le}};var Is={blocklist:[],future:{},experimental:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Ve(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Is)};for(let i of t)Dr(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=Us(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function Ls(e,t){if(Array.isArray(e)&&We(e[0]))return e.concat(t);if(Array.isArray(t)&&We(t[0])&&We(e))return[e,...t];if(Array.isArray(t))return t}function Dr(e,{config:t,base:r,path:n,reference:i,src:o}){let a=[];for(let u of t.plugins??[])"__isOptionsFunction"in u?a.push({...u(),reference:i,src:o}):"handler"in u?a.push({...u,reference:i,src:o}):a.push({handler:u,reference:i,src:o});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 u of t.presets??[])Dr(e,{path:n,base:r,config:u,reference:i,src:o});for(let u of a)e.plugins.push(u),u.config&&Dr(e,{path:n,base:r,config:u.config,reference:!!u.reference,src:u.src??o});let l=t.content??[],s=Array.isArray(l)?l:l.files;for(let u of s)e.content.files.push(typeof u=="object"?u:{base:r,pattern:u});e.configs.push(t)}function Us(e){let t=new Set,r=Or(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:Ct});function i(o){return typeof o=="function"?o(n)??null:o??null}for(let o of e.configs){let a=o.theme??{},l=a.extend??{};for(let s in a)s!=="extend"&&t.add(s);Object.assign(e.theme,a);for(let s in l)e.extend[s]??=[],e.extend[s].push(l[s])}delete e.theme.extend;for(let o in e.extend){let a=[e.theme[o],...e.extend[o]];e.theme[o]=()=>{let l=a.map(i);return lt({},l,Ls)}}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 a=e.theme.screens[o];a&&typeof a=="object"&&("raw"in a||"max"in a||"min"in a&&(e.theme.screens[o]=a.min))}return t}function $n({center:e,padding:t,screens:r},n){let i=[],o=null;if(e&&i.push(N("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(N("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){o=new Map;let a=Array.from(n.theme.namespace("--breakpoint").entries());if(a.sort((l,s)=>Ze(l[1],s[1],"asc")),a.length>0){let[l]=a[0];i.push(E("@media",`(width >= --theme(--breakpoint-${l}))`,[N("max-width","none")]))}for(let[l,s]of Object.entries(r)){if(typeof s=="object")if("min"in s)s=s.min;else continue;o.set(l,E("@media",`(width >= ${s})`,[N("max-width",s)]))}}if(typeof t=="object"&&t!==null){let a=Object.entries(t).filter(([l])=>l!=="DEFAULT").map(([l,s])=>[l,n.theme.resolveValue(l,["--breakpoint"]),s]).filter(Boolean);a.sort((l,s)=>Ze(l[1],s[1],"asc"));for(let[l,,s]of a)if(o&&o.has(l))o.get(l).nodes.push(N("padding-inline",s));else{if(o)continue;i.push(E("@media",`(width >= theme(--breakpoint-${l}))`,[N("padding-inline",s)]))}}if(o)for(let[,a]of o)i.push(a);return i}function Ir({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 a of o)a===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):a.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 Tn(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 zs=64;function pe(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function E(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function H(e,t=[]){return e.charCodeAt(0)===zs?vn(e,t):pe(e,t)}function N(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function bt(e){return{kind:"comment",value:e}}function Q(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(Q),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(Q),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(Q),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(Q),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}var Nn=new WeakSet,En=new WeakMap;function q(e,t){let r=0,n={file:null,code:""};function i(l,s=0){if(!t&&Nn.has(l)){let u=En.get(l);if(u!==void 0&&u.depth===s)return u.css;let c=o(l,s);return En.set(l,{depth:s,css:c}),c}return o(l,s)}function o(l,s){let u="",c=" ".repeat(s);if(l.kind==="declaration"){if(u+=`${c}${l.property}: ${l.value}${l.important?" !important":""};
13
+ `,t){r+=c.length;let p=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let f=r;r+=2,l.dst=[n,p,f]}}else if(l.kind==="rule"){if(u+=`${c}${l.selector} {
14
+ `,t){r+=c.length;let p=r;r+=l.selector.length,r+=1;let f=r;l.dst=[n,p,f],r+=2}for(let p of l.nodes)u+=i(p,s+1);u+=`${c}}
15
+ `,t&&(r+=c.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let p=`${c}${l.name} ${l.params};
16
+ `;if(t){r+=c.length;let f=r;r+=l.name.length,r+=1,r+=l.params.length;let m=r;r+=2,l.dst=[n,f,m]}return p}if(u+=`${c}${l.name}${l.params?` ${l.params} `:" "}{
17
+ `,t){r+=c.length;let p=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let f=r;l.dst=[n,p,f],r+=2}for(let p of l.nodes)u+=i(p,s+1);u+=`${c}}
18
+ `,t&&(r+=c.length,r+=2)}else if(l.kind==="comment"){if(u+=`${c}/*${l.value}*/
19
+ `,t){r+=c.length;let p=r;r+=2+l.value.length+2;let f=r;l.dst=[n,p,f],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return u}let a="";for(let l of e)a+=i(l,0);return n.code=a,a}function js(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 Lr(e){let t=js(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function St(e,t,r,n){if(e[0]!=="."){let l=await On(e,t,n);if(!l)throw new Error(`Could not resolve '${e}' from '${t}'`);let s=await _n(Vn(l).href);return{path:l,base:Ur.dirname(l),module:s.default??s}}let i=await On(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,a]=await Promise.all([_n(Vn(i).href+"?id="+Date.now()),li(i)]);for(let l of a)r(l);return{path:i,base:Ur.dirname(i),module:o.default??o}}var Pn=null;async function _n(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 Pn??=Ks(import.meta.url,{moduleCache:!1,fsCache:!1}),await Pn.import(e)}}var zr=["node_modules",...process.env.NODE_PATH?[...process.env.NODE_PATH.split(Ur.delimiter)]:[]],Xh=Be.ResolverFactory.createResolver({fileSystem:new Be.CachedInputFileSystem(Mr,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:zr});var Fs=Be.ResolverFactory.createResolver({fileSystem:new Be.CachedInputFileSystem(Mr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:zr}),Ws=Be.ResolverFactory.createResolver({fileSystem:new Be.CachedInputFileSystem(Mr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:zr});async function On(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 Dn(Fs,e,t).catch(()=>Dn(Ws,e,t))}function Dn(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(o,a)=>{if(o)return i(o);n(a)}))}var qn=Sl(Mn());import Nt from"tree-sitter";import Et from"tree-sitter-typescript";var jr=new Nt;jr.setLanguage(Et.typescript);var Kr=String.raw,Zs=new Nt.Query(Et.typescript,Kr`
20
20
  ; export default {}
21
21
  (export_statement
22
22
  value: [
@@ -67,7 +67,7 @@ ${W([m])}`)}s.add(p);for(let m of a.get(p))for(let d of o.get(m))f.push(p),c(d,f
67
67
  ]
68
68
  )
69
69
  )
70
- `),Ll=new ht.Query(yt.typescript,ar`
70
+ `),Qs=new Nt.Query(Et.typescript,Kr`
71
71
  (call_expression
72
72
  function: [
73
73
  (call_expression
@@ -120,7 +120,7 @@ ${W([m])}`)}s.add(p);for(let m of a.get(p))for(let d of o.get(m))f.push(p),c(d,f
120
120
  (string (string_fragment) @module_string)
121
121
  )
122
122
  )
123
- `);function lr(e){try{let r=or.parse(e).rootNode,n=jl(e),i=Ul.matches(r),a=[];for(let o of i)for(let u of o.captures)if(u.name==="imports"){for(let l of u.node.children)if(!(l.type==="["||l.type==="]"||l.type===","))switch(l.type){case"identifier":let s=n[l.text];if(!s||s.export!==null)return null;a.push([s.module,null]);break;case"string":a.push([l.children[1].text,null]);break;case"call_expression":let c=Ll.matches(l);if(c.length===0)return null;let p=null,f=null,m=null,d=null,g=c.flatMap(h=>h.captures);for(let h=0;h<g.length;h++){let v=g[h];switch(v.name){case"module_identifier":{f=v.node.text;break}case"module_string":{p=v.node.text;break}case"property":{if(d!==null)return null;d=v.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]=zi(v),d=null;break}case"array_value":{if(d===null)return null;m??={};let C=[],I=h;e:for(let q=h+1;q<g.length;q++){let T=g[q];switch(T.name){case"property":{if(T.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":C.push(zi(T)),I=q}}h=I,m[d]=C,d=null;break}case"_name":case"_empty_args":break;default:return null}}if(d!==null)return null;if(f!==null){let h=n[f];if(!h||h.export!==null&&h.export!=="*")return null;p=h.module}if(p===null)return null;a.push([p,m]);break;default:return null}}return a}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var Ml=new ht.Query(yt.typescript,ar`
123
+ `);function Fr(e){try{let r=jr.parse(e).rootNode,n=eu(e),i=Zs.matches(r),o=[];for(let a of i)for(let l of a.captures)if(l.name==="imports"){for(let s of l.node.children)if(!(s.type==="["||s.type==="]"||s.type===","))switch(s.type){case"identifier":let u=n[s.text];if(!u||u.export!==null)return null;o.push([u.module,null]);break;case"string":o.push([s.children[1].text,null]);break;case"call_expression":let c=Qs.matches(s);if(c.length===0)return null;let p=null,f=null,m=null,d=null,h=c.flatMap(g=>g.captures);for(let g=0;g<h.length;g++){let k=h[g];switch(k.name){case"module_identifier":{f=k.node.text;break}case"module_string":{p=k.node.text;break}case"property":{if(d!==null)return null;d=k.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]=zn(k),d=null;break}case"array_value":{if(d===null)return null;m??={};let S=[],T=g;e:for(let C=g+1;C<h.length;C++){let R=h[C];switch(R.name){case"property":{if(R.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":S.push(zn(R)),T=C}}g=T,m[d]=S,d=null;break}case"_name":case"_empty_args":break;default:return null}}if(d!==null)return null;if(f!==null){let g=n[f];if(!g||g.export!==null&&g.export!=="*")return null;p=g.module}if(p===null)return null;o.push([p,m]);break;default:return null}}return o}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var Xs=new Nt.Query(Et.typescript,Kr`
124
124
  ; ESM import
125
125
  (import_statement
126
126
  (import_clause
@@ -159,76 +159,77 @@ ${W([m])}`)}s.add(p);for(let m of a.get(p))for(let d of o.get(m))f.push(p),c(d,f
159
159
  )
160
160
  )
161
161
  )
162
- `);function jl(e){let r=or.parse(e).rootNode,n=Ml.matches(r),i={};for(let a of n){let o=[],u="";for(let l=0;l<a.captures.length;l++){let s=a.captures[l];switch(s.name){case"default":o.push({name:s.node.text,export:null});break;case"imported-name":o.push({name:s.node.text,export:s.node.text});break;case"imported-from":u=s.node.text;break;case"imported-namespace":o.push({name:s.node.text,export:"*"});break;case"imported-alias":if(o.length<1)throw new Error("Unexpected alias: "+JSON.stringify(n,null,2));let c=o[o.length-1],p=c.name;c.export=p,c.name=s.node.text;break}}for(let{name:l,export:s}of o)i[l]={module:u,export:s}}return i}function zi(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 ql from"fs";import Wi from"path";import{stripVTControlCharacters as Bi}from"util";import z from"picocolors";import je from"enhanced-resolve";import sr from"fs";import{createRequire as zl}from"module";var Kl=zl(import.meta.url).resolve;function Ki(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return Kl(e)}var Fl=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(sr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),Wl=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(sr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function Fi(e,t){try{return Fl.resolveSync({},t,e)}catch{return Wl.resolveSync({},t,e)}}var Bl=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(sr,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function ur(e,t){return Bl.resolveSync({},t,e)}var vt={indent:2};function wt(){return`${z.italic(z.bold(z.blue("\u2248")))} tailwindcss ${z.blue(`v${Yl()}`)}`}function A(e){return`${z.dim(z.blue("`"))}${z.blue(e)}${z.dim(z.blue("`"))}`}function P(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=Wi.relative(t,e);return n.startsWith("..")||(n=`.${Wi.sep}${n}`),r&&n.length>e.length?e:n}function Je(e,t){if(e.includes(`
162
+ `);function eu(e){let r=jr.parse(e).rootNode,n=Xs.matches(r),i={};for(let o of n){let a=[],l="";for(let s=0;s<o.captures.length;s++){let u=o.captures[s];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":l=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(n,null,2));let c=a[a.length-1],p=c.name;c.export=p,c.name=u.node.text;break}}for(let{name:s,export:u}of a)i[s]={module:l,export:u}}return i}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}import lu from"fs";import Fn from"path";import{stripVTControlCharacters as Wn}from"util";import Y from"picocolors";import He from"enhanced-resolve";import Wr from"fs";import{createRequire as tu}from"module";var ru=tu(import.meta.url).resolve;function jn(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return ru(e)}var iu=He.ResolverFactory.createResolver({fileSystem:new He.CachedInputFileSystem(Wr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),nu=He.ResolverFactory.createResolver({fileSystem:new He.CachedInputFileSystem(Wr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function Kn(e,t){try{return iu.resolveSync({},t,e)}catch{return nu.resolveSync({},t,e)}}var ou=He.ResolverFactory.createResolver({fileSystem:new He.CachedInputFileSystem(Wr,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function Br(e,t){return ou.resolveSync({},t,e)}var Rt={indent:2};function Vt(){return`${Y.italic(Y.bold(Y.blue("\u2248")))} tailwindcss ${Y.blue(`v${au()}`)}`}function $(e){return`${Y.dim(Y.blue("`"))}${Y.blue(e)}${Y.dim(Y.blue("`"))}`}function P(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=Fn.relative(t,e);return n.startsWith("..")||(n=`.${Fn.sep}${n}`),r&&n.length>e.length?e:n}function at(e,t){if(e.includes(`
163
163
  `))return e.split(`
164
- `).flatMap(o=>o?Je(o,t):[""]);let r=e.split(" "),n=[],i="",a=0;for(let o of r){let u=Bi(o).length;a+u+1>t&&(n.push(i),i="",a=0),i+=(a?" ":"")+o,a+=u+(a?1:0)}return a&&n.push(i),n}function Ze(e,t=0){return`${" ".repeat(t+vt.indent)}${e}`}function kt(e,{art:t=z.gray("\u2502"),prefix:r="",print:n=ve}){let i=r.length,a=" ",o=a.length,u=Bi(t).length,s=process.stderr.columns-i-o*2-u;Je(e,s).map((c,p)=>n(`${t}${a}${p===0?r:" ".repeat(i)}${c}${a}`)),n()}function U(e,{prefix:t="",print:r=ve}={}){kt(e,{art:z.green("\u2502"),prefix:t,print:r})}function K(e,{prefix:t="",print:r=ve}={}){kt(e,{art:z.blue("\u2502"),prefix:t,print:r})}function N(e,{prefix:t="",print:r=ve}={}){kt(e,{art:z.red("\u2502"),prefix:t,print:r})}function bt(e,{prefix:t="",print:r=ve}={}){kt(e,{art:z.yellow("\u2502"),prefix:t,print:r})}function ve(e=""){process.stderr.write(`${e}
165
- `)}function B(e=""){process.stdout.write(`${e}
166
- `)}function Yl(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(ql.readFileSync(Ki("tailwindcss/package.json"),"utf-8"));return e}var Jl=Hl(import.meta.url),Zl=Hi.dirname(Jl);async function Zi(e,t,r){let[n,i]=await Promise.all([mt(t,Zl,()=>{}).then(s=>s.module),Gl.readFile(t,"utf-8")]);if(!rs(n,i))return K(`The configuration file at ${A(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 a=[],o=[],u=[];if("darkMode"in n&&u.push(Xl(n)),"content"in n&&(a=await ts(n,t,r)),"theme"in n){let s=await Ql(e,n,r);s&&u.push(s)}"corePlugins"in n&&K("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let l=lr(i);if(l!==null)for(let[s,c]of l)o.push({base:r,path:s,options:c});return{sources:a,plugins:o,css:u.join(`
167
- `)}}async function Ql(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1,src:void 0},{resolvedConfig:i,replacedThemeKeys:a}=Te(e,[n]),o=new Map(Array.from(a.entries()).map(([f])=>[f,!1]));ls(e,i,a);let u="",l="",s=[],c="",p=new Map;{if("keyframes"in i.theme&&(c+=ns(i.theme.keyframes),delete i.theme.keyframes),"container"in i.theme){let f=Ri(i.theme.container,e);f.length>0&&(u+=`
164
+ `).flatMap(a=>a?at(a,t):[""]);let r=e.split(" "),n=[],i="",o=0;for(let a of r){let l=Wn(a).length;o+l+1>t&&(n.push(i),i="",o=0),i+=(o?" ":"")+a,o+=l+(o?1:0)}return o&&n.push(i),n}function st(e,t=0){return`${" ".repeat(t+Rt.indent)}${e}`}function Pt(e,{art:t=Y.gray("\u2502"),prefix:r="",print:n=Ce}){let i=r.length,o=" ",a=o.length,l=Wn(t).length,u=process.stderr.columns-i-a*2-l;at(e,u).map((c,p)=>n(`${t}${o}${p===0?r:" ".repeat(i)}${c}${o}`)),n()}function B(e,{prefix:t="",print:r=Ce}={}){Pt(e,{art:Y.green("\u2502"),prefix:t,print:r})}function D(e,{prefix:t="",print:r=Ce}={}){Pt(e,{art:Y.blue("\u2502"),prefix:t,print:r})}function I(e,{prefix:t="",print:r=Ce}={}){Pt(e,{art:Y.red("\u2502"),prefix:t,print:r})}function _t(e,{prefix:t="",print:r=Ce}={}){Pt(e,{art:Y.yellow("\u2502"),prefix:t,print:r})}function Ce(e=""){process.stderr.write(`${e}
165
+ `)}function J(e=""){process.stdout.write(`${e}
166
+ `)}function au(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(lu.readFileSync(jn("tailwindcss/package.json"),"utf-8"));return e}var cu=uu(import.meta.url),fu=Gn.dirname(cu);async function Jn(e,t,r){let[n,i]=await Promise.all([St(t,fu,()=>{}).then(u=>u.module),su.readFile(t,"utf-8")]);if(!hu(n,i))return D(`The configuration file at ${$(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=[],a=[],l=[];if("darkMode"in n&&l.push(mu(n)),"content"in n&&(o=await gu(n,t,r)),"theme"in n){let u=await pu(e,n,r);u&&l.push(u)}"corePlugins"in n&&D("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let s=Fr(i);if(s!==null)for(let[u,c]of s)a.push({base:r,path:u,options:c});return{sources:o,plugins:a,css:l.join(`
167
+ `)}}async function pu(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1,src:void 0},{resolvedConfig:i,replacedThemeKeys:o}=Ve(e,[n]),a=new Map(Array.from(o.entries()).map(([f])=>[f,!1]));bu(e,i,o);let l="",s="",u=[],c="",p=new Map;{if("keyframes"in i.theme&&(c+=yu(i.theme.keyframes),delete i.theme.keyframes),"container"in i.theme){let f=$n(i.theme.container,e);f.length>0&&(l+=`
168
168
  @tw-bucket theme {
169
- `,u+=W([E("@utility","container",f)]),u+=`}
170
- `),delete i.theme.container}if("aria"in i.theme){for(let[f,m]of Object.entries(i.theme.aria??{}))new RegExp(`^${f}=(['"]?)true\\1$`).test(`${m}`)||p.set(`aria-${f}`,`&[aria-${m}]`);delete i.theme.aria}if("data"in i.theme){for(let[f,m]of Object.entries(i.theme.data??{}))f!==m&&p.set(`data-${f}`,`&[data-${m}]`);delete i.theme.data}if("supports"in i.theme){for(let[f,m]of Object.entries(i.theme.supports??{})){let d=x(`${m}`);d.length===1&&d[0].kind==="function"&&d[0].value===""&&(d=d[0].nodes),!(d.length===3&&d[0].kind==="word"&&d[0].value===f&&d[2].kind==="function"&&d[2].value==="var")&&p.set(`supports-${f}`,`{@supports(${m}){@slot;}}`)}delete i.theme.supports}}for(let[f,m]of Kr(i.theme)){if(typeof m!="string"&&typeof m!="number")continue;if(typeof m=="string"&&(m=m.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),f[0]==="opacity"&&(typeof m=="number"||typeof m=="string")){let h=typeof m=="string"?parseFloat(m):m;if(h>=0&&h<=1&&(m=h*100+"%"),typeof m=="string"&&f[1]===m.replace(/%$/,"")&&Bt(f[1]))continue}let d=es(f);if(d!==l&&(s.push(""),l=d),o.has(f[0])&&o.get(f[0])===!1){o.set(f[0],!0);let h=Z([f[0]]);h!==null&&s.push(` ${me(`--${h}`)}-*: initial;`)}let g=Z(f);g!==null&&s.push(` ${me(`--${g}`)}: ${m};`)}if(c&&s.push("",c),s.length>0&&(u+=`
169
+ `,l+=q([E("@utility","container",f)]),l+=`}
170
+ `),delete i.theme.container}if("aria"in i.theme){for(let[f,m]of Object.entries(i.theme.aria??{}))new RegExp(`^${f}=(['"]?)true\\1$`).test(`${m}`)||p.set(`aria-${f}`,`&[aria-${m}]`);delete i.theme.aria}if("data"in i.theme){for(let[f,m]of Object.entries(i.theme.data??{}))f!==m&&p.set(`data-${f}`,`&[data-${m}]`);delete i.theme.data}if("supports"in i.theme){for(let[f,m]of Object.entries(i.theme.supports??{})){let d=x(`${m}`);d.length===1&&d[0].kind==="function"&&d[0].value===""&&(d=d[0].nodes),!(d.length===3&&d[0].kind==="word"&&d[0].value===f&&d[2].kind==="function"&&d[2].value==="var")&&p.set(`supports-${f}`,`{@supports(${m}){@slot;}}`)}delete i.theme.supports}}for(let[f,m]of $i(i.theme)){if(typeof m!="string"&&typeof m!="number")continue;if(typeof m=="string"&&(m=m.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),f[0]==="opacity"&&(typeof m=="number"||typeof m=="string")){let g=typeof m=="string"?parseFloat(m):m;if(g>=0&&g<=1&&(m=g*100+"%"),typeof m=="string"&&f[1]===m.replace(/%$/,"")&&dr(f[1]))continue}let d=du(f);d!==s&&(u.push(""),s=d);let h=te(f);if(h!==null){if(!h.startsWith("default-")&&a.has(f[0])&&a.get(f[0])===!1){a.set(f[0],!0);let g=te([f[0]]);g!==null&&u.push(` ${ve(`--${g}`)}-*: initial;`)}u.push(` ${ve(`--${h}`)}: ${m};`)}}if(c&&u.push("",c),u.length>0&&(l+=`
171
171
  @tw-bucket theme {
172
- `,u+=`
172
+ `,l+=`
173
173
  @theme {
174
- `,u+=s.join(`
174
+ `,l+=u.join(`
175
175
  `)+`
176
- `,u+=`}
177
- `,u+=`}
178
- `),p.size>0){u+=`
176
+ `,l+=`}
177
+ `,l+=`}
178
+ `),p.size>0){l+=`
179
179
  @tw-bucket custom-variant {
180
- `;let f="";for(let[m,d]of p){let g=m.split("-")[0];f!==g&&(u+=`
181
- `),f=g,d.startsWith("{")?u+=`@custom-variant ${m} ${d}
182
- `:u+=`@custom-variant ${m} (${d});
183
- `}u+=`}
184
- `}return u}function Xl(e){let t="";if(tr({config:()=>e.darkMode,addVariant:(a,o)=>t=o}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
180
+ `;let f="";for(let[m,d]of p){let h=m.split("-")[0];f!==h&&(l+=`
181
+ `),f=h,d.startsWith("{")?l+=`@custom-variant ${m} ${d}
182
+ `:l+=`@custom-variant ${m} (${d});
183
+ `}l+=`}
184
+ `}return l}function mu(e){let t="";if(Ir({config:()=>e.darkMode,addVariant:(o,a)=>t=a}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
185
185
  @tw-bucket custom-variant {
186
186
  @custom-variant dark (${t[0]});
187
187
  }
188
- `;let i="";for(let a of t)a.includes("{")?i+=a.replace("}","{ @slot }}")+`
189
- `:i+=a+`{ @slot }
188
+ `;let i="";for(let o of t)o.includes("{")?i+=o.replace("}","{ @slot }}")+`
189
+ `:i+=o+`{ @slot }
190
190
  `;return i!==""?`
191
191
  @tw-bucket custom-variant {
192
192
  @custom-variant dark {${i}};
193
193
  }
194
- `:""}function es(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 ts(e,t,r){let n=os(r),i=[],a=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,o=Array.isArray(e.content)?e.content.map(u=>({base:r,pattern:u})):(e.content?.files??[]).map(u=>typeof u=="string"&&a?{base:Hi.dirname(t),pattern:u}:{base:r,pattern:u});for(let{base:u,pattern:l}of o){if(typeof l!="string")throw new Error("Unsupported content value: "+l);let s=as({base:u,pattern:l[0]==="!"?l.slice(1):l,negated:l[0]==="!"}),c=!0;for(let p of s)if(!n.includes(p)){c=!1;break}c||i.push({base:u,pattern:l})}return i}function rs(e,t){function r(u){return typeof u=="function"?!1:Array.isArray(u)?u.every(r):typeof u=="object"&&u!==null?Object.values(u).every(r):["string","number","boolean","undefined"].includes(typeof u)}let{plugins:n,theme:i,...a}=e;if(!r(a))return!1;let o=["darkMode","content","theme","plugins","presets","prefix","corePlugins"];if(Object.keys(e).some(u=>!o.includes(u))||lr(t)===null||e.presets&&e.presets.length>0)return!1;if(i&&typeof i=="object"){if(i.extend&&!qi(i.extend))return!1;let{extend:u,...l}=i;if(!qi(l))return!1}return!0}var is=[...Object.keys(Ji.default),"containers"];function qi(e){for(let t of Object.keys(e))if(!is.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 ns(e){let t=$i({theme:{keyframes:e}});return W(t).trim()+`
195
- `}function os(e){let t=new Gi({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function as(e){let t=new Gi({sources:[e]});return t.scan(),t.files}function ls(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,a]=Yi(n);if(!(!i||!a)&&n&&!r.has("spacing"))for(let[o,u]of Object.entries(t.theme.spacing??{})){let[l,s]=Yi(u);l!==null&&oe(o)&&s===a&&parseFloat(l)===Number(o)*parseFloat(i)&&(delete t.theme.spacing[o],e.theme.clearNamespace(me(`--spacing-${o.replaceAll(".","_")}`),0))}}function Yi(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import ue from"fs/promises";import pr from"path";import{exec as ss}from"child_process";import{readFileSync as us}from"fs";import ze from"fs/promises";import{dirname as cs,resolve as Re}from"path";import{promisify as fs}from"util";var Qi=fs(ss),Xi={default:"-D",bun:"-d"},cr=new y(e=>{try{let t=Re(e,"package.json");return us(t,"utf-8")}catch{return""}});function Ne(e){return{async manager(){return await fr.get(e)},async add(t,r="dependencies"){let n=await fr.get(e),i=t.slice();r==="devDependencies"&&i.push(Xi[n]||Xi.default),n==="pnpm"&&i.push("--ignore-workspace-root-check");let a=`${n} add ${i.join(" ")}`;try{return await Qi(a,{cwd:e})}catch(o){throw N(`An error occurred while running \`${a}\`
194
+ `:""}function du(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 gu(e,t,r){let n=vu(r),i=[],o=!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(l=>({base:r,pattern:l})):(e.content?.files??[]).map(l=>typeof l=="string"&&o?{base:Gn.dirname(t),pattern:l}:{base:r,pattern:l});for(let{base:l,pattern:s}of a){if(typeof s!="string")throw new Error("Unsupported content value: "+s);let u=wu({base:l,pattern:s[0]==="!"?s.slice(1):s,negated:s[0]==="!"}),c=!0;for(let p of u)if(!n.includes(p)){c=!1;break}c||i.push({base:l,pattern:s})}return i}function hu(e,t){function r(l){return typeof l=="function"?!1:Array.isArray(l)?l.every(r):typeof l=="object"&&l!==null?Object.values(l).every(r):["string","number","boolean","undefined"].includes(typeof l)}let{plugins:n,theme:i,...o}=e;if(!r(o))return!1;let a=["darkMode","content","theme","plugins","presets","prefix","corePlugins","future","experimental"];if(Object.keys(e).some(l=>!a.includes(l))||Fr(t)===null||e.presets&&e.presets.length>0)return!1;if(e.future&&e.future!=="all"){let l=["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"];if(Object.keys(e.future).some(s=>!l.includes(s)))return!1}if(e.experimental&&e.experimental!=="all"){let l=["generalizedModifiers"];if(Object.keys(e.experimental).some(s=>!l.includes(s)))return!1}if(i&&typeof i=="object"){if(i.extend&&!Bn(i.extend))return!1;let{extend:l,...s}=i;if(!Bn(s))return!1}return!0}var ku=[...Object.keys(qn.default),"containers"];function Bn(e){for(let t of Object.keys(e))if(!ku.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 yu(e){let t=Cn({theme:{keyframes:e}});return q(t).trim()+`
195
+ `}function vu(e){let t=new Yn({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function wu(e){let t=new Yn({sources:[e]});return t.scan(),t.files}function bu(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,o]=Hn(n);if(!(!i||!o)&&n&&!r.has("spacing"))for(let[a,l]of Object.entries(t.theme.spacing??{})){let[s,u]=Hn(l);s!==null&&Z(a)&&u===o&&parseFloat(s)===Number(a)*parseFloat(i)&&(delete t.theme.spacing[a],e.theme.clearNamespace(ve(`--spacing-${a.replaceAll(".","_")}`),0))}}function Hn(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import Ge from"fs/promises";import qr from"path";import{exec as xu}from"child_process";import{readFileSync as Cu}from"fs";import Ye from"fs/promises";import{dirname as Au,resolve as _e}from"path";import{promisify as Su}from"util";var Zn=Su(xu),Qn={default:"-D",bun:"-d"},Hr=new y(e=>{try{let t=_e(e,"package.json");return Cu(t,"utf-8")}catch{return""}});function Oe(e){return{async manager(){return await Yr.get(e)},async add(t,r="dependencies"){let n=await Yr.get(e),i=t.slice();r==="devDependencies"&&i.push(Qn[n]||Qn.default),n==="pnpm"&&i.push("--ignore-workspace-root-check");let o=`${n} add ${i.join(" ")}`;try{return await Zn(o,{cwd:e})}catch(a){throw I(`An error occurred while running \`${o}\`
196
196
 
197
- ${o.stdout}
198
- ${o.stderr}`,{prefix:"\u21B3 "}),o}finally{cr.delete(e)}},has(t){return cr.get(e).includes(`"${t}":`)},async remove(t){let n=`${await fr.get(e)} remove ${t.join(" ")}`;try{return await Qi(n,{cwd:e})}catch(i){throw N(`An error occurred while running \`${n}\`
197
+ ${a.stdout}
198
+ ${a.stderr}`,{prefix:"\u21B3 "}),a}finally{Hr.delete(e)}},has(t){return Hr.get(e).includes(`"${t}":`)},async remove(t){let n=`${await Yr.get(e)} remove ${t.join(" ")}`;try{return await Zn(n,{cwd:e})}catch(i){throw I(`An error occurred while running \`${n}\`
199
199
 
200
200
  ${i.stdout}
201
- ${i.stderr}`,{prefix:"\u21B3 "}),i}finally{cr.delete(e)}}}}var en=!1,fr=new y(async e=>{do{let t=Re(e,"package.json");try{let n=await ze.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 ze.access(Re(e,"bun.lockb")),"bun"}catch{}try{return await ze.access(Re(e,"bun.lock")),"bun"}catch{}try{return await ze.access(Re(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await ze.access(Re(e,"yarn.lock")),"yarn"}catch{}try{return await ze.access(Re(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=cs(e),r===e)return en||(en=!0,bt("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function rn(e){let t=!1,r=!1,n=!1,i=!1,a=!1,o=pr.resolve(e,"package.json"),u;try{u=JSON.parse(await ue.readFile(o,"utf-8"))}catch{}let l=await ds(e);if(l){let s=await ps(l);t=!0,s&&(r=!0,n=s.didAddPostcssClient,i=s.didRemoveAutoprefixer,a=s.didRemovePostCSSImport)}if(!t&&u&&"postcss"in u){let s=await tn(u.postcss);t=!0,s&&(await ue.writeFile(o,JSON.stringify({...u,postcss:s?.json},null,2)),r=!0,n=s.didAddPostcssClient,i=s.didRemoveAutoprefixer,a=s.didRemovePostCSSImport)}if(!t){let s=await hs(e),c=null;if(s){try{c=JSON.parse(await ue.readFile(s,"utf-8"))}catch{}if(c){let p=await tn(c);t=!0,p&&(await ue.writeFile(s,JSON.stringify(p.json,null,2)),r=!0,n=p.didAddPostcssClient,i=p.didRemoveAutoprefixer,a=p.didRemovePostCSSImport)}}}if(!t){K("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let s=Object.hasOwn(u?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(u?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(s!==null)try{await Ne(e).add(["@tailwindcss/postcss@latest"],s),U(`Installed package: ${A("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await Ne(e).remove(["autoprefixer"]),U(`Removed package: ${A("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(a)try{await Ne(e).remove(["postcss-import"]),U(`Removed package: ${A("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&l&&U(`Migrated PostCSS configuration: ${A(P(l,e))}`,{prefix:"\u21B3 "})}async function ps(e){function t(f){return/['"]?tailwindcss['"]?\: ?\{\}/.test(f)}function r(f){return/['"]?postcss-import['"]?\: ?\{\}/.test(f)}function n(f){return/['"]?autoprefixer['"]?\: ?\{\}/.test(f)}function i(f){return/['"]tailwindcss\/nesting['"]\: ?(\{\}|['"]postcss-nesting['"])/.test(f)}if(K("Migrating PostCSS configuration\u2026"),!await ys(e))return bt("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let o=!1,u=!1,l=!1,c=(await ue.readFile(e,"utf-8")).split(`
202
- `),p=[];for(let f=0;f<c.length;f++){let m=c[f];if(t(m))o=!0,p.push(m.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(n(m))u=!0;else if(r(m)){let d=!1;for(let g=f+1;g<c.length;g++){let h=c[g];if(t(h))break;if(!i(h)){d=!0;break}}d?p.push(m):l=!0}else if(i(m)){let d=c[f+1];t(d)||p.push(m)}else p.push(m)}return await ue.writeFile(e,p.join(`
203
- `)),{didAddPostcssClient:o,didRemoveAutoprefixer:u,didRemovePostCSSImport:l}}async function tn(e){function t(c,p){return c==="tailwindcss"&&xt(p)}function r(c,p){return c==="postcss-import"&&xt(p)}function n(c,p){return c==="autoprefixer"&&xt(p)}function i(c,p){return c==="tailwindcss/nesting"&&(p==="postcss-nesting"||xt(p))}let a=!1,o=!1,u=!1,l=Object.entries(e.plugins||{}),s=[];for(let c=0;c<l.length;c++){let[p,f]=l[c];if(t(p,f))a=!0,s.push(["@tailwindcss/postcss",f]);else if(n(p,f))o=!0;else if(r(p,f)){let m=!1;for(let d=c+1;d<l.length;d++){let[g,h]=l[d];if(t(g,h))break;if(!i(g,h)){m=!0;break}}m?s.push([p,f]):u=!0}else if(i(p,f)){let[m,d]=l[c+1];t(m,d)||s.push([p,f])}else s.push([p,f])}return{json:{...e,plugins:Object.fromEntries(s)},didAddPostcssClient:a,didRemoveAutoprefixer:o,didRemovePostCSSImport:u}}var ms=[".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 ds(e){for(let t of ms){let r=pr.resolve(e,t);try{return await ue.access(r),r}catch{}}return null}var gs=[".postcssrc",".postcssrc.json"];async function hs(e){for(let t of gs){let r=pr.resolve(e,t);try{return await ue.access(r),r}catch{}}return null}async function ys(e){let t=await ue.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function xt(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as bs}from"globby";import xs from"path";import Cs from"postcss";import{__unstable__loadDesignSystem as ws,compileAst as ks}from"@tailwindcss/node";import*as on from"fs";import*as an from"fs/promises";import*as we from"path";import*as ln from"util";import*as Ct from"postcss";var vs=33;function nn(e){let t=new y(a=>({file:a.file??a.id??null,code:a.css}));function r(a){let o=a.source;if(!o)return;let u=o.input;if(u&&o.start!==void 0&&o.end!==void 0)return[t.get(u),o.start.offset,o.end.offset]}function n(a,o){if(a.type==="decl"){let u=$(a.prop,a.value,a.important);u.src=r(a),o.push(u)}else if(a.type==="rule"){let u=F(a.selector);u.src=r(a),a.each(l=>n(l,u.nodes)),o.push(u)}else if(a.type==="atrule"){let u=E(`@${a.name}`,a.params);u.src=r(a),a.each(l=>n(l,u.nodes)),o.push(u)}else if(a.type==="comment"){if(a.text.charCodeAt(0)!==vs)return;let u=ut(a.text);u.src=r(a),o.push(u)}}let i=[];return e.each(a=>n(a,i)),i}var re=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=we.resolve(process.cwd(),t);let r=await an.readFile(t,"utf-8"),n=Ct.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=we.resolve(process.cwd(),t);let r=on.readFileSync(t,"utf-8"),n=Ct.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=Ct.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=we.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 Qe(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of Qe(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of Qe(this,i=>i.parents))if(!(r.parents.size>0))for(let{meta:i}of n)for(let a of i.layers)t.add(a);return t}*pathsToRoot(){for(let{item:t,path:r}of Qe(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:a}of n)for(let o of a.layers)i||=o==="utilities"||o==="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:ks(nn(this.root),{base:we.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:ws(this.root.toString(),{base:we.dirname(this.file)})}[ln.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*Qe(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*Qe(n.item,t,i),yield{item:n.item,path:i}}}async function sn(e){let t=await bs(),r=[],n=new y(l=>{try{if(t(l))return null}catch{return null}try{let s=re.loadSync(l);return e.push(s),r.push(()=>i.process(s.root,{from:s.file})),s}catch{return null}}),i=Cs([{postcssPlugin:"mark-import-nodes",AtRule:{import(l){let s=l.params.match(/['"](.*?)['"]/)?.[1];if(!s)return;let c=l.source?.input.file?xs.dirname(l.source.input.file):process.cwd(),p=!1;try{if(s[0]!==".")try{p=ur(`./${s}`,c)}catch{}p||(p=ur(s,c))}catch{if(s.startsWith("http://")||s.startsWith("https://")||s.startsWith("//"))return;N(`Failed to resolve import: ${A(s)} in ${A(P(l.source?.input.file,c))}. Skipping.`,{prefix:"\u21B3 "});return}if(!p)return;let f=n.get(p);if(!f)return;l.raws.tailwind_destination_sheet_id=f.id;let m=l.source?.input.file?n.get(l.source.input.file):void 0,d=[];for(let g of b(l.params," "))g.startsWith("layer(")&&g.endsWith(")")&&d.push(g.slice(6,-1).trim());if(m){let g={layers:d};f.parents.add({item:m,meta:g}),m.children.add({item:f,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 a=process.cwd();function o(l){let s=[];for(let c of l){if(!c.item.file)continue;let p=c.item.file.replace(a,""),f=c.meta.layers.join(", ");f.length>0?s.push(`${p} (layers: ${f})`):s.push(p)}return s.join(" <- ")}let u=[];for(let l of e){if(!l.file)continue;let{convertiblePaths:s,nonConvertiblePaths:c}=l.analyzeImportPaths();if(!(s.length>0&&c.length>0))continue;l.canMigrate=!1;let f=l.file.replace(a,"");for(let m of s)u.push(`- ${f} <- ${o(m)}`);for(let m of c)u.push(`- ${f} <- ${o(m)}`)}if(u.length===0){let l=new Set;for(let s of e)s.root.walkAtRules("config",()=>(s.isTailwindRoot=!0,!1)),!s.isTailwindRoot&&s.root.walkAtRules(c=>{(c.name==="tailwind"||c.name==="import"&&c.params.match(/^["']tailwindcss["']/)||c.name==="import"&&c.params.match(/^["']tailwindcss\/.*?["']$/))&&(s.isTailwindRoot=!0,l.add(s))});if(l.size<=1)return;{let s=new y(()=>new Set);for(let p of l)s.get(p).add(p);let c=!0;e:for(;c;){c=!1;for(let[p,f]of s)for(let[m,d]of s){if(p===m)continue;let g=[p].concat(Array.from(p.ancestors()).reverse()),h=[m].concat(Array.from(m.ancestors()).reverse());for(let v of g)for(let C of h){if(v!==C)continue;let I=v;s.delete(p),s.delete(m);for(let q of f)s.get(I).add(q);for(let q of d)s.get(I).add(q);c=!0;continue e}}}for(let[p,f]of s){p.isTailwindRoot=!0;for(let m of f)p!==m&&(m.isTailwindRoot=!1)}return}}{let l=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
204
- `;throw l+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
205
- `,new Error(l+u.join(`
206
- `))}}import un from"postcss";import{format as cn}from"prettier";function V(e,t){let r;return e.each?.((n,i)=>{let a=t(n,i,e)??0;if(a===2)return r=!1,r;if(a!==1)return r=V(n,t),r}),r}function mr(e,t){e?.each?.(r=>{mr(r,t),t(r)})}var fn={parser:"css",semi:!0,singleQuote:!0};function pn(){async function e(t){let r=[];V(t,(i,a,o)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=o,r.unshift(i))});let n=[];for(let i of r){let a=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(a);continue}if(i.type==="atrule"&&i.name==="tw-bucket"){n.push(await cn(a,fn));continue}i.replaceWith(un.parse(`${i.raws.before??""}${(await cn(a,fn)).trim()}`))}t.removeAll(),t.append(un.parse(n.map(i=>i.trim()).filter(Boolean).join(`
201
+ ${i.stderr}`,{prefix:"\u21B3 "}),i}finally{Hr.delete(e)}}}}var Xn=!1,Yr=new y(async e=>{do{let t=_e(e,"package.json");try{let n=await Ye.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 Ye.access(_e(e,"bun.lockb")),"bun"}catch{}try{return await Ye.access(_e(e,"bun.lock")),"bun"}catch{}try{return await Ye.access(_e(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await Ye.access(_e(e,"yarn.lock")),"yarn"}catch{}try{return await Ye.access(_e(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=Au(e),r===e)return Xn||(Xn=!0,_t("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});import{randomUUID as $u}from"crypto";import Ot from"fs/promises";import Gr from"path";async function Ae(e,t){let r=await Ot.realpath(e).catch(()=>e),n=Gr.join(Gr.dirname(r),`.${Gr.basename(r)}.tailwind-upgrade.${process.pid}.${$u()}.tmp`);try{await Ot.writeFile(n,t,"utf8"),await Ot.rename(n,r)}catch(i){throw await Ot.unlink(n).catch(()=>{}),i}}async function to(e){let t=!1,r=!1,n=!1,i=!1,o=!1,a=qr.resolve(e,"package.json"),l;try{l=JSON.parse(await Ge.readFile(a,"utf-8"))}catch{}let s=await Eu(e);if(s){let u=await Tu(s);t=!0,u&&(r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t&&l&&"postcss"in l){let u=await eo(l.postcss);t=!0,u&&(await Ae(a,JSON.stringify({...l,postcss:u?.json},null,2)),r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t){let u=await Vu(e),c=null;if(u){try{c=JSON.parse(await Ge.readFile(u,"utf-8"))}catch{}if(c){let p=await eo(c);t=!0,p&&(await Ae(u,JSON.stringify(p.json,null,2)),r=!0,n=p.didAddPostcssClient,i=p.didRemoveAutoprefixer,o=p.didRemovePostCSSImport)}}}if(!t){D("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let u=Object.hasOwn(l?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(l?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(u!==null)try{await Oe(e).add(["@tailwindcss/postcss@latest"],u),B(`Installed package: ${$("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await Oe(e).remove(["autoprefixer"]),B(`Removed package: ${$("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(o)try{await Oe(e).remove(["postcss-import"]),B(`Removed package: ${$("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&s&&B(`Migrated PostCSS configuration: ${$(P(s,e))}`,{prefix:"\u21B3 "})}async function Tu(e){function t(f){return/['"]?tailwindcss['"]?: ?\{\}/.test(f)}function r(f){return/['"]?postcss-import['"]?: ?\{\}/.test(f)}function n(f){return/['"]?autoprefixer['"]?: ?\{\}/.test(f)}function i(f){return/['"]tailwindcss\/nesting['"]: ?(\{\}|['"]postcss-nesting['"])/.test(f)}if(D("Migrating PostCSS configuration\u2026"),!await Pu(e))return _t("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let a=!1,l=!1,s=!1,c=(await Ge.readFile(e,"utf-8")).split(`
202
+ `),p=[];for(let f=0;f<c.length;f++){let m=c[f];if(t(m))a=!0,p.push(m.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(n(m))l=!0;else if(r(m)){let d=!1;for(let h=f+1;h<c.length;h++){let g=c[h];if(t(g))break;if(!i(g)){d=!0;break}}d?p.push(m):s=!0}else if(i(m)){let d=c[f+1];t(d)||p.push(m)}else p.push(m)}return await Ae(e,p.join(`
203
+ `)),{didAddPostcssClient:a,didRemoveAutoprefixer:l,didRemovePostCSSImport:s}}async function eo(e){function t(c,p){return c==="tailwindcss"&&Dt(p)}function r(c,p){return c==="postcss-import"&&Dt(p)}function n(c,p){return c==="autoprefixer"&&Dt(p)}function i(c,p){return c==="tailwindcss/nesting"&&(p==="postcss-nesting"||Dt(p))}let o=!1,a=!1,l=!1,s=Object.entries(e.plugins||{}),u=[];for(let c=0;c<s.length;c++){let[p,f]=s[c];if(t(p,f))o=!0,u.push(["@tailwindcss/postcss",f]);else if(n(p,f))a=!0;else if(r(p,f)){let m=!1;for(let d=c+1;d<s.length;d++){let[h,g]=s[d];if(t(h,g))break;if(!i(h,g)){m=!0;break}}m?u.push([p,f]):l=!0}else if(i(p,f)){let[m,d]=s[c+1];t(m,d)||u.push([p,f])}else u.push([p,f])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:o,didRemoveAutoprefixer:a,didRemovePostCSSImport:l}}var Nu=[".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 Eu(e){for(let t of Nu){let r=qr.resolve(e,t);try{return await Ge.access(r),r}catch{}}return null}var Ru=[".postcssrc",".postcssrc.json"];async function Vu(e){for(let t of Ru){let r=qr.resolve(e,t);try{return await Ge.access(r),r}catch{}}return null}async function Pu(e){let t=await Ge.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function Dt(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as Iu}from"globby";import Lu from"path";import Uu from"postcss";import{__unstable__loadDesignSystem as Ou,compileAst as Du}from"@tailwindcss/node";import*as io from"fs";import*as no from"fs/promises";import*as Se from"path";import*as oo from"util";import*as It from"postcss";var _u=33;function ro(e){let t=new y(o=>({file:o.file??o.id??null,code:o.css}));function r(o){let a=o.source;if(!a)return;let l=a.input;if(l&&a.start!==void 0&&a.end!==void 0)return[t.get(l),a.start.offset,a.end.offset]}function n(o,a){if(o.type==="decl"){let l=N(o.prop,o.value,o.important);l.src=r(o),a.push(l)}else if(o.type==="rule"){let l=H(o.selector);l.src=r(o),o.each(s=>n(s,l.nodes)),a.push(l)}else if(o.type==="atrule"){let l=E(`@${o.name}`,o.params);l.src=r(o),o.each(s=>n(s,l.nodes)),a.push(l)}else if(o.type==="comment"){if(o.text.charCodeAt(0)!==_u)return;let l=bt(o.text);l.src=r(o),a.push(l)}}let i=[];return e.each(o=>n(o,i)),i}var ue=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 no.readFile(t,"utf-8"),n=It.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=Se.resolve(process.cwd(),t);let r=io.readFileSync(t,"utf-8"),n=It.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=It.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 ut(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of ut(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of ut(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 ut(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 a of o.layers)i||=a==="utilities"||a==="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}#e;#t;async compiler(){return!this.isTailwindRoot||!this.file?null:this.#e??=Du(ro(this.root),{base:Se.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:this.#t??=Ou(this.root.toString(),{base:Se.dirname(this.file)})}[oo.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*ut(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*ut(n.item,t,i),yield{item:n.item,path:i}}}import{execSync as lo}from"child_process";function Lt(e){try{return lo("git rev-parse --show-toplevel",{encoding:"utf-8",cwd:e,stdio:["ignore","pipe","ignore"]}).trim()}catch{return null}}function Jr(e){try{return lo("git status --porcelain",{encoding:"utf-8",cwd:e}).trim()!==""}catch(t){return!t?.toString?.().includes("not a git repository")}}async function ao(e,{base:t}){let r=await Iu({cwd:Lt(t)??t}),n=[],i=new y(u=>{try{if(r(u))return null}catch{return null}try{let c=ue.loadSync(u);return e.push(c),n.push(()=>o.process(c.root,{from:c.file})),c}catch{return null}}),o=Uu([{postcssPlugin:"mark-import-nodes",AtRule:{import(u){let c=u.params.match(/['"](.*?)['"]/)?.[1];if(!c)return;let p=u.source?.input.file?Lu.dirname(u.source.input.file):process.cwd(),f=!1;try{if(c[0]!==".")try{f=Br(`./${c}`,p)}catch{}f||(f=Br(c,p))}catch{if(c.startsWith("http://")||c.startsWith("https://")||c.startsWith("//"))return;I(`Failed to resolve import: ${$(c)} in ${$(P(u.source?.input.file,p))}. Skipping.`,{prefix:"\u21B3 "});return}if(!f)return;let m=i.get(f);if(!m)return;u.raws.tailwind_destination_sheet_id=m.id;let d=u.source?.input.file?i.get(u.source.input.file):void 0,h=[];for(let g of b(u.params," "))g.startsWith("layer(")&&g.endsWith(")")&&h.push(g.slice(6,-1).trim());if(d){let g={layers:h};m.parents.add({item:d,meta:g}),d.children.add({item:m,meta:g})}}}}]);for(let u of e)u.file&&(i.set(u.file,u),n.push(()=>o.process(u.root,{from:u.file??void 0})));for(;n.length>0;)await n.shift()();let a=process.cwd();function l(u){let c=[];for(let p of u){if(!p.item.file)continue;let f=p.item.file.replace(a,""),m=p.meta.layers.join(", ");m.length>0?c.push(`${f} (layers: ${m})`):c.push(f)}return c.join(" <- ")}let s=[];for(let u of e){if(!u.file)continue;let{convertiblePaths:c,nonConvertiblePaths:p}=u.analyzeImportPaths();if(!(c.length>0&&p.length>0))continue;u.canMigrate=!1;let m=u.file.replace(a,"");for(let d of c)s.push(`- ${m} <- ${l(d)}`);for(let d of p)s.push(`- ${m} <- ${l(d)}`)}if(s.length===0){let u=new Set;for(let c of e)c.root.walkAtRules("config",()=>(c.isTailwindRoot=!0,!1)),!c.isTailwindRoot&&c.root.walkAtRules(p=>{(p.name==="tailwind"||p.name==="import"&&p.params.match(/^["']tailwindcss["']/)||p.name==="import"&&p.params.match(/^["']tailwindcss\/.*?["']$/))&&(c.isTailwindRoot=!0,u.add(c))});if(u.size<=1)return;{let c=new y(()=>new Set);for(let f of u)c.get(f).add(f);let p=!0;e:for(;p;){p=!1;for(let[f,m]of c)for(let[d,h]of c){if(f===d)continue;let g=[f].concat(Array.from(f.ancestors()).reverse()),k=[d].concat(Array.from(d.ancestors()).reverse());for(let S of g)for(let T of k){if(S!==T)continue;let C=S;c.delete(f),c.delete(d);for(let R of m)c.get(C).add(R);for(let R of h)c.get(C).add(R);p=!0;continue e}}}for(let[f,m]of c){f.isTailwindRoot=!0;for(let d of m)f!==d&&(d.isTailwindRoot=!1)}return}}{let u=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
204
+ `;throw u+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
205
+ `,new Error(u+s.join(`
206
+ `))}}import so from"postcss";import{format as uo}from"prettier";function L(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=L(n,t),r}),r}function Zr(e,t){e?.each?.(r=>{Zr(r,t),t(r)})}var co={parser:"css",semi:!0,singleQuote:!0};function fo(){async function e(t){let r=[];L(t,(i,o,a)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=a,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 uo(o,co));continue}i.replaceWith(so.parse(`${i.raws.before??""}${(await uo(o,co)).trim()}`))}t.removeAll(),t.append(so.parse(n.map(i=>i.trim()).filter(Boolean).join(`
207
207
 
208
- `)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as Us}from"@tailwindcss/node";import be from"path";import Ls from"postcss";import{__unstable__loadDesignSystem as wn,compile as Ns}from"@tailwindcss/node";import Vs from"fs/promises";import ke,{dirname as kn}from"path";import{fileURLToPath as Ps}from"url";import{execSync as Ss}from"child_process";import dn from"semver";import{readFileSync as As}from"fs";import Nh from"fs/promises";function mn(e,t){try{let r=Fi(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(As(r,"utf8"));return n}catch{return null}}function R(e){return dn.satisfies(ce(),`>=${e}.0.0 <${e+1}.0.0`)}function gn(e){return dn.gte(ce(),`${e+1}.0.0`)}var $s=new y(e=>{let t=mn("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function ce(e=process.cwd()){return $s.get(e)}var Ts=new y(e=>{try{return Ss("npm ls tailwindcss --json",{cwd:e,stdio:"pipe"}),ce(e)}catch(t){try{let n=JSON.parse(t.stdout.toString());return/"(.*?)" from the root project/.exec(n.dependencies.tailwindcss.invalid)?.[1]??ce(e)}catch{return ce(e)}}});function dr(e=process.cwd()){return Ts.get(e)}var hn=new WeakSet;function yn(e,t,r){if(!e.theme.prefix||!t||!R(3))return r;hn.has(e)||(e.utilities.functional("group",o=>[$("--phantom-class","group"),$("--phantom-modifier",o.modifier?.value)]),e.utilities.functional("peer",o=>[$("--phantom-class","peer"),$("--phantom-modifier",o.modifier?.value)]),hn.add(e));let n=Es(e,t,r);if(!n)return r;let i=e.theme.prefix,a=null;try{e.theme.prefix=null;let o=r.slice(0,n.start)+n.base+r.slice(n.end),u=[...ie(o,e)];u.length>0&&(a=u[0])}finally{e.theme.prefix=i}return a?e.printCandidate(a):r}function Es(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=b(r,":").pop(),a=r.length-i.length,o=a+i.length,u=!1,l=!1;return i[i.length-1]==="!"?(u=!0,i=i.slice(0,-1)):i[0]==="!"&&(u=!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),u&&(i+="!"),{base:i,start:a,end:o})}var Rs=/([a-z]+)/;function vn(e){let t=Rs.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 _s=Ps(import.meta.url),Xe=kn(_s),bn=String.raw;async function xn(e,t){try{e===null?e=await gr(t.base):ke.isAbsolute(e)||(e=ke.resolve(t.base,e));let r=ke.relative(Xe,e);!r.startsWith(".")&&!ke.isAbsolute(r)&&(r="./"+r);let n=await Os(e),i=n.prefix?vn(n.prefix):null,a=bn`
208
+ `)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as Qu}from"@tailwindcss/node";import Te from"path";import Xu from"postcss";import{__unstable__loadDesignSystem as vo,compile as Bu}from"@tailwindcss/node";import Hu from"fs/promises";import $e,{dirname as wo}from"path";import{fileURLToPath as Yu}from"url";import{execSync as zu}from"child_process";import mo from"semver";import{readFileSync as Mu}from"fs";import Rk from"fs/promises";function po(e,t){try{let r=Kn(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(Mu(r,"utf8"));return n}catch{return null}}function _(e){return mo.satisfies(ge(),`>=${e}.0.0 <${e+1}.0.0`)}function go(e){return mo.gte(ge(),`${e+1}.0.0`)}var ju=new y(e=>{let t=po("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function ge(e=process.cwd()){return ju.get(e)}var Ku=new y(e=>{try{return zu("npm ls tailwindcss --json",{cwd:e,stdio:"pipe"}),ge(e)}catch(t){try{let n=JSON.parse(t.stdout.toString());return/"(.*?)" from the root project/.exec(n.dependencies.tailwindcss.invalid)?.[1]??ge(e)}catch{return ge(e)}}});function Qr(e=process.cwd()){return Ku.get(e)}var ho=new WeakSet;function ko(e,t,r){if(!e.theme.prefix||!t||!_(3))return r;ho.has(e)||(e.utilities.functional("group",a=>[N("--phantom-class","group"),N("--phantom-modifier",a.modifier?.value)]),e.utilities.functional("peer",a=>[N("--phantom-class","peer"),N("--phantom-modifier",a.modifier?.value)]),ho.add(e));let n=Fu(e,t,r);if(!n)return r;let i=e.theme.prefix,o=null;try{e.theme.prefix=null;let a=r.slice(0,n.start)+n.base+r.slice(n.end),l=[...ce(a,e)];l.length>0&&(o=l[0])}finally{e.theme.prefix=i}return o?e.printCandidate(o):r}function Fu(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=b(r,":").pop(),o=r.length-i.length,a=o+i.length,l=!1,s=!1;return i[i.length-1]==="!"?(l=!0,i=i.slice(0,-1)):i[0]==="!"&&(l=!0,i=i.slice(1)),i[0]==="-"&&(s=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),s&&(i="-"+i),l&&(i+="!"),{base:i,start:o,end:a})}var Wu=/([a-z]+)/;function yo(e){let t=Wu.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 Gu=Yu(import.meta.url),ct=wo(Gu),bo=String.raw;async function xo(e,t){try{e===null?e=await Xr(t.base):$e.isAbsolute(e)||(e=$e.resolve(t.base,e));let r=$e.relative(ct,e);!r.startsWith(".")&&!$e.isAbsolute(r)&&(r="./"+r);let n=await qu(e),i=n.prefix?yo(n.prefix):null,o=bo`
209
209
  @import 'tailwindcss' ${i?`prefix(${i})`:""};
210
210
  @config '${r}';
211
- `,[o,u]=await Promise.all([Ns(a,{base:Xe,onDependency:()=>{}}),wn(a,{base:Xe})]);return{designSystem:u,sources:o.sources,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){N("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function Os(e){let[t,r]=await Promise.all([wn(bn`
211
+ `,[a,l]=await Promise.all([Bu(o,{base:ct,onDependency:()=>{}}),vo(o,{base:ct})]);return{designSystem:l,sources:a.sources,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){I("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function qu(e){let[t,r]=await Promise.all([vo(bo`
212
212
  @import 'tailwindcss';
213
- `,{base:Xe}),mt(e,Xe,()=>{}).then(n=>n.module)]);return Te(t,[{base:kn(e),config:r,reference:!1}]).resolvedConfig}var Ds=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function gr(e,t=e){for(let r of Is(e,t))for(let n of Ds){let i=ke.resolve(r,n);try{return await Vs.access(i),i}catch{}}throw new Error(`No configuration file found for ${A(P(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${A("--config")} option.`)}function*Is(e,t=e){let r=ke.resolve(e),n=ke.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=ke.dirname(i);while(i!==n);yield n}async function Cn(e,{configPath:t,base:r}){let n=e.filter(s=>s.isTailwindRoot);if(n.length===0)throw new Error(`Cannot find any CSS files that reference Tailwind CSS.
214
- Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${A("@tailwind")}.`);let i=n.filter(s=>{let c=!1;return s.root.walkAtRules("config",p=>{let f=be.resolve(be.dirname(s.file),p.params.slice(1,-1));return s.linkedConfigPath=f,c=!0,!1}),!c});if(i.length===0)return;let a=new Map,o=new y(()=>new Set);for(let s of i){if(!s.file)continue;let c=t;t===null?c=await gr(be.dirname(s.file),r):be.isAbsolute(c)||(c=be.resolve(r,c)),a.set(s,c),o.get(c).add(s)}let u=new Set;for(let s of o.values())if(s.size>1)for(let c of s)u.add(c);if(u.size>1){for(let s of u)N(`Could not determine configuration file for: ${A(P(s.file,r))}
215
- Update your stylesheet to use ${A("@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[s,c]of a)try{if(!s||!s.file)return;U(`Linked ${A(l(c,r))} to ${A(l(s.file,r))}`,{prefix:"\u21B3 "}),s.linkedConfigPath=c;let p=be.relative(be.dirname(s.file),c);!p.startsWith(".")&&!be.isAbsolute(p)&&(p="./"+p),p=Us(p);{let f=s.root,m=Ls.atRule({name:"config",params:`'${p}'`});s.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(f=d)}),f.type==="root"?s.root.prepend(m):f.type==="atrule"&&f.after(m)}}catch(p){N("Could not load the configuration file: "+p.message,{prefix:"\u21B3 "}),process.exit(1)}}import Su from"postcss";import Wn from"fs/promises";import Bn,{extname as su}from"path";function An(e,t){if(!t[0])return e;t.sort((i,a)=>i.end-a.end||i.start-a.start);let r="",n=t[0];r+=e.slice(0,n.start),r+=n.replacement;for(let i=1;i<t.length;++i){let a=t[i];r+=e.slice(n.end,a.start),r+=a.replacement,n=a}return r+=e.slice(n.end),r}import{Scanner as Ms}from"@tailwindcss/oxide";async function Sn(e,t="html"){let n=new Ms({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:a,position:o}of n)i.push({rawCandidate:a,start:o,end:o+a.length});return i}function $n(e){let t=M(e);return t.important=!1,t.variants=[],t}var js=["&&","||","?","===","==","!=","!==",">",">=","<","<="],zs=[/(?<!:?class|className)=['"]$/i,/addEventListener\(['"`]$/,/wire:[^\s]*?$/,/variant\s*[:=]\s*\{?['"`]$/],Ks=/placeholder=\{?['"`]$/,Fs=/\b\$?emit\(['"`]$/;function En(e,t,r){if(t.contents[t.start-1]?.match(/\s/)&&t.contents.slice(t.end,t.end+2)?.match(/^:\s/)){let l=Ws.get(t.contents);for(let s=0;s<l.length;s+=2){let c=l[s],p=l[s+1];if(t.start>=c&&t.end<=p)return!1}}let[n]=ie(e,r);if(!n&&gn(3))return!1;if(n&&(n.variants.length>0||n.kind==="arbitrary"||n.kind==="static"&&n.root.includes("-")||n.kind==="functional"&&n.value!==null||n.kind==="functional"&&n.root.includes("-")||n.kind==="functional"&&n.modifier))return!0;let i="";for(let l=t.start-1;l>=0;l--){let s=t.contents.at(l);if(s===`
216
- `)break;i=s+i}let a="";for(let l=t.end;l<t.contents.length;l++){let s=t.contents.at(l);if(s===`
217
- `)break;a+=s}let o=Tn(i),u=Tn(a);if(!o||!u||a[0]==="."||a.trim().startsWith("("))return!1;for(let l of js)if(a.trim().startsWith(l)||i.trim().endsWith(l))return!1;for(let l of zs)if(l.test(i))return!1;return!(Ks.test(i)||Fs.test(i))}var Ws=new y(e=>{let t=[],r=0;for(;;){let n=e.indexOf("<style",r);if(n===-1)return t;if(r=n+1,!e[n+6].match(/[>\s]/))continue;let i=e.indexOf("</style>",r);if(i===-1)return t;r=i+1,t.push(n,i)}}),Bs=92,qs=34,Ys=39,Gs=96;function Tn(e){let t=null;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);switch(n){case Bs:r++;break;case Ys:case qs:case Gs:t===n?t=null:t===null&&(t=n);break}}return t!==null}function Rn(e,t,r){for(let n of e.parseCandidate(r)){let i=M(n),a=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!St(e,i,i.modifier.value)){let{value:o,didChange:u}=At(i.modifier.value);i.modifier.value=o,a||=u}for(let o of i.variants)Nn(e,o)&&(a=!0);if(i.kind==="arbitrary"&&!St(e,i,i.value)){let{value:o,didChange:u}=At(i.value);i.value=o,a||=u}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!St(e,i,i.value.value)){let{value:o,didChange:u}=At(i.value.value);i.value.value=o,a||=u}if(a)return e.printCandidate(i)}return r}function At(e){let t=!1;return e.startsWith("--")?(!e.includes("(")||x(e)[0]?.kind!=="function")&&(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function Nn(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!St(e,Hs(t),t.value.value)){let{value:n,didChange:i}=At(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&Nn(e,t.variant)&&(r=!0),r}function Hs(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var Js=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 St(e,t,r){let n=e.compileAstNodes(t).map(a=>a.node),i=!1;return k(n,a=>{if(a.kind==="declaration"&&Js.has(a.property)&&a.value==r)return i=!0,w.Stop}),i}function Pn(e,t,r){if(!R(3))return r;for(let n of e.parseCandidate(r)){if(n.kind!=="functional")continue;let i=M(n),a=!1;if(n.value&&i.value&&n.value.kind==="named"&&i.value.kind==="named"&&n.value.value.match(/[A-Z]/)&&(i.value.value=Vn(n.value.value),a=!0),n.modifier&&i.modifier&&n.modifier.kind==="named"&&i.modifier.kind==="named"&&n.modifier.value.match(/[A-Z]/)&&(i.modifier.value=Vn(n.modifier.value),a=!0),a)return e.printCandidate(i)}return r}function Vn(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function _n(e,t,r){for(let n of e.parseCandidate(r)){let i=e.printCandidate(n);if(i!==r)return i}return r}function On(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}function Dn(e,t,r){for(let n of ie(r,e)){let i=M(n),a=!1;return i.kind==="functional"&&i.value?.kind==="arbitrary"&&(i.root==="grid-cols"||i.root=="grid-rows"||i.root=="object")&&(a=!0,i.value.value=b(i.value.value,",").join(" ")),a?e.printCandidate(i):r}return r}import{__unstable__loadDesignSystem as Zs}from"@tailwindcss/node";import Qs from"path";import Xs from"url";var eu=Xs.fileURLToPath(import.meta.url),tu=Qs.dirname(eu),ru=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"],["outline","outline-solid"]]),In=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"]]),iu=new y(e=>Zs('@import "tailwindcss";',{base:e}));async function Un(e,t,r){if(!R(3))return r;let n=await iu.get(tu);function*i(a){for(let o of e.parseCandidate(a)){let u=$n(o),l=e.printCandidate(u),s=ru.get(l);if(!s)continue;let[c]=e.parseCandidate(s);if(!c)continue;let p=M(c);p.variants=o.variants,p.important=o.important,yield[p,In.get(l),In.get(s)]}}for(let[a,o,u]of i(r)){if(o&&u){let l=e.resolveThemeValue(o,!0),s=n.resolveThemeValue(o,!0),c=e.resolveThemeValue(u,!0),p=n.resolveThemeValue(u);if(c===void 0&&p!==void 0||l!==s||c!==p)continue}return e.printCandidate(a)}return r}function Ln(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}function*Mn(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 jn(e,t,r){for(let n of ie(r,e)){let i=M(n),a=!1;for(let[o]of Mn(i))if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="compound"&&o.root==="group"&&o.variant.kind==="arbitrary"&&o.variant.selector==="&"){o.modifier===null?(a=!0,j(o,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):o.modifier.kind==="named"&&(a=!0,j(o,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${o.modifier.value}]`:`in-[.group\\/${o.modifier.value}]`)));continue}return a?e.printCandidate(i):r}return r}var $t={"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"},zn=new WeakSet;function Kn(e,t,r){if(R(3)&&($t["outline-none"]="outline-hidden"),!zn.has(e)){for(let n in $t)e.utilities.static(n,()=>[]);zn.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn($t,n.root))return e.printCandidate({...n,root:$t[n.root]});return r}function Fn(e,t,r){if(!R(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],a=[],o=[],u=n.variants;for(let c of n.variants)nu(e,c)?i.push(c):au(e,c)?o.push(c):a.push(c);let l=a.some(c=>ou(e,c)),s=[...o,...l?a.reverse():a,...i];if(!lu(u,s))return e.printCandidate({...n,variants:s})}return r}function nu(e,t){return t.kind==="static"&&t.root==="dark"?!0:hr(e,t).every(n=>n.kind==="at-rule")}function ou(e,t){return hr(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function au(e,t){return hr(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 hr(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 k(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function lu(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var uu=[On,yn,_n,Kn,Pn,Un,Ln,Fn,Rn,Dn,jn],cu=new y(e=>{let t=Gt(e),r=fi(t);return new y(n=>new y(async i=>{let a=i;for(let u of uu)i=await u(t,n,i);return i=t.canonicalizeCandidates([i]).pop(),typeof t.storage[te].get(r).get(i)!="string"?a:i}))});async function yr(e,t,r,n){return n&&!En(r,n,e)?r:cu.get(e).get(t).get(r)}async function qn(e,t,r,n){let i=await Sn(r,n),a=[];for(let{rawCandidate:o,start:u,end:l}of i){let s=await yr(e,t,o,{contents:r,start:u,end:l});s!==o&&a.push({start:u,end:l,replacement:s})}return An(r,a)}async function Yn(e,t,r){let n=Bn.isAbsolute(r)?r:Bn.resolve(process.cwd(),r),i=await Wn.readFile(n,"utf-8");await Wn.writeFile(n,await qn(e,t,i,su(r)))}function Gn({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),a=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";a&&i.pop();let o=i.map(u=>{if(u.trim()==="")return u;let l=b(u,":"),s=l.pop();return a&&s[0]!=="!"&&s[s.length-1]!=="!"&&(s+="!"),[...l,s].join(":")});return async()=>{e&&(o=await Promise.all(o.map(async u=>await yr(e,t,u))),n.params=o.join("").trim())}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",a=>{i.push(r(a))}),await Promise.allSettled(i.map(a=>a()))}}}import"postcss";import Tt from"postcss-selector-parser";function Jn(e){function t(r){if(!R(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();V(r,o=>{if(o.type!=="rule")return;let u=b(o.selector,",");if(u.length>1){let l=[];for(let s of u){let c=o.clone({selector:s});l.push(c)}o.replaceWith(l)}return 1});let i=new Set;V(r,o=>{if(o.type==="rule")return Tt(u=>{u.each(l=>{V(l,s=>{if(s.type==="pseudo"&&s.value===":not")return 1;s.type==="class"&&i.add(s.value)})})}).processSync(o.selector,{updateSelector:!1}),1}),V(n,o=>{o.type==="rule"&&Tt(u=>{u.each(l=>{V(l,s=>{if(s.type==="pseudo"&&s.value===":not")return 1;if(s.type==="class"&&i.has(s.value))return o.remove(),2})})}).processSync(o,{updateSelector:!0})});let a=[n];for(let o of i){let u=r.clone();a.push(u),V(u,l=>{if(l.type==="atrule"&&(!l.nodes||l.nodes?.length===0)&&l.remove(),l.type!=="rule")return;let s=!1;if(Tt(c=>{c.each(p=>{V(p,f=>{if(f.type==="pseudo"&&f.value===":not")return 1;if(f.type==="class"&&f.value===o){s=!0;let m=p.atPosition(f.source.start.line,f.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),v=d.at(g);d.at(g+1).replaceWith(v),d.at(g).replaceWith(h),g--}m.replaceWith(Tt.nesting())}})})}).processSync(l,{updateSelector:!0}),!s){let c=[l],p=l.parent?.index(l)??null;if(p!==null)for(let f=p-1;f>=0&&l.parent?.nodes.at(f)?.type!=="rule";f--)l.parent?.nodes.at(f)?.type==="comment"&&c.push(l.parent?.nodes.at(f));for(let f of c)f.remove()}return 1}),u.name="utility",u.params=o,u.raws.before=`${u.raws.before??""}
213
+ `,{base:ct}),St(e,ct,()=>{}).then(n=>n.module)]);return Ve(t,[{base:wo(e),config:r,reference:!1}]).resolvedConfig}var Ju=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function Xr(e,t=e){for(let r of Zu(e,t))for(let n of Ju){let i=$e.resolve(r,n);try{return await Hu.access(i),i}catch{}}throw new Error(`No configuration file found for ${$(P(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${$("--config")} option.`)}function*Zu(e,t=e){let r=$e.resolve(e),n=$e.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=$e.dirname(i);while(i!==n);yield n}async function Co(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.
214
+ Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${$("@tailwind")}.`);let i=n.filter(u=>{let c=!1;return u.root.walkAtRules("config",p=>{let f=Te.resolve(Te.dirname(u.file),p.params.slice(1,-1));return u.linkedConfigPath=f,c=!0,!1}),!c});if(i.length===0)return;let o=new Map,a=new y(()=>new Set);for(let u of i){if(!u.file)continue;let c=t;t===null?c=await Xr(Te.dirname(u.file),r):Te.isAbsolute(c)||(c=Te.resolve(r,c)),o.set(u,c),a.get(c).add(u)}let l=new Set;for(let u of a.values())if(u.size>1)for(let c of u)l.add(c);if(l.size>1){for(let u of l)I(`Could not determine configuration file for: ${$(P(u.file,r))}
215
+ Update your stylesheet to use ${$("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let s=P;for(let[u,c]of o)try{if(!u||!u.file)return;B(`Linked ${$(s(c,r))} to ${$(s(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=c;let p=Te.relative(Te.dirname(u.file),c);!p.startsWith(".")&&!Te.isAbsolute(p)&&(p="./"+p),p=Qu(p);{let f=u.root,m=Xu.atRule({name:"config",params:`'${p}'`});u.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(f=d)}),f.type==="root"?u.root.prepend(m):f.type==="atrule"&&f.after(m)}}catch(p){I("Could not load the configuration file: "+p.message,{prefix:"\u21B3 "}),process.exit(1)}}import Hc from"postcss";import Tc from"fs/promises";import Wo,{extname as Nc}from"path";function Ao(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 ec}from"@tailwindcss/oxide";async function So(e,t="html"){let n=new ec({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:o,position:a}of n)i.push({rawCandidate:o,start:a,end:a+o.length});return i}function $o(e){let t=M(e);return t.important=!1,t.variants=[],t}var tc=["&&","||","?","===","==","!=","!==",">",">=","<","<="],rc=[/(?<!:?class|className)=['"]$/i,/addEventListener\(['"`]$/,/wire:[^\s]*?$/,/variant\s*[:=]\s*\{?['"`]$/],ic=/placeholder=\{?['"`]$/,nc=/\b\$?emit\(['"`]$/;function No(e,t,r){if(t.contents[t.start-1]?.match(/\s/)&&t.contents.slice(t.end,t.end+2)?.match(/^:\s/)){let s=oc.get(t.contents);for(let u=0;u<s.length;u+=2){let c=s[u],p=s[u+1];if(t.start>=c&&t.end<=p)return!1}}let n="";for(let s=t.start-1;s>=0;s--){let u=t.contents.at(s);if(u===`
216
+ `)break;n=u+n}let i="";for(let s=t.end;s<t.contents.length;s++){let u=t.contents.at(s);if(u===`
217
+ `)break;i+=u}{let s=mc.get(t.contents);for(let u=0;u<s.length;u+=2){let c=s[u],p=s[u+1];if(t.start>=c&&t.end<=p)return!1}}let[o]=ce(e,r);if(!o&&go(3))return!1;if(o&&(o.variants.length>0||o.kind==="arbitrary"||o.kind==="static"&&o.root.includes("-")||o.kind==="functional"&&o.value!==null||o.kind==="functional"&&o.root.includes("-")||o.kind==="functional"&&o.modifier))return!0;let a=To(n),l=To(i);if(!a||!l||i[0]==="."||i.trim().startsWith("("))return!1;for(let s of tc)if(i.trim().startsWith(s)||n.trim().endsWith(s))return!1;for(let s of rc)if(s.test(n))return!1;return!(ic.test(n)||nc.test(n))}var oc=new y(e=>{let t=[],r=0;for(;;){let n=e.indexOf("<style",r);if(n===-1)return t;if(r=n+1,!e[n+6].match(/[>\s]/))continue;let i=e.indexOf("</style>",r);if(i===-1)return t;r=i+1,t.push(n,i)}}),lc=92,ac=34,sc=39,uc=96,Ut=9,Mt=10,zt=12,jt=13,Kt=32,cc=47,fc=61,pc=62;function To(e){let t=null;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);switch(n){case lc:r++;break;case sc:case ac:case uc:t===n?t=null:t===null&&(t=n);break}}return t!==null}var mc=new y(e=>{let t=[],r=0;for(;;){let n=e.indexOf("<",r);if(n===-1)return t;let i=e.indexOf(">",n+1);if(i===-1)return t;r=i+1;for(let o=n+1;o<i;o++){let a=e.charCodeAt(o);if(a===Kt||a===Ut||a===Mt||a===jt||a===zt)continue;let l=o;for(;o<i;){let f=e.charCodeAt(o);if(f===Kt||f===Ut||f===Mt||f===jt||f===zt||f===fc||f===pc||f===cc)break;o++}let s=e.slice(l,o).toLowerCase();if(s!=="style"&&s!==":style")continue;for(;o<i;){let f=e.charCodeAt(o);if(f!==Kt&&f!==Ut&&f!==Mt&&f!==jt&&f!==zt)break;o++}if(e[o]!=="=")continue;for(o++;o<i;){let f=e.charCodeAt(o);if(f!==Kt&&f!==Ut&&f!==Mt&&f!==jt&&f!==zt)break;o++}let u=e[o];if(u!=='"'&&u!=="'")continue;let c=o+1,p=e.indexOf(u,c);if(p===-1||p>i)break;t.push(c,p),o=p}}});function Eo(e,t,r){for(let n of e.parseCandidate(r)){let i=M(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!Wt(e,i,i.modifier.value)){let{value:a,didChange:l}=Ft(i.modifier.value);i.modifier.value=a,o||=l}for(let a of i.variants)Ro(e,a)&&(o=!0);if(i.kind==="arbitrary"&&!Wt(e,i,i.value)){let{value:a,didChange:l}=Ft(i.value);i.value=a,o||=l}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!Wt(e,i,i.value.value)){let{value:a,didChange:l}=Ft(i.value.value);i.value.value=a,o||=l}if(o)return e.printCandidate(i)}return r}function Ft(e){let t=!1;return e.startsWith("--")?(!e.includes("(")||x(e)[0]?.kind!=="function")&&(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function Ro(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!Wt(e,dc(t),t.value.value)){let{value:n,didChange:i}=Ft(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&Ro(e,t.variant)&&(r=!0),r}function dc(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var gc=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 Wt(e,t,r){let n=e.compileAstNodes(t).map(o=>o.node),i=!1;return w(n,o=>{if(o.kind==="declaration"&&gc.has(o.property)&&o.value==r)return i=!0,v.Stop}),i}function Po(e,t,r){if(!_(3))return r;for(let n of e.parseCandidate(r)){if(n.kind!=="functional")continue;let i=M(n),o=!1;if(n.value&&i.value&&n.value.kind==="named"&&i.value.kind==="named"&&n.value.value.match(/[A-Z]/)&&(i.value.value=Vo(n.value.value),o=!0),n.modifier&&i.modifier&&n.modifier.kind==="named"&&i.modifier.kind==="named"&&n.modifier.value.match(/[A-Z]/)&&(i.modifier.value=Vo(n.modifier.value),o=!0),o)return e.printCandidate(i)}return r}function Vo(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function _o(e,t,r){for(let n of e.parseCandidate(r)){let i=e.printCandidate(n);if(i!==r)return i}return r}function Oo(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}function Do(e,t,r){for(let n of ce(r,e)){let i=M(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=b(i.value.value,",").join(" ")),o?e.printCandidate(i):r}return r}import{__unstable__loadDesignSystem as hc}from"@tailwindcss/node";import kc from"path";import yc from"url";var vc=yc.fileURLToPath(import.meta.url),wc=kc.dirname(vc),bc=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"],["outline","outline-solid"]]),Io=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","--default-ring-width"],["ring-3","--ring-width-3"]]),xc=new y(e=>hc('@import "tailwindcss";',{base:e}));async function Lo(e,t,r){if(!_(3))return r;let n=await xc.get(wc);function*i(o){for(let a of e.parseCandidate(o)){let l=$o(a),s=e.printCandidate(l),u=bc.get(s);if(!u)continue;let[c]=e.parseCandidate(u);if(!c)continue;let p=M(c);p.variants=a.variants,p.important=a.important,yield[p,Io.get(s),Io.get(u)]}}for(let[o,a,l]of i(r)){if(a&&l){let s=e.resolveThemeValue(a,!0),u=n.resolveThemeValue(a,!0),c=e.resolveThemeValue(l,!0),p=n.resolveThemeValue(l);if(c===void 0&&p!==void 0||s!==u||c!==p)continue}return e.printCandidate(o)}return r}function Uo(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}function*Mo(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 zo(e,t,r){for(let n of ce(r,e)){let i=M(n),o=!1;for(let[a]of Mo(i))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?(o=!0,W(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(o=!0,W(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${a.modifier.value}]`:`in-[.group\\/${a.modifier.value}]`)));continue}return o?e.printCandidate(i):r}return r}var Bt={"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"},jo=new WeakSet;function Ko(e,t,r){if(_(3)&&(Bt["outline-none"]="outline-hidden"),!jo.has(e)){for(let n in Bt)e.utilities.static(n,()=>[]);jo.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(Bt,n.root))return e.printCandidate({...n,root:Bt[n.root]});return r}function Fo(e,t,r){if(!_(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],o=[],a=[],l=n.variants;for(let c of n.variants)Cc(e,c)?i.push(c):Sc(e,c)?a.push(c):o.push(c);let s=o.some(c=>Ac(e,c)),u=[...a,...s?o.reverse():o,...i];if(!$c(l,u))return e.printCandidate({...n,variants:u})}return r}function Cc(e,t){return t.kind==="static"&&t.root==="dark"?!0:ei(e,t).every(n=>n.kind==="at-rule")}function Ac(e,t){return ei(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function Sc(e,t){return ei(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 ei(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 w(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function $c(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var Ec=[Oo,ko,_o,Ko,Po,Lo,Uo,Fo,Eo,Do,zo],Rc=new y(e=>{let t=Tr(e),r=Qi(t);return new y(n=>new y(async i=>{let o=i;for(let l of Ec)i=await l(t,n,i);return i=t.canonicalizeCandidates([i]).pop(),typeof t.storage[se].get(r).get(i)!="string"?o:i}))});async function ti(e,t,r,n){return n&&!No(r,n,e)?r:Rc.get(e).get(t).get(r)}async function Bo(e,t,r,n){let i=await So(r,n),o=[];for(let{rawCandidate:a,start:l,end:s}of i){let u=await ti(e,t,a,{contents:r,start:l,end:s});u!==a&&o.push({start:l,end:s,replacement:u})}return Ao(r,o)}async function Ho(e,t,r){let n=Wo.isAbsolute(r)?r:Wo.resolve(process.cwd(),r),i=await Tc.readFile(n,"utf-8"),o=await Bo(e,t,i,Nc(r));return o===i||o.trim()===""?!1:(await Ae(n,o),!0)}function Yo({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 a=i.map(l=>{if(l.trim()==="")return l;let s=b(l,":"),u=s.pop();return o&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...s,u].join(":")});return async()=>{e&&(a=await Promise.all(a.map(async l=>await ti(e,t,l))),n.params=a.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 Ht from"postcss-selector-parser";function qo(e){function t(r){if(!_(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();L(r,a=>{if(a.type!=="rule")return;let l=b(a.selector,",");if(l.length>1){let s=[];for(let u of l){let c=a.clone({selector:u});s.push(c)}a.replaceWith(s)}return 1});let i=new Set;L(r,a=>{if(a.type==="rule"&&!Vc(a))return Ht(l=>{l.each(s=>{L(s,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(a.selector,{updateSelector:!1}),1}),L(n,a=>{a.type==="rule"&&Ht(l=>{l.each(s=>{L(s,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return a.remove(),2})})}).processSync(a,{updateSelector:!0})});let o=[n];for(let a of i){let l=r.clone();o.push(l),L(l,s=>{if(s.type==="atrule"&&(!s.nodes||s.nodes?.length===0)&&s.remove(),s.type!=="rule")return;let u=!1;if(Ht(c=>{c.each(p=>{L(p,f=>{if(f.type==="pseudo"&&f.value===":not")return 1;if(f.type==="class"&&f.value===a){u=!0;let m=p.atPosition(f.source.start.line,f.source.start.column),d=m.parent,h=(m.parent?.index(m)??0)-1;for(;h>=0&&d.at(h)?.type!=="combinator";){let g=d.at(h+1),k=d.at(h);d.at(h+1).replaceWith(k),d.at(h).replaceWith(g),h--}m.replaceWith(Ht.nesting())}})})}).processSync(s,{updateSelector:!0}),!u){let c=[s],p=s.parent?.index(s)??null;if(p!==null){for(let m=p-1;m>=0&&s.parent?.nodes.at(m)?.type!=="rule";m--)s.parent?.nodes.at(m)?.type==="comment"&&c.push(s.parent?.nodes.at(m));let f=[];for(let m=p+1;m<(s.parent?.nodes.length??0);m++){if(s.parent?.nodes.at(m)?.type==="rule"){f=[];break}s.parent?.nodes.at(m)?.type==="comment"&&f.push(s.parent?.nodes.at(m))}c.push(...f)}for(let f of c)f.remove()}return 1}),l.name="utility",l.params=a,l.raws.before=`${l.raws.before??""}
218
218
 
219
- `}for(let o=a.length-1;o>=0;o--){let u=a[o];mr(u,l=>{if(u===n&&l.type==="comment"){let s=!1;for(let c of a)if(c!==n&&(V(c,p=>{if(p.type==="comment"&&p.source?.start?.offset===l.source?.start?.offset)return l.remove(),s=!0,2}),s))return 1}if((l.type==="rule"||l.type==="atrule")&&l.nodes?.length===0)l.remove();else if(l.type==="rule"&&l.selector==="&"){let s=l.parent,c=!1;for(;s;){if(s.type==="rule"){c=!0;break}s=s.parent}c||l.replaceWith(l.nodes)}}),u.nodes?.length===0&&a.splice(o,1)}r.replaceWith(a)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:n})=>{let i=e.layers(),a=i.has("utilities")||i.has("components");if(a){let o=n({name:"layer",params:"utilities"});o.append(r.nodes),r.append(o)}r.walkAtRules("layer",t);{let o=new Map;V(r,u=>{if(u.type==="atrule"&&u.name==="utility"){let l=o.get(u.params);l?(l.append(u.nodes),u.remove()):o.set(u.params,u)}})}a&&r.each(o=>{o.type==="atrule"&&o.name==="layer"&&o.params==="utilities"&&o.replaceWith(o.nodes??[])})}}}import Et from"path";import fu,{AtRule as pu}from"postcss";var Zn=new WeakMap;function eo(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=Zn.get(e);if(i&&i.includes(t))return;i?i.push(t):Zn.set(e,[t]);let a=e.root;if(!e.file)return;let o=new pu;if(r!==null){a.walkAtRules("config",l=>{l.remove()});let u=`
219
+ `}for(let a=o.length-1;a>=0;a--){let l=o[a];if(Zr(l,s=>{if(l===n&&s.type==="comment"){let u=!1;for(let c of o)if(c!==n&&(L(c,p=>{if(p.type==="comment"&&p.source?.start?.offset===s.source?.start?.offset)return s.remove(),u=!0,2}),u))return 1}if(s.type==="atrule"&&s.nodes?.length===0||l!==n&&s.type==="rule"&&s.nodes?.length===0)s.remove();else if(s.type==="rule"&&s.selector==="&"){let u=s.parent,c=!1;for(;u;){if(u.type==="rule"){c=!0;break}u=u.parent}c||s.replaceWith(s.nodes)}}),l.nodes?.length===0)o.splice(a,1);else if(l===n){let s=l.nodes?.[0];s&&(s.raws.before=s.raws.before?.replace(/\n\s*\n/g,`
220
+ `))}}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 a=n({name:"layer",params:"utilities"});a.append(r.nodes),r.append(a)}r.walkAtRules("layer",t);{let a=new Map;L(r,l=>{if(l.type==="atrule"&&l.name==="utility"){let s=a.get(l.params);s?(s.append(l.nodes),l.remove()):a.set(l.params,l)}})}o&&r.each(a=>{a.type==="atrule"&&a.name==="layer"&&a.params==="utilities"&&a.replaceWith(a.nodes??[])})}}}function Vc(e){return e.nodes===void 0?!1:!!(e.nodes.length===0||e.nodes.every(t=>t.type==="comment"))}import Yt from"path";import Pc,{AtRule as _c}from"postcss";var Jo=new WeakMap;function Xo(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=Jo.get(e);if(i&&i.includes(t))return;i?i.push(t):Jo.set(e,[t]);let o=e.root;if(!e.file)return;let a=new _c;if(r!==null){o.walkAtRules("config",s=>{s.remove()});let l=`
220
221
 
221
- `;u+=`
222
- @tw-bucket source {`;for(let l of r.sources){let s=Et.resolve(l.base,l.pattern);u+=`@source '${Qn(e,s)}';
223
- `}u+=`}
224
- `,u+=`
222
+ `;l+=`
223
+ @tw-bucket source {`;for(let s of r.sources){let u=Yt.resolve(s.base,s.pattern);l+=`@source '${Zo(e,u)}';
224
+ `}l+=`}
225
+ `,l+=`
225
226
  @tw-bucket plugin {
226
- `;for(let l of r.plugins){let s=l.path[0]==="."?Qn(e,Et.resolve(l.base,l.path)):l.path;if(l.options===null)u+=`@plugin '${s}';
227
- `;else{u+=`@plugin '${s}' {
228
- `;for(let[c,p]of Object.entries(l.options)){let f="";typeof p=="string"?f=Xn(p):Array.isArray(p)?f=p.map(m=>typeof m=="string"?Xn(m):""+m).join(", "):f=""+p,u+=` ${c}: ${f};
229
- `}u+=`}
230
- `}}u+=`}
231
- `,o.append(fu.parse(u+r.css))}a.append(o.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function Qn(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=Et.relative(Et.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),rr(n)}function Xn(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import mu from"fs/promises";import{dirname as du,resolve as gu}from"path";import"postcss";function to(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[a,...o]=b(i.params," "),u=xi(x(a));if(!u)return;let l=u.uri[0]===".",s=u.uri.endsWith(".css");if(l&&s)return;let c=gu(du(r),u.uri);s||(c+=".css"),n.push(mu.stat(c).then(()=>{let p=s?"":".css",f=l?u.uri:`./${u.uri}`;i.params=[`'${f}${p}'`,...o].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function ro({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=Te(e,[{base:"",config:t,reference:!1,src:void 0}]),a=i?.theme?.screens||{},o=new y(u=>{let l=e?.resolveThemeValue(`--breakpoint-${u}`,!0)??a?.[u];return typeof l=="string"?`(width >= theme(--breakpoint-${u}))`:l?Ni(l):null});n.walkAtRules("screen",u=>{u.name="media",u.params=`screen(${u.params})`}),n.walkAtRules(u=>{if(u.name!=="media")return;let l=u.params.match(/screen\(([^)]+)\)/);if(!l)return;let s=o.get(l[1]);s&&(u.params=s)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as hu}from"postcss";function io(){function e(t){let r="",n=[],i=[],a=null;t.each(o=>{if(o.type==="atrule"){if(o.name==="config"||o.name==="source"||o.name==="theme"||o.name==="utility"||o.name==="custom-variant"||o.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(o.name==="tailwind"&&o.params==="base"||o.name==="import"&&o.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),a??="base",r="base";return}if(o.name==="tailwind"&&o.params==="components"||o.name==="import"&&o.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),a??="components",r="components";return}if(o.name==="tailwind"&&o.params==="utilities"||o.name==="import"&&o.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),a??="utilities",r="utilities";return}if(o.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(o.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[o]]);return}}r===""&&(o.type==="comment"||o.type==="atrule"&&!o.nodes||o.type==="atrule"&&o.name==="charset")||n.push(o)});for(let[o,u]of i){let l=o||a||"";if(l===""||u.every(p=>p.type==="comment"))continue;if(u.every(p=>p.type==="atrule"&&p.name==="import")){for(let p of u)if(!(p.type!=="atrule"||p.name!=="import")&&!p.params.includes("layer(")){let f=b(p.params," ");f.splice(1,0,`layer(${l})`),p.params=f.join(" "),p.raws.tailwind_injected_layer=!0}continue}let s=u[0],c=new hu({name:"layer",params:l,nodes:u.map(p=>p===s?p:p.remove()),raws:{tailwind_pretty:!0}});s.replaceWith(c)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import yu from"dedent";import vu from"postcss";var wu="currentcolor",ku=yu,bu=ku`
227
+ `;for(let s of r.plugins){let u=s.path[0]==="."?Zo(e,Yt.resolve(s.base,s.path)):s.path;if(s.options===null)l+=`@plugin '${u}';
228
+ `;else{l+=`@plugin '${u}' {
229
+ `;for(let[c,p]of Object.entries(s.options)){let f="";typeof p=="string"?f=Qo(p):Array.isArray(p)?f=p.map(m=>typeof m=="string"?Qo(m):""+m).join(", "):f=""+p,l+=` ${c}: ${f};
230
+ `}l+=`}
231
+ `}}l+=`}
232
+ `,a.append(Pc.parse(l+r.css))}o.append(a.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function Zo(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=Yt.relative(Yt.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),Lr(n)}function Qo(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import Oc from"fs/promises";import{dirname as Dc,resolve as Ic}from"path";import"postcss";function el(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[o,...a]=b(i.params," "),l=wn(x(o));if(!l)return;let s=l.uri[0]===".",u=l.uri.endsWith(".css");if(s&&u)return;let c=Ic(Dc(r),l.uri);u||(c+=".css"),n.push(Oc.stat(c).then(()=>{let p=u?"":".css",f=s?l.uri:`./${l.uri}`;i.params=[`'${f}${p}'`,...a].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function tl({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=Ve(e,[{base:"",config:t,reference:!1,src:void 0}]),o=i?.theme?.screens||{},a=new y(l=>{let s=e?.resolveThemeValue(`--breakpoint-${l}`,!0)??o?.[l];return typeof s=="string"?`(width >= theme(--breakpoint-${l}))`:s?Tn(s):null});n.walkAtRules("screen",l=>{l.name="media",l.params=`screen(${l.params})`}),n.walkAtRules(l=>{if(l.name!=="media")return;let s=l.params.match(/screen\(([^)]+)\)/);if(!s)return;let u=a.get(s[1]);u&&(l.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as Lc}from"postcss";function rl(){function e(t){let r="",n=[],i=[],o=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"){n.length>0&&i.push([r,n.splice(0)]);return}if(a.name==="tailwind"&&a.params==="base"||a.name==="import"&&a.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="base",r="base";return}if(a.name==="tailwind"&&a.params==="components"||a.name==="import"&&a.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="components",r="components";return}if(a.name==="tailwind"&&a.params==="utilities"||a.name==="import"&&a.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="utilities",r="utilities";return}if(a.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(a.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[a]]);return}}r===""&&(a.type==="comment"||a.type==="atrule"&&!a.nodes||a.type==="atrule"&&a.name==="charset")||n.push(a)});for(let[a,l]of i){let s=a||o||"";if(s===""||l.every(p=>p.type==="comment"))continue;if(l.every(p=>p.type==="atrule"&&p.name==="import")){for(let p of l)if(!(p.type!=="atrule"||p.name!=="import")&&!p.params.includes("layer(")){let f=b(p.params," ");f.splice(1,0,`layer(${s})`),p.params=f.join(" "),p.raws.tailwind_injected_layer=!0}continue}let u=l[0],c=new Lc({name:"layer",params:s,nodes:l.map(p=>p===u?p:p.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(c)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import Uc from"dedent";import Mc from"postcss";var zc="currentcolor",jc=Uc,Kc=jc`
232
233
  /*
233
234
  The default border color has changed to \`currentcolor\` in Tailwind CSS v4,
234
235
  so we've added these compatibility styles to make sure everything still
@@ -246,11 +247,11 @@ Update your stylesheet to use ${A("@config")} to specify the correct configurati
246
247
  border-color: theme(borderColor.DEFAULT);
247
248
  }
248
249
  }
249
- `;function no({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(a){if(!e)return!1;let o=`--${Z(Q(a))}`;return!!e.theme.get([o])}function i(a){if(!R(3))return;let o=!1;if(a.walkAtRules("import",s=>{if(/['"]tailwindcss['"]/.test(s.params)||/['"]tailwindcss\/preflight['"]/.test(s.params))return o=!0,!1}),!o)return;let u="";r!==wu&&(u+=bu,u+=`
250
+ `;function il({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(o){if(!e)return!1;let a=`--${te(ie(o))}`;return!!e.theme.get([a])}function i(o){if(!_(3))return;let a=!1;if(o.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return a=!0,!1}),!a)return;let l="";r!==zc&&(l+=Kc,l+=`
250
251
 
251
- `),u=`
252
+ `),l=`
252
253
  @tw-bucket compatibility {
253
- ${u}
254
+ ${l}
254
255
  }
255
- `;let l=vu.parse(u);l.walkDecls(s=>{s.value.includes("theme(")&&(s.value=xu(x(s.value),c=>n(c)?r:c==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),a.walkAtRules("theme",s=>{s.walkDecls("--border-color",c=>{c.remove()}),s.nodes?.length===0&&s.remove()}),a.append(l)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function xu(e,t){return k(e,r=>{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 i=n.value,a=1;for(let l=a;l<r.nodes.length&&!r.nodes[l].value.includes(",");l++)i+=S([r.nodes[l]]),a=l+1;i=Cu(i);let o=r.nodes.slice(a+1),u=o.length>0?t(i,S(o)):t(i);return u===null?void 0:w.Replace(x(u))}}),S(e)}function Cu(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],a=e[n+1];i==="\\"&&(a===r||a==="\\")?(t+=a,n++):t+=i}return t}import{AtRule as Rt}from"postcss";var vr=["theme","base","components","utilities"];function oo(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,a=null,o=[],u=null,l=null,s=null,c=null,p=[];n.walkAtRules(f=>{if(f.name==="import"&&f.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(f.params=f.params.replace("tailwindcss/tailwind.css","tailwindcss")),f.name==="import"&&f.params.match(/^["']tailwindcss["']/))f.params+=t;else if(f.name==="tailwind"&&f.params==="base"||f.name==="import"&&f.params.match(/^["']tailwindcss\/base["']$/))p.push("base"),o.push(f),i=f;else if(f.name==="tailwind"&&f.params==="utilities"||f.name==="import"&&f.params.match(/^["']tailwindcss\/utilities["']$/))p.push("utilities"),o.push(f),a=f;else if(f.name==="tailwind"&&f.params==="components"||f.name==="tailwind"&&f.params==="screens"||f.name==="tailwind"&&f.params==="variants"||f.name==="import"&&f.params.match(/^["']tailwindcss\/components["']$/))f.remove();else if(f.name==="responsive")if(f.nodes){for(let m of f.nodes)m.raws.tailwind_pretty=!0;f.replaceWith(f.nodes)}else f.remove()}),i!==null&&a!==null?(u||Nt(o).before(new Rt({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),a?.remove()):a!==null?(l||Nt(o).before(new Rt({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),a?.remove()):i!==null&&(c||Nt(o).before(new Rt({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),s||Nt(o).before(new Rt({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let f=p.toSorted((m,d)=>vr.indexOf(m)-vr.indexOf(d));if(p.some((m,d)=>m!==f[d])){let m=vr.toSorted((d,g)=>p.indexOf(d)-p.indexOf(g));n.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function Nt(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 ao(e,{prettyPrint:t=!1}={}){function r(o,u=0){let l=x(o);if(u&2)return[Vt(l,a),null];let s=0,c=0;if(k(l,m=>{m.kind==="function"&&m.value==="theme"&&(s+=1,k(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?w.Stop:d.kind==="word"&&d.value==="/"?(c+=1,w.Stop):w.Skip))}),s===0)return[o,null];if(c===0)return[Vt(l,i),null];if(c>1)return[Vt(l,a),null];let p=null;return[Vt(l,(m,d)=>{let g=b(m,"/").map(h=>h.trim());if(g.length>2)return null;if(l.length===1&&g.length===2&&u&1){let[h,v]=g;if(/^\d+%$/.test(v))p={kind:"named",value:v.slice(0,-1)};else if(/^0?\.\d+$/.test(v)){let C=Number(v)*100;p={kind:Number.isInteger(C)?"named":"arbitrary",value:C.toString()}}else p={kind:"arbitrary",value:v};m=h}return i(m,d)||a(m,d)}),p]}function n(o){let u=`--${Z(Q(o))}`;return e.theme.get([u])?e.theme.prefix?`--${e.theme.prefix}-${u.slice(2)}`:u:null}function i(o,u){let l=n(o);if(l)return u?`var(${l}, ${u})`:`var(${l})`;let s=Q(o);if(s[0]==="spacing"&&e.theme.get(["--spacing"])){let c=s[1];return oe(c)?`--spacing(${c})`:null}return null}function a(o,u){let l=b(o,"/").map(p=>p.trim());o=l.shift();let s=n(o);if(!s)return null;let c=l.length>0?t?` / ${l.join(" / ")}`:`/${l.join("/")}`:"";return u?`--theme(${s}${c}, ${u})`:`--theme(${s}${c})`}return r}function Vt(e,t){return k(e,(r,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 a=i.value,o=1;for(let s=o;s<r.nodes.length&&!r.nodes[s].value.includes(",");s++)a+=S([r.nodes[s]]),o=s+1;a=Au(a);let u=r.nodes.slice(o+1),l=u.length>0?t(a,S(u)):t(a);if(l===null)return;if(n.parent){let s=n.parent.nodes.indexOf(r)-1;for(;s!==-1;){let c=n.parent.nodes[s];if(c.kind==="separator"&&c.value.trim()===""){s-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(l=`(${l})`);break}}return w.Replace(x(l))}}),S(e)}function Au(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],a=e[n+1];i==="\\"&&(a===r||a==="\\")?(t+=a,n++):t+=i}return t}function lo({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=ao(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 so(){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 uo(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await $u(e,t)}async function $u(e,t,r){return typeof e=="string"&&(e=await re.fromString(e),e.file=r??null),Su().use(to()).use(Gn(t)).use(ro(t)).use(so()).use(Jn(e)).use(io()).use(oo(t)).use(eo(e,t)).use(no(t)).use(lo(t)).process(e.root,{from:e.file??void 0})}import Tu from"postcss";var co=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function po(){async function e(t){{let u=function(l,...s){o=l,a.get(l).nodes?.push(...i.splice(0),...s)};var n=u;let i=[],a=new y(l=>{let s=Tu.atRule({name:"tw-bucket",params:l,nodes:[]});return t.append(s),s});t.walkAtRules("tw-bucket",l=>{a.set(l.params,l)});let o="user";V(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 s=fo(l.prev(),l)??1/0,c=fo(l,l.next())??1/0;s<c?a.get(o).nodes?.push(l):i.push(l)}else l.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(l.name)?u(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"?u("import",l):(l.type==="rule"||l.type,u("user",l));return 1}),i.length>0&&u(o)}let r=new Map;t.walkAtRules("tw-bucket",i=>{let a=r.get(i.params);if(!a){r.set(i.params,i);return}i.nodes&&a.append(...i.nodes)}),t.walkAtRules("tw-bucket",i=>{i.nodes?.length||i.remove()});{let i=Array.from(r.values()).sort((a,o)=>{let u=co.indexOf(a.params),l=co.indexOf(o.params);return u-l});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function fo(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 Eu from"postcss";async function mo(e){let t=new Map,r=new Map;for(let u of e)t.set(u.id,u),u.file&&r.set(u.file,u);let n=new Set;for(let u of e){if(u.isTailwindRoot)continue;let l=!1,s=u.layers().size>0;V(u.root,c=>{if(c.type==="atrule"&&c.name==="utility")l=!0;else{if(c.type==="atrule"&&c.name==="import"&&c.params.includes("layer(")||c.type==="atrule"&&c.name==="layer"||c.type==="comment")return 1;s=!0}return l&&s?2:1}),l&&s&&n.add(u)}let i=new Map;for(let u of e){if(!u.file||u.parents.size===0||!n.has(u)&&!Array.from(u.descendants()).some(f=>n.has(f)))continue;let l=Eu.root();V(u.root,f=>{if(f.type==="atrule"&&f.name==="utility")return l.append(f),1});let s=u.file.replace(/\.css$/,".utilities.css"),c=0;for(;r.has(s);)c+=1,s=u.file.replace(/\.css$/,`.utilities.${c}.css`);let p=await re.fromRoot(l,s);p.extension=c>0?`.utilities.${c}.css`:".utilities.css",i.set(u,p),t.set(p.id,p)}for(let[u,l]of i){for(let s of u.parents){let c=i.get(s.item);c&&l.parents.add({item:c,meta:s.meta})}for(let s of u.children){let c=i.get(s.item);c&&l.children.add({item:c,meta:s.meta})}}for(let u of e){let l=i.get(u),s=new Set;for(let c of u.importRules){let p=c.raws.tailwind_destination_sheet_id;if(!p)continue;let f=t.get(p);if(!f)continue;let m=i.get(f);if(!m)continue;let d=c.params.match(/(['"])(.*)\1/);if(!d)return;let g=d[1],h=d[2],v=h.replace(/\.css$/,m.extension),C=c.clone({params:`${g}${v}${g}`,raws:{tailwind_injected_layer:c.raws.tailwind_injected_layer,tailwind_original_params:`${g}${h}${g}`,tailwind_destination_sheet_id:m.id}});l?s.add(C):c.after(C)}l&&s.size>0&&l.root.prepend(Array.from(s))}let a=new y(()=>new Set);for(let u of t.values())for(let l of u.importRules){let s=l.raws.tailwind_destination_sheet_id;if(!s)continue;let c=t.get(s);c&&a.get(c).add(l)}let o=[];for(let u of e.slice()){for(let l of u.descendants())o.push(l);o.push(u)}for(let u of o){let l=i.get(u);if(l&&u.isEmpty){u.root=l.root;for(let s of a.get(l))s.params=s.raws.tailwind_original_params;for(let s of a.get(u))s.remove();i.delete(u)}}e.push(...i.values())}import xe from"picocolors";function go({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(B(wt()),e&&(B(),B(`${xe.dim("Invalid command:")} ${e}`)),t&&t.length>0){B(),B(xe.dim("Usage:"));for(let[i,a]of t.entries()){let o=a.slice(0,a.indexOf("[")),u=a.slice(a.indexOf("["));u=u.replace(/\[.*?\]/g,c=>xe.dim(c));let s=Je(u,n-vt.indent-o.length-1);s.length>1&&i!==0&&B(),B(Ze(`${o}${s.shift()}`));for(let c of s)B(Ze(c,o.length))}}if(r){let i=0;for(let{alias:l}of Object.values(r))l&&(i=Math.max(i,l.length));let a=[],o=0;for(let[l,{alias:s}]of Object.entries(r)){let c=[s&&`${s.padStart(i)}`,s?l:" ".repeat(i+2)+l].filter(Boolean).join(", ");a.push(c),o=Math.max(o,c.length)}B(),B(xe.dim("Options:"));let u=8;for(let{description:l,default:s=null}of Object.values(r)){let c=a.shift(),p=u+(o-c.length),f=2,m=n-c.length-p-f-vt.indent,d=Je(s!==null?`${l} ${xe.dim(`[default:\u202F${A(`${s}`)}]`)}`:l,m);B(Ze(`${xe.blue(c)} ${xe.dim(xe.gray("\xB7")).repeat(p)} ${d.shift()}`));for(let g of d)B(Ze(`${" ".repeat(c.length+p+f)}${g}`))}}}import Ru from"mri";function yo(e,t=process.argv.slice(2)){let r=Ru(t),n={_:r._};for(let[i,{type:a,alias:o,default:u=a==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=u,o){let l=o.slice(1);r[l]!==void 0&&(n[i]=ho(r[l],a))}{let l=i.slice(2);r[l]!==void 0&&(n[i]=ho(r[l],a))}}return n}function ho(e,t){switch(t){case"string":return Ot(e);case"boolean":return Pt(e);case"number":return _t(e);case"boolean | string":return Pt(e)??Ot(e);case"number | string":return _t(e)??Ot(e);case"boolean | number":return Pt(e)??_t(e);case"boolean | number | string":return Pt(e)??_t(e)??Ot(e);default:throw new Error(`Unhandled type: ${t}`)}}function Pt(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function _t(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function Ot(e){return`${e}`}import{execSync as Nu}from"child_process";function wr(){try{return Nu("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}var wo={"--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"}},Dt=yo(wo);Dt["--help"]&&(go({usage:["npx @tailwindcss/upgrade"],options:wo}),process.exit(0));async function Du(){let e=process.cwd();ve(wt()),ve();let t=[];if(Dt["--force"]||wr()&&(N("Git directory is not clean. Please stash or commit your changes before migrating."),K(`You may use the ${A("--force")} flag to silence this warning and perform the migration.`),process.exit(1)),K(`Upgrading from Tailwind CSS ${A(`v${ce(e)}`)}`,{prefix:"\u21B3 "}),ce(e)!==dr(e)){let r=await Ne(e).manager();N(["Version mismatch","",H.dim("```diff"),`${H.red("-")} ${`${H.dim('"tailwindcss":')} ${`${H.dim('"')}${H.blue(dr(e))}${H.dim('"')}`}`} (expected version in ${A("package.json")})`,`${H.green("+")} ${`${H.dim('"tailwindcss":')} ${`${H.dim('"')}${H.blue(ce(e))}${H.dim('"')}`}`} (installed version in ${A("node_modules")})`,H.dim("```"),"",`Make sure to run ${A(`${r} install`)} and try again.`].join(`
256
- `),{prefix:"\u21B3 "}),process.exit(1)}{let r=Dt._.map(s=>_u.resolve(e,s));r.length===0&&(K("Searching for CSS files in the current directory and its subdirectories\u2026"),r=await Pu(["**/*.css"],{absolute:!0,gitignore:!0,ignore:["**/node_modules/**"]})),r=r.filter(s=>s.endsWith(".css"));let n=await Promise.allSettled(r.map(s=>re.load(s)));for(let s of n)s.status==="rejected"&&N(`${s.reason?.message??s.reason}`,{prefix:"\u21B3 "});let i=n.filter(s=>s.status==="fulfilled").map(s=>s.value),a=new Map(i.map(s=>[s,s.root.toString()]));try{await sn(i)}catch(s){N(`${s?.message??s}`,{prefix:"\u21B3 "})}if(R(3))try{await Cn(i,{configPath:Dt["--config"],base:e})}catch(s){N(`${s?.message??s}`,{prefix:"\u21B3 "})}i.some(s=>s.isTailwindRoot&&s.linkedConfigPath)&&K("Migrating JavaScript configuration files\u2026");let o=new Map,u=new Map;for(let s of i){if(!s.isTailwindRoot||!R(3)&&!s.linkedConfigPath)continue;let c=await xn(s.linkedConfigPath,{base:e});o.set(s,c);let p=await Zi(c.designSystem,c.configFilePath,e);u.set(s,p),p!==null&&t.push(()=>vo.rm(c.configFilePath)),p!==null&&U(`Migrated configuration file: ${A(P(c.configFilePath,e))}`,{prefix:"\u21B3 "})}if(i.length>0&&K("Migrating stylesheets\u2026"),await Promise.all(i.map(async s=>{try{let c=o.get(s),p=u.get(s)??null;if(!c){for(let f of s.ancestors())if(f.isTailwindRoot){c??=o.get(f),p??=u.get(f)??null;break}}await uo(s,{newPrefix:c?.newPrefix??null,designSystem:c?.designSystem??await s.designSystem(),userConfig:c?.userConfig??null,configFilePath:c?.configFilePath??null,jsConfigMigration:p})}catch(c){N(`${c?.message??c} in ${A(P(s.file,e))}`,{prefix:"\u21B3 "})}})),R(3)){try{await mo(i)}catch(s){N(`${s?.message??s}`,{prefix:"\u21B3 "})}for(let s of i)for(let c of s.importRules){if(!c.raws.tailwind_injected_layer)continue;let p=i.find(f=>f.id===c.raws.tailwind_destination_sheet_id);p&&p.containsRule(f=>f.type==="atrule"&&f.name==="utility")&&(c.params=c.params.replace(/ layer\([^)]+\)/,"").trim())}}for(let s of i)a.get(s)!==s.root.toString()&&await Ou([po(),pn()]).process(s.root,{from:s.file});for(let s of i)s.file&&(await vo.writeFile(s.file,s.root.toString()),s.isTailwindRoot&&U(`Migrated stylesheet: ${A(P(s.file,e))}`,{prefix:"\u21B3 "}));K("Updating dependencies\u2026");{let s=Ne(e),c=["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"].filter(p=>p==="tailwindcss"||s.has(p));try{await s.add(c.map(p=>`${p}@latest`));for(let p of c)U(`Updated package: ${A(p)}`,{prefix:"\u21B3 "})}catch{}}let l=i.filter(s=>s.isTailwindRoot&&s.file);l.length>0&&K("Migrating templates\u2026");{let s=new Set;for(let c of l){let p=await c.compiler();if(!p)continue;let f=await c.designSystem();if(!f)continue;let m=(p.root==="none"?[]:p.root===null?[{base:e,pattern:"**/*",negated:!1}]:[{...p.root,negated:!1}]).concat(p.sources),d=o.get(c),g=new Vu({sources:m}),h=[];for(let v of g.files)v.endsWith(".css")||s.has(v)||(s.add(v),h.push(v));await Promise.allSettled(h.map(v=>Yn(f,d?.userConfig??null,v))),d?.configFilePath?U(`Migrated templates for configuration file: ${A(P(d.configFilePath,e))}`,{prefix:"\u21B3 "}):U(`Migrated templates for: ${A(P(c.file??"<unknown>",e))}`,{prefix:"\u21B3 "})}}}R(3)&&await rn(e),await Promise.allSettled(t.map(r=>r())),wr()?U("Verify the changes and commit them to your repository."):U("No changes were made to your repository.")}Du().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
256
+ `;let s=Mc.parse(l);s.walkDecls(u=>{u.value.includes("theme(")&&(u.value=Fc(x(u.value),c=>n(c)?r:c==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),o.walkAtRules("theme",u=>{u.walkDecls("--border-color",c=>{c.remove()}),u.nodes?.length===0&&u.remove()}),o.append(s)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function Fc(e,t){return w(e,r=>{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 i=n.value,o=1;for(let s=o;s<r.nodes.length&&!r.nodes[s].value.includes(",");s++)i+=A([r.nodes[s]]),o=s+1;i=Wc(i);let a=r.nodes.slice(o+1),l=a.length>0?t(i,A(a)):t(i);return l===null?void 0:v.Replace(x(l))}}),A(e)}function Wc(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 Gt}from"postcss";var ri=["theme","base","components","utilities"];function nl(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,a=[],l=null,s=null,u=null,c=null,p=[];n.walkAtRules(f=>{if(f.name==="import"&&f.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(f.params=f.params.replace("tailwindcss/tailwind.css","tailwindcss")),f.name==="import"&&f.params.match(/^["']tailwindcss["']/))f.params+=t;else if(f.name==="tailwind"&&f.params==="base"||f.name==="import"&&f.params.match(/^["']tailwindcss\/base["']$/))p.push("base"),a.push(f),i=f;else if(f.name==="tailwind"&&f.params==="utilities"||f.name==="import"&&f.params.match(/^["']tailwindcss\/utilities["']$/))p.push("utilities"),a.push(f),o=f;else if(f.name==="tailwind"&&f.params==="components"||f.name==="tailwind"&&f.params==="screens"||f.name==="tailwind"&&f.params==="variants"||f.name==="import"&&f.params.match(/^["']tailwindcss\/components["']$/))f.remove();else if(f.name==="responsive")if(f.nodes){for(let m of f.nodes)m.raws.tailwind_pretty=!0;f.replaceWith(f.nodes)}else f.remove()}),i!==null&&o!==null?(l||qt(a).before(new Gt({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(s||qt(a).before(new Gt({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(c||qt(a).before(new Gt({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||qt(a).before(new Gt({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let f=p.toSorted((m,d)=>ri.indexOf(m)-ri.indexOf(d));if(p.some((m,d)=>m!==f[d])){let m=ri.toSorted((d,h)=>p.indexOf(d)-p.indexOf(h));n.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function qt(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 ol(e,{prettyPrint:t=!1}={}){function r(a,l=0){let s=x(a);if(l&2)return[Jt(s,o),null];let u=0,c=0;if(w(s,m=>{m.kind==="function"&&m.value==="theme"&&(u+=1,w(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?v.Stop:d.kind==="word"&&d.value==="/"?(c+=1,v.Stop):v.Skip))}),u===0)return[a,null];if(c===0)return[Jt(s,i),null];if(c>1)return[Jt(s,o),null];let p=null;return[Jt(s,(m,d)=>{let h=b(m,"/").map(g=>g.trim());if(h.length>2)return null;if(s.length===1&&h.length===2&&l&1){let[g,k]=h;if(/^\d+%$/.test(k))p={kind:"named",value:k.slice(0,-1)};else if(/^0?\.\d+$/.test(k)){let S=Number(k)*100;p={kind:Number.isInteger(S)?"named":"arbitrary",value:S.toString()}}else p={kind:"arbitrary",value:k};m=g}return i(m,d)||o(m,d)}),p]}function n(a){let l=`--${te(ie(a))}`;return e.theme.get([l])?e.theme.prefix?`--${e.theme.prefix}-${l.slice(2)}`:l:null}function i(a,l){let s=n(a);if(s)return l?`var(${s}, ${l})`:`var(${s})`;let u=ie(a);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let c=u[1];return Z(c)?`--spacing(${c})`:null}return null}function o(a,l){let s=b(a,"/").map(p=>p.trim());a=s.shift();let u=n(a);if(!u)return null;let c=s.length>0?t?` / ${s.join(" / ")}`:`/${s.join("/")}`:"";return l?`--theme(${u}${c}, ${l})`:`--theme(${u}${c})`}return r}function Jt(e,t){return w(e,(r,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,a=1;for(let u=a;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=A([r.nodes[u]]),a=u+1;o=Bc(o);let l=r.nodes.slice(a+1),s=l.length>0?t(o,A(l)):t(o);if(s===null)return;{let u=n.index-1;for(;u!==-1;){let c=n.siblings[u];if(c.kind==="separator"&&c.value.trim()===""){u-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(s=`(${s})`);break}}return v.Replace(x(s))}}),A(e)}function Bc(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 ll({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=ol(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 al(){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 sl(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await Yc(e,t)}async function Yc(e,t,r){return typeof e=="string"&&(e=await ue.fromString(e),e.file=r??null),Hc().use(el()).use(Yo(t)).use(tl(t)).use(al()).use(qo(e)).use(rl()).use(nl(t)).use(Xo(e,t)).use(il(t)).use(ll(t)).process(e.root,{from:e.file??void 0})}import Gc from"postcss";var ul=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function fl(){async function e(t){{let l=function(s,...u){a=s,o.get(s).nodes?.push(...i.splice(0),...u)};var n=l;let i=[],o=new y(s=>{let u=Gc.atRule({name:"tw-bucket",params:s,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",s=>{o.set(s.params,s)});let a="user";L(t,s=>{if(s.type==="atrule"&&s.name==="tw-bucket")return 1;if(s.type==="comment"){if(i.length>0){i.push(s);return}let u=cl(s.prev(),s)??1/0,c=cl(s,s.next())??1/0;u<c?o.get(a).nodes?.push(s):i.push(s)}else s.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(s.name)?l(s.name,s):s.type==="atrule"&&s.name==="layer"&&!s.nodes||s.type==="atrule"&&s.name==="import"||s.type==="atrule"&&s.name==="charset"||s.type==="atrule"&&s.name==="tailwind"?l("import",s):(s.type==="rule"||s.type,l("user",s));return 1}),i.length>0&&l(a)}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,a)=>{let l=ul.indexOf(o.params),s=ul.indexOf(a.params);return l-s});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function cl(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 qc from"postcss";async function pl(e){let t=new Map,r=new Map;for(let l of e)t.set(l.id,l),l.file&&r.set(l.file,l);let n=new Set;for(let l of e){if(l.isTailwindRoot)continue;let s=!1,u=l.layers().size>0;L(l.root,c=>{if(c.type==="atrule"&&c.name==="utility")s=!0;else{if(c.type==="atrule"&&c.name==="import"&&c.params.includes("layer(")||c.type==="atrule"&&c.name==="layer"||c.type==="comment")return 1;u=!0}return s&&u?2:1}),s&&u&&n.add(l)}let i=new Map;for(let l of e){if(!l.file||l.parents.size===0||!n.has(l)&&!Array.from(l.descendants()).some(f=>n.has(f)))continue;let s=qc.root();L(l.root,f=>{if(f.type==="atrule"&&f.name==="utility")return s.append(f),1});let u=l.file.replace(/\.css$/,".utilities.css"),c=0;for(;r.has(u);)c+=1,u=l.file.replace(/\.css$/,`.utilities.${c}.css`);let p=await ue.fromRoot(s,u);p.extension=c>0?`.utilities.${c}.css`:".utilities.css",i.set(l,p),t.set(p.id,p)}for(let[l,s]of i){for(let u of l.parents){let c=i.get(u.item);c&&s.parents.add({item:c,meta:u.meta})}for(let u of l.children){let c=i.get(u.item);c&&s.children.add({item:c,meta:u.meta})}}for(let l of e){let s=i.get(l),u=new Set;for(let c of l.importRules){let p=c.raws.tailwind_destination_sheet_id;if(!p)continue;let f=t.get(p);if(!f)continue;let m=i.get(f);if(!m)continue;let d=c.params.match(/(['"])(.*)\1/);if(!d)return;let h=d[1],g=d[2],k=g.replace(/\.css$/,m.extension),S=c.clone({params:`${h}${k}${h}`,raws:{tailwind_injected_layer:c.raws.tailwind_injected_layer,tailwind_original_params:`${h}${g}${h}`,tailwind_destination_sheet_id:m.id}});s?u.add(S):c.after(S)}s&&u.size>0&&s.root.prepend(Array.from(u))}let o=new y(()=>new Set);for(let l of t.values())for(let s of l.importRules){let u=s.raws.tailwind_destination_sheet_id;if(!u)continue;let c=t.get(u);c&&o.get(c).add(s)}let a=[];for(let l of e.slice()){for(let s of l.descendants())a.push(s);a.push(l)}for(let l of a){let s=i.get(l);if(s&&l.isEmpty){l.root=s.root;for(let u of o.get(s))u.params=u.raws.tailwind_original_params;for(let u of o.get(l))u.remove();i.delete(l)}}e.push(...i.values())}import Ne from"picocolors";function ml({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(J(Vt()),e&&(J(),J(`${Ne.dim("Invalid command:")} ${e}`)),t&&t.length>0){J(),J(Ne.dim("Usage:"));for(let[i,o]of t.entries()){let a=o.slice(0,o.indexOf("[")),l=o.slice(o.indexOf("["));l=l.replace(/\[.*?\]/g,c=>Ne.dim(c));let u=at(l,n-Rt.indent-a.length-1);u.length>1&&i!==0&&J(),J(st(`${a}${u.shift()}`));for(let c of u)J(st(c,a.length))}}if(r){let i=0;for(let{alias:s}of Object.values(r))s&&(i=Math.max(i,s.length));let o=[],a=0;for(let[s,{alias:u}]of Object.entries(r)){let c=[u&&`${u.padStart(i)}`,u?s:" ".repeat(i+2)+s].filter(Boolean).join(", ");o.push(c),a=Math.max(a,c.length)}J(),J(Ne.dim("Options:"));let l=8;for(let{description:s,default:u=null}of Object.values(r)){let c=o.shift(),p=l+(a-c.length),f=2,m=n-c.length-p-f-Rt.indent,d=at(u!==null?`${s} ${Ne.dim(`[default:\u202F${$(`${u}`)}]`)}`:s,m);J(st(`${Ne.blue(c)} ${Ne.dim(Ne.gray("\xB7")).repeat(p)} ${d.shift()}`));for(let h of d)J(st(`${" ".repeat(c.length+p+f)}${h}`))}}}import Jc from"mri";function gl(e,t=process.argv.slice(2)){let r=Jc(t),n={_:r._};for(let[i,{type:o,alias:a,default:l=o==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=l,a){let s=a.slice(1);r[s]!==void 0&&(n[i]=dl(r[s],o))}{let s=i.slice(2);r[s]!==void 0&&(n[i]=dl(r[s],o))}}return n}function dl(e,t){switch(t){case"string":return Xt(e);case"boolean":return Zt(e);case"number":return Qt(e);case"boolean | string":return Zt(e)??Xt(e);case"number | string":return Qt(e)??Xt(e);case"boolean | number":return Zt(e)??Qt(e);case"boolean | number | string":return Zt(e)??Qt(e)??Xt(e);default:throw new Error(`Unhandled type: ${t}`)}}function Zt(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function Qt(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function Xt(e){return`${e}`}var kl={"--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"}},er=gl(kl);er["--help"]&&(ml({usage:["npx @tailwindcss/upgrade"],options:kl}),process.exit(0));async function tf(){let e=process.cwd(),t=await Xc({cwd:Lt(e)??e});Ce(Vt()),Ce();let r=[];if(er["--force"]||Jr()&&(I("Git directory is not clean. Please stash or commit your changes before migrating."),D(`You may use the ${$("--force")} flag to silence this warning and perform the migration.`),process.exit(1)),D(`Upgrading from Tailwind CSS ${$(`v${ge(e)}`)}`,{prefix:"\u21B3 "}),ge(e)!==Qr(e)){let n=await Oe(e).manager();I(["Version mismatch","",X.dim("```diff"),`${X.red("-")} ${`${X.dim('"tailwindcss":')} ${`${X.dim('"')}${X.blue(Qr(e))}${X.dim('"')}`}`} (expected version in ${$("package.json")})`,`${X.green("+")} ${`${X.dim('"tailwindcss":')} ${`${X.dim('"')}${X.blue(ge(e))}${X.dim('"')}`}`} (installed version in ${$("node_modules")})`,X.dim("```"),"",`Make sure to run ${$(`${n} install`)} and try again.`].join(`
257
+ `),{prefix:"\u21B3 "}),process.exit(1)}{let n=er._.map(c=>ii.resolve(e,c));n.length===0&&(D("Searching for CSS files in the current directory and its subdirectories\u2026"),n=await Qc(["**/*.css"],{cwd:e,absolute:!0,gitignore:!0,ignore:["**/node_modules/**"]})),n=n.filter(c=>c.endsWith(".css"));let i=await Promise.allSettled(n.map(c=>ue.load(c)));for(let c of i)c.status==="rejected"&&I(`${c.reason?.message??c.reason}`,{prefix:"\u21B3 "});let o=i.filter(c=>c.status==="fulfilled").map(c=>c.value),a=new Map(o.map(c=>[c,c.root.toString()]));try{await ao(o,{base:e})}catch(c){I(`${c?.message??c}`,{prefix:"\u21B3 "})}if(_(3))try{await Co(o,{configPath:er["--config"],base:e})}catch(c){I(`${c?.message??c}`,{prefix:"\u21B3 "})}o.some(c=>c.isTailwindRoot&&c.linkedConfigPath)&&D("Migrating JavaScript configuration files\u2026");let l=new Map,s=new Map;for(let c of o){if(!c.isTailwindRoot||!_(3)&&!c.linkedConfigPath)continue;let p=await xo(c.linkedConfigPath,{base:e});l.set(c,p);let f=await Jn(p.designSystem,p.configFilePath,e);s.set(c,f),f!==null&&r.push(()=>hl.rm(p.configFilePath)),f!==null&&B(`Migrated configuration file: ${$(P(p.configFilePath,e))}`,{prefix:"\u21B3 "})}if(o.length>0&&D("Migrating stylesheets\u2026"),await Promise.all(o.map(async c=>{try{let p=l.get(c),f=s.get(c)??null;if(!p){for(let m of c.ancestors())if(m.isTailwindRoot){p??=l.get(m),f??=s.get(m)??null;break}}!_(3)&&c.isTailwindRoot&&await Promise.all([c.compiler(),c.designSystem()]),await sl(c,{newPrefix:p?.newPrefix??null,designSystem:p?.designSystem??await c.designSystem(),userConfig:p?.userConfig??null,configFilePath:p?.configFilePath??null,jsConfigMigration:f})}catch(p){I(`${p?.message??p} in ${$(P(c.file,e))}`,{prefix:"\u21B3 "})}})),_(3)){try{await pl(o)}catch(c){I(`${c?.message??c}`,{prefix:"\u21B3 "})}for(let c of o)for(let p of c.importRules){if(!p.raws.tailwind_injected_layer)continue;let f=o.find(m=>m.id===p.raws.tailwind_destination_sheet_id);f&&f.containsRule(m=>m.type==="atrule"&&m.name==="utility")&&(p.params=p.params.replace(/ layer\([^)]+\)/,"").trim())}}for(let c of o)a.get(c)!==c.root.toString()&&await ef([fl(),fo()]).process(c.root,{from:c.file});for(let c of o)c.file&&(await Ae(c.file,c.root.toString()),c.isTailwindRoot&&B(`Migrated stylesheet: ${$(P(c.file,e))}`,{prefix:"\u21B3 "}));D("Updating dependencies\u2026");{let c=Oe(e),p=["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"].filter(f=>f==="tailwindcss"||c.has(f));try{await c.add(p.map(f=>`${f}@latest`));for(let f of p)B(`Updated package: ${$(f)}`,{prefix:"\u21B3 "})}catch{}}let u=o.filter(c=>c.isTailwindRoot&&c.file);u.length>0&&D("Migrating templates\u2026");{let c=new Set;for(let p of u){let f=await p.compiler();if(!f)continue;let m=await p.designSystem();if(!m)continue;let d=l.get(p),h=(f.root==="none"?[]:f.root===null?_(3)?d?.sources?d.sources.map(C=>({...C,negated:!1})):[]:[{base:e,pattern:"**/*",negated:!1}]:[{...f.root,negated:!1}]).concat(f.sources),g=new Zc({sources:h}),k=[],S=new Set;for(let C of g.files)if(C=await hl.realpath(C).catch(()=>C),!C.endsWith(".css")){try{if(t(C)){let R=C,ke=ii.dirname(C);do{try{t(ke)&&(R=ke)}catch{break}let De=ii.dirname(ke);if(De===ke)break;ke=De}while(ke);if(S.has(R))continue;S.add(R),R===C?D(`Git ignored, skipping: ${$(P(R,e))}`,{prefix:"\u21B3 "}):D(`Git ignored folder, skipping: ${$(P(R,e))}`,{prefix:"\u21B3 "});continue}}catch{D(`Outside repository, skipping: ${$(P(C,e))}`,{prefix:"\u21B3 "});continue}c.has(C)||(c.add(C),k.push(C))}let T=0;await Promise.allSettled(k.map(async C=>{await Ho(m,d?.userConfig??null,C)&&(T++,D(`Migrated ${$(P(C,e))}`,{prefix:"\u21B3 "}))})),d?.configFilePath?B(`Migrated templates for configuration file: ${$(P(d.configFilePath,e))} (${T} file${T===1?"":"s"} changed)`,{prefix:"\u21B3 "}):B(`Migrated templates for: ${$(P(p.file??"<unknown>",e))} (${T} file${T===1?"":"s"} changed)`,{prefix:"\u21B3 "})}}}_(3)&&await to(e),await Promise.allSettled(r.map(n=>n())),Jr()?B("Verify the changes and commit them to your repository."):B("No changes were made to your repository.")}tf().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});