@stacksjs/stx 0.2.747 → 0.2.749

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 (82) hide show
  1. package/dist/{chunk-pach41d0.js → chunk-068t9bkm.js} +1 -1
  2. package/dist/{chunk-mt41rpec.js → chunk-0shj71m2.js} +1 -1
  3. package/dist/{chunk-4w8zdkxw.js → chunk-23drx7xh.js} +1 -1
  4. package/dist/{chunk-8a40gq1k.js → chunk-24kagfwc.js} +1 -1
  5. package/dist/{chunk-y4rm4gpv.js → chunk-2hk6evh2.js} +2 -2
  6. package/dist/{chunk-2gcj7sty.js → chunk-2x2ydz3v.js} +1 -1
  7. package/dist/chunk-3538p4ct.js +2 -0
  8. package/dist/{chunk-r6jjx157.js → chunk-3jr1nwap.js} +1 -1
  9. package/dist/{chunk-mjjb720w.js → chunk-4998rbts.js} +1 -1
  10. package/dist/chunk-4rcfm5dk.js +2 -0
  11. package/dist/chunk-4rqx6k5p.js +2 -0
  12. package/dist/{chunk-z24bjeny.js → chunk-5qzg0p2h.js} +1 -1
  13. package/dist/chunk-62b9nhv5.js +2 -0
  14. package/dist/{chunk-4wpp8zqg.js → chunk-6g3t2pwz.js} +1 -1
  15. package/dist/{chunk-z6kz9jqc.js → chunk-7dhpecgc.js} +2 -2
  16. package/dist/{chunk-k9tay7g7.js → chunk-965x7wqa.js} +1 -1
  17. package/dist/{chunk-bas06v5y.js → chunk-9vhv2hx9.js} +1 -1
  18. package/dist/{chunk-qgpy8cye.js → chunk-adncj39d.js} +1 -1
  19. package/dist/{chunk-s8vj3xs0.js → chunk-as9wg93m.js} +5 -5
  20. package/dist/{chunk-3rc07ans.js → chunk-bsx40v6h.js} +1 -1
  21. package/dist/{chunk-kb1ghegh.js → chunk-c10aj83y.js} +2 -2
  22. package/dist/chunk-dgv3016h.js +2 -0
  23. package/dist/{chunk-8b6stw4x.js → chunk-djjjc178.js} +1 -1
  24. package/dist/{chunk-dnt3q3jv.js → chunk-e0prbqds.js} +1 -1
  25. package/dist/{chunk-xjv46712.js → chunk-egbt0bms.js} +4 -4
  26. package/dist/{chunk-6ph5jasj.js → chunk-es4ec0nr.js} +6 -6
  27. package/dist/chunk-fd29vm1h.js +3 -0
  28. package/dist/{chunk-m5a8zgft.js → chunk-ffk5p7rc.js} +1 -1
  29. package/dist/chunk-fvrcp1mr.js +2 -0
  30. package/dist/{chunk-zeqybrbc.js → chunk-fvwfpxbb.js} +1 -1
  31. package/dist/{chunk-byxksw9c.js → chunk-gtyvejny.js} +1 -1
  32. package/dist/{chunk-y6t6djz7.js → chunk-h61daksw.js} +1 -1
  33. package/dist/{chunk-c3bdjva4.js → chunk-h66xm89j.js} +1 -1
  34. package/dist/{chunk-ewf7sq6y.js → chunk-hgqpr15a.js} +1 -1
  35. package/dist/{chunk-stkxvrxd.js → chunk-j9zp3hne.js} +1 -1
  36. package/dist/{chunk-7fdw7p3e.js → chunk-jzqmq0hp.js} +1 -1
  37. package/dist/{chunk-ttrjc1w5.js → chunk-k3233hjr.js} +3 -3
  38. package/dist/{chunk-cczxhrbh.js → chunk-m7h2c8x1.js} +1 -1
  39. package/dist/{chunk-3xa9vxyq.js → chunk-mk0axhs2.js} +4 -4
  40. package/dist/chunk-n2nb5f0m.js +2 -0
  41. package/dist/{chunk-4rer7y75.js → chunk-ne363j4c.js} +1 -1
  42. package/dist/{chunk-3v3dssk7.js → chunk-p2rawhtq.js} +1 -1
  43. package/dist/chunk-pkyakgzn.js +2 -0
  44. package/dist/{chunk-rwsyemkp.js → chunk-px7em6mh.js} +1 -1
  45. package/dist/chunk-rdzccdjw.js +2 -0
  46. package/dist/{chunk-chxhfdpc.js → chunk-rh0fe82b.js} +1 -1
  47. package/dist/{chunk-v5yhcpg3.js → chunk-rnhv0fx4.js} +1 -1
  48. package/dist/{chunk-yfg0fwkk.js → chunk-rvevd9sh.js} +3 -3
  49. package/dist/{chunk-g78zvf6j.js → chunk-s3cqm7x0.js} +1 -1
  50. package/dist/{chunk-1ewtjh1w.js → chunk-scdasnp7.js} +1 -1
  51. package/dist/{chunk-et11hr3d.js → chunk-sxh4enb9.js} +1 -1
  52. package/dist/{chunk-72a5fgj3.js → chunk-tdfszf8h.js} +5 -5
  53. package/dist/{chunk-hp3vebgn.js → chunk-vcfrpxj2.js} +2 -2
  54. package/dist/{chunk-7hky61eh.js → chunk-vkaa0a18.js} +1 -1
  55. package/dist/{chunk-d7tgfndt.js → chunk-vq77bjtx.js} +1 -1
  56. package/dist/{chunk-6xytp0tk.js → chunk-vqj5mjrj.js} +1 -1
  57. package/dist/{chunk-zsqg1cy6.js → chunk-vvk948z8.js} +1 -1
  58. package/dist/chunk-waqnhm47.js +2 -0
  59. package/dist/{chunk-v364k1q7.js → chunk-xrb4dk5w.js} +1 -1
  60. package/dist/{chunk-181r1814.js → chunk-yh5frx7x.js} +1 -1
  61. package/dist/{chunk-6jgt685n.js → chunk-yvh0d5xa.js} +1 -1
  62. package/dist/{chunk-d25pawk8.js → chunk-yx63etd1.js} +2 -2
  63. package/dist/{chunk-e8g374pz.js → chunk-zx5vg2pn.js} +1 -1
  64. package/dist/cli.js +7 -7
  65. package/dist/craft-entry.js +1 -1
  66. package/dist/craft.js +1 -1
  67. package/dist/native/runtime/native-host.js +2 -0
  68. package/dist/pwa.js +1 -1
  69. package/dist/ssg.js +2 -2
  70. package/dist/utils.js +1 -1
  71. package/package.json +5 -5
  72. package/dist/chunk-1kdw7cms.js +0 -2
  73. package/dist/chunk-2bgrwygq.js +0 -2
  74. package/dist/chunk-2e2yh6t5.js +0 -2
  75. package/dist/chunk-6amq1fnc.js +0 -2
  76. package/dist/chunk-7017n280.js +0 -2
  77. package/dist/chunk-9hbgp70k.js +0 -2
  78. package/dist/chunk-a5j9sbff.js +0 -2
  79. package/dist/chunk-b8wgnpat.js +0 -3
  80. package/dist/chunk-g0n18v7m.js +0 -2
  81. package/dist/chunk-n79ww4aq.js +0 -2
  82. package/dist/chunk-r8e80xr8.js +0 -2
@@ -1,9 +1,9 @@
1
1
  // @bun
2
- import"./chunk-wpwh529h.js";import{Hs,bi,nl}from"./chunk-27agaezn.js";import"./chunk-zn3c0ew5.js";import"./chunk-6ph5jasj.js";import"./chunk-nzwcbt98.js";import"./chunk-m5a8zgft.js";import"./chunk-6ew10ptg.js";import"./chunk-4s1k8k2a.js";import{a}from"./chunk-d25pawk8.js";import"./chunk-dxsdr77m.js";import"./chunk-5f6x6fyp.js";import"./chunk-bas06v5y.js";import{ht,qe,he,rn,Ae,Qn,er,Ke}from"./chunk-z6kz9jqc.js";import{i}from"./chunk-s8vj3xs0.js";import"./chunk-dnt3q3jv.js";import"./chunk-xjv46712.js";import{as}from"./chunk-hp3vebgn.js";import"./chunk-e8g374pz.js";import"./chunk-91pycazt.js";import{gt}from"./chunk-j6m7jwpv.js";import"./chunk-1xjv71dw.js";import"./chunk-stkxvrxd.js";import{ho}from"./chunk-6jgt685n.js";import"./chunk-b8wgnpat.js";import"./chunk-bj0z4gve.js";import"./chunk-3xa9vxyq.js";import"./chunk-8f14cgm8.js";import"./chunk-g78zvf6j.js";import{existsSync as xe,mkdirSync as hi,readFileSync as mi}from"fs";import U from"path";import{existsSync as nt,mkdirSync as hn,realpathSync as ii,rmSync as mn}from"fs";import D from"path";import{existsSync as Yr}from"fs";import K from"path";var wn="data-stx-b",ot=new Set(bi),xn=new Set(Hs);function ke(e){if(e==="ref"||e==="data-stx-ref")return"ref";if(e.startsWith("::"))return null;if(e.startsWith("@bind:")||e.startsWith("x-bind:"))return"attr";if(e.startsWith("@")||e.startsWith(":")){let t=e.slice(1).split(".")[0];if(ot.has(t))return t==="if"?"if":t;if(t==="for"||t==="else"||t==="else-if"||t==="elseif")return"for";if(nl(t))return"event";if(e.startsWith("@"))return"event";return"attr"}if(e.startsWith("x-")){let t=e.split(".")[0];if(!xn.has(t))return"attr";let n=t.slice(2);if(n==="cloak"||n==="data"||n==="bind")return null;if(n==="tooltip"||n==="tooltip-position")return null;return ot.has(n)?n==="if"?"if":n:"attr"}return null}function Nn(e){let t=[];for(let[n,r]of e){let s=ke(n);if(s)t.push({name:n,value:r,kind:s})}return t}var kn=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,Ne=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function at(e){let t=[],n=0;return{html:e.replace(kn,(s,o,c)=>{if(!c||!/[:@]|x-/.test(c))return s;let u=[];Ne.lastIndex=0;for(let m=Ne.exec(c);m;m=Ne.exec(c))u.push([m[1],m[2]??m[3]??m[4]??""]);let d=Nn(u);if(!d.length)return s;let g={id:n++,bindings:d};if(d.some((m)=>m.kind==="for"))g.template=!0;t.push(g);let h=s.endsWith("/>");return`${s.slice(0,h?-2:-1).trimEnd()} ${wn}="${g.id}"${h?"/>":">"}`}),manifest:{entries:t}}}import fr from"path";function ce(e){let t=e&&/^(\d+(?:\.\d+)?|\.\d+)(px|rem)?$/.exec(e.trim());if(!t)return;let n=Number(t[1])*(t[2]==="rem"?16:1);return Number.isFinite(n)?n:void 0}function Te(e,t){if(!he[e])return;return ce(t?.get(rn(e))??he[e].value)}function Re(e,t){let n=Qn[e];if(!n)return;return ce(t?.get(Ke(n))??Ae[n]?.value)}function _e(e,t){let n=er[e];if(!n)return;let r=ce(t?.get(Ke(n.size))??Ae[n.size]?.value),s=ce(t?.get(Ke(n.leading))??Ae[n.leading]?.value);if(r===void 0||s===void 0)return;return{fontSize:r,lineHeight:s}}var Tn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},dt=Ie({}),ct,lt=null;function le(){let e=globalThis.__stxNativeStyleConfig;if(!e)return dt;if(e!==ct)ct=e,lt=Ie(e);return lt}function ft(e,t=new Map,n=""){for(let[r,s]of Object.entries(e??{})){let o=r==="DEFAULT"?n.replace(/-$/,""):`${n}${r}`;if(typeof s==="string")t.set(o,s);else if(s&&typeof s==="object")ft(s,t,`${o}-`)}return t}function pt(e){let t={};for(let[n,r]of Object.entries(e??{})){let s=typeof r==="number"?r:Number.parseFloat(String(r));if(Number.isFinite(s))t[n]=s}return t}function Ie(e){return{shortcuts:new Map(Object.entries(e.shortcuts??{}).filter(([,t])=>typeof t==="string")),colors:ft(e.colors),fontFamily:new Map(Object.entries(e.fontFamily??{}).map(([t,n])=>[t,Array.isArray(n)?n.join(", "):n])),breakpoints:new Map(Object.entries({...Tn,...pt(e.breakpoints)}))}}var Ee={};function ut(e){Ee=e??{},dt=Ie(Ee)}async function mt(e,t){let n=Ee;ut(e);try{return await t()}finally{ut(n)}}function yt(e){if(!e)return{};let t=e.theme??{},n=Object.fromEntries(Object.entries(e.shortcuts??{}).filter(([,r])=>typeof r==="string"));return{...Object.keys(n).length?{shortcuts:n}:{},...t.fontFamily?{fontFamily:JSON.parse(JSON.stringify(t.fontFamily))}:{},...t.colors?{colors:JSON.parse(JSON.stringify(t.colors))}:{},...t.screens?{breakpoints:pt(t.screens)}:{}}}function bt(e){return le().shortcuts.get(e)}function vt(e){return le().colors.get(e)}function Ce(e){return le().breakpoints.get(e)}function ue(e){return le().fontFamily.get(e)}var wt=/^--[\w\u0080-\uFFFF-]+$/u;function St(e,t){if(!/var\(/i.test(e))return e;let n="",r="",s=!1;for(let o=0;o<e.length;o++){let c=e[o];if(c==="\\"){n+=e.slice(o,o+2),o++;continue}if(r){if(n+=c,c===r)r="";continue}if(c==='"'||c==="'"){r=c,n+=c;continue}if(e.slice(o,o+4).toLowerCase()!=="var("||o>0&&/[\w-]/.test(e[o-1])){n+=c;continue}let u=1,d=-1,g="",h=o+4;for(;h<e.length;h++){let y=e[h];if(y==="\\"){h++;continue}if(g){if(y===g)g="";continue}if(y==='"'||y==="'"){g=y;continue}if(y==="(")u++;if(y===")"&&--u===0)break;if(y===","&&u===1&&d===-1)d=h}if(u!==0)return;let b=e.slice(o+4,d===-1?h:d).trim();if(!wt.test(b))return;let m=t(b,d===-1?void 0:e.slice(d+1,h).trim());if(m===void 0||n.length+m.length>65536)return;n+=m,s=!0,o=h}return s&&n.length>65536?void 0:n}function re(e,t){let n=new Map,r=new Set;for(let[f,l]of e){let x=f.trim();if(!wt.test(x))continue;if(typeof l==="string"||typeof l==="number"&&Number.isFinite(l))n.set(x,String(l).trim())}let s=new Map,o=new Set;for(let[f,l]of n){let x=new Set,p=(N,S=0)=>S>64?void 0:St(N,(k,w)=>(x.add(k),w===void 0?"":p(w,S+1)));if(p(l)===void 0)o.add(f);s.set(f,x)}let c=new Map,u=new Map,d=[],g=new Set,h=0;function b(f,l=0){if(l>64){o.add(f);return}c.set(f,h),u.set(f,h++),d.push(f),g.add(f);for(let N of s.get(f)??[]){if(!n.has(N))continue;if(!c.has(N)){if(b(N,l+1),u.has(N))u.set(f,Math.min(u.get(f),u.get(N)))}else if(g.has(N))u.set(f,Math.min(u.get(f),c.get(N)))}if(u.get(f)!==c.get(f))return;let x=[],p;do p=d.pop(),g.delete(p),x.push(p);while(p!==f);if(x.length>1||s.get(f)?.has(f))x.forEach((N)=>o.add(N))}for(let f of n.keys())if(!c.has(f))b(f);let m=new Map;function y(f,l){if(r.add(f),m.has(f))return m.get(f);let x=n.get(f),p=x===void 0||/^(?:inherit|unset)$/i.test(x)?t?.get(f):o.has(f)||/^(?:initial|revert|revert-layer)$/i.test(x)?void 0:v(x,l+1);return m.set(f,p),p}function v(f,l=0){if(l>64)return;return St(f,(x,p)=>y(x,l)??(p===void 0?void 0:v(p,l+1)))}return{resolve:v,used:r,computed(){let f=new Map(t);for(let l of n.keys())f.set(l,y(l,0));return f}}}function Oe(e){if(e.display==="flex"&&e.flexDirection==null)return{...e,flexDirection:"row"};return e}var xt=new Set(["display","gridColumns","gridTemplateColumns","gridTemplateRows","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","order","justifyContent","alignItems","alignSelf","alignContent","position","top","right","bottom","left","zIndex","width","height","minWidth","maxWidth","minHeight","maxHeight","aspectRatio","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderStyle","backgroundColor","backgroundImage","opacity","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","color","fontSize","fontWeight","fontStyle","fontFamily","lineHeight","letterSpacing","textAlign","textDecorationLine","textDecorationColor","textTransform","resizeMode","objectFit","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Rn=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","order","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing","strokeWidth"]),Nt=new Set(["top","right","bottom","left","width","height","minWidth","maxWidth","minHeight","maxHeight","flexBasis","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical"]),_n=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,An=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,En=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),In=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function Cn(e){if(typeof e!=="string")return e;let t=An.exec(e);return t?Number(t[1])*(/^r?em$/i.test(t[2]||"")?16:1):e}function ee(e){return typeof e==="number"&&Number.isFinite(e)}function On(e,t){if(e==="shadowOffset"&&t&&typeof t==="object"&&!Array.isArray(t)){let{width:n,height:r}=t;return ee(n)&&ee(r)?{width:n,height:r}:void 0}if(e==="transform"&&Array.isArray(t)){let n=[];for(let r of t){if(!r||typeof r!=="object"||Array.isArray(r)||Object.keys(r).length!==1)return;let[s,o]=Object.entries(r)[0];if(In.has(s)&&ee(o))n.push({[s]:o});else if(En.has(s)&&typeof o==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(o))n.push({[s]:o});else return}return n}return}function Pn(e){let t=[],n=0,r=0,s="";for(let o=0;o<=e.length;o++){let c=e[o];if(c==="\\"){o++;continue}if(s){if(c===s)s="";continue}if(c==='"'||c==="'"){s=c;continue}if(c==="(")r++;if(c===")")r=Math.max(0,r-1);if(o!==e.length&&(c!==";"||r))continue;let u=e.slice(n,o),d=u.indexOf(":");if(d!==-1)t.push([u.slice(0,d).trim(),u.slice(d+1).trim()]);n=o+1}return t}function Mn(e,t){let n;if(typeof e==="string"){if(e=e.trim(),!e)return[];try{e=JSON.parse(e)}catch{}}if(typeof e==="string")n=Pn(e);else if(e&&typeof e==="object"&&!Array.isArray(e))n=Object.entries(e);else{if(e!=null&&e!==!1)t({kind:"non-numeric-style",name:"style"});return[]}return n}function de(e,t=()=>{},n={}){let r=Mn(e,t),s=re(r,n.inheritedVariables);return n.onVariables?.(s.computed()),Bn(r,s,t)}function Bn(e,t,n){let r={},s=[];for(let[o,c]of e){if(o.trim().startsWith("--")){s.push(o.trim());continue}let u=xt.has(o)||o.trim().startsWith("--")?o:o.trim().toLowerCase().replace(/-([a-z])/g,(h,b)=>b.toUpperCase());if(!xt.has(u)){n({kind:"unknown-style",name:u});continue}if(c==null||c==="")continue;let d=typeof c==="string"?t.resolve(c.trim()):c;if(d===void 0){n({kind:"non-numeric-style",name:u});continue}if(d==="")continue;if(u==="objectFit"){let h=typeof d==="string"?d.trim().toLowerCase():"";if(h==="cover"||h==="contain")r.resizeMode=h;else if(h==="fill")r.resizeMode="stretch";else if(h==="none")r.resizeMode="center";else n({kind:"unknown-style",name:`objectFit:${String(d)}`});continue}let g;if(Rn.has(u)||Nt.has(u)){if(g=Cn(d),!ee(g)&&!(Nt.has(u)&&typeof g==="string"&&g.endsWith("%")&&_n.test(g.slice(0,-1))&&Number.isFinite(Number(g.slice(0,-1)))))g=void 0}else if(u==="display"&&d==="inline-flex")g="flex";else if(u==="shadowOffset"||u==="transform")g=On(u,d);else if(u==="gridTemplateColumns"||u==="gridTemplateRows")g=ee(d)||typeof d==="string"?d:void 0;else if(u==="fontWeight"&&ee(d))g=String(d);else if(typeof d==="string")g=d;if(g===void 0)n({kind:"non-numeric-style",name:u});else r[u]=g}for(let o of s)if(!t.used.has(o))n({kind:"unknown-style",name:o});return r}var Ln={transparent:"transparent",current:"currentColor",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}},Me={px:1,0:0,0.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},kt={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128},Tt={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function Q(e){let t=e.lastIndexOf("/");if(t>0&&(!e.endsWith("]")||/\/\[[\d.]+%?\]$/.test(e))){let r=Q(e.slice(0,t)),s=e.slice(t+1),o=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!r||!Number.isFinite(o))return;return Dn(r,o/100)}if(e==="transparent")return"transparent";if(e==="current")return"currentColor";if(e==="black")return"#000000";if(e==="white")return"#ffffff";let n=e.split("-");if(n.length===2){let[r,s]=n,o=Ln[r];if(o&&typeof o==="object")return o[s]}if(e.startsWith("[")&&e.endsWith("]")){let r=e.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(r)?r:void 0}return}function Be(e){return Q(e.trim())}function Dn(e,t){if(e==="transparent")return e;let n=e.startsWith("#")?e.slice(1):"";if(n.length===3)n=n.split("").map((s)=>s+s).join("");if(n.length===8)n=n.slice(0,6);if(n.length!==6)return;let r=Math.round(Math.min(1,Math.max(0,t))*255);return`#${n}${r.toString(16).padStart(2,"0")}`}function Pe(e,t=16){if(!e.startsWith("[")||!e.endsWith("]"))return;let n=e.slice(1,-1),r=Number.parseFloat(n);if(!Number.isFinite(r))return;if(n.endsWith("rem"))return r*16;if(n.endsWith("em"))return r*t;return r}function V(e){if(e.startsWith("[")&&e.endsWith("]")){let t=e.slice(1,-1);if(t.endsWith("%"))return;let n=t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t);return Number.isFinite(n)?n:void 0}return Me[e]??Re(e)}function pe(e){let t=/^\[(-?\d*\.?\d+)%\]$/.exec(e);if(t)return`${Number.parseFloat(t[1])}%`;return V(e)}var $n={flex:(e,t)=>(t.display="flex",!0),block:(e,t)=>(t.display="flex",!0),hidden:(e,t)=>(t.display="none",!0),grid:(e,t)=>(t.display="grid",!0),"flex-row":(e,t)=>(t.flexDirection="row",!0),"flex-col":(e,t)=>(t.flexDirection="column",!0),"flex-row-reverse":(e,t)=>(t.flexDirection="row-reverse",!0),"flex-col-reverse":(e,t)=>(t.flexDirection="column-reverse",!0),"flex-wrap":(e,t)=>(t.flexWrap="wrap",!0),"flex-nowrap":(e,t)=>(t.flexWrap="nowrap",!0),"flex-wrap-reverse":(e,t)=>(t.flexWrap="wrap-reverse",!0),"flex-1":(e,t)=>(t.flex=1,t.flexGrow=1,t.flexShrink=1,t.flexBasis=0,!0),"flex-auto":(e,t)=>(t.flexGrow=1,t.flexShrink=1,!0),"flex-initial":(e,t)=>(t.flexGrow=0,t.flexShrink=1,!0),"flex-none":(e,t)=>(t.flexGrow=0,t.flexShrink=0,!0),grow:(e,t)=>(t.flexGrow=1,!0),"grow-0":(e,t)=>(t.flexGrow=0,!0),shrink:(e,t)=>(t.flexShrink=1,!0),"shrink-0":(e,t)=>(t.flexShrink=0,!0),"order-first":(e,t)=>(t.order=-9999,!0),"order-last":(e,t)=>(t.order=9999,!0),"order-none":(e,t)=>(t.order=0,!0),"justify-start":(e,t)=>(t.justifyContent="flex-start",!0),"justify-center":(e,t)=>(t.justifyContent="center",!0),"justify-end":(e,t)=>(t.justifyContent="flex-end",!0),"justify-between":(e,t)=>(t.justifyContent="space-between",!0),"justify-around":(e,t)=>(t.justifyContent="space-around",!0),"justify-evenly":(e,t)=>(t.justifyContent="space-evenly",!0),"items-start":(e,t)=>(t.alignItems="flex-start",!0),"items-center":(e,t)=>(t.alignItems="center",!0),"items-end":(e,t)=>(t.alignItems="flex-end",!0),"items-stretch":(e,t)=>(t.alignItems="stretch",!0),"items-baseline":(e,t)=>(t.alignItems="baseline",!0),"self-auto":(e,t)=>(t.alignSelf="auto",!0),"self-start":(e,t)=>(t.alignSelf="flex-start",!0),"self-center":(e,t)=>(t.alignSelf="center",!0),"self-end":(e,t)=>(t.alignSelf="flex-end",!0),"self-stretch":(e,t)=>(t.alignSelf="stretch",!0),"self-baseline":(e,t)=>(t.alignSelf="baseline",!0),"min-w-0":(e,t)=>(t.minWidth=0,!0),"aspect-square":(e,t)=>(t.aspectRatio=1,!0),"aspect-video":(e,t)=>(t.aspectRatio=1.7777777777777777,!0),"border-solid":(e,t)=>(t.borderStyle="solid",!0),"border-dashed":(e,t)=>(t.borderStyle="dashed",!0),"border-dotted":(e,t)=>(t.borderStyle="dotted",!0),group:()=>!0,peer:()=>!0,"inset-0":(e,t)=>(t.top=0,t.right=0,t.bottom=0,t.left=0,!0),"mx-auto":(e,t)=>(t.alignSelf="center",!0),fixed:(e,t)=>(t.position="absolute",!0),sticky:()=>!0,"sr-only":(e,t)=>(t.position="absolute",t.width=1,t.height=1,t.overflow="hidden",!0),inline:()=>!0,"inline-block":()=>!0,contents:()=>!0,"align-top":()=>!0,"align-middle":()=>!0,"align-bottom":()=>!0,"align-baseline":()=>!0,"align-text-top":()=>!0,"whitespace-normal":()=>!0,"whitespace-pre":()=>!0,"whitespace-pre-line":()=>!0,"whitespace-pre-wrap":()=>!0,"whitespace-nowrap":()=>!0,"break-words":()=>!0,"break-all":()=>!0,"break-normal":()=>!0,"object-cover":()=>!0,"object-contain":()=>!0,"object-fill":()=>!0,"object-center":()=>!0,"tracking-tighter":(e,t)=>(t.letterSpacing=-0.8,!0),"tracking-tight":(e,t)=>(t.letterSpacing=-0.4,!0),"tracking-normal":(e,t)=>(t.letterSpacing=0,!0),"tracking-wide":(e,t)=>(t.letterSpacing=0.4,!0),"tracking-wider":(e,t)=>(t.letterSpacing=0.8,!0),"tracking-widest":(e,t)=>(t.letterSpacing=1.6,!0),"tabular-nums":()=>!0,"inline-flex":(e,t)=>(t.display="flex",!0),truncate:()=>!0,relative:(e,t)=>(t.position="relative",!0),absolute:(e,t)=>(t.position="absolute",!0),"overflow-visible":(e,t)=>(t.overflow="visible",!0),"overflow-hidden":(e,t)=>(t.overflow="hidden",!0),"overflow-scroll":(e,t)=>(t.overflow="scroll",!0),"overflow-x-auto":()=>!0,"overflow-x-scroll":()=>!0,"overflow-y-auto":()=>!0,"overflow-y-scroll":()=>!0,"font-sans":(e,t)=>(t.fontFamily=ue("sans")??"sans-serif",!0),"font-serif":(e,t)=>(t.fontFamily=ue("serif")??"serif",!0),"font-mono":(e,t)=>(t.fontFamily=ue("mono")??"monospace",!0),"font-thin":(e,t)=>(t.fontWeight="100",!0),"font-extralight":(e,t)=>(t.fontWeight="200",!0),"font-light":(e,t)=>(t.fontWeight="300",!0),"font-normal":(e,t)=>(t.fontWeight="400",!0),"font-medium":(e,t)=>(t.fontWeight="500",!0),"font-semibold":(e,t)=>(t.fontWeight="600",!0),"font-bold":(e,t)=>(t.fontWeight="bold",!0),"font-extrabold":(e,t)=>(t.fontWeight="800",!0),"font-black":(e,t)=>(t.fontWeight="900",!0),italic:(e,t)=>(t.fontStyle="italic",!0),"not-italic":(e,t)=>(t.fontStyle="normal",!0),"text-left":(e,t)=>(t.textAlign="left",!0),"text-center":(e,t)=>(t.textAlign="center",!0),"text-right":(e,t)=>(t.textAlign="right",!0),"text-justify":(e,t)=>(t.textAlign="justify",!0),uppercase:(e,t)=>(t.textTransform="uppercase",!0),lowercase:(e,t)=>(t.textTransform="lowercase",!0),capitalize:(e,t)=>(t.textTransform="capitalize",!0),"normal-case":(e,t)=>(t.textTransform="none",!0),underline:(e,t)=>(t.textDecorationLine="underline",!0),"line-through":(e,t)=>(t.textDecorationLine="line-through",!0),"no-underline":(e,t)=>(t.textDecorationLine="none",!0)};function Vn(e,t){if(!e.startsWith("bg-"))return!1;let n=e.slice(3),r=Q(n);if(r)return t.backgroundColor=r,!0;return!1}function Rt(e,t){if(!e.startsWith("text-"))return!1;let n=e.slice(5),r=_e(n);if(r)return Object.assign(t,r),!0;if(kt[n])return t.fontSize=kt[n],!0;if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(o)){let c=o.endsWith("rem")||o.endsWith("em")?Number.parseFloat(o)*16:Number.parseFloat(o);if(Number.isFinite(c))return t.fontSize=c,!0}}let s=Q(n);if(s)return t.color=s,!0;return!1}var jn=new Set(["t","tr","r","br","b","bl","l","tl"]);function Wn(e,t){let n=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(e);if(n&&jn.has(n[1]))return t.gradientDirection=`to-${n[1]}`,!0;let r=/^(from|via|to)-(.+)$/.exec(e);if(!r)return!1;let s=Q(r[2]);if(!s)return!1;if(r[1]==="from")t.gradientFrom=s;else if(r[1]==="via")t.gradientVia=s;else t.gradientTo=s;return!0}function Fn(e,t){for(let n of["fill","stroke"]){let r=`${n}-`;if(!e.startsWith(r))continue;let s=e.slice(r.length);if(s==="none")return t[n]="none",!0;if(n==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return t.strokeWidth=Number.parseFloat(s),!0;if(n==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return t.strokeWidth=Number.parseFloat(s.slice(1)),!0;let o=Q(s);if(o)return t[n]=o,!0}return!1}function Xn(e,t){if(e.startsWith("p-")){let n=V(e.slice(2));if(n!==void 0)return t.padding=n,!0}if(e.startsWith("px-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingHorizontal=n,!0}if(e.startsWith("py-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingVertical=n,!0}if(e.startsWith("pt-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingTop=n,!0}if(e.startsWith("pr-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingRight=n,!0}if(e.startsWith("pb-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingBottom=n,!0}if(e.startsWith("pl-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingLeft=n,!0}return!1}function At(e,t){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(e)){let n={};if(!At(e.slice(1),n))return!1;let r=Object.entries(n);if(r.some(([,s])=>typeof s!=="number"))return!1;for(let[s,o]of r)t[s]=-o;return!0}if(e.startsWith("m-")){let n=V(e.slice(2));if(n!==void 0)return t.margin=n,!0}if(e.startsWith("mx-")){let n=V(e.slice(3));if(n!==void 0)return t.marginHorizontal=n,!0}if(e.startsWith("my-")){let n=V(e.slice(3));if(n!==void 0)return t.marginVertical=n,!0}if(e.startsWith("mt-")){let n=V(e.slice(3));if(n!==void 0)return t.marginTop=n,!0}if(e.startsWith("mr-")){let n=V(e.slice(3));if(n!==void 0)return t.marginRight=n,!0}if(e.startsWith("mb-")){let n=V(e.slice(3));if(n!==void 0)return t.marginBottom=n,!0}if(e.startsWith("ml-")){let n=V(e.slice(3));if(n!==void 0)return t.marginLeft=n,!0}return!1}function zn(e,t){if(!e.startsWith("w-"))return!1;let n=e.slice(2);if(n==="full")return t.width="100%",!0;if(n==="screen")return t.width="100%",!0;if(n==="auto")return t.width="auto",!0;if(n.includes("/")){let[s,o]=n.split("/"),c=Number.parseInt(s)/Number.parseInt(o)*100;return t.width=`${c}%`,!0}let r=pe(n);if(r!==void 0)return t.width=r,!0;return!1}function Un(e,t){if(!e.startsWith("h-"))return!1;let n=e.slice(2);if(n==="full")return t.height="100%",!0;if(n==="screen")return t.height="100%",!0;if(n==="auto")return t.height="auto",!0;let r=pe(n);if(r!==void 0)return t.height=r,!0;return!1}function Hn(e,t){if(e==="rounded")return t.borderRadius=Tt.DEFAULT,!0;if(!e.startsWith("rounded-"))return!1;let n=e.slice(8);if(n==="")return!1;let r=/^(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(n),s=Tt[r[2]]??Te(r[2])??Pe(r[2]);if(s===void 0)return!1;let o={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],tl:["borderTopLeftRadius"],tr:["borderTopRightRadius"],bl:["borderBottomLeftRadius"],br:["borderBottomRightRadius"]};for(let c of r[1]?o[r[1]]:["borderRadius"])t[c]=s;return!0}function qn(e,t){let n=/^border(?:-([trblxy]))?(?:-(\d+|\[[^\]]+\]))?$/.exec(e);if(!n)return!1;let[,r="",s]=n,o=s===void 0?1:Number(s);if(s?.startsWith("[")){let u=/^\[(\d+(?:\.\d+)?|\.\d+)(px|rem)?\]$/.exec(s);if(!u)return!1;o=Number(u[1])*(u[2]==="rem"?16:1)}if(!Number.isFinite(o)||o<0)return!1;let c={"":["borderWidth"],t:["borderTopWidth"],r:["borderRightWidth"],b:["borderBottomWidth"],l:["borderLeftWidth"],x:["borderLeftWidth","borderRightWidth"],y:["borderTopWidth","borderBottomWidth"]};for(let u of c[r])t[u]=o;return!0}function Gn(e,t){if(!e.startsWith("border-"))return!1;let n=e.slice(7),r=Q(n);if(r)return t.borderColor=r,!0;return!1}function Kn(e,t){if(!e.startsWith("opacity-"))return!1;let n=Number.parseInt(e.slice(8));if(!Number.isNaN(n))return t.opacity=n/100,!0;return!1}function Jn(e,t,n){if(e.startsWith("tracking-[")){let r=Pe(e.slice(9),n);if(r===void 0)return!1;return t.letterSpacing=r,!0}if(e.startsWith("leading-")){let r=e.slice(8),s=n,o={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},c=r.startsWith("[")?/^\[[\d.]+\]$/.test(r)?Number.parseFloat(r.slice(1,-1))*s:Pe(r,s):o[r]!==void 0?o[r]*s:Me[r];if(c===void 0||!Number.isFinite(c))return!1;return t.lineHeight=c,!0}return!1}function Yn(e,t){let n=/^(-?)(inset-x|inset-y|inset|top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3],s=/^\[(-?[\d.]+)px\]$/.exec(r),o=s?Number(s[1]):Me[r];if(o===void 0||!Number.isFinite(o))return!1;let c=n[1]?-o:o,u=n[2]==="inset"?["top","right","bottom","left"]:n[2]==="inset-x"?["left","right"]:n[2]==="inset-y"?["top","bottom"]:[n[2]];for(let d of u)t[d]=c;return!0}function Zn(e,t){let n=/^grid-cols-\[(.+)\]$/.exec(e);if(n)return t.gridColumns=n[1].split("_").filter(Boolean).length,!0;let r=/^grid-cols-(\d+)$/.exec(e);if(!r)return!1;return t.gridColumns=Number(r[1]),!0}function tr(e,t){if(!e.startsWith("size-"))return!1;let n=e.slice(5),r=n==="full"?"100%":pe(n);if(r===void 0)return!1;return t.width=r,t.height=r,!0}var nr={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function rr(e,t){let n=/^(min|max)-(w|h)-(.+)$/.exec(e);if(!n)return!1;let[,r,s,o]=n,c=o==="full"||o==="screen"?"100%":o==="none"?void 0:s==="w"&&r==="max"&&nr[o]||pe(o);if(c===void 0&&o!=="none")return!1;let u=`${r}${s==="w"?"Width":"Height"}`;if(c===void 0)delete t[u];else t[u]=c;return!0}function ir(e,t){let n=/^(-?)(top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3]==="full"?"100%":V(n[3]);if(r===void 0)return!1;return t[n[2]]=typeof r==="number"&&n[1]?-r:r,!0}function sr(e,t){let n=/^(-?)translate-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=n[3],s;if(r.startsWith("[")){let u=/^\[([+-]?(?:\d+\.?\d*|\.\d+))(px|rem|em)?\]$/.exec(r);if(!u)return!1;s=Number(u[1])*(u[2]?.endsWith("em")?16:1)}else s=V(r);if(s===void 0||!Number.isFinite(s))return!1;if(n[1])s=-s;let o=n[2]==="x"?"translateX":"translateY",c=o==="translateX"?{translateX:s}:{translateY:s};return t.transform=[...(t.transform??[]).filter((u)=>!(o in u)),c],!0}function or(e,t){let n=/^space-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=V(n[2]);if(r===void 0)return!1;return t.gap=r,!0}function ar(e,t){if(e.startsWith("gap-")){let n=V(e.slice(4));if(n!==void 0)return t.gap=n,!0}if(e.startsWith("gap-x-")){let n=V(e.slice(6));if(n!==void 0)return t.columnGap=n,!0}if(e.startsWith("gap-y-")){let n=V(e.slice(6));if(n!==void 0)return t.rowGap=n,!0}return!1}function cr(e,t){let r={"shadow-none":[0,0,0,0],"shadow-xs":[1,1,0.05,1],"shadow-sm":[2,1,0.1,2],shadow:[3,2,0.12,3],"shadow-md":[6,4,0.15,4],"shadow-lg":[10,6,0.18,8],"shadow-xl":[16,10,0.2,12],"shadow-2xl":[24,16,0.25,18]}[e];if(!r)return!1;let[s,o,c,u]=r;return Object.assign(t,{shadowColor:"#000000",shadowOpacity:c,shadowRadius:s,shadowOffset:{width:0,height:o},elevation:u}),!0}function lr(e){let t=/^divide-(?:(y|x)(?:-(.+))?|(.+))$/.exec(e);if(!t)return null;if(t[2]==="reverse")return"";if(t[1])return`border-${t[1]==="y"?"t":"l"}${t[2]?`-${t[2]}`:""}`;return`border-${t[3]}`}var Et=new Set(["aria-selected","aria-pressed","aria-checked","aria-expanded"]),ur=new Set(["hover","group-hover","peer-hover","active","group-active","visited","placeholder","selection","print","motion-safe"]),dr=/^(?:transition(?:-[a-z]+)?|animate-\S+|scroll-[mp][trblxyse]?-\S+|snap-\S+|overscroll-\S+|duration-\S+|ease-\S+|delay-\S+|will-change-\S+|cursor-\S+|select-(?:none|text|all|auto)|outline-none|outline-0|appearance-none|scroll-smooth|scroll-auto|antialiased|subpixel-antialiased|touch-\S+|resize(?:-\S+)?|backdrop-blur(?:-\S+)?|isolate|contain-\S+)$/;function It(e){let t=[],n=0,r=0;for(let s=0;s<e.length;s++){let o=e[s];if(o==="[")n++;else if(o==="]")n=Math.max(0,n-1);else if(o===":"&&n===0)t.push(e.slice(r,s)),r=s+1}return t.push(e.slice(r)),t}function Ct(e,t=new Set){let n=It(e),r=n[n.length-1],s=t.has(r)?void 0:bt(r);if(s===void 0)return[e];let o=n.slice(0,-1).map((u)=>`${u}:`).join(""),c=new Set(t).add(r);return s.split(/\s+/).filter(Boolean).flatMap((u)=>Ct(`${o}${u}`,c))}function ge(e,t,n={}){let r=new Map,s=(v,f)=>{if(!r.has(v))r.set(v,{...f,classes:[],authored:new Map});return r.get(v)};s("base",{});let o=[],c=[],u=e.split(/\s+/).filter(Boolean);if(n.rules){let v=new Set(u);for(let f of Object.keys(n.rules))if(f.includes(".")&&f.split(".").every((l)=>v.has(l)))c.push(f);c.sort((f,l)=>f.split(".").length-l.split(".").length)}for(let v of u){if(n.rules&&Object.hasOwn(n.rules,v)){o.push(v);continue}for(let f of Ct(v)){let l=It(f),x=l.pop(),p=l.some((T)=>T.startsWith("focus"));if(l.some((T)=>/^(?:group-|peer-)?focus(?:-visible|-within)?$/.test(T))&&/^(?:ring|outline)(?:-|$)/.test(x))continue;if(dr.test(x)||!p&&l.some((T)=>ur.has(T)))continue;let N,S,k=!1,w,_=[];for(let T of l){let R=Ce(T),C=T.startsWith("max-")?Ce(T.slice(4)):void 0;if(R!==void 0&&N===void 0)N=R;else if(C!==void 0&&S===void 0)S=C-0.02;else if(T==="disabled"&&!k)k=!0;else if(Et.has(T)&&w===void 0)w=T;else _.push(T)}let I=[..._,x].join(":"),P=N!==void 0||S!==void 0,E=k?s("disabled",{disabled:!0}):w?s(`state:${w}`,{state:w}):P?s(`range:${N??0}:${S??""}`,{min:N??0,max:S}):r.get("base");if((k||w)&&(P||k&&w)){r.get("base").authored.set(f,v),r.get("base").classes.push(f);continue}if(E.classes.push(I),!E.authored.has(I))E.authored.set(I,v===f?f:`${v} (${f})`)}}let d=[...o,...c],g=(v,f)=>f.map((l)=>v.authored.get(l)??l),h=r.get("base"),b=fe(h.classes.join(" "),t,n),m=new Map;if(d.length){let v=(x)=>x?de(x,()=>{},{inheritedVariables:t}):{},f={},l={};for(let x of d){let p=n.rules[x];f={...f,...v(p.light)},l={...l,...v(p.dark)};for(let N of p.responsive??[]){let S=`${N.min}:${N.max??""}`,k=m.get(S)??{min:N.min,...N.max===void 0?{}:{max:N.max},style:{}};if(k.style={...k.style,...v(N.light)},N.dark)k.dark={...k.dark,...v(N.dark)};m.set(S,k)}}if(b.style={...f,...b.style},Object.keys(l).length)b.dark={...l,...b.dark}}b.unknown=g(h,b.unknown);let y=[];for(let v of r.values()){if(v===h)continue;let f=fe(v.classes.join(" "),t,{appearance:n.appearance});b.unknown=[...new Set([...b.unknown,...g(v,f.unknown)])];let l={style:f.style,...f.dark?{dark:f.dark}:{}};if(v.disabled)b.disabled=l;else if(v.state)(b.states??={})[v.state]=l;else y.push({min:v.min??0,...v.max===void 0?{}:{max:v.max},...l})}for(let v of m.values()){let f=y.find((l)=>l.min===v.min&&l.max===v.max);if(f){if(f.style={...v.style,...f.style},v.dark||f.dark)f.dark={...v.dark,...f.dark}}else y.push(v)}if(y.length)b.responsive=y.sort((v,f)=>v.min-f.min||(v.max??1/0)-(f.max??1/0));return b}function fe(e,t,n={}){let r=[],s=[],o=[],c=[],u={focus:{classes:[],originals:new Map},focusWithin:{classes:[],originals:new Map}},d=new Map;function g(p,N){let S=/^(bg|text|border(?:-[trblxy])?|from|via|to|fill|stroke|divide|decoration|caret|accent)-(.+?)(\/[^\s]+)?$/.exec(p),k=S&&vt(S[2]);if(S&&k){let E=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+?)\s*)?\)$/.exec(k),T=E?t?.get(E[1])??E[2]:k;if(T&&/^(?:#[0-9a-f]{3,8}|rgba?\(.+\)|hsla?\(.+\))$/i.test(T))return[`${S[1]}-[${T.replace(/\s+/g,"")}]${S[3]||""}`]}let w=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(p),_=w&&ht[w[2]];if(_){let E=t?.get(qe(w[2]));return[`${w[1]}-${E===void 0?_[N]:`[${E}]`}${w[3]||""}`]}let I=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(p);if(I&&he[I[2]]){let E=Te(I[2],t);return E===void 0?void 0:[`rounded-${I[1]?`${I[1]}-`:""}[${E}px]`]}let P=p.startsWith("text-")?p.slice(5):"";if(er[P]){let E=_e(P,t);return E&&[`text-[${E.fontSize}px]`,`leading-[${E.lineHeight}px]`]}for(let E of Object.keys(Qn)){if(!p.endsWith(`-${E}`))continue;let T=Re(E,t);return T===void 0?void 0:[`${p.slice(0,-E.length)}[${T}px]`]}return[p]}function h(p,N){if(!d.has(p))d.set(p,new Set);return d.get(p).add(N),p}let b=[],m=new Map;for(let p of e.split(/\s+/).filter(Boolean)){let N=p.startsWith("dark:")?p.slice(5):p,S=lr(N);if(S!==null){let _=S&&`${p===N?"":"dark:"}${S}`;if(_)b.push(_),m.set(_,p);continue}let k=/^(dark:)?(focus|focus-within):(dark:)?(.+)$/.exec(p),w=k?.[2]==="focus"?"focus":"focusWithin";if(k&&n[w]&&!(k[1]&&k[3])){let _=`${k[1]||k[3]?"dark:":""}${k[4]}`,I=u[w];I.classes.push(_),I.originals.set(_,[...I.originals.get(_)??[],p]);continue}if(p.startsWith("dark:")){let _=g(p.slice(5),"dark");if(!_)c.push(p);else s.push(..._.map((I)=>h(I,p)))}else if(!p.includes(":")||p.startsWith("[")){let _=g(p,n.appearance??"light"),I=g(p,"dark");if(!_||!I){c.push(p);continue}if(r.push(..._.map((P)=>h(P,p))),I.join(" ")!==_.join(" "))o.push(...I.map((P)=>h(P,p)))}else c.push(p)}let y=[],v=_t(r,y),f={style:v,unknown:y},l=[...n.appearance===void 0?o:[],...s];if(l.length)f.dark=_t(l,y);if(v.transform&&f.dark?.transform){let p=new Set(f.dark.transform.flatMap((N)=>Object.keys(N)));f.dark.transform=[...v.transform.filter((N)=>!Object.keys(N).some((S)=>p.has(S))),...f.dark.transform]}for(let p of r){if(p==="truncate"||p==="whitespace-nowrap")f.numberOfLines=1;let N=/^object-(cover|contain|fill)$/.exec(p);if(N)f.resizeMode=N[1]==="fill"?"stretch":N[1];let S=/^line-clamp-(\d+)$/.exec(p);if(S)f.numberOfLines=Number(S[1]);if(!f.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(p))f.icon=p}let x=y.flatMap((p)=>[...d.get(p)??[p]]);if(f.unknown=[...new Set([...x.filter((p)=>!/^line-clamp-\d+$/.test(p)),...c])],b.length){let p=fe(b.join(" "),t,{appearance:n.appearance});f.divide={style:p.style,...p.dark?{dark:p.dark}:{}},f.unknown=[...new Set([...f.unknown,...p.unknown.map((N)=>m.get(N)??N)])]}for(let p of["focus","focusWithin"]){let N=u[p];if(!N.classes.length)continue;let S=fe(N.classes.join(" "),t,{appearance:n.appearance});f[p]={style:S.style,dark:S.dark},f.unknown=[...new Set([...f.unknown,...S.unknown.flatMap((k)=>N.originals.get(k)??[k])])];for(let k of N.classes)if(/^(?:dark:)?(?:truncate|line-clamp-\d+|i-[a-z0-9]+-.+)$/.test(k))f.unknown.push(...N.originals.get(k))}return f}function _t(e,t){let n={},r=Array.isArray(e)?e:e.split(/\s+/).filter(Boolean),s={};for(let c of r)if(c.startsWith("text-"))Rt(c,s);let o=typeof s.fontSize==="number"?s.fontSize:16;for(let c of r){if(/^i-[a-z0-9]+-/.test(c))continue;let u=$n[c];if(u){u("",n);continue}if(cr(c,n))continue;if(Wn(c,n))continue;if(Vn(c,n))continue;if(Fn(c,n))continue;if(Rt(c,n))continue;if(Xn(c,n))continue;if(At(c,n))continue;if(zn(c,n))continue;if(Un(c,n))continue;if(Hn(c,n))continue;if(qn(c,n))continue;if(Gn(c,n))continue;if(Kn(c,n))continue;if(ar(c,n))continue;if(Jn(c,n,o))continue;if(tr(c,n))continue;if(rr(c,n))continue;if(Zn(c,n))continue;let d=/^aspect-\[(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\]$/.exec(c);if(d&&Number(d[2])>0){n.aspectRatio=Number(d[1])/Number(d[2]);continue}let g=/^z-\[(-?\d+)\]$/.exec(c)??/^z-(\d+)$/.exec(c);if(g){n.zIndex=Number(g[1]);continue}if(c==="z-auto")continue;if(Yn(c,n))continue;let h=/^order-\[(-?\d+)\]$/.exec(c)??/^order-(-?\d+)$/.exec(c);if(h){n.order=Number(h[1]);continue}if(ir(c,n))continue;if(sr(c,n))continue;if(or(c,n))continue;if(t?.push(c),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${c}`)}return n}var Ot=new Map;function Pt(e,t){if(!e)return;let n=e.trim(),r=n.lastIndexOf("-"),s=r===-1?t[n]:t[n.slice(0,r)],o=r===-1?s:s?.[n.slice(r+1)];if(typeof o==="string"&&/^#[\da-f]{3,8}$/i.test(o))return o;return Be(n)??Be(`[${n}]`)}function pr(e){let t=e.roles??{},n=e.shapes??{},r=e.density??{},s={...e.theme?.colors,...e.theme?.extend?.colors},o=[],c=[];for(let[u,d]of Object.entries(t)){if(!ht[u])continue;let g=Pt(typeof d==="string"?d:d?.light,s),h=Pt(typeof d==="string"?d:d?.dark,s);if(g)o.push(`${qe(u)}: ${g};`);if(h)c.push(`${qe(u)}: ${h};`)}for(let[u,d]of Object.entries(n))if(he[u])o.push(`${rn(u)}: ${d};`);for(let[u,d]of Object.entries(r))if(Ae[u])o.push(`${Ke(u)}: ${d};`);return[o.length?`:root { ${o.join(" ")} }`:"",c.length?`.dark { ${c.join(" ")} }`:""].filter(Boolean).join(`
3
- `)}async function gr(e){let{resolveUserCssConfig:t}=await import("./chunk-zsqg1cy6.js"),n=await t(e);return n?pr(n):""}function Mt(e){let t=fr.resolve(e),n=Ot.get(t);if(!n)n=gr(t).catch(()=>""),Ot.set(t,n);return n}var Lt={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy"},Bt={alert:"alert",button:"button",checkbox:"checkbox",combobox:"combobox",header:"header",heading:"header",image:"image",img:"image",link:"link",menu:"menu",menubar:"menubar",menuitem:"menuitem",none:"none",presentation:"none",progressbar:"progressbar",radio:"radio",scrollbar:"scrollbar",search:"search",searchbox:"search",slider:"adjustable",spinbutton:"spinbutton",switch:"switch",tab:"tab",tablist:"tablist",timer:"timer",toolbar:"toolbar"};function hr(e){return e==="role"||e==="aria-label"||e==="aria-valuetext"||e in Lt}function mr(e,t){if(t===void 0||t===null)return;let n=String(t).trim().toLowerCase();if(n==="mixed")return e==="aria-checked"?"mixed":!0;if(n==="undefined")return;return n===""||n==="true"}function yr(e){if(e===void 0||e===null)return null;for(let t of String(e).trim().toLowerCase().split(/\s+/))if(Bt[t])return Bt[t];return null}function br(e,t,n){if(e==="aria-label")return{accessibilityLabel:t===void 0||t===null||t===""?null:String(t)};if(e==="aria-valuetext")return{accessibilityValue:t===void 0||t===null||t===""?null:String(t)};if(e==="role")return{accessibilityRole:yr(t)};let r=Lt[e];if(!r)return;let s=n.accessibilityState,o=s&&typeof s==="object"?{...s}:{},c=mr(e,t);if(c===void 0)delete o[r];else o[r]=c;return{accessibilityState:Object.keys(o).length?o:null}}function vr(e){let t=e.accessibilityState&&typeof e.accessibilityState==="object"?e.accessibilityState:void 0,n={};for(let[s,o]of Object.entries(e)){if(!hr(s))continue;let c=br(s,o,n);if(c)Object.assign(n,c)}for(let s of["accessibilityLabel","accessibilityRole","accessibilityValue"])if(e[s]===void 0&&n[s]!==void 0&&n[s]!==null)e[s]=n[s];let r=n.accessibilityState;if(r)e.accessibilityState={...r,...t}}var Le=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function De(e,t){let n={...e};if(vr(n),t==="Image"&&n.accessibilityLabel===void 0&&e.alt!=null&&e.alt!=="")n.accessibilityLabel=String(e.alt);return Object.fromEntries(Le.filter((r)=>(r in n)).map((r)=>[r,n[r]]))}var $t=["keyboardType","secureTextEntry","returnKeyType","autoCapitalize","autoCorrect","editable","autoComplete"],Sr=new Set(["type","inputmode","inputMode","enterkeyhint","enterKeyHint","autoCapitalize","autoCorrect","spellcheck","readonly","readOnly","disabled",...$t]),wr={numeric:"number-pad",decimal:"decimal-pad",tel:"phone-pad",email:"email-address",url:"url",search:"web-search",text:"default"},xr={email:{keyboardType:"email-address",verbatim:!0,autoComplete:"email"},tel:{keyboardType:"phone-pad",autoComplete:"tel"},url:{keyboardType:"url",verbatim:!0,autoComplete:"url"},number:{keyboardType:"decimal-pad"},search:{keyboardType:"web-search",returnKeyType:"search"},password:{secure:!0,verbatim:!0}},Nr={enter:"default",done:"done",go:"go",next:"next",previous:"default",search:"search",send:"send"};function te(e){return e===void 0||e===null?"":String(e).trim().toLowerCase()}function Dt(e){if(e===void 0||e===null||e===!1)return!1;return te(e)!=="false"}function $e(e,...t){for(let n of t)if(e[n]!==void 0&&e[n]!==null)return e[n];return}function Vt(e,t){if(e!=="TextInput")return{};let n={},r=te(t.type),s=xr[r]??{},o=te($e(t,"inputmode","inputMode")),c=wr[o]??s.keyboardType;if(c&&c!=="default")n.keyboardType=c;if(s.secure)n.secureTextEntry=!0;let u=te($e(t,"enterkeyhint","enterKeyHint")),d=Nr[u]??s.returnKeyType;if(d&&d!=="default")n.returnKeyType=d;let g=te(t.autoCapitalize);if(g==="off"||g==="none")n.autoCapitalize="none";else if(g==="on")n.autoCapitalize="sentences";else if(!g&&s.verbatim)n.autoCapitalize="none";let h=t.autoCorrect;if(h==="off"||h==="false"||te(t.spellcheck)==="false"||h===void 0&&s.verbatim)n.autoCorrect=!1;else if(h==="on"||h==="true")n.autoCorrect=!0;if(Dt($e(t,"readonly","readOnly"))||Dt(t.disabled))n.editable=!1;if(s.autoComplete)n.autoComplete=s.autoComplete;return Object.fromEntries(Object.entries(n).filter(([b])=>t[b]===void 0||kr(b,t[b])))}function kr(e,t){if(e==="autoCapitalize")return t==="off"||t==="on";if(e==="autoCorrect")return typeof t==="string";return!1}function jt(e){let t=Vt(e.type,e.props);if(!Object.keys(t).length)return;e._textEntrySource=Object.fromEntries($t.filter((n)=>(n in e.props)).map((n)=>[n,e.props[n]])),Object.assign(e.props,t)}var Ve={"region-change-complete":"onRegionChangeComplete",regionchangecomplete:"onRegionChangeComplete",click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",onchange:"onChange",change:"onValueChange","value-change":"onValueChange",valuechange:"onValueChange",focus:"onFocus",focusin:"onFocus",blur:"onBlur",focusout:"onBlur",submit:"onSubmitEditing","submit-editing":"onSubmitEditing",submitediting:"onSubmitEditing","end-editing":"onEndEditing",endediting:"onEndEditing",scroll:"onScroll","scroll-begin-drag":"onScrollBeginDrag",scrollbegindrag:"onScrollBeginDrag","scroll-end-drag":"onScrollEndDrag",scrollenddrag:"onScrollEndDrag","momentum-scroll-begin":"onMomentumScrollBegin",momentumscrollbegin:"onMomentumScrollBegin","momentum-scroll-end":"onMomentumScrollEnd",momentumscrollend:"onMomentumScrollEnd","page-selected":"onPageSelected",pageselected:"onPageSelected",refresh:"onRefresh",layout:"onLayout","end-reached":"onEndReached",endreached:"onEndReached",close:"onRequestClose","request-close":"onRequestClose",requestclose:"onRequestClose",show:"onShow",dismiss:"onDismiss","sliding-complete":"onSlidingComplete",slidingcomplete:"onSlidingComplete","load-start":"onLoadStart",loadstart:"onLoadStart",load:"onLoad","load-end":"onLoadEnd",loadend:"onLoadEnd",error:"onError",play:"onPlay",playing:"onPlay",pause:"onPause",ended:"onEnd",end:"onEnd",timeupdate:"onProgress",progress:"onProgress",loadedmetadata:"onLoad",enterpictureinpicture:"onPictureInPictureStart",leavepictureinpicture:"onPictureInPictureStop"};var We={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText",animate:"Animate"},Fe=new Set(Object.values(We));var Xt=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),zt=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight","attributeName","keyTimes","repeatCount"];function X(e){let t=typeof e==="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function J(e){return Math.round(e*1000)/1000}function Xe(e){if(Array.isArray(e)&&e.length===4&&e.every((n)=>Number.isFinite(Number(n))))return e.map(Number);let t=String(e??"").trim().split(/[\s,]+/).map(Number);if(t.length!==4||t.some((n)=>!Number.isFinite(n))||t[2]<=0||t[3]<=0)return null;return t}function Tr(e){let t=String(e??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return t.length%2?t.slice(0,-1):t}var Wt=/[MLHVCSQTAZ]/i,je=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function Rr(e){let t=[],n=e,r=Wt.exec(n);while(r){let s=r.index;n=n.slice(s);let o=n[0];n=n.slice(1);let c=Wt.exec(n),u=c?n.slice(0,c.index):n,d;if(o==="A"||o==="a"){d=[];let g=0,h=u.trim(),b=0;while(b<h.length){let m=g%7,y=h.slice(b).replace(/^[\s,]+/,"");if(b=h.length-y.length,!y)break;if(m===3||m===4)d.push(y[0]==="1"?1:0),b+=1;else{je.lastIndex=0;let v=je.exec(y);if(!v||v.index!==0)break;d.push(Number.parseFloat(v[0])),b+=v[0].length}g++}}else d=(u.match(je)||[]).map(Number.parseFloat);t.push({command:o,args:d}),r=c}return t}function _r(e,t,n,r,s,o,c,u,d){if(e===u&&t===d)return[];let g=Math.abs(n),h=Math.abs(r);if(!g||!h)return[1,u,d];let b=s*Math.PI/180,m=Math.cos(b),y=Math.sin(b),v=(e-u)/2,f=(t-d)/2,l=m*v+y*f,x=-y*v+m*f,p=l*l/(g*g)+x*x/(h*h);if(p>1)g*=Math.sqrt(p),h*=Math.sqrt(p);let N=g*g*h*h-g*g*x*x-h*h*l*l,S=g*g*x*x+h*h*l*l,k=Math.sqrt(Math.max(0,N/S));if(o===c)k=-k;let w=k*(g*x)/h,_=k*-(h*l)/g,I=m*w-y*_+(e+u)/2,P=y*w+m*_+(t+d)/2,E=(B,W,F,q)=>{let Y=B*q-W*F<0?-1:1,G=(B*F+W*q)/(Math.hypot(B,W)*Math.hypot(F,q));return Y*Math.acos(Math.min(1,Math.max(-1,G)))},T=E(1,0,(l-w)/g,(x-_)/h),R=E((l-w)/g,(x-_)/h,(-l-w)/g,(-x-_)/h);if(!c&&R>0)R-=2*Math.PI;if(c&&R<0)R+=2*Math.PI;let C=Math.max(1,Math.ceil(Math.abs(R)/(Math.PI/2))),j=R/C,A=1.3333333333333333*Math.tan(j/4),L=[],z=(B)=>{let W=g*Math.cos(B),F=h*Math.sin(B);return[m*W-y*F+I,y*W+m*F+P]},O=(B)=>{let W=-g*Math.sin(B),F=h*Math.cos(B);return[m*W-y*F,y*W+m*F]},M=T;for(let B=0;B<C;B++){let W=M+j,[F,q]=z(M),[Y,G]=O(M),[it,st]=z(W),[vn,Sn]=O(W);L.push(2,F+A*Y,q+A*G,it-A*vn,st-A*Sn,B===C-1?u:it,B===C-1?d:st),M=W}return L}function Ut(e){let t=[],n=0,r=0,s=0,o=0,c=0,u=0,d=0,g=0,h="";for(let{command:b,args:m}of Rr(String(e??""))){let y=b===b.toLowerCase(),v=b.toUpperCase(),f=()=>y?n:0,l=()=>y?r:0,x=0,p=(S)=>{if(x+S>m.length)return null;let k=m.slice(x,x+S);return x+=S,k};if(v==="Z"){t.push(4),n=s,r=o,h="Z";continue}let N=!0;while(x<m.length||N&&v==="Z"){switch(v){case"M":{let S=p(2);if(!S)return t;if(n=S[0]+f(),r=S[1]+l(),N)t.push(0,n,r),s=n,o=r;else t.push(1,n,r);h=N?"M":"L";break}case"L":{let S=p(2);if(!S)return t;n=S[0]+f(),r=S[1]+l(),t.push(1,n,r),h="L";break}case"H":{let S=p(1);if(!S)return t;n=S[0]+f(),t.push(1,n,r),h="L";break}case"V":{let S=p(1);if(!S)return t;r=S[0]+l(),t.push(1,n,r),h="L";break}case"C":{let S=p(6);if(!S)return t;let k=S[0]+f(),w=S[1]+l();c=S[2]+f(),u=S[3]+l(),n=S[4]+f(),r=S[5]+l(),t.push(2,k,w,c,u,n,r),h="C";break}case"S":{let S=p(4);if(!S)return t;let k=h==="C"?2*n-c:n,w=h==="C"?2*r-u:r;c=S[0]+f(),u=S[1]+l(),n=S[2]+f(),r=S[3]+l(),t.push(2,k,w,c,u,n,r),h="C";break}case"Q":{let S=p(4);if(!S)return t;d=S[0]+f(),g=S[1]+l(),n=S[2]+f(),r=S[3]+l(),t.push(3,d,g,n,r),h="Q";break}case"T":{let S=p(2);if(!S)return t;d=h==="Q"?2*n-d:n,g=h==="Q"?2*r-g:r,n=S[0]+f(),r=S[1]+l(),t.push(3,d,g,n,r),h="Q";break}case"A":{let S=p(7);if(!S)return t;let k=S[5]+f(),w=S[6]+l();t.push(..._r(n,r,S[0],S[1],S[2],S[3],S[4],k,w)),n=k,r=w,h="A";break}default:return t}N=!1}}return t.map((b)=>J(b))}function Ft(e,t,n,r){if(n<=0||r<=0)return[];let s=0.5522847498;return[0,e+n,t,2,e+n,t+s*r,e+s*n,t+r,e,t+r,2,e-s*n,t+r,e-n,t+s*r,e-n,t,2,e-n,t-s*r,e-s*n,t-r,e,t-r,2,e+s*n,t-r,e+n,t-s*r,e+n,t,4].map(J)}function ze(e,t){switch(e){case"Path":return Ut(String(t.d??""));case"Line":return[0,X(t.x1),X(t.y1),1,X(t.x2),X(t.y2)].map(J);case"Rect":{let n=X(t.x),r=X(t.y),s=X(t.width),o=X(t.height);if(s<=0||o<=0)return[];let c=t.rx===void 0?X(t.ry):X(t.rx),u=t.ry===void 0?c:X(t.ry);if(c=Math.min(Math.max(0,c),s/2),u=Math.min(Math.max(0,u),o/2),!c||!u)return[0,n,r,1,n+s,r,1,n+s,r+o,1,n,r+o,4].map(J);let d=0.5522847498;return[0,n+c,r,1,n+s-c,r,2,n+s-c+d*c,r,n+s,r+u-d*u,n+s,r+u,1,n+s,r+o-u,2,n+s,r+o-u+d*u,n+s-c+d*c,r+o,n+s-c,r+o,1,n+c,r+o,2,n+c-d*c,r+o,n,r+o-u+d*u,n,r+o-u,1,n,r+u,2,n,r+u-d*u,n+c-d*c,r,n+c,r,4].map(J)}case"Circle":return Ft(X(t.cx),X(t.cy),X(t.r),X(t.r));case"Ellipse":return Ft(X(t.cx),X(t.cy),X(t.rx),X(t.ry));case"Polyline":case"Polygon":{let n=Tr(t.points);if(n.length<4)return[];let r=[0,n[0],n[1]];for(let s=2;s<n.length;s+=2)r.push(1,n[s],n[s+1]);if(e==="Polygon")r.push(4);return r.map(J)}default:return null}}function Ar(e){let t=/^\s*(\d+(?:\.\d+)?|\.\d+)\s*(ms|s)?\s*$/.exec(String(e??""));if(!t)return null;let n=Number(t[1])/(t[2]==="ms"?1000:1);return n>0?n:null}function Er(e){if(e.attributeName!=="d")return null;let t=Ar(e.dur),n=String(e.values??"").split(";").map((u)=>u.trim()).filter(Boolean);if(t===null||n.length<2)return null;let r=n.map(Ut);if(r.some((u)=>!u.length))return null;let s=String(e.keyTimes??"").split(";").map((u)=>u.trim()).filter(Boolean).map(Number),c=s.length===r.length&&s[0]===0&&s[s.length-1]===1&&s.every((u,d)=>Number.isFinite(u)&&(d===0||u>=s[d-1]))?s.map(J):r.map((u,d)=>J(d/(r.length-1)));return{frames:r,frameTimes:c,duration:t}}function Ue(e){let t=Er(e),n={frames:t?.frames??null,frameTimes:t?.frameTimes??null,duration:t?.duration??null};for(let[r,s]of Object.entries(n))if(s===null)delete e[r];else e[r]=s;return n}var Ir=[...zt,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","barStyle","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoComplete","autoCorrect","autoFocus","contentContainerStyle","currentTime","defaultSource","defaultValue","ellipsizeMode","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","ios_backgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","listRole","maxLength","mostRecentEventCount","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pageIndex","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","sheetDetents","selectedDetent","grabberVisible","tintColor","clearButtonMode","nonModal","dismissOnOutsideTap","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","stickyHeaderIndices","testID","textContentType","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize","initialRegion","tileOverlay","edgePadding","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","mapType","fillColor","strokeColor","pinColor","showsCompass","showsScale","cameraPitch","cameraHeading","autoScrollBottom","scrollKey","pictureInPicture","transitionID"],Ht=new Set(["alwaysBounceHorizontal","alwaysBounceVertical","animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","editable","hidesWhenStopped","horizontal","loop","multiline","muted","pagingEnabled","paused","refreshing","scrollEnabled","secureTextEntry","selectTextOnFocus","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","transparent","visible","nonModal","dismissOnOutsideTap","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","showsCompass","showsScale","pictureInPicture","grabberVisible"]),Cr=new Map(Ir.map((e)=>[qt(e),e]));function qt(e){return e.replace(/[-_]/g,"").toLowerCase()}function He(e,t){if((t==="Image"||t==="Video")&&e.toLowerCase()==="src")return"source";return Cr.get(qt(e))??e}var Or={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",map:"Map",mappolyline:"MapPolyline",mappolygon:"MapPolygon",mapmarker:"MapMarker",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",checkbox:"Checkbox",slider:"Slider",picker:"Picker",segmentedcontrol:"SegmentedControl",nativesegmentedcontrol:"SegmentedControl",select:"Picker",loading:"ActivityIndicator",spinner:"ActivityIndicator",div:"View",span:"Text",p:"Text",h1:"Text",h2:"Text",h3:"Text",h4:"Text",h5:"Text",h6:"Text",a:"TouchableOpacity",section:"View",article:"View",header:"SafeAreaView",footer:"View",main:"View",nav:"View",aside:"View",form:"View",label:"Text",fieldset:"View",legend:"Text",option:"Text",dialog:"Modal",figure:"View",figcaption:"Text",picture:"View",hr:"View",ul:"View",ol:"View",li:"View",dl:"View",dt:"Text",dd:"Text",table:"View",thead:"View",tbody:"View",tfoot:"View",tr:"View",th:"Text",td:"Text",caption:"Text",strong:"Text",b:"Text",em:"Text",i:"Text",u:"Text",s:"Text",small:"Text",mark:"Text",abbr:"Text",time:"Text",code:"Text",kbd:"Text",samp:"Text",pre:"Text",blockquote:"Text",cite:"Text",q:"Text",sub:"Text",sup:"Text"};function Gt(e){return Or[e.toLowerCase()]||e}var Pr={"circle-pause":"pause.circle","cloud-alert":"exclamationmark.icloud","key-round":"key",paperclip:"paperclip","rotate-cw":"arrow.clockwise","route-off":"location.slash",syringe:"syringe","volume-1":"speaker.wave.1",activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",apple:"leaf",archive:"archivebox",armchair:"sofa","arrow-down":"arrow.down","arrow-left":"arrow.left","arrow-right":"arrow.right","arrow-up":"arrow.up","arrow-up-right":"arrow.up.right","at-sign":"at","audio-lines":"waveform",award:"rosette",backpack:"backpack","badge-check":"checkmark.seal","badge-x":"xmark.seal",ban:"nosign","bar-chart":"chart.bar","bar-chart-2":"chart.bar","bar-chart-3":"chart.bar",battery:"battery.100","battery-charging":"battery.100.bolt",bean:"leaf",bed:"bed.double",beef:"fork.knife",bell:"bell","bell-off":"bell.slash","bell-ring":"bell.and.waves.left.and.right",bike:"figure.outdoor.cycle",blocks:"square.grid.2x2",bluetooth:"antenna.radiowaves.left.and.right",book:"book","book-open":"book",bookmark:"bookmark",box:"shippingbox",brain:"brain",building:"building","building-2":"building.2",cable:"cable.connector","cake-slice":"birthday.cake",calendar:"calendar","calendar-check":"calendar.badge.checkmark","calendar-clock":"calendar.badge.clock","calendar-days":"calendar","calendar-minus":"calendar.badge.minus","calendar-minus-2":"calendar.badge.minus","calendar-off":"calendar.badge.exclamationmark","calendar-plus":"calendar.badge.plus","calendar-range":"calendar","calendar-sync":"arrow.triangle.2.circlepath","calendar-x":"calendar.badge.exclamationmark","calendar-x-2":"calendar.badge.exclamationmark",camera:"camera",carrot:"carrot","chart-bar":"chart.bar","chart-column":"chart.bar","chart-line":"chart.xyaxis.line","chart-no-axes-gantt":"chart.bar.doc.horizontal",check:"checkmark","check-circle":"checkmark.circle","check-circle-2":"checkmark.circle","chevron-down":"chevron.down","chevron-left":"chevron.left","chevron-right":"chevron.right","chevron-up":"chevron.up",circle:"circle","circle-alert":"exclamationmark.circle","circle-arrow-out-up-left":"arrow.uturn.backward.circle","circle-minus":"minus.circle","circle-arrow-down":"arrow.down.circle","circle-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-dot":"smallcircle.filled.circle","circle-help":"questionmark.circle","circle-question-mark":"questionmark.circle","circle-play":"play.circle","circle-plus":"plus.circle","circle-user":"person.crop.circle","circle-x":"xmark.circle",clapperboard:"film",clipboard:"clipboard","clipboard-list":"list.clipboard",clock:"clock","clock-12":"clock","clock-2":"clock","clock-3":"clock","clock-4":"clock","clock-8":"clock","clock-alert":"clock.badge.exclamationmark",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",cookie:"birthday.cake",copy:"doc.on.doc","credit-card":"creditcard","cup-soda":"takeoutbag.and.cup.and.straw",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",drumstick:"fork.knife",dumbbell:"dumbbell",edit:"pencil",egg:"frying.pan","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",fish:"fish",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift","glass-water":"waterbottle",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal",hamburger:"takeoutbag.and.cup.and.straw","hand-fist":"hand.raised",heart:"heart","heart-off":"heart.slash","heart-pulse":"heart.text.square","help-circle":"questionmark.circle",history:"clock.arrow.circlepath",home:"house",hourglass:"hourglass",house:"house","id-card":"person.text.rectangle",image:"photo",inbox:"tray",info:"info.circle",layers:"square.3.layers.3d","layout-dashboard":"rectangle.3.group","layout-grid":"square.grid.2x2",leaf:"leaf",library:"books.vertical",link:"link",list:"list.bullet","list-checks":"checklist",loader:"arrow.triangle.2.circlepath","loader-2":"arrow.triangle.2.circlepath","loader-circle":"arrow.triangle.2.circlepath",lock:"lock","log-in":"arrow.right.to.line","log-out":"rectangle.portrait.and.arrow.right",mail:"envelope",map:"map","map-pin":"mappin.and.ellipse",medal:"medal",megaphone:"megaphone",menu:"line.3.horizontal","message-circle":"bubble.left","message-square":"text.bubble","message-square-quote":"quote.bubble","messages-square":"bubble.left.and.bubble.right",mic:"mic",milk:"waterbottle",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",nut:"leaf",package:"shippingbox",pause:"pause","pause-circle":"pause.circle",pencil:"pencil","person-standing":"figure.walk",phone:"phone",play:"play.fill",plug:"powerplug",plus:"plus","plus-circle":"plus.circle","rectangle-horizontal":"rectangle","refresh-cw":"arrow.clockwise",repeat:"repeat","rotate-ccw":"arrow.counterclockwise",route:"point.topleft.down.to.point.bottomright.curvepath",ruler:"ruler",sailboat:"sailboat",salad:"leaf",satellite:"antenna.radiowaves.left.and.right",save:"square.and.arrow.down",scale:"scalemass","scan-line":"barcode.viewfinder",search:"magnifyingglass",send:"paperplane",settings:"gearshape","settings-2":"slider.horizontal.3",share:"square.and.arrow.up","share-2":"square.and.arrow.up",shield:"shield","shield-check":"checkmark.shield","shopping-bag":"bag","shopping-cart":"cart",shuffle:"shuffle","skip-back":"backward.end","skip-forward":"forward.end",sliders:"slider.horizontal.3","sliders-horizontal":"slider.horizontal.3",smartphone:"iphone",snowflake:"snowflake",soup:"mug",sparkles:"sparkles",sprout:"leaf",square:"square",star:"star",stopwatch:"stopwatch",store:"storefront","stretch-horizontal":"rectangle.split.1x2",sun:"sun.max",sunrise:"sunrise",sunset:"sunset",tag:"tag",target:"scope",thermometer:"thermometer.medium","thumbs-up":"hand.thumbsup",timer:"timer",trash:"trash","trash-2":"trash","trending-down":"chart.line.downtrend.xyaxis","trending-up":"chart.line.uptrend.xyaxis","triangle-alert":"exclamationmark.triangle",trophy:"trophy",unlink:"personalhotspot.slash",upload:"arrow.up.circle",user:"person","user-check":"person.crop.circle.badge.checkmark","user-minus":"person.badge.minus","user-plus":"person.badge.plus","user-round":"person","user-round-check":"person.crop.circle.badge.checkmark","user-round-minus":"person.crop.circle.badge.minus","user-round-plus":"person.crop.circle.badge.plus","user-round-x":"person.crop.circle.badge.xmark","user-x":"person.crop.circle.badge.xmark",users:"person.2","users-round":"person.2",utensils:"fork.knife",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wheat:"laurel.leading",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",wine:"wineglass",x:"xmark","x-circle":"xmark.circle",zap:"bolt"},Kt={lucide:Pr,hugeicons:{"workout-run":"figure.run"}};function ie(e,t=!1){let n=String(e??"").trim();if(!n)return{symbol:"questionmark.square.dashed",known:!1};if(t)return{symbol:n,known:!0};let r=/^i-([a-z0-9]+)-(.+)$/.exec(n)??/^([a-z0-9]+):(.+)$/.exec(n),s=r?r[1]:"lucide",o=r?r[2]:n,c=Object.hasOwn(Kt,s)?Kt[s]:void 0;if(c&&Object.hasOwn(c,o))return{symbol:c[o],iconify:`i-${s}-${o}`,known:!0};if(!r&&n.includes("."))return{symbol:n,known:!0};return{symbol:"questionmark.square.dashed",iconify:r?n:`i-lucide-${o}`,known:!1}}function Ge(e){return e.split(/\s+/).find((t)=>/^i-[a-z0-9]+-[a-z0-9-]+$/.test(t))}import{generate as me,parse as Mr}from"@stacksjs/ts-css/parse";var Br=/^(?::hover|:active|:visited|:focus|:focus-visible|:focus-within)$/;function Lr(e){let t=e.replace(/\s+/g,"").toLowerCase();if(!t||t==="all"||t==="screen")return{};if(/^(?:screenand)?\(prefers-color-scheme:dark\)$/.test(t))return{dark:!0};if(/^(?:screenand)?\(prefers-color-scheme:light\)$/.test(t))return{};if(/prefers-reduced-motion|\(hover|\(pointer|print|forced-colors|prefers-contrast/.test(t))return"skip";let n=t.replace(/^screenand/,"").split("and"),r={};for(let s of n){let o=/^\((min|max)-width:([\d.]+)(px|rem|em)\)$/.exec(s);if(!o)return;r[o[1]]=Number(o[2])*(o[3]==="px"?1:16)}return r}async function Jt(e,t){let n={},r=new Set,s=(g)=>{if(r.has(g))return;r.add(g),t(g,[...g.matchAll(/\.(-?[a-z_][\w-]*)/gi)].map((h)=>h[1]))},o=(g,h,b)=>{if(!h.trim())return;let m=n[g]??={},y=b.dark?"dark":"light";if(b.min===void 0&&b.max===void 0){m[y]=m[y]?`${m[y]};${h}`:h;return}let v=m.responsive??=[],f=b.min??0,l=v.find((x)=>x.min===f&&x.max===b.max);if(!l)v.push(l={min:f,...b.max===void 0?{}:{max:b.max}});l[y]=l[y]?`${l[y]};${h}`:h};function c(g,h){for(let b of g){if(b.type==="Atrule"){let v=b.name.toLowerCase();if(["font-face","keyframes","-webkit-keyframes","import","charset","property","page","layer"].includes(v)){if(v==="layer"&&b.block)c(b.block.children,h);continue}if(v!=="media"||!b.block){s(`@${v}`);continue}let f=b.prelude?me(b.prelude):"",l=Lr(f);if(l==="skip")continue;if(!l){s(`@media ${f}`);continue}c(b.block.children,{dark:h.dark||l.dark,min:l.min??h.min,max:l.max??h.max});continue}if(b.type!=="Rule"||b.block.type!=="Block")continue;let m=[...b.block.children].filter((v)=>v.type==="Declaration").map((v)=>me(v)).join(";"),y=b.prelude.type==="SelectorList"?[...b.prelude.children].map(me):[me(b.prelude)];for(let v of y){let f=/^(?:(?:html|:root)?\.dark\s+)?((?:\.-?[a-z_][\w-]*)+)((?::{1,2}[a-z-]+)*)$/i.exec(v.trim());if(!f){if(!/^(?:html|:root|body|\*|::?[a-z-]+)/i.test(v.trim()))s(v.trim());continue}let l=f[2];if(l){if(!Br.test(l))s(v.trim());continue}let x=h.dark||/^(?:(?:html|:root)?\.dark\s+)/i.test(v.trim());o(f[1].slice(1),m,{dark:x,min:h.min,max:h.max})}}}let u="",d=!0;await new HTMLRewriter().on("style",{element(g){u="";let h=g.getAttribute("type");d=!h||h.toLowerCase()==="text/css",g.onEndTag(()=>{if(!d)return;try{let b=Mr(u);if(b.type==="StyleSheet")c(b.children,{})}catch{s("invalid stylesheet")}})},text(g){u+=g.text}}).transform(new Response(e)).text();for(let g of Object.values(n))g.responsive?.sort((h,b)=>h.min-b.min||(h.max??1/0)-(b.max??1/0));return n}import{generate as se,parse as Yt}from"@stacksjs/ts-css/parse";async function Qt(e,t){let n={light:new Map,dark:new Map},r=new Set,s=(b)=>{if(!r.has(b))r.add(b),t(b)},o=(b,m,y)=>{for(let v of y){let f=n[v].get(b);if(!f||Number(m.important)>Number(f.important)||m.important===f.important&&m.specificity>=f.specificity)n[v].set(b,m)}},c=(b)=>{if(b.type==="Declaration")return b.property.startsWith("--");if(b.type==="Rule"||b.type==="Atrule")return!!b.block&&[...b.block.children].some(c);return!1},u=(b)=>{let m=b.replace(/\s+/g,"").toLowerCase();if(!m||m==="all"||m==="screen")return["light","dark"];let y=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(m);return y?[y[1]]:void 0};function d(b,m){for(let y of b){if(!c(y))continue;if(y.type==="Atrule"){let f=y.prelude?se(y.prelude):"",l=y.name.toLowerCase()==="media"?u(f):void 0;if(!l){s(`@${y.name} ${f}`.trim());continue}d(y.block.children,m.filter((x)=>l.includes(x)));continue}if(y.type!=="Rule")continue;let v=y.prelude.type==="SelectorList"?[...y.prelude.children].map(se):[se(y.prelude)];for(let f of v){let l=/^(html|:root)?(?:\.(dark|light))?$/.exec(f.trim());if(!l||!l[1]&&!l[2]){s(f);continue}let x=(l[1]===":root"?10:l[1]?1:0)+(l[2]?10:0);for(let p of y.block.children){if(p.type!=="Declaration"){if(c(p))s(`nested rule in ${f}`);continue}if(!p.property.startsWith("--"))continue;let N={value:se(p.value),important:!!p.important,specificity:x};o(p.property,N,m.filter((S)=>!l[2]||l[2]===S))}}}}let g="",h;return await new HTMLRewriter().on("html",{element(b){let m=b.getAttribute("style");if(!m)return;try{let y=Yt(m,{context:"declarationList"});if(y.type!=="DeclarationList")return;for(let v of y.children)if(v.type==="Declaration"&&v.property.startsWith("--"))o(v.property,{value:se(v.value),important:!!v.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(b){g="";let m=b.getAttribute("type");h=!m||m.toLowerCase()==="text/css"?u(b.getAttribute("media")??""):void 0,b.onEndTag(()=>{try{let y=Yt(g);if(y.type!=="StyleSheet")return;if(!h){if([...y.children].some(c))s("style type/media");return}d(y.children,h)}catch{s("invalid stylesheet")}})},text(b){g+=b.text}}).transform(new Response(e)).text(),{light:[...n.light].map(([b,m])=>[b,m.value]),dark:[...n.dark].map(([b,m])=>[b,m.value])}}function H(e,t={},n={},r={},s=[]){return{type:e,props:t,style:n,events:r,children:s}}function Zt(e,t,n={}){return{version:"1.0.0",root:e,script:t,meta:{source:n.source||"unknown",compiledAt:n.compiledAt||Date.now(),headwindConfig:n.headwindConfig}}}var Dr=/^(?:key(?:down|up|press)|mouse[a-z]+|pointer[a-z]+|dbl(?:click)?|contextmenu|wheel|drag[a-z]*|drop|copy|cut|paste|beforeinput|compositionstart|compositionupdate|compositionend|animation[a-z]+|transition[a-z]+|resize|hashchange|popstate|beforeunload|unload|visibilitychange|selectionchange|selectstart|auxclick)$/,en=new Set(["script","style","head","meta","link","title","base","noscript"]),tn=new Set(["template","body","html","main","fragment"]),ye=new Set,$r=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onPageSelected","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),be=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","Link","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","Map","MapPolyline","MapPolygon","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","SegmentedControl","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...Fe]),Vr=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),nn=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),jr={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function Z(e){return e.replace(/&(#x?[0-9a-f]+|\w+);/gi,(t,n)=>{let r=jr[n.toLowerCase()];if(r!==void 0)return r;if(n[0]==="#"){let s=n[1]==="x"||n[1]==="X"?Number.parseInt(n.slice(2),16):Number.parseInt(n.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):t}return t})}function Je(e){if(!e.includes("{{"))return null;let t=[],n=0;for(let r of e.matchAll(/\{\{([\s\S]+?)\}\}/g)){if(r.index>n)t.push(JSON.stringify(e.slice(n,r.index)));t.push(`(${r[1].trim()})`),n=r.index+r[0].length}if(!t.some((r)=>r.startsWith("(")))return null;if(n<e.length)t.push(JSON.stringify(e.slice(n)));if(t.length===1)return t[0].slice(1,-1);return`[${t.join(", ")}].map(__stxPart => __stxPart == null ? '' : __stxPart).join('')`}function sn(e,t,n,r={}){let s=r.inheritedVariables,o={},c={},u={},d=[],g="",h={};for(let[v,f]of t){let l=v.toLowerCase();if(l==="class"||l==="classname"){g=g?`${g} ${f}`:f;continue}if(l==="style"){h={...h,...Wr(e,f,n,{...r,onVariables(S){s=S,r.onVariables?.(S)}})};continue}if(l.startsWith(":")||l.startsWith("x-")&&l!=="x-cloak"){u[l.startsWith(":")?l.slice(1):l.slice(2)]=Z(f);continue}if(l==="x-cloak")continue;if(l.startsWith("@")||l.startsWith("v-on:")){let S=l.startsWith("@")?l.slice(1):l.slice(5),[k]=S.split("."),w=Ve[k]??(k.startsWith("on")?k:"");if(!w||!$r.has(w)){if(Dr.test(k)||/\./.test(S))n.push({kind:"unread-event",tag:e,name:v});continue}c[w]=Z(f);continue}if(l==="key"){o.key=f;continue}let x=Z(f),p=Je(x);if(p){u[l]=p,d.push(l);continue}let N=He(v);if(x===""&&Ht.has(N)){o[N]=!0;continue}try{o[N]=JSON.parse(x)}catch{o[N]=x}}let b=o["data-native"]?o["data-native"]==="TextInput":e==="textarea"||e==="input"&&!["checkbox","radio","hidden"].includes(String(o.type??"text").toLowerCase()),m=g?ge(g,s,{focus:b,focusWithin:!0,rules:r.rules}):void 0;for(let v of new Set(m?.unknown??[]))n.push({kind:"unknown-class",tag:e,name:v});let y=Oe({...m?.style,...h});return{props:o,style:y,events:c,bindings:u,classes:g,inline:h,templated:d}}function Wr(e,t,n,r){return de(Z(t),(s)=>n.push({...s,tag:e}),r)}function Ye(e){return e.children.map((t)=>typeof t==="string"?t:Ye(t)).join("").replace(/\s+/g," ").trim()}function Fr(e,t){let n=e.node;if(n.props["data-stx-native-template"])return n.children=n.children.map((o)=>typeof o==="string"?H("Text",{},{},{},[o]):o),n;let r=n.children.filter((o)=>typeof o!=="string"),s=n.children.filter((o)=>typeof o==="string").join("").trim();if(e.tag==="button"&&n.type==="Button"&&!e.declaredNative&&r.length>0)return n.type="Pressable",n.props.role??="button",n.children=n.children.flatMap((o)=>typeof o==="string"?o.trim()?[H("Text",{},{},{},[o.trim()])]:[]:[o]),n;if(n.type==="Button"&&r.length===0)return n.children=s?[s]:[],n;if(n.type==="Svg"||n.type==="G")return n.children=r,n;if(n.type==="SvgText"){let o=Ye(n);return n.children=o?[o]:[],n}if(nn.has(n.type)&&r.length===0&&s)return n.type="Text",n.children=[s],n;if(n.type==="Text"&&!s&&r.length===0&&typeof n.props.text==="string")return n.children=n.props.text?[n.props.text]:[],delete n.props.text,n;if(n.type==="Text"&&r.length>0){if(/(?:^|\s)(?:inline-)?(?:flex|grid)(?:\s|$)/.test(n._classes??"")||r.some((u)=>u.type!=="Text"))return n.type="View",n.children=n.children.map((u)=>typeof u==="string"?H("Text",{},{},{},[u]):u),n;let c=Ye(n);return t.push({kind:"flattened-text",tag:e.tag}),n.children=c?[c]:[],n}if(nn.has(n.type)&&r.length>0)n.children=r;return n}async function Xr(e,t={}){e=await oe(e);let n=[],r=await Qt(e,(l)=>n.push({kind:"unsupported-theme-rule",tag:"style",name:l})),s=re(r.light).computed(),o=new Set([...e.matchAll(/\sclass(?:name)?\s*=\s*"([^"]*)"/gi)].flatMap((l)=>l[1].split(/\s+/))),c=await Jt(e,(l,x)=>{if(!x.length||x.some((p)=>o.has(p)))n.push({kind:"unsupported-style-rule",tag:"style",name:l})}),u=[],d=[],g=new Set;function h(l){let x=d[d.length-1];if(!x)u.push(l);else if(!x.dropped)x.node.children.push(l)}function b(l){let x=(N)=>{if(l.tag!=="html"&&l.node._styleSource)N._styleAncestors=[l.node._styleSource,...N._styleAncestors??[]]};if(l.node.bindings&&Object.keys(l.node.bindings).length>0){let N=l.node.children,S=N.filter((w)=>typeof w!=="string"),k=S.length===1&&S.length===N.length?S[0]:H("View",{},{},{},N);if(k.bindings={...l.node.bindings,...k.bindings},k.bindingId===void 0&&l.node.bindingId!==void 0)k.bindingId=l.node.bindingId;x(k),h(k);return}let p=d[d.length-1];for(let N of l.node.children){if(typeof N==="string"){if(p&&!p.dropped)p.node.children.push(N);continue}if(x(N),!p)u.push(N);else if(!p.dropped)p.node.children.push(N)}}function m(l,x){let p=d[d.length-1];if(l==="svg"||p?.svg)return y(l,x,p);let N=en.has(l)&&!ye.has(l),S=d[d.length-1]?.dropped??!1,k=p?.variables??s,{props:w,style:_,events:I,bindings:P,classes:E,inline:T,templated:R}=N||S?{props:{},style:{},events:{},bindings:{},classes:"",inline:{},templated:[]}:sn(l,x,n,{inheritedVariables:k,onVariables:(O)=>{k=O},rules:c});if(l==="html")k=s;let C=w["data-native"],j=l==="template"&&x.some(([O])=>[":for","x-for","@for"].includes(O)),A;if(j)A="View",w["data-stx-native-template"]=!0;else if(typeof C==="string"&&be.has(C))A=C,delete w["data-native"];else{if(A=ye.has(l)?"View":Gt(l),(l==="i"||l==="span")&&/(?:^|\s)i-[a-z0-9]+-[a-z0-9-]+(?:\s|$)/.test(E))A="Icon";else if(l==="i"&&x.some(([O])=>/^(?::|x-)class$/i.test(O)))A="Icon";if(l==="input"){let O=String(w.type??"text").toLowerCase();if(O==="checkbox")A="Checkbox",w.formValue=w.value??"on",w.checked=w.checked===""||w.checked===!0||w.checked==="true",w.value=w.checked;else if(O==="hidden")A="View",_.display="none",T.display="none";else if(O==="radio")A="View",w.accessibilityRole="radio",n.push({kind:"unsupported-control",tag:l,name:"input:radio"})}}if(!S&&A===l&&!be.has(A)&&!en.has(l)&&!tn.has(l)&&!g.has(l))g.add(l),n.push({kind:"unmapped-tag",tag:l});if((N||ye.has(l))&&!g.has(`drop:${l}`))g.add(`drop:${l}`),n.push({kind:"dropped-subtree",tag:l});if(A==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(E))A="ScrollView",w.horizontal=!0,w.showsHorizontalScrollIndicator??=!1;else if(A==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(E))A="ScrollView";if(l==="form")w["data-stx-form"]=!0;if(l==="button"&&w.type===void 0)w.type="submit";if(l==="textarea"&&A==="TextInput")w.multiline??=!0;if((A==="Video"||A==="Image")&&w.source===void 0&&w.src!==void 0)w.source=w.src,delete w.src;if(A==="Icon"){let O=ge(E).icon,M=String(w.symbol||w.name||O||""),B=ie(M,Boolean(w.symbol));if(M.trim()&&!B.known)n.push({kind:"unknown-icon",tag:l,name:M});if(w.symbol=B.symbol,B.iconify)w.iconify=B.iconify}if(A==="FlatList"||A==="SectionList"){let O=new Set([...Object.keys(w),...Object.keys(P)].map((M)=>M.toLowerCase()));for(let[M,B]of Vr)if(O.has(M))n.push({kind:"unsupported-list-prop",tag:A,name:B})}let L=H(A,w,_,I);L._inlineStyle=T,L._styleSource=Z(x.find(([O])=>O==="style")?.[1]??"");let z=w["data-stx-b"];if(typeof z==="number"&&Number.isInteger(z))L.bindingId=z;if(delete w["data-stx-b"],E)L._classes=E;if(Object.keys(P).length>0)L.bindings=P;if(R.length>0)L._templated=R;if(typeof w.key==="string")L.key=w.key,delete w.key;return{tag:l,node:L,variables:k,declaredNative:typeof C==="string"&&be.has(C),dropped:N||S||ye.has(l)||A==="Video",discard:N||S,unwrap:tn.has(l)&&!j&&A!=="ScrollView"&&!(typeof C==="string"&&be.has(C))}}function y(l,x,p){let N=p?.dropped??!1,S=We[l];if(N||!S){if(!N&&!g.has(`drop:${l}`))g.add(`drop:${l}`),n.push({kind:Xt.has(l)?"dropped-subtree":"unmapped-tag",tag:l});return{tag:l,node:H("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let k=p?.variables??s,{props:w,style:_,events:I,bindings:P,classes:E,inline:T,templated:R}=sn(l,x,n,{inheritedVariables:k,onVariables:(L)=>{k=L},rules:c});if(S==="Svg"){let L=Xe(w.viewBox);if(L)w.viewBox=L;else delete w.viewBox;for(let z of["width","height"]){if(typeof w[z]==="number"&&_[z]===void 0)_[z]=w[z];delete w[z]}}if(typeof w.strokeDasharray==="string"||typeof w.strokeDasharray==="number"){let L=String(w.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);w.strokeDasharray=L}let C=ze(S,w);if(C)w.geometry=C;if(S==="Animate")Ue(w);let j=H(S,w,_,I);j._inlineStyle=T,j._styleSource=Z(x.find(([L])=>L==="style")?.[1]??"");let A=w["data-stx-b"];if(typeof A==="number"&&Number.isInteger(A))j.bindingId=A;if(delete w["data-stx-b"],E)j._classes=E;if(Object.keys(P).length>0)j.bindings=P;if(R.length>0)j._templated=R;if(typeof w.key==="string")j.key=w.key,delete w.key;return{tag:l,node:j,variables:k,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(l){let x=l.tagName.toLowerCase(),p=m(x,[...l.attributes]),N=!0;try{l.onEndTag(()=>{if(d.pop(),p.discard)return;if(p.unwrap)b(p);else h(Fr(p,n))})}catch{N=!1}if(N)d.push(p);else if(!p.discard)h(p.node)},text(l){let x=d[d.length-1];if(!x||x.dropped)return;let p=zr(Z(l.text),x.inMustache===!0);x.inMustache=p.inside;let N=p.text;if(!N.trim())return;x.node.children.push(N)}}).transform(new Response(e)).text(),u.length===0)throw Error(`No element to translate in the rendered output of ${t.source??"unknown"}`);let v=u.length===1?u[0]:H("View",{},{},{},u);if(r.light.length||r.dark.length)v._stylesheetTheme=r;if(Object.keys(c).length)v._stylesheetRules=c;let f=(l)=>{Ur(l);let x=De(l.props,l.type);if(Object.keys(x).length)l._accessibilitySource=Object.fromEntries(Le.filter((p)=>(p in l.props)).map((p)=>[p,l.props[p]])),Object.assign(l.props,x);jt(l);for(let p of l.children)if(typeof p!=="string")f(p)};return f(v),on(v),{root:v,diagnostics:n}}function on(e){if(["ScrollView","FlatList","SectionList"].includes(e.type))return!e.props.horizontal&&(Number(e.style.flex)>0||Number(e.style.flexGrow)>0);if(!e.children.map((n)=>typeof n==="string"?!1:on(n)).some(Boolean)||!["View","SafeAreaView","KeyboardAvoidingView"].includes(e.type))return!1;if(e.style.height!==void 0||e.style.maxHeight!==void 0)return!1;if(e.style.flex===0||e.style.flexGrow===0||e.style.flexShrink===0)return!1;if(e.style.flex===void 0&&e.style.flexGrow===void 0)e._layoutDefaults={flex:1,flexGrow:1,flexShrink:1,flexBasis:0},e.style={...e._layoutDefaults,...e.style};return!0}function zr(e,t){let n="",r=0;while(r<e.length){if(!t&&e.startsWith("{{",r)){t=!0,n+="{{",r+=2;continue}if(t&&e.startsWith("}}",r)){t=!1,n+="}}",r+=2;continue}let s=e[r];if(!t&&/\s/.test(s)){if(!n.endsWith(" "))n+=" ";while(r<e.length&&/\s/.test(e[r]))r++;continue}n+=s,r++}return{text:n,inside:t}}function Ur(e){if(e.props["data-stx-native-template"])return;if(e.bindings?.text||e.children.length===0)return;let t=e.children.filter((r)=>typeof r==="string");if(t.length<e.children.length){let r=e.type==="Button"||e.type==="Text"?null:Je(t.join(""));if(!r)return;e.bindings={...e.bindings,text:r},e._templated=[...e._templated??[],"text"],e.children=e.children.filter((s)=>typeof s!=="string");return}let n=Je(e.children.join(""));if(!n)return;if(e.type!=="Button")e.bindings={...e.bindings,text:n},e._templated=[...e._templated??[],"text"],e.children=[];else{e.type="Pressable",e.props.role??="button";let r=H("Text",{},{},{},[]);r.bindings={text:n},r._templated=["text"],e.children=[r]}}async function an(e,t={}){let{root:n,diagnostics:r}=await Xr(e,t),s=t.script??{exports:{},functions:[],code:""};return{document:Zt(n,s,{source:t.source??"unknown"}),diagnostics:r}}async function oe(e){if(!/\bdata-native-exclude\b/i.test(e))return e;return new HTMLRewriter().on("[data-native-exclude]",{element(t){t.remove()}}).transform(new Response(e)).text()}var cn=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Hr=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,qr=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,ln=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function Qe(e){let t=[];cn.lastIndex=0;for(let o of e.matchAll(cn)){let c=o[1]??"";if(/\bserver\b/.test(c))continue;t.push(o[2].trim())}let n=t.filter(Boolean).join(`
2
+ import"./chunk-wpwh529h.js";import{Hs,bi,nl}from"./chunk-27agaezn.js";import"./chunk-zn3c0ew5.js";import"./chunk-es4ec0nr.js";import"./chunk-nzwcbt98.js";import"./chunk-ffk5p7rc.js";import"./chunk-6ew10ptg.js";import"./chunk-4s1k8k2a.js";import{a}from"./chunk-yx63etd1.js";import"./chunk-dxsdr77m.js";import"./chunk-5f6x6fyp.js";import"./chunk-9vhv2hx9.js";import{ht,qe,he,rn,Ae,Qn,er,Ke}from"./chunk-7dhpecgc.js";import{i}from"./chunk-as9wg93m.js";import"./chunk-e0prbqds.js";import"./chunk-egbt0bms.js";import{as}from"./chunk-vcfrpxj2.js";import"./chunk-zx5vg2pn.js";import"./chunk-91pycazt.js";import{gt}from"./chunk-j6m7jwpv.js";import"./chunk-1xjv71dw.js";import"./chunk-j9zp3hne.js";import{ho}from"./chunk-yvh0d5xa.js";import"./chunk-fd29vm1h.js";import"./chunk-bj0z4gve.js";import"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-s3cqm7x0.js";import{existsSync as xe,mkdirSync as hi,readFileSync as mi}from"fs";import U from"path";import{existsSync as nt,mkdirSync as hn,realpathSync as ii,rmSync as mn}from"fs";import D from"path";import{existsSync as Yr}from"fs";import K from"path";var wn="data-stx-b",ot=new Set(bi),xn=new Set(Hs);function ke(e){if(e==="ref"||e==="data-stx-ref")return"ref";if(e.startsWith("::"))return null;if(e.startsWith("@bind:")||e.startsWith("x-bind:"))return"attr";if(e.startsWith("@")||e.startsWith(":")){let t=e.slice(1).split(".")[0];if(ot.has(t))return t==="if"?"if":t;if(t==="for"||t==="else"||t==="else-if"||t==="elseif")return"for";if(nl(t))return"event";if(e.startsWith("@"))return"event";return"attr"}if(e.startsWith("x-")){let t=e.split(".")[0];if(!xn.has(t))return"attr";let n=t.slice(2);if(n==="cloak"||n==="data"||n==="bind")return null;if(n==="tooltip"||n==="tooltip-position")return null;return ot.has(n)?n==="if"?"if":n:"attr"}return null}function Nn(e){let t=[];for(let[n,r]of e){let s=ke(n);if(s)t.push({name:n,value:r,kind:s})}return t}var kn=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,Ne=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function at(e){let t=[],n=0;return{html:e.replace(kn,(s,o,c)=>{if(!c||!/[:@]|x-/.test(c))return s;let u=[];Ne.lastIndex=0;for(let m=Ne.exec(c);m;m=Ne.exec(c))u.push([m[1],m[2]??m[3]??m[4]??""]);let d=Nn(u);if(!d.length)return s;let g={id:n++,bindings:d};if(d.some((m)=>m.kind==="for"))g.template=!0;t.push(g);let h=s.endsWith("/>");return`${s.slice(0,h?-2:-1).trimEnd()} ${wn}="${g.id}"${h?"/>":">"}`}),manifest:{entries:t}}}import fr from"path";function ce(e){let t=e&&/^(\d+(?:\.\d+)?|\.\d+)(px|rem)?$/.exec(e.trim());if(!t)return;let n=Number(t[1])*(t[2]==="rem"?16:1);return Number.isFinite(n)?n:void 0}function Te(e,t){if(!he[e])return;return ce(t?.get(rn(e))??he[e].value)}function Re(e,t){let n=Qn[e];if(!n)return;return ce(t?.get(Ke(n))??Ae[n]?.value)}function _e(e,t){let n=er[e];if(!n)return;let r=ce(t?.get(Ke(n.size))??Ae[n.size]?.value),s=ce(t?.get(Ke(n.leading))??Ae[n.leading]?.value);if(r===void 0||s===void 0)return;return{fontSize:r,lineHeight:s}}var Tn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},dt=Ie({}),ct,lt=null;function le(){let e=globalThis.__stxNativeStyleConfig;if(!e)return dt;if(e!==ct)ct=e,lt=Ie(e);return lt}function ft(e,t=new Map,n=""){for(let[r,s]of Object.entries(e??{})){let o=r==="DEFAULT"?n.replace(/-$/,""):`${n}${r}`;if(typeof s==="string")t.set(o,s);else if(s&&typeof s==="object")ft(s,t,`${o}-`)}return t}function pt(e){let t={};for(let[n,r]of Object.entries(e??{})){let s=typeof r==="number"?r:Number.parseFloat(String(r));if(Number.isFinite(s))t[n]=s}return t}function Ie(e){return{shortcuts:new Map(Object.entries(e.shortcuts??{}).filter(([,t])=>typeof t==="string")),colors:ft(e.colors),fontFamily:new Map(Object.entries(e.fontFamily??{}).map(([t,n])=>[t,Array.isArray(n)?n.join(", "):n])),breakpoints:new Map(Object.entries({...Tn,...pt(e.breakpoints)}))}}var Ee={};function ut(e){Ee=e??{},dt=Ie(Ee)}async function mt(e,t){let n=Ee;ut(e);try{return await t()}finally{ut(n)}}function yt(e){if(!e)return{};let t=e.theme??{},n=Object.fromEntries(Object.entries(e.shortcuts??{}).filter(([,r])=>typeof r==="string"));return{...Object.keys(n).length?{shortcuts:n}:{},...t.fontFamily?{fontFamily:JSON.parse(JSON.stringify(t.fontFamily))}:{},...t.colors?{colors:JSON.parse(JSON.stringify(t.colors))}:{},...t.screens?{breakpoints:pt(t.screens)}:{}}}function bt(e){return le().shortcuts.get(e)}function vt(e){return le().colors.get(e)}function Ce(e){return le().breakpoints.get(e)}function ue(e){return le().fontFamily.get(e)}var wt=/^--[\w\u0080-\uFFFF-]+$/u;function St(e,t){if(!/var\(/i.test(e))return e;let n="",r="",s=!1;for(let o=0;o<e.length;o++){let c=e[o];if(c==="\\"){n+=e.slice(o,o+2),o++;continue}if(r){if(n+=c,c===r)r="";continue}if(c==='"'||c==="'"){r=c,n+=c;continue}if(e.slice(o,o+4).toLowerCase()!=="var("||o>0&&/[\w-]/.test(e[o-1])){n+=c;continue}let u=1,d=-1,g="",h=o+4;for(;h<e.length;h++){let y=e[h];if(y==="\\"){h++;continue}if(g){if(y===g)g="";continue}if(y==='"'||y==="'"){g=y;continue}if(y==="(")u++;if(y===")"&&--u===0)break;if(y===","&&u===1&&d===-1)d=h}if(u!==0)return;let b=e.slice(o+4,d===-1?h:d).trim();if(!wt.test(b))return;let m=t(b,d===-1?void 0:e.slice(d+1,h).trim());if(m===void 0||n.length+m.length>65536)return;n+=m,s=!0,o=h}return s&&n.length>65536?void 0:n}function re(e,t){let n=new Map,r=new Set;for(let[f,l]of e){let x=f.trim();if(!wt.test(x))continue;if(typeof l==="string"||typeof l==="number"&&Number.isFinite(l))n.set(x,String(l).trim())}let s=new Map,o=new Set;for(let[f,l]of n){let x=new Set,p=(N,S=0)=>S>64?void 0:St(N,(k,w)=>(x.add(k),w===void 0?"":p(w,S+1)));if(p(l)===void 0)o.add(f);s.set(f,x)}let c=new Map,u=new Map,d=[],g=new Set,h=0;function b(f,l=0){if(l>64){o.add(f);return}c.set(f,h),u.set(f,h++),d.push(f),g.add(f);for(let N of s.get(f)??[]){if(!n.has(N))continue;if(!c.has(N)){if(b(N,l+1),u.has(N))u.set(f,Math.min(u.get(f),u.get(N)))}else if(g.has(N))u.set(f,Math.min(u.get(f),c.get(N)))}if(u.get(f)!==c.get(f))return;let x=[],p;do p=d.pop(),g.delete(p),x.push(p);while(p!==f);if(x.length>1||s.get(f)?.has(f))x.forEach((N)=>o.add(N))}for(let f of n.keys())if(!c.has(f))b(f);let m=new Map;function y(f,l){if(r.add(f),m.has(f))return m.get(f);let x=n.get(f),p=x===void 0||/^(?:inherit|unset)$/i.test(x)?t?.get(f):o.has(f)||/^(?:initial|revert|revert-layer)$/i.test(x)?void 0:v(x,l+1);return m.set(f,p),p}function v(f,l=0){if(l>64)return;return St(f,(x,p)=>y(x,l)??(p===void 0?void 0:v(p,l+1)))}return{resolve:v,used:r,computed(){let f=new Map(t);for(let l of n.keys())f.set(l,y(l,0));return f}}}function Oe(e){if(e.display==="flex"&&e.flexDirection==null)return{...e,flexDirection:"row"};return e}var xt=new Set(["display","gridColumns","gridTemplateColumns","gridTemplateRows","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","order","justifyContent","alignItems","alignSelf","alignContent","position","top","right","bottom","left","zIndex","width","height","minWidth","maxWidth","minHeight","maxHeight","aspectRatio","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderStyle","backgroundColor","backgroundImage","opacity","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","color","fontSize","fontWeight","fontStyle","fontFamily","lineHeight","letterSpacing","textAlign","textDecorationLine","textDecorationColor","textTransform","resizeMode","objectFit","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Rn=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","order","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing","strokeWidth"]),Nt=new Set(["top","right","bottom","left","width","height","minWidth","maxWidth","minHeight","maxHeight","flexBasis","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical"]),_n=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,An=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,En=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),In=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function Cn(e){if(typeof e!=="string")return e;let t=An.exec(e);return t?Number(t[1])*(/^r?em$/i.test(t[2]||"")?16:1):e}function ee(e){return typeof e==="number"&&Number.isFinite(e)}function On(e,t){if(e==="shadowOffset"&&t&&typeof t==="object"&&!Array.isArray(t)){let{width:n,height:r}=t;return ee(n)&&ee(r)?{width:n,height:r}:void 0}if(e==="transform"&&Array.isArray(t)){let n=[];for(let r of t){if(!r||typeof r!=="object"||Array.isArray(r)||Object.keys(r).length!==1)return;let[s,o]=Object.entries(r)[0];if(In.has(s)&&ee(o))n.push({[s]:o});else if(En.has(s)&&typeof o==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(o))n.push({[s]:o});else return}return n}return}function Pn(e){let t=[],n=0,r=0,s="";for(let o=0;o<=e.length;o++){let c=e[o];if(c==="\\"){o++;continue}if(s){if(c===s)s="";continue}if(c==='"'||c==="'"){s=c;continue}if(c==="(")r++;if(c===")")r=Math.max(0,r-1);if(o!==e.length&&(c!==";"||r))continue;let u=e.slice(n,o),d=u.indexOf(":");if(d!==-1)t.push([u.slice(0,d).trim(),u.slice(d+1).trim()]);n=o+1}return t}function Mn(e,t){let n;if(typeof e==="string"){if(e=e.trim(),!e)return[];try{e=JSON.parse(e)}catch{}}if(typeof e==="string")n=Pn(e);else if(e&&typeof e==="object"&&!Array.isArray(e))n=Object.entries(e);else{if(e!=null&&e!==!1)t({kind:"non-numeric-style",name:"style"});return[]}return n}function de(e,t=()=>{},n={}){let r=Mn(e,t),s=re(r,n.inheritedVariables);return n.onVariables?.(s.computed()),Bn(r,s,t)}function Bn(e,t,n){let r={},s=[];for(let[o,c]of e){if(o.trim().startsWith("--")){s.push(o.trim());continue}let u=xt.has(o)||o.trim().startsWith("--")?o:o.trim().toLowerCase().replace(/-([a-z])/g,(h,b)=>b.toUpperCase());if(!xt.has(u)){n({kind:"unknown-style",name:u});continue}if(c==null||c==="")continue;let d=typeof c==="string"?t.resolve(c.trim()):c;if(d===void 0){n({kind:"non-numeric-style",name:u});continue}if(d==="")continue;if(u==="objectFit"){let h=typeof d==="string"?d.trim().toLowerCase():"";if(h==="cover"||h==="contain")r.resizeMode=h;else if(h==="fill")r.resizeMode="stretch";else if(h==="none")r.resizeMode="center";else n({kind:"unknown-style",name:`objectFit:${String(d)}`});continue}let g;if(Rn.has(u)||Nt.has(u)){if(g=Cn(d),!ee(g)&&!(Nt.has(u)&&typeof g==="string"&&g.endsWith("%")&&_n.test(g.slice(0,-1))&&Number.isFinite(Number(g.slice(0,-1)))))g=void 0}else if(u==="display"&&d==="inline-flex")g="flex";else if(u==="shadowOffset"||u==="transform")g=On(u,d);else if(u==="gridTemplateColumns"||u==="gridTemplateRows")g=ee(d)||typeof d==="string"?d:void 0;else if(u==="fontWeight"&&ee(d))g=String(d);else if(typeof d==="string")g=d;if(g===void 0)n({kind:"non-numeric-style",name:u});else r[u]=g}for(let o of s)if(!t.used.has(o))n({kind:"unknown-style",name:o});return r}var Ln={transparent:"transparent",current:"currentColor",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}},Me={px:1,0:0,0.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},kt={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128},Tt={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function Q(e){let t=e.lastIndexOf("/");if(t>0&&(!e.endsWith("]")||/\/\[[\d.]+%?\]$/.test(e))){let r=Q(e.slice(0,t)),s=e.slice(t+1),o=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!r||!Number.isFinite(o))return;return Dn(r,o/100)}if(e==="transparent")return"transparent";if(e==="current")return"currentColor";if(e==="black")return"#000000";if(e==="white")return"#ffffff";let n=e.split("-");if(n.length===2){let[r,s]=n,o=Ln[r];if(o&&typeof o==="object")return o[s]}if(e.startsWith("[")&&e.endsWith("]")){let r=e.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(r)?r:void 0}return}function Be(e){return Q(e.trim())}function Dn(e,t){if(e==="transparent")return e;let n=e.startsWith("#")?e.slice(1):"";if(n.length===3)n=n.split("").map((s)=>s+s).join("");if(n.length===8)n=n.slice(0,6);if(n.length!==6)return;let r=Math.round(Math.min(1,Math.max(0,t))*255);return`#${n}${r.toString(16).padStart(2,"0")}`}function Pe(e,t=16){if(!e.startsWith("[")||!e.endsWith("]"))return;let n=e.slice(1,-1),r=Number.parseFloat(n);if(!Number.isFinite(r))return;if(n.endsWith("rem"))return r*16;if(n.endsWith("em"))return r*t;return r}function V(e){if(e.startsWith("[")&&e.endsWith("]")){let t=e.slice(1,-1);if(t.endsWith("%"))return;let n=t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t);return Number.isFinite(n)?n:void 0}return Me[e]??Re(e)}function pe(e){let t=/^\[(-?\d*\.?\d+)%\]$/.exec(e);if(t)return`${Number.parseFloat(t[1])}%`;return V(e)}var $n={flex:(e,t)=>(t.display="flex",!0),block:(e,t)=>(t.display="flex",!0),hidden:(e,t)=>(t.display="none",!0),grid:(e,t)=>(t.display="grid",!0),"flex-row":(e,t)=>(t.flexDirection="row",!0),"flex-col":(e,t)=>(t.flexDirection="column",!0),"flex-row-reverse":(e,t)=>(t.flexDirection="row-reverse",!0),"flex-col-reverse":(e,t)=>(t.flexDirection="column-reverse",!0),"flex-wrap":(e,t)=>(t.flexWrap="wrap",!0),"flex-nowrap":(e,t)=>(t.flexWrap="nowrap",!0),"flex-wrap-reverse":(e,t)=>(t.flexWrap="wrap-reverse",!0),"flex-1":(e,t)=>(t.flex=1,t.flexGrow=1,t.flexShrink=1,t.flexBasis=0,!0),"flex-auto":(e,t)=>(t.flexGrow=1,t.flexShrink=1,!0),"flex-initial":(e,t)=>(t.flexGrow=0,t.flexShrink=1,!0),"flex-none":(e,t)=>(t.flexGrow=0,t.flexShrink=0,!0),grow:(e,t)=>(t.flexGrow=1,!0),"grow-0":(e,t)=>(t.flexGrow=0,!0),shrink:(e,t)=>(t.flexShrink=1,!0),"shrink-0":(e,t)=>(t.flexShrink=0,!0),"order-first":(e,t)=>(t.order=-9999,!0),"order-last":(e,t)=>(t.order=9999,!0),"order-none":(e,t)=>(t.order=0,!0),"justify-start":(e,t)=>(t.justifyContent="flex-start",!0),"justify-center":(e,t)=>(t.justifyContent="center",!0),"justify-end":(e,t)=>(t.justifyContent="flex-end",!0),"justify-between":(e,t)=>(t.justifyContent="space-between",!0),"justify-around":(e,t)=>(t.justifyContent="space-around",!0),"justify-evenly":(e,t)=>(t.justifyContent="space-evenly",!0),"items-start":(e,t)=>(t.alignItems="flex-start",!0),"items-center":(e,t)=>(t.alignItems="center",!0),"items-end":(e,t)=>(t.alignItems="flex-end",!0),"items-stretch":(e,t)=>(t.alignItems="stretch",!0),"items-baseline":(e,t)=>(t.alignItems="baseline",!0),"self-auto":(e,t)=>(t.alignSelf="auto",!0),"self-start":(e,t)=>(t.alignSelf="flex-start",!0),"self-center":(e,t)=>(t.alignSelf="center",!0),"self-end":(e,t)=>(t.alignSelf="flex-end",!0),"self-stretch":(e,t)=>(t.alignSelf="stretch",!0),"self-baseline":(e,t)=>(t.alignSelf="baseline",!0),"min-w-0":(e,t)=>(t.minWidth=0,!0),"aspect-square":(e,t)=>(t.aspectRatio=1,!0),"aspect-video":(e,t)=>(t.aspectRatio=1.7777777777777777,!0),"border-solid":(e,t)=>(t.borderStyle="solid",!0),"border-dashed":(e,t)=>(t.borderStyle="dashed",!0),"border-dotted":(e,t)=>(t.borderStyle="dotted",!0),group:()=>!0,peer:()=>!0,"inset-0":(e,t)=>(t.top=0,t.right=0,t.bottom=0,t.left=0,!0),"mx-auto":(e,t)=>(t.alignSelf="center",!0),fixed:(e,t)=>(t.position="absolute",!0),sticky:()=>!0,"sr-only":(e,t)=>(t.position="absolute",t.width=1,t.height=1,t.overflow="hidden",!0),inline:()=>!0,"inline-block":()=>!0,contents:()=>!0,"align-top":()=>!0,"align-middle":()=>!0,"align-bottom":()=>!0,"align-baseline":()=>!0,"align-text-top":()=>!0,"whitespace-normal":()=>!0,"whitespace-pre":()=>!0,"whitespace-pre-line":()=>!0,"whitespace-pre-wrap":()=>!0,"whitespace-nowrap":()=>!0,"break-words":()=>!0,"break-all":()=>!0,"break-normal":()=>!0,"object-cover":()=>!0,"object-contain":()=>!0,"object-fill":()=>!0,"object-center":()=>!0,"tracking-tighter":(e,t)=>(t.letterSpacing=-0.8,!0),"tracking-tight":(e,t)=>(t.letterSpacing=-0.4,!0),"tracking-normal":(e,t)=>(t.letterSpacing=0,!0),"tracking-wide":(e,t)=>(t.letterSpacing=0.4,!0),"tracking-wider":(e,t)=>(t.letterSpacing=0.8,!0),"tracking-widest":(e,t)=>(t.letterSpacing=1.6,!0),"tabular-nums":()=>!0,"inline-flex":(e,t)=>(t.display="flex",!0),truncate:()=>!0,relative:(e,t)=>(t.position="relative",!0),absolute:(e,t)=>(t.position="absolute",!0),"overflow-visible":(e,t)=>(t.overflow="visible",!0),"overflow-hidden":(e,t)=>(t.overflow="hidden",!0),"overflow-scroll":(e,t)=>(t.overflow="scroll",!0),"overflow-x-auto":()=>!0,"overflow-x-scroll":()=>!0,"overflow-y-auto":()=>!0,"overflow-y-scroll":()=>!0,"font-sans":(e,t)=>(t.fontFamily=ue("sans")??"sans-serif",!0),"font-serif":(e,t)=>(t.fontFamily=ue("serif")??"serif",!0),"font-mono":(e,t)=>(t.fontFamily=ue("mono")??"monospace",!0),"font-thin":(e,t)=>(t.fontWeight="100",!0),"font-extralight":(e,t)=>(t.fontWeight="200",!0),"font-light":(e,t)=>(t.fontWeight="300",!0),"font-normal":(e,t)=>(t.fontWeight="400",!0),"font-medium":(e,t)=>(t.fontWeight="500",!0),"font-semibold":(e,t)=>(t.fontWeight="600",!0),"font-bold":(e,t)=>(t.fontWeight="bold",!0),"font-extrabold":(e,t)=>(t.fontWeight="800",!0),"font-black":(e,t)=>(t.fontWeight="900",!0),italic:(e,t)=>(t.fontStyle="italic",!0),"not-italic":(e,t)=>(t.fontStyle="normal",!0),"text-left":(e,t)=>(t.textAlign="left",!0),"text-center":(e,t)=>(t.textAlign="center",!0),"text-right":(e,t)=>(t.textAlign="right",!0),"text-justify":(e,t)=>(t.textAlign="justify",!0),uppercase:(e,t)=>(t.textTransform="uppercase",!0),lowercase:(e,t)=>(t.textTransform="lowercase",!0),capitalize:(e,t)=>(t.textTransform="capitalize",!0),"normal-case":(e,t)=>(t.textTransform="none",!0),underline:(e,t)=>(t.textDecorationLine="underline",!0),"line-through":(e,t)=>(t.textDecorationLine="line-through",!0),"no-underline":(e,t)=>(t.textDecorationLine="none",!0)};function Vn(e,t){if(!e.startsWith("bg-"))return!1;let n=e.slice(3),r=Q(n);if(r)return t.backgroundColor=r,!0;return!1}function Rt(e,t){if(!e.startsWith("text-"))return!1;let n=e.slice(5),r=_e(n);if(r)return Object.assign(t,r),!0;if(kt[n])return t.fontSize=kt[n],!0;if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(o)){let c=o.endsWith("rem")||o.endsWith("em")?Number.parseFloat(o)*16:Number.parseFloat(o);if(Number.isFinite(c))return t.fontSize=c,!0}}let s=Q(n);if(s)return t.color=s,!0;return!1}var jn=new Set(["t","tr","r","br","b","bl","l","tl"]);function Wn(e,t){let n=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(e);if(n&&jn.has(n[1]))return t.gradientDirection=`to-${n[1]}`,!0;let r=/^(from|via|to)-(.+)$/.exec(e);if(!r)return!1;let s=Q(r[2]);if(!s)return!1;if(r[1]==="from")t.gradientFrom=s;else if(r[1]==="via")t.gradientVia=s;else t.gradientTo=s;return!0}function Fn(e,t){for(let n of["fill","stroke"]){let r=`${n}-`;if(!e.startsWith(r))continue;let s=e.slice(r.length);if(s==="none")return t[n]="none",!0;if(n==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return t.strokeWidth=Number.parseFloat(s),!0;if(n==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return t.strokeWidth=Number.parseFloat(s.slice(1)),!0;let o=Q(s);if(o)return t[n]=o,!0}return!1}function Xn(e,t){if(e.startsWith("p-")){let n=V(e.slice(2));if(n!==void 0)return t.padding=n,!0}if(e.startsWith("px-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingHorizontal=n,!0}if(e.startsWith("py-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingVertical=n,!0}if(e.startsWith("pt-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingTop=n,!0}if(e.startsWith("pr-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingRight=n,!0}if(e.startsWith("pb-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingBottom=n,!0}if(e.startsWith("pl-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingLeft=n,!0}return!1}function At(e,t){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(e)){let n={};if(!At(e.slice(1),n))return!1;let r=Object.entries(n);if(r.some(([,s])=>typeof s!=="number"))return!1;for(let[s,o]of r)t[s]=-o;return!0}if(e.startsWith("m-")){let n=V(e.slice(2));if(n!==void 0)return t.margin=n,!0}if(e.startsWith("mx-")){let n=V(e.slice(3));if(n!==void 0)return t.marginHorizontal=n,!0}if(e.startsWith("my-")){let n=V(e.slice(3));if(n!==void 0)return t.marginVertical=n,!0}if(e.startsWith("mt-")){let n=V(e.slice(3));if(n!==void 0)return t.marginTop=n,!0}if(e.startsWith("mr-")){let n=V(e.slice(3));if(n!==void 0)return t.marginRight=n,!0}if(e.startsWith("mb-")){let n=V(e.slice(3));if(n!==void 0)return t.marginBottom=n,!0}if(e.startsWith("ml-")){let n=V(e.slice(3));if(n!==void 0)return t.marginLeft=n,!0}return!1}function zn(e,t){if(!e.startsWith("w-"))return!1;let n=e.slice(2);if(n==="full")return t.width="100%",!0;if(n==="screen")return t.width="100%",!0;if(n==="auto")return t.width="auto",!0;if(n.includes("/")){let[s,o]=n.split("/"),c=Number.parseInt(s)/Number.parseInt(o)*100;return t.width=`${c}%`,!0}let r=pe(n);if(r!==void 0)return t.width=r,!0;return!1}function Un(e,t){if(!e.startsWith("h-"))return!1;let n=e.slice(2);if(n==="full")return t.height="100%",!0;if(n==="screen")return t.height="100%",!0;if(n==="auto")return t.height="auto",!0;let r=pe(n);if(r!==void 0)return t.height=r,!0;return!1}function Hn(e,t){if(e==="rounded")return t.borderRadius=Tt.DEFAULT,!0;if(!e.startsWith("rounded-"))return!1;let n=e.slice(8);if(n==="")return!1;let r=/^(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(n),s=Tt[r[2]]??Te(r[2])??Pe(r[2]);if(s===void 0)return!1;let o={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],tl:["borderTopLeftRadius"],tr:["borderTopRightRadius"],bl:["borderBottomLeftRadius"],br:["borderBottomRightRadius"]};for(let c of r[1]?o[r[1]]:["borderRadius"])t[c]=s;return!0}function qn(e,t){let n=/^border(?:-([trblxy]))?(?:-(\d+|\[[^\]]+\]))?$/.exec(e);if(!n)return!1;let[,r="",s]=n,o=s===void 0?1:Number(s);if(s?.startsWith("[")){let u=/^\[(\d+(?:\.\d+)?|\.\d+)(px|rem)?\]$/.exec(s);if(!u)return!1;o=Number(u[1])*(u[2]==="rem"?16:1)}if(!Number.isFinite(o)||o<0)return!1;let c={"":["borderWidth"],t:["borderTopWidth"],r:["borderRightWidth"],b:["borderBottomWidth"],l:["borderLeftWidth"],x:["borderLeftWidth","borderRightWidth"],y:["borderTopWidth","borderBottomWidth"]};for(let u of c[r])t[u]=o;return!0}function Gn(e,t){if(!e.startsWith("border-"))return!1;let n=e.slice(7),r=Q(n);if(r)return t.borderColor=r,!0;return!1}function Kn(e,t){if(!e.startsWith("opacity-"))return!1;let n=Number.parseInt(e.slice(8));if(!Number.isNaN(n))return t.opacity=n/100,!0;return!1}function Jn(e,t,n){if(e.startsWith("tracking-[")){let r=Pe(e.slice(9),n);if(r===void 0)return!1;return t.letterSpacing=r,!0}if(e.startsWith("leading-")){let r=e.slice(8),s=n,o={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},c=r.startsWith("[")?/^\[[\d.]+\]$/.test(r)?Number.parseFloat(r.slice(1,-1))*s:Pe(r,s):o[r]!==void 0?o[r]*s:Me[r];if(c===void 0||!Number.isFinite(c))return!1;return t.lineHeight=c,!0}return!1}function Yn(e,t){let n=/^(-?)(inset-x|inset-y|inset|top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3],s=/^\[(-?[\d.]+)px\]$/.exec(r),o=s?Number(s[1]):Me[r];if(o===void 0||!Number.isFinite(o))return!1;let c=n[1]?-o:o,u=n[2]==="inset"?["top","right","bottom","left"]:n[2]==="inset-x"?["left","right"]:n[2]==="inset-y"?["top","bottom"]:[n[2]];for(let d of u)t[d]=c;return!0}function Zn(e,t){let n=/^grid-cols-\[(.+)\]$/.exec(e);if(n)return t.gridColumns=n[1].split("_").filter(Boolean).length,!0;let r=/^grid-cols-(\d+)$/.exec(e);if(!r)return!1;return t.gridColumns=Number(r[1]),!0}function tr(e,t){if(!e.startsWith("size-"))return!1;let n=e.slice(5),r=n==="full"?"100%":pe(n);if(r===void 0)return!1;return t.width=r,t.height=r,!0}var nr={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function rr(e,t){let n=/^(min|max)-(w|h)-(.+)$/.exec(e);if(!n)return!1;let[,r,s,o]=n,c=o==="full"||o==="screen"?"100%":o==="none"?void 0:s==="w"&&r==="max"&&nr[o]||pe(o);if(c===void 0&&o!=="none")return!1;let u=`${r}${s==="w"?"Width":"Height"}`;if(c===void 0)delete t[u];else t[u]=c;return!0}function ir(e,t){let n=/^(-?)(top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3]==="full"?"100%":V(n[3]);if(r===void 0)return!1;return t[n[2]]=typeof r==="number"&&n[1]?-r:r,!0}function sr(e,t){let n=/^(-?)translate-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=n[3],s;if(r.startsWith("[")){let u=/^\[([+-]?(?:\d+\.?\d*|\.\d+))(px|rem|em)?\]$/.exec(r);if(!u)return!1;s=Number(u[1])*(u[2]?.endsWith("em")?16:1)}else s=V(r);if(s===void 0||!Number.isFinite(s))return!1;if(n[1])s=-s;let o=n[2]==="x"?"translateX":"translateY",c=o==="translateX"?{translateX:s}:{translateY:s};return t.transform=[...(t.transform??[]).filter((u)=>!(o in u)),c],!0}function or(e,t){let n=/^space-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=V(n[2]);if(r===void 0)return!1;return t.gap=r,!0}function ar(e,t){if(e.startsWith("gap-")){let n=V(e.slice(4));if(n!==void 0)return t.gap=n,!0}if(e.startsWith("gap-x-")){let n=V(e.slice(6));if(n!==void 0)return t.columnGap=n,!0}if(e.startsWith("gap-y-")){let n=V(e.slice(6));if(n!==void 0)return t.rowGap=n,!0}return!1}function cr(e,t){let r={"shadow-none":[0,0,0,0],"shadow-xs":[1,1,0.05,1],"shadow-sm":[2,1,0.1,2],shadow:[3,2,0.12,3],"shadow-md":[6,4,0.15,4],"shadow-lg":[10,6,0.18,8],"shadow-xl":[16,10,0.2,12],"shadow-2xl":[24,16,0.25,18]}[e];if(!r)return!1;let[s,o,c,u]=r;return Object.assign(t,{shadowColor:"#000000",shadowOpacity:c,shadowRadius:s,shadowOffset:{width:0,height:o},elevation:u}),!0}function lr(e){let t=/^divide-(?:(y|x)(?:-(.+))?|(.+))$/.exec(e);if(!t)return null;if(t[2]==="reverse")return"";if(t[1])return`border-${t[1]==="y"?"t":"l"}${t[2]?`-${t[2]}`:""}`;return`border-${t[3]}`}var Et=new Set(["aria-selected","aria-pressed","aria-checked","aria-expanded"]),ur=new Set(["hover","group-hover","peer-hover","active","group-active","visited","placeholder","selection","print","motion-safe"]),dr=/^(?:transition(?:-[a-z]+)?|animate-\S+|scroll-[mp][trblxyse]?-\S+|snap-\S+|overscroll-\S+|duration-\S+|ease-\S+|delay-\S+|will-change-\S+|cursor-\S+|select-(?:none|text|all|auto)|outline-none|outline-0|appearance-none|scroll-smooth|scroll-auto|antialiased|subpixel-antialiased|touch-\S+|resize(?:-\S+)?|backdrop-blur(?:-\S+)?|isolate|contain-\S+)$/;function It(e){let t=[],n=0,r=0;for(let s=0;s<e.length;s++){let o=e[s];if(o==="[")n++;else if(o==="]")n=Math.max(0,n-1);else if(o===":"&&n===0)t.push(e.slice(r,s)),r=s+1}return t.push(e.slice(r)),t}function Ct(e,t=new Set){let n=It(e),r=n[n.length-1],s=t.has(r)?void 0:bt(r);if(s===void 0)return[e];let o=n.slice(0,-1).map((u)=>`${u}:`).join(""),c=new Set(t).add(r);return s.split(/\s+/).filter(Boolean).flatMap((u)=>Ct(`${o}${u}`,c))}function ge(e,t,n={}){let r=new Map,s=(v,f)=>{if(!r.has(v))r.set(v,{...f,classes:[],authored:new Map});return r.get(v)};s("base",{});let o=[],c=[],u=e.split(/\s+/).filter(Boolean);if(n.rules){let v=new Set(u);for(let f of Object.keys(n.rules))if(f.includes(".")&&f.split(".").every((l)=>v.has(l)))c.push(f);c.sort((f,l)=>f.split(".").length-l.split(".").length)}for(let v of u){if(n.rules&&Object.hasOwn(n.rules,v)){o.push(v);continue}for(let f of Ct(v)){let l=It(f),x=l.pop(),p=l.some((T)=>T.startsWith("focus"));if(l.some((T)=>/^(?:group-|peer-)?focus(?:-visible|-within)?$/.test(T))&&/^(?:ring|outline)(?:-|$)/.test(x))continue;if(dr.test(x)||!p&&l.some((T)=>ur.has(T)))continue;let N,S,k=!1,w,_=[];for(let T of l){let R=Ce(T),C=T.startsWith("max-")?Ce(T.slice(4)):void 0;if(R!==void 0&&N===void 0)N=R;else if(C!==void 0&&S===void 0)S=C-0.02;else if(T==="disabled"&&!k)k=!0;else if(Et.has(T)&&w===void 0)w=T;else _.push(T)}let I=[..._,x].join(":"),P=N!==void 0||S!==void 0,E=k?s("disabled",{disabled:!0}):w?s(`state:${w}`,{state:w}):P?s(`range:${N??0}:${S??""}`,{min:N??0,max:S}):r.get("base");if((k||w)&&(P||k&&w)){r.get("base").authored.set(f,v),r.get("base").classes.push(f);continue}if(E.classes.push(I),!E.authored.has(I))E.authored.set(I,v===f?f:`${v} (${f})`)}}let d=[...o,...c],g=(v,f)=>f.map((l)=>v.authored.get(l)??l),h=r.get("base"),b=fe(h.classes.join(" "),t,n),m=new Map;if(d.length){let v=(x)=>x?de(x,()=>{},{inheritedVariables:t}):{},f={},l={};for(let x of d){let p=n.rules[x];f={...f,...v(p.light)},l={...l,...v(p.dark)};for(let N of p.responsive??[]){let S=`${N.min}:${N.max??""}`,k=m.get(S)??{min:N.min,...N.max===void 0?{}:{max:N.max},style:{}};if(k.style={...k.style,...v(N.light)},N.dark)k.dark={...k.dark,...v(N.dark)};m.set(S,k)}}if(b.style={...f,...b.style},Object.keys(l).length)b.dark={...l,...b.dark}}b.unknown=g(h,b.unknown);let y=[];for(let v of r.values()){if(v===h)continue;let f=fe(v.classes.join(" "),t,{appearance:n.appearance});b.unknown=[...new Set([...b.unknown,...g(v,f.unknown)])];let l={style:f.style,...f.dark?{dark:f.dark}:{}};if(v.disabled)b.disabled=l;else if(v.state)(b.states??={})[v.state]=l;else y.push({min:v.min??0,...v.max===void 0?{}:{max:v.max},...l})}for(let v of m.values()){let f=y.find((l)=>l.min===v.min&&l.max===v.max);if(f){if(f.style={...v.style,...f.style},v.dark||f.dark)f.dark={...v.dark,...f.dark}}else y.push(v)}if(y.length)b.responsive=y.sort((v,f)=>v.min-f.min||(v.max??1/0)-(f.max??1/0));return b}function fe(e,t,n={}){let r=[],s=[],o=[],c=[],u={focus:{classes:[],originals:new Map},focusWithin:{classes:[],originals:new Map}},d=new Map;function g(p,N){let S=/^(bg|text|border(?:-[trblxy])?|from|via|to|fill|stroke|divide|decoration|caret|accent)-(.+?)(\/[^\s]+)?$/.exec(p),k=S&&vt(S[2]);if(S&&k){let E=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+?)\s*)?\)$/.exec(k),T=E?t?.get(E[1])??E[2]:k;if(T&&/^(?:#[0-9a-f]{3,8}|rgba?\(.+\)|hsla?\(.+\))$/i.test(T))return[`${S[1]}-[${T.replace(/\s+/g,"")}]${S[3]||""}`]}let w=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(p),_=w&&ht[w[2]];if(_){let E=t?.get(qe(w[2]));return[`${w[1]}-${E===void 0?_[N]:`[${E}]`}${w[3]||""}`]}let I=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(p);if(I&&he[I[2]]){let E=Te(I[2],t);return E===void 0?void 0:[`rounded-${I[1]?`${I[1]}-`:""}[${E}px]`]}let P=p.startsWith("text-")?p.slice(5):"";if(er[P]){let E=_e(P,t);return E&&[`text-[${E.fontSize}px]`,`leading-[${E.lineHeight}px]`]}for(let E of Object.keys(Qn)){if(!p.endsWith(`-${E}`))continue;let T=Re(E,t);return T===void 0?void 0:[`${p.slice(0,-E.length)}[${T}px]`]}return[p]}function h(p,N){if(!d.has(p))d.set(p,new Set);return d.get(p).add(N),p}let b=[],m=new Map;for(let p of e.split(/\s+/).filter(Boolean)){let N=p.startsWith("dark:")?p.slice(5):p,S=lr(N);if(S!==null){let _=S&&`${p===N?"":"dark:"}${S}`;if(_)b.push(_),m.set(_,p);continue}let k=/^(dark:)?(focus|focus-within):(dark:)?(.+)$/.exec(p),w=k?.[2]==="focus"?"focus":"focusWithin";if(k&&n[w]&&!(k[1]&&k[3])){let _=`${k[1]||k[3]?"dark:":""}${k[4]}`,I=u[w];I.classes.push(_),I.originals.set(_,[...I.originals.get(_)??[],p]);continue}if(p.startsWith("dark:")){let _=g(p.slice(5),"dark");if(!_)c.push(p);else s.push(..._.map((I)=>h(I,p)))}else if(!p.includes(":")||p.startsWith("[")){let _=g(p,n.appearance??"light"),I=g(p,"dark");if(!_||!I){c.push(p);continue}if(r.push(..._.map((P)=>h(P,p))),I.join(" ")!==_.join(" "))o.push(...I.map((P)=>h(P,p)))}else c.push(p)}let y=[],v=_t(r,y),f={style:v,unknown:y},l=[...n.appearance===void 0?o:[],...s];if(l.length)f.dark=_t(l,y);if(v.transform&&f.dark?.transform){let p=new Set(f.dark.transform.flatMap((N)=>Object.keys(N)));f.dark.transform=[...v.transform.filter((N)=>!Object.keys(N).some((S)=>p.has(S))),...f.dark.transform]}for(let p of r){if(p==="truncate"||p==="whitespace-nowrap")f.numberOfLines=1;let N=/^object-(cover|contain|fill)$/.exec(p);if(N)f.resizeMode=N[1]==="fill"?"stretch":N[1];let S=/^line-clamp-(\d+)$/.exec(p);if(S)f.numberOfLines=Number(S[1]);if(!f.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(p))f.icon=p}let x=y.flatMap((p)=>[...d.get(p)??[p]]);if(f.unknown=[...new Set([...x.filter((p)=>!/^line-clamp-\d+$/.test(p)),...c])],b.length){let p=fe(b.join(" "),t,{appearance:n.appearance});f.divide={style:p.style,...p.dark?{dark:p.dark}:{}},f.unknown=[...new Set([...f.unknown,...p.unknown.map((N)=>m.get(N)??N)])]}for(let p of["focus","focusWithin"]){let N=u[p];if(!N.classes.length)continue;let S=fe(N.classes.join(" "),t,{appearance:n.appearance});f[p]={style:S.style,dark:S.dark},f.unknown=[...new Set([...f.unknown,...S.unknown.flatMap((k)=>N.originals.get(k)??[k])])];for(let k of N.classes)if(/^(?:dark:)?(?:truncate|line-clamp-\d+|i-[a-z0-9]+-.+)$/.test(k))f.unknown.push(...N.originals.get(k))}return f}function _t(e,t){let n={},r=Array.isArray(e)?e:e.split(/\s+/).filter(Boolean),s={};for(let c of r)if(c.startsWith("text-"))Rt(c,s);let o=typeof s.fontSize==="number"?s.fontSize:16;for(let c of r){if(/^i-[a-z0-9]+-/.test(c))continue;let u=$n[c];if(u){u("",n);continue}if(cr(c,n))continue;if(Wn(c,n))continue;if(Vn(c,n))continue;if(Fn(c,n))continue;if(Rt(c,n))continue;if(Xn(c,n))continue;if(At(c,n))continue;if(zn(c,n))continue;if(Un(c,n))continue;if(Hn(c,n))continue;if(qn(c,n))continue;if(Gn(c,n))continue;if(Kn(c,n))continue;if(ar(c,n))continue;if(Jn(c,n,o))continue;if(tr(c,n))continue;if(rr(c,n))continue;if(Zn(c,n))continue;let d=/^aspect-\[(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\]$/.exec(c);if(d&&Number(d[2])>0){n.aspectRatio=Number(d[1])/Number(d[2]);continue}let g=/^z-\[(-?\d+)\]$/.exec(c)??/^z-(\d+)$/.exec(c);if(g){n.zIndex=Number(g[1]);continue}if(c==="z-auto")continue;if(Yn(c,n))continue;let h=/^order-\[(-?\d+)\]$/.exec(c)??/^order-(-?\d+)$/.exec(c);if(h){n.order=Number(h[1]);continue}if(ir(c,n))continue;if(sr(c,n))continue;if(or(c,n))continue;if(t?.push(c),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${c}`)}return n}var Ot=new Map;function Pt(e,t){if(!e)return;let n=e.trim(),r=n.lastIndexOf("-"),s=r===-1?t[n]:t[n.slice(0,r)],o=r===-1?s:s?.[n.slice(r+1)];if(typeof o==="string"&&/^#[\da-f]{3,8}$/i.test(o))return o;return Be(n)??Be(`[${n}]`)}function pr(e){let t=e.roles??{},n=e.shapes??{},r=e.density??{},s={...e.theme?.colors,...e.theme?.extend?.colors},o=[],c=[];for(let[u,d]of Object.entries(t)){if(!ht[u])continue;let g=Pt(typeof d==="string"?d:d?.light,s),h=Pt(typeof d==="string"?d:d?.dark,s);if(g)o.push(`${qe(u)}: ${g};`);if(h)c.push(`${qe(u)}: ${h};`)}for(let[u,d]of Object.entries(n))if(he[u])o.push(`${rn(u)}: ${d};`);for(let[u,d]of Object.entries(r))if(Ae[u])o.push(`${Ke(u)}: ${d};`);return[o.length?`:root { ${o.join(" ")} }`:"",c.length?`.dark { ${c.join(" ")} }`:""].filter(Boolean).join(`
3
+ `)}async function gr(e){let{resolveUserCssConfig:t}=await import("./chunk-vvk948z8.js"),n=await t(e);return n?pr(n):""}function Mt(e){let t=fr.resolve(e),n=Ot.get(t);if(!n)n=gr(t).catch(()=>""),Ot.set(t,n);return n}var Lt={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy"},Bt={alert:"alert",button:"button",checkbox:"checkbox",combobox:"combobox",header:"header",heading:"header",image:"image",img:"image",link:"link",menu:"menu",menubar:"menubar",menuitem:"menuitem",none:"none",presentation:"none",progressbar:"progressbar",radio:"radio",scrollbar:"scrollbar",search:"search",searchbox:"search",slider:"adjustable",spinbutton:"spinbutton",switch:"switch",tab:"tab",tablist:"tablist",timer:"timer",toolbar:"toolbar"};function hr(e){return e==="role"||e==="aria-label"||e==="aria-valuetext"||e in Lt}function mr(e,t){if(t===void 0||t===null)return;let n=String(t).trim().toLowerCase();if(n==="mixed")return e==="aria-checked"?"mixed":!0;if(n==="undefined")return;return n===""||n==="true"}function yr(e){if(e===void 0||e===null)return null;for(let t of String(e).trim().toLowerCase().split(/\s+/))if(Bt[t])return Bt[t];return null}function br(e,t,n){if(e==="aria-label")return{accessibilityLabel:t===void 0||t===null||t===""?null:String(t)};if(e==="aria-valuetext")return{accessibilityValue:t===void 0||t===null||t===""?null:String(t)};if(e==="role")return{accessibilityRole:yr(t)};let r=Lt[e];if(!r)return;let s=n.accessibilityState,o=s&&typeof s==="object"?{...s}:{},c=mr(e,t);if(c===void 0)delete o[r];else o[r]=c;return{accessibilityState:Object.keys(o).length?o:null}}function vr(e){let t=e.accessibilityState&&typeof e.accessibilityState==="object"?e.accessibilityState:void 0,n={};for(let[s,o]of Object.entries(e)){if(!hr(s))continue;let c=br(s,o,n);if(c)Object.assign(n,c)}for(let s of["accessibilityLabel","accessibilityRole","accessibilityValue"])if(e[s]===void 0&&n[s]!==void 0&&n[s]!==null)e[s]=n[s];let r=n.accessibilityState;if(r)e.accessibilityState={...r,...t}}var Le=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function De(e,t){let n={...e};if(vr(n),t==="Image"&&n.accessibilityLabel===void 0&&e.alt!=null&&e.alt!=="")n.accessibilityLabel=String(e.alt);return Object.fromEntries(Le.filter((r)=>(r in n)).map((r)=>[r,n[r]]))}var $t=["keyboardType","secureTextEntry","returnKeyType","autoCapitalize","autoCorrect","editable","autoComplete"],Sr=new Set(["type","inputmode","inputMode","enterkeyhint","enterKeyHint","autoCapitalize","autoCorrect","spellcheck","readonly","readOnly","disabled",...$t]),wr={numeric:"number-pad",decimal:"decimal-pad",tel:"phone-pad",email:"email-address",url:"url",search:"web-search",text:"default"},xr={email:{keyboardType:"email-address",verbatim:!0,autoComplete:"email"},tel:{keyboardType:"phone-pad",autoComplete:"tel"},url:{keyboardType:"url",verbatim:!0,autoComplete:"url"},number:{keyboardType:"decimal-pad"},search:{keyboardType:"web-search",returnKeyType:"search"},password:{secure:!0,verbatim:!0}},Nr={enter:"default",done:"done",go:"go",next:"next",previous:"default",search:"search",send:"send"};function te(e){return e===void 0||e===null?"":String(e).trim().toLowerCase()}function Dt(e){if(e===void 0||e===null||e===!1)return!1;return te(e)!=="false"}function $e(e,...t){for(let n of t)if(e[n]!==void 0&&e[n]!==null)return e[n];return}function Vt(e,t){if(e!=="TextInput")return{};let n={},r=te(t.type),s=xr[r]??{},o=te($e(t,"inputmode","inputMode")),c=wr[o]??s.keyboardType;if(c&&c!=="default")n.keyboardType=c;if(s.secure)n.secureTextEntry=!0;let u=te($e(t,"enterkeyhint","enterKeyHint")),d=Nr[u]??s.returnKeyType;if(d&&d!=="default")n.returnKeyType=d;let g=te(t.autoCapitalize);if(g==="off"||g==="none")n.autoCapitalize="none";else if(g==="on")n.autoCapitalize="sentences";else if(!g&&s.verbatim)n.autoCapitalize="none";let h=t.autoCorrect;if(h==="off"||h==="false"||te(t.spellcheck)==="false"||h===void 0&&s.verbatim)n.autoCorrect=!1;else if(h==="on"||h==="true")n.autoCorrect=!0;if(Dt($e(t,"readonly","readOnly"))||Dt(t.disabled))n.editable=!1;if(s.autoComplete)n.autoComplete=s.autoComplete;return Object.fromEntries(Object.entries(n).filter(([b])=>t[b]===void 0||kr(b,t[b])))}function kr(e,t){if(e==="autoCapitalize")return t==="off"||t==="on";if(e==="autoCorrect")return typeof t==="string";return!1}function jt(e){let t=Vt(e.type,e.props);if(!Object.keys(t).length)return;e._textEntrySource=Object.fromEntries($t.filter((n)=>(n in e.props)).map((n)=>[n,e.props[n]])),Object.assign(e.props,t)}var Ve={"region-change-complete":"onRegionChangeComplete",regionchangecomplete:"onRegionChangeComplete",click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",onchange:"onChange",change:"onValueChange","value-change":"onValueChange",valuechange:"onValueChange",focus:"onFocus",focusin:"onFocus",blur:"onBlur",focusout:"onBlur",submit:"onSubmitEditing","submit-editing":"onSubmitEditing",submitediting:"onSubmitEditing","end-editing":"onEndEditing",endediting:"onEndEditing",scroll:"onScroll","scroll-begin-drag":"onScrollBeginDrag",scrollbegindrag:"onScrollBeginDrag","scroll-end-drag":"onScrollEndDrag",scrollenddrag:"onScrollEndDrag","momentum-scroll-begin":"onMomentumScrollBegin",momentumscrollbegin:"onMomentumScrollBegin","momentum-scroll-end":"onMomentumScrollEnd",momentumscrollend:"onMomentumScrollEnd","page-selected":"onPageSelected",pageselected:"onPageSelected",refresh:"onRefresh",layout:"onLayout","end-reached":"onEndReached",endreached:"onEndReached",close:"onRequestClose","request-close":"onRequestClose",requestclose:"onRequestClose",show:"onShow",dismiss:"onDismiss","sliding-complete":"onSlidingComplete",slidingcomplete:"onSlidingComplete","load-start":"onLoadStart",loadstart:"onLoadStart",load:"onLoad","load-end":"onLoadEnd",loadend:"onLoadEnd",error:"onError",play:"onPlay",playing:"onPlay",pause:"onPause",ended:"onEnd",end:"onEnd",timeupdate:"onProgress",progress:"onProgress",loadedmetadata:"onLoad",enterpictureinpicture:"onPictureInPictureStart",leavepictureinpicture:"onPictureInPictureStop"};var We={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText",animate:"Animate"},Fe=new Set(Object.values(We));var Xt=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),zt=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight","attributeName","keyTimes","repeatCount"];function X(e){let t=typeof e==="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function J(e){return Math.round(e*1000)/1000}function Xe(e){if(Array.isArray(e)&&e.length===4&&e.every((n)=>Number.isFinite(Number(n))))return e.map(Number);let t=String(e??"").trim().split(/[\s,]+/).map(Number);if(t.length!==4||t.some((n)=>!Number.isFinite(n))||t[2]<=0||t[3]<=0)return null;return t}function Tr(e){let t=String(e??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return t.length%2?t.slice(0,-1):t}var Wt=/[MLHVCSQTAZ]/i,je=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function Rr(e){let t=[],n=e,r=Wt.exec(n);while(r){let s=r.index;n=n.slice(s);let o=n[0];n=n.slice(1);let c=Wt.exec(n),u=c?n.slice(0,c.index):n,d;if(o==="A"||o==="a"){d=[];let g=0,h=u.trim(),b=0;while(b<h.length){let m=g%7,y=h.slice(b).replace(/^[\s,]+/,"");if(b=h.length-y.length,!y)break;if(m===3||m===4)d.push(y[0]==="1"?1:0),b+=1;else{je.lastIndex=0;let v=je.exec(y);if(!v||v.index!==0)break;d.push(Number.parseFloat(v[0])),b+=v[0].length}g++}}else d=(u.match(je)||[]).map(Number.parseFloat);t.push({command:o,args:d}),r=c}return t}function _r(e,t,n,r,s,o,c,u,d){if(e===u&&t===d)return[];let g=Math.abs(n),h=Math.abs(r);if(!g||!h)return[1,u,d];let b=s*Math.PI/180,m=Math.cos(b),y=Math.sin(b),v=(e-u)/2,f=(t-d)/2,l=m*v+y*f,x=-y*v+m*f,p=l*l/(g*g)+x*x/(h*h);if(p>1)g*=Math.sqrt(p),h*=Math.sqrt(p);let N=g*g*h*h-g*g*x*x-h*h*l*l,S=g*g*x*x+h*h*l*l,k=Math.sqrt(Math.max(0,N/S));if(o===c)k=-k;let w=k*(g*x)/h,_=k*-(h*l)/g,I=m*w-y*_+(e+u)/2,P=y*w+m*_+(t+d)/2,E=(B,W,F,q)=>{let Y=B*q-W*F<0?-1:1,G=(B*F+W*q)/(Math.hypot(B,W)*Math.hypot(F,q));return Y*Math.acos(Math.min(1,Math.max(-1,G)))},T=E(1,0,(l-w)/g,(x-_)/h),R=E((l-w)/g,(x-_)/h,(-l-w)/g,(-x-_)/h);if(!c&&R>0)R-=2*Math.PI;if(c&&R<0)R+=2*Math.PI;let C=Math.max(1,Math.ceil(Math.abs(R)/(Math.PI/2))),j=R/C,A=1.3333333333333333*Math.tan(j/4),L=[],z=(B)=>{let W=g*Math.cos(B),F=h*Math.sin(B);return[m*W-y*F+I,y*W+m*F+P]},O=(B)=>{let W=-g*Math.sin(B),F=h*Math.cos(B);return[m*W-y*F,y*W+m*F]},M=T;for(let B=0;B<C;B++){let W=M+j,[F,q]=z(M),[Y,G]=O(M),[it,st]=z(W),[vn,Sn]=O(W);L.push(2,F+A*Y,q+A*G,it-A*vn,st-A*Sn,B===C-1?u:it,B===C-1?d:st),M=W}return L}function Ut(e){let t=[],n=0,r=0,s=0,o=0,c=0,u=0,d=0,g=0,h="";for(let{command:b,args:m}of Rr(String(e??""))){let y=b===b.toLowerCase(),v=b.toUpperCase(),f=()=>y?n:0,l=()=>y?r:0,x=0,p=(S)=>{if(x+S>m.length)return null;let k=m.slice(x,x+S);return x+=S,k};if(v==="Z"){t.push(4),n=s,r=o,h="Z";continue}let N=!0;while(x<m.length||N&&v==="Z"){switch(v){case"M":{let S=p(2);if(!S)return t;if(n=S[0]+f(),r=S[1]+l(),N)t.push(0,n,r),s=n,o=r;else t.push(1,n,r);h=N?"M":"L";break}case"L":{let S=p(2);if(!S)return t;n=S[0]+f(),r=S[1]+l(),t.push(1,n,r),h="L";break}case"H":{let S=p(1);if(!S)return t;n=S[0]+f(),t.push(1,n,r),h="L";break}case"V":{let S=p(1);if(!S)return t;r=S[0]+l(),t.push(1,n,r),h="L";break}case"C":{let S=p(6);if(!S)return t;let k=S[0]+f(),w=S[1]+l();c=S[2]+f(),u=S[3]+l(),n=S[4]+f(),r=S[5]+l(),t.push(2,k,w,c,u,n,r),h="C";break}case"S":{let S=p(4);if(!S)return t;let k=h==="C"?2*n-c:n,w=h==="C"?2*r-u:r;c=S[0]+f(),u=S[1]+l(),n=S[2]+f(),r=S[3]+l(),t.push(2,k,w,c,u,n,r),h="C";break}case"Q":{let S=p(4);if(!S)return t;d=S[0]+f(),g=S[1]+l(),n=S[2]+f(),r=S[3]+l(),t.push(3,d,g,n,r),h="Q";break}case"T":{let S=p(2);if(!S)return t;d=h==="Q"?2*n-d:n,g=h==="Q"?2*r-g:r,n=S[0]+f(),r=S[1]+l(),t.push(3,d,g,n,r),h="Q";break}case"A":{let S=p(7);if(!S)return t;let k=S[5]+f(),w=S[6]+l();t.push(..._r(n,r,S[0],S[1],S[2],S[3],S[4],k,w)),n=k,r=w,h="A";break}default:return t}N=!1}}return t.map((b)=>J(b))}function Ft(e,t,n,r){if(n<=0||r<=0)return[];let s=0.5522847498;return[0,e+n,t,2,e+n,t+s*r,e+s*n,t+r,e,t+r,2,e-s*n,t+r,e-n,t+s*r,e-n,t,2,e-n,t-s*r,e-s*n,t-r,e,t-r,2,e+s*n,t-r,e+n,t-s*r,e+n,t,4].map(J)}function ze(e,t){switch(e){case"Path":return Ut(String(t.d??""));case"Line":return[0,X(t.x1),X(t.y1),1,X(t.x2),X(t.y2)].map(J);case"Rect":{let n=X(t.x),r=X(t.y),s=X(t.width),o=X(t.height);if(s<=0||o<=0)return[];let c=t.rx===void 0?X(t.ry):X(t.rx),u=t.ry===void 0?c:X(t.ry);if(c=Math.min(Math.max(0,c),s/2),u=Math.min(Math.max(0,u),o/2),!c||!u)return[0,n,r,1,n+s,r,1,n+s,r+o,1,n,r+o,4].map(J);let d=0.5522847498;return[0,n+c,r,1,n+s-c,r,2,n+s-c+d*c,r,n+s,r+u-d*u,n+s,r+u,1,n+s,r+o-u,2,n+s,r+o-u+d*u,n+s-c+d*c,r+o,n+s-c,r+o,1,n+c,r+o,2,n+c-d*c,r+o,n,r+o-u+d*u,n,r+o-u,1,n,r+u,2,n,r+u-d*u,n+c-d*c,r,n+c,r,4].map(J)}case"Circle":return Ft(X(t.cx),X(t.cy),X(t.r),X(t.r));case"Ellipse":return Ft(X(t.cx),X(t.cy),X(t.rx),X(t.ry));case"Polyline":case"Polygon":{let n=Tr(t.points);if(n.length<4)return[];let r=[0,n[0],n[1]];for(let s=2;s<n.length;s+=2)r.push(1,n[s],n[s+1]);if(e==="Polygon")r.push(4);return r.map(J)}default:return null}}function Ar(e){let t=/^\s*(\d+(?:\.\d+)?|\.\d+)\s*(ms|s)?\s*$/.exec(String(e??""));if(!t)return null;let n=Number(t[1])/(t[2]==="ms"?1000:1);return n>0?n:null}function Er(e){if(e.attributeName!=="d")return null;let t=Ar(e.dur),n=String(e.values??"").split(";").map((u)=>u.trim()).filter(Boolean);if(t===null||n.length<2)return null;let r=n.map(Ut);if(r.some((u)=>!u.length))return null;let s=String(e.keyTimes??"").split(";").map((u)=>u.trim()).filter(Boolean).map(Number),c=s.length===r.length&&s[0]===0&&s[s.length-1]===1&&s.every((u,d)=>Number.isFinite(u)&&(d===0||u>=s[d-1]))?s.map(J):r.map((u,d)=>J(d/(r.length-1)));return{frames:r,frameTimes:c,duration:t}}function Ue(e){let t=Er(e),n={frames:t?.frames??null,frameTimes:t?.frameTimes??null,duration:t?.duration??null};for(let[r,s]of Object.entries(n))if(s===null)delete e[r];else e[r]=s;return n}var Ir=[...zt,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","barStyle","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoComplete","autoCorrect","autoFocus","contentContainerStyle","currentTime","defaultSource","defaultValue","ellipsizeMode","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","ios_backgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","listRole","maxLength","mostRecentEventCount","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pageIndex","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","sheetDetents","selectedDetent","grabberVisible","tintColor","clearButtonMode","nonModal","dismissOnOutsideTap","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","stickyHeaderIndices","testID","textContentType","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize","initialRegion","tileOverlay","edgePadding","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","mapType","fillColor","strokeColor","pinColor","showsCompass","showsScale","cameraPitch","cameraHeading","autoScrollBottom","scrollKey","pictureInPicture","transitionID"],Ht=new Set(["alwaysBounceHorizontal","alwaysBounceVertical","animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","editable","hidesWhenStopped","horizontal","loop","multiline","muted","pagingEnabled","paused","refreshing","scrollEnabled","secureTextEntry","selectTextOnFocus","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","transparent","visible","nonModal","dismissOnOutsideTap","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","showsCompass","showsScale","pictureInPicture","grabberVisible"]),Cr=new Map(Ir.map((e)=>[qt(e),e]));function qt(e){return e.replace(/[-_]/g,"").toLowerCase()}function He(e,t){if((t==="Image"||t==="Video")&&e.toLowerCase()==="src")return"source";return Cr.get(qt(e))??e}var Or={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",map:"Map",mappolyline:"MapPolyline",mappolygon:"MapPolygon",mapmarker:"MapMarker",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",checkbox:"Checkbox",slider:"Slider",picker:"Picker",segmentedcontrol:"SegmentedControl",nativesegmentedcontrol:"SegmentedControl",select:"Picker",loading:"ActivityIndicator",spinner:"ActivityIndicator",div:"View",span:"Text",p:"Text",h1:"Text",h2:"Text",h3:"Text",h4:"Text",h5:"Text",h6:"Text",a:"TouchableOpacity",section:"View",article:"View",header:"SafeAreaView",footer:"View",main:"View",nav:"View",aside:"View",form:"View",label:"Text",fieldset:"View",legend:"Text",option:"Text",dialog:"Modal",figure:"View",figcaption:"Text",picture:"View",hr:"View",ul:"View",ol:"View",li:"View",dl:"View",dt:"Text",dd:"Text",table:"View",thead:"View",tbody:"View",tfoot:"View",tr:"View",th:"Text",td:"Text",caption:"Text",strong:"Text",b:"Text",em:"Text",i:"Text",u:"Text",s:"Text",small:"Text",mark:"Text",abbr:"Text",time:"Text",code:"Text",kbd:"Text",samp:"Text",pre:"Text",blockquote:"Text",cite:"Text",q:"Text",sub:"Text",sup:"Text"};function Gt(e){return Or[e.toLowerCase()]||e}var Pr={"circle-pause":"pause.circle","cloud-alert":"exclamationmark.icloud","key-round":"key",paperclip:"paperclip","rotate-cw":"arrow.clockwise","route-off":"location.slash",syringe:"syringe","volume-1":"speaker.wave.1",activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",apple:"leaf",archive:"archivebox",armchair:"sofa","arrow-down":"arrow.down","arrow-left":"arrow.left","arrow-right":"arrow.right","arrow-up":"arrow.up","arrow-up-right":"arrow.up.right","at-sign":"at","audio-lines":"waveform",award:"rosette",backpack:"backpack","badge-check":"checkmark.seal","badge-x":"xmark.seal",ban:"nosign","bar-chart":"chart.bar","bar-chart-2":"chart.bar","bar-chart-3":"chart.bar",battery:"battery.100","battery-charging":"battery.100.bolt",bean:"leaf",bed:"bed.double",beef:"fork.knife",bell:"bell","bell-off":"bell.slash","bell-ring":"bell.and.waves.left.and.right",bike:"figure.outdoor.cycle",blocks:"square.grid.2x2",bluetooth:"antenna.radiowaves.left.and.right",book:"book","book-open":"book",bookmark:"bookmark",box:"shippingbox",brain:"brain",building:"building","building-2":"building.2",cable:"cable.connector","cake-slice":"birthday.cake",calendar:"calendar","calendar-check":"calendar.badge.checkmark","calendar-clock":"calendar.badge.clock","calendar-days":"calendar","calendar-minus":"calendar.badge.minus","calendar-minus-2":"calendar.badge.minus","calendar-off":"calendar.badge.exclamationmark","calendar-plus":"calendar.badge.plus","calendar-range":"calendar","calendar-sync":"arrow.triangle.2.circlepath","calendar-x":"calendar.badge.exclamationmark","calendar-x-2":"calendar.badge.exclamationmark",camera:"camera",carrot:"carrot","chart-bar":"chart.bar","chart-column":"chart.bar","chart-line":"chart.xyaxis.line","chart-no-axes-gantt":"chart.bar.doc.horizontal",check:"checkmark","check-circle":"checkmark.circle","check-circle-2":"checkmark.circle","chevron-down":"chevron.down","chevron-left":"chevron.left","chevron-right":"chevron.right","chevron-up":"chevron.up",circle:"circle","circle-alert":"exclamationmark.circle","circle-arrow-out-up-left":"arrow.uturn.backward.circle","circle-minus":"minus.circle","circle-arrow-down":"arrow.down.circle","circle-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-dot":"smallcircle.filled.circle","circle-help":"questionmark.circle","circle-question-mark":"questionmark.circle","circle-play":"play.circle","circle-plus":"plus.circle","circle-user":"person.crop.circle","circle-x":"xmark.circle",clapperboard:"film",clipboard:"clipboard","clipboard-list":"list.clipboard",clock:"clock","clock-12":"clock","clock-2":"clock","clock-3":"clock","clock-4":"clock","clock-8":"clock","clock-alert":"clock.badge.exclamationmark",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",cookie:"birthday.cake",copy:"doc.on.doc","credit-card":"creditcard","cup-soda":"takeoutbag.and.cup.and.straw",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",drumstick:"fork.knife",dumbbell:"dumbbell",edit:"pencil",egg:"frying.pan","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",fish:"fish",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift","glass-water":"waterbottle",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal",hamburger:"takeoutbag.and.cup.and.straw","hand-fist":"hand.raised",heart:"heart","heart-off":"heart.slash","heart-pulse":"heart.text.square","help-circle":"questionmark.circle",history:"clock.arrow.circlepath",home:"house",hourglass:"hourglass",house:"house","id-card":"person.text.rectangle",image:"photo",inbox:"tray",info:"info.circle",layers:"square.3.layers.3d","layout-dashboard":"rectangle.3.group","layout-grid":"square.grid.2x2",leaf:"leaf",library:"books.vertical",link:"link",list:"list.bullet","list-checks":"checklist",loader:"arrow.triangle.2.circlepath","loader-2":"arrow.triangle.2.circlepath","loader-circle":"arrow.triangle.2.circlepath",lock:"lock","log-in":"arrow.right.to.line","log-out":"rectangle.portrait.and.arrow.right",mail:"envelope",map:"map","map-pin":"mappin.and.ellipse",medal:"medal",megaphone:"megaphone",menu:"line.3.horizontal","message-circle":"bubble.left","message-square":"text.bubble","message-square-quote":"quote.bubble","messages-square":"bubble.left.and.bubble.right",mic:"mic",milk:"waterbottle",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",nut:"leaf",package:"shippingbox",pause:"pause","pause-circle":"pause.circle",pencil:"pencil","person-standing":"figure.walk",phone:"phone",play:"play.fill",plug:"powerplug",plus:"plus","plus-circle":"plus.circle","rectangle-horizontal":"rectangle","refresh-cw":"arrow.clockwise",repeat:"repeat","rotate-ccw":"arrow.counterclockwise",route:"point.topleft.down.to.point.bottomright.curvepath",ruler:"ruler",sailboat:"sailboat",salad:"leaf",satellite:"antenna.radiowaves.left.and.right",save:"square.and.arrow.down",scale:"scalemass","scan-line":"barcode.viewfinder",search:"magnifyingglass",send:"paperplane",settings:"gearshape","settings-2":"slider.horizontal.3",share:"square.and.arrow.up","share-2":"square.and.arrow.up",shield:"shield","shield-check":"checkmark.shield","shopping-bag":"bag","shopping-cart":"cart",shuffle:"shuffle","skip-back":"backward.end","skip-forward":"forward.end",sliders:"slider.horizontal.3","sliders-horizontal":"slider.horizontal.3",smartphone:"iphone",snowflake:"snowflake",soup:"mug",sparkles:"sparkles",sprout:"leaf",square:"square",star:"star",stopwatch:"stopwatch",store:"storefront","stretch-horizontal":"rectangle.split.1x2",sun:"sun.max",sunrise:"sunrise",sunset:"sunset",tag:"tag",target:"scope",thermometer:"thermometer.medium","thumbs-up":"hand.thumbsup",timer:"timer",trash:"trash","trash-2":"trash","trending-down":"chart.line.downtrend.xyaxis","trending-up":"chart.line.uptrend.xyaxis","triangle-alert":"exclamationmark.triangle",trophy:"trophy",unlink:"personalhotspot.slash",upload:"arrow.up.circle",user:"person","user-check":"person.crop.circle.badge.checkmark","user-minus":"person.badge.minus","user-plus":"person.badge.plus","user-round":"person","user-round-check":"person.crop.circle.badge.checkmark","user-round-minus":"person.crop.circle.badge.minus","user-round-plus":"person.crop.circle.badge.plus","user-round-x":"person.crop.circle.badge.xmark","user-x":"person.crop.circle.badge.xmark",users:"person.2","users-round":"person.2",utensils:"fork.knife",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wheat:"laurel.leading",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",wine:"wineglass",x:"xmark","x-circle":"xmark.circle",zap:"bolt"},Kt={lucide:Pr,hugeicons:{"workout-run":"figure.run"}};function ie(e,t=!1){let n=String(e??"").trim();if(!n)return{symbol:"questionmark.square.dashed",known:!1};if(t)return{symbol:n,known:!0};let r=/^i-([a-z0-9]+)-(.+)$/.exec(n)??/^([a-z0-9]+):(.+)$/.exec(n),s=r?r[1]:"lucide",o=r?r[2]:n,c=Object.hasOwn(Kt,s)?Kt[s]:void 0;if(c&&Object.hasOwn(c,o))return{symbol:c[o],iconify:`i-${s}-${o}`,known:!0};if(!r&&n.includes("."))return{symbol:n,known:!0};return{symbol:"questionmark.square.dashed",iconify:r?n:`i-lucide-${o}`,known:!1}}function Ge(e){return e.split(/\s+/).find((t)=>/^i-[a-z0-9]+-[a-z0-9-]+$/.test(t))}import{generate as me,parse as Mr}from"@stacksjs/ts-css/parse";var Br=/^(?::hover|:active|:visited|:focus|:focus-visible|:focus-within)$/;function Lr(e){let t=e.replace(/\s+/g,"").toLowerCase();if(!t||t==="all"||t==="screen")return{};if(/^(?:screenand)?\(prefers-color-scheme:dark\)$/.test(t))return{dark:!0};if(/^(?:screenand)?\(prefers-color-scheme:light\)$/.test(t))return{};if(/prefers-reduced-motion|\(hover|\(pointer|print|forced-colors|prefers-contrast/.test(t))return"skip";let n=t.replace(/^screenand/,"").split("and"),r={};for(let s of n){let o=/^\((min|max)-width:([\d.]+)(px|rem|em)\)$/.exec(s);if(!o)return;r[o[1]]=Number(o[2])*(o[3]==="px"?1:16)}return r}async function Jt(e,t){let n={},r=new Set,s=(g)=>{if(r.has(g))return;r.add(g),t(g,[...g.matchAll(/\.(-?[a-z_][\w-]*)/gi)].map((h)=>h[1]))},o=(g,h,b)=>{if(!h.trim())return;let m=n[g]??={},y=b.dark?"dark":"light";if(b.min===void 0&&b.max===void 0){m[y]=m[y]?`${m[y]};${h}`:h;return}let v=m.responsive??=[],f=b.min??0,l=v.find((x)=>x.min===f&&x.max===b.max);if(!l)v.push(l={min:f,...b.max===void 0?{}:{max:b.max}});l[y]=l[y]?`${l[y]};${h}`:h};function c(g,h){for(let b of g){if(b.type==="Atrule"){let v=b.name.toLowerCase();if(["font-face","keyframes","-webkit-keyframes","import","charset","property","page","layer"].includes(v)){if(v==="layer"&&b.block)c(b.block.children,h);continue}if(v!=="media"||!b.block){s(`@${v}`);continue}let f=b.prelude?me(b.prelude):"",l=Lr(f);if(l==="skip")continue;if(!l){s(`@media ${f}`);continue}c(b.block.children,{dark:h.dark||l.dark,min:l.min??h.min,max:l.max??h.max});continue}if(b.type!=="Rule"||b.block.type!=="Block")continue;let m=[...b.block.children].filter((v)=>v.type==="Declaration").map((v)=>me(v)).join(";"),y=b.prelude.type==="SelectorList"?[...b.prelude.children].map(me):[me(b.prelude)];for(let v of y){let f=/^(?:(?:html|:root)?\.dark\s+)?((?:\.-?[a-z_][\w-]*)+)((?::{1,2}[a-z-]+)*)$/i.exec(v.trim());if(!f){if(!/^(?:html|:root|body|\*|::?[a-z-]+)/i.test(v.trim()))s(v.trim());continue}let l=f[2];if(l){if(!Br.test(l))s(v.trim());continue}let x=h.dark||/^(?:(?:html|:root)?\.dark\s+)/i.test(v.trim());o(f[1].slice(1),m,{dark:x,min:h.min,max:h.max})}}}let u="",d=!0;await new HTMLRewriter().on("style",{element(g){u="";let h=g.getAttribute("type");d=!h||h.toLowerCase()==="text/css",g.onEndTag(()=>{if(!d)return;try{let b=Mr(u);if(b.type==="StyleSheet")c(b.children,{})}catch{s("invalid stylesheet")}})},text(g){u+=g.text}}).transform(new Response(e)).text();for(let g of Object.values(n))g.responsive?.sort((h,b)=>h.min-b.min||(h.max??1/0)-(b.max??1/0));return n}import{generate as se,parse as Yt}from"@stacksjs/ts-css/parse";async function Qt(e,t){let n={light:new Map,dark:new Map},r=new Set,s=(b)=>{if(!r.has(b))r.add(b),t(b)},o=(b,m,y)=>{for(let v of y){let f=n[v].get(b);if(!f||Number(m.important)>Number(f.important)||m.important===f.important&&m.specificity>=f.specificity)n[v].set(b,m)}},c=(b)=>{if(b.type==="Declaration")return b.property.startsWith("--");if(b.type==="Rule"||b.type==="Atrule")return!!b.block&&[...b.block.children].some(c);return!1},u=(b)=>{let m=b.replace(/\s+/g,"").toLowerCase();if(!m||m==="all"||m==="screen")return["light","dark"];let y=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(m);return y?[y[1]]:void 0};function d(b,m){for(let y of b){if(!c(y))continue;if(y.type==="Atrule"){let f=y.prelude?se(y.prelude):"",l=y.name.toLowerCase()==="media"?u(f):void 0;if(!l){s(`@${y.name} ${f}`.trim());continue}d(y.block.children,m.filter((x)=>l.includes(x)));continue}if(y.type!=="Rule")continue;let v=y.prelude.type==="SelectorList"?[...y.prelude.children].map(se):[se(y.prelude)];for(let f of v){let l=/^(html|:root)?(?:\.(dark|light))?$/.exec(f.trim());if(!l||!l[1]&&!l[2]){s(f);continue}let x=(l[1]===":root"?10:l[1]?1:0)+(l[2]?10:0);for(let p of y.block.children){if(p.type!=="Declaration"){if(c(p))s(`nested rule in ${f}`);continue}if(!p.property.startsWith("--"))continue;let N={value:se(p.value),important:!!p.important,specificity:x};o(p.property,N,m.filter((S)=>!l[2]||l[2]===S))}}}}let g="",h;return await new HTMLRewriter().on("html",{element(b){let m=b.getAttribute("style");if(!m)return;try{let y=Yt(m,{context:"declarationList"});if(y.type!=="DeclarationList")return;for(let v of y.children)if(v.type==="Declaration"&&v.property.startsWith("--"))o(v.property,{value:se(v.value),important:!!v.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(b){g="";let m=b.getAttribute("type");h=!m||m.toLowerCase()==="text/css"?u(b.getAttribute("media")??""):void 0,b.onEndTag(()=>{try{let y=Yt(g);if(y.type!=="StyleSheet")return;if(!h){if([...y.children].some(c))s("style type/media");return}d(y.children,h)}catch{s("invalid stylesheet")}})},text(b){g+=b.text}}).transform(new Response(e)).text(),{light:[...n.light].map(([b,m])=>[b,m.value]),dark:[...n.dark].map(([b,m])=>[b,m.value])}}function H(e,t={},n={},r={},s=[]){return{type:e,props:t,style:n,events:r,children:s}}function Zt(e,t,n={}){return{version:"1.0.0",root:e,script:t,meta:{source:n.source||"unknown",compiledAt:n.compiledAt||Date.now(),headwindConfig:n.headwindConfig}}}var Dr=/^(?:key(?:down|up|press)|mouse[a-z]+|pointer[a-z]+|dbl(?:click)?|contextmenu|wheel|drag[a-z]*|drop|copy|cut|paste|beforeinput|compositionstart|compositionupdate|compositionend|animation[a-z]+|transition[a-z]+|resize|hashchange|popstate|beforeunload|unload|visibilitychange|selectionchange|selectstart|auxclick)$/,en=new Set(["script","style","head","meta","link","title","base","noscript"]),tn=new Set(["template","body","html","main","fragment"]),ye=new Set,$r=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onPageSelected","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),be=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","Link","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","Map","MapPolyline","MapPolygon","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","SegmentedControl","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...Fe]),Vr=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),nn=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),jr={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function Z(e){return e.replace(/&(#x?[0-9a-f]+|\w+);/gi,(t,n)=>{let r=jr[n.toLowerCase()];if(r!==void 0)return r;if(n[0]==="#"){let s=n[1]==="x"||n[1]==="X"?Number.parseInt(n.slice(2),16):Number.parseInt(n.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):t}return t})}function Je(e){if(!e.includes("{{"))return null;let t=[],n=0;for(let r of e.matchAll(/\{\{([\s\S]+?)\}\}/g)){if(r.index>n)t.push(JSON.stringify(e.slice(n,r.index)));t.push(`(${r[1].trim()})`),n=r.index+r[0].length}if(!t.some((r)=>r.startsWith("(")))return null;if(n<e.length)t.push(JSON.stringify(e.slice(n)));if(t.length===1)return t[0].slice(1,-1);return`[${t.join(", ")}].map(__stxPart => __stxPart == null ? '' : __stxPart).join('')`}function sn(e,t,n,r={}){let s=r.inheritedVariables,o={},c={},u={},d=[],g="",h={};for(let[v,f]of t){let l=v.toLowerCase();if(l==="class"||l==="classname"){g=g?`${g} ${f}`:f;continue}if(l==="style"){h={...h,...Wr(e,f,n,{...r,onVariables(S){s=S,r.onVariables?.(S)}})};continue}if(l.startsWith(":")||l.startsWith("x-")&&l!=="x-cloak"){u[l.startsWith(":")?l.slice(1):l.slice(2)]=Z(f);continue}if(l==="x-cloak")continue;if(l.startsWith("@")||l.startsWith("v-on:")){let S=l.startsWith("@")?l.slice(1):l.slice(5),[k]=S.split("."),w=Ve[k]??(k.startsWith("on")?k:"");if(!w||!$r.has(w)){if(Dr.test(k)||/\./.test(S))n.push({kind:"unread-event",tag:e,name:v});continue}c[w]=Z(f);continue}if(l==="key"){o.key=f;continue}let x=Z(f),p=Je(x);if(p){u[l]=p,d.push(l);continue}let N=He(v);if(x===""&&Ht.has(N)){o[N]=!0;continue}try{o[N]=JSON.parse(x)}catch{o[N]=x}}let b=o["data-native"]?o["data-native"]==="TextInput":e==="textarea"||e==="input"&&!["checkbox","radio","hidden"].includes(String(o.type??"text").toLowerCase()),m=g?ge(g,s,{focus:b,focusWithin:!0,rules:r.rules}):void 0;for(let v of new Set(m?.unknown??[]))n.push({kind:"unknown-class",tag:e,name:v});let y=Oe({...m?.style,...h});return{props:o,style:y,events:c,bindings:u,classes:g,inline:h,templated:d}}function Wr(e,t,n,r){return de(Z(t),(s)=>n.push({...s,tag:e}),r)}function Ye(e){return e.children.map((t)=>typeof t==="string"?t:Ye(t)).join("").replace(/\s+/g," ").trim()}function Fr(e,t){let n=e.node;if(n.props["data-stx-native-template"])return n.children=n.children.map((o)=>typeof o==="string"?H("Text",{},{},{},[o]):o),n;let r=n.children.filter((o)=>typeof o!=="string"),s=n.children.filter((o)=>typeof o==="string").join("").trim();if(e.tag==="button"&&n.type==="Button"&&!e.declaredNative&&r.length>0)return n.type="Pressable",n.props.role??="button",n.children=n.children.flatMap((o)=>typeof o==="string"?o.trim()?[H("Text",{},{},{},[o.trim()])]:[]:[o]),n;if(n.type==="Button"&&r.length===0)return n.children=s?[s]:[],n;if(n.type==="Svg"||n.type==="G")return n.children=r,n;if(n.type==="SvgText"){let o=Ye(n);return n.children=o?[o]:[],n}if(nn.has(n.type)&&r.length===0&&s)return n.type="Text",n.children=[s],n;if(n.type==="Text"&&!s&&r.length===0&&typeof n.props.text==="string")return n.children=n.props.text?[n.props.text]:[],delete n.props.text,n;if(n.type==="Text"&&r.length>0){if(/(?:^|\s)(?:inline-)?(?:flex|grid)(?:\s|$)/.test(n._classes??"")||r.some((u)=>u.type!=="Text"))return n.type="View",n.children=n.children.map((u)=>typeof u==="string"?H("Text",{},{},{},[u]):u),n;let c=Ye(n);return t.push({kind:"flattened-text",tag:e.tag}),n.children=c?[c]:[],n}if(nn.has(n.type)&&r.length>0)n.children=r;return n}async function Xr(e,t={}){e=await oe(e);let n=[],r=await Qt(e,(l)=>n.push({kind:"unsupported-theme-rule",tag:"style",name:l})),s=re(r.light).computed(),o=new Set([...e.matchAll(/\sclass(?:name)?\s*=\s*"([^"]*)"/gi)].flatMap((l)=>l[1].split(/\s+/))),c=await Jt(e,(l,x)=>{if(!x.length||x.some((p)=>o.has(p)))n.push({kind:"unsupported-style-rule",tag:"style",name:l})}),u=[],d=[],g=new Set;function h(l){let x=d[d.length-1];if(!x)u.push(l);else if(!x.dropped)x.node.children.push(l)}function b(l){let x=(N)=>{if(l.tag!=="html"&&l.node._styleSource)N._styleAncestors=[l.node._styleSource,...N._styleAncestors??[]]};if(l.node.bindings&&Object.keys(l.node.bindings).length>0){let N=l.node.children,S=N.filter((w)=>typeof w!=="string"),k=S.length===1&&S.length===N.length?S[0]:H("View",{},{},{},N);if(k.bindings={...l.node.bindings,...k.bindings},k.bindingId===void 0&&l.node.bindingId!==void 0)k.bindingId=l.node.bindingId;x(k),h(k);return}let p=d[d.length-1];for(let N of l.node.children){if(typeof N==="string"){if(p&&!p.dropped)p.node.children.push(N);continue}if(x(N),!p)u.push(N);else if(!p.dropped)p.node.children.push(N)}}function m(l,x){let p=d[d.length-1];if(l==="svg"||p?.svg)return y(l,x,p);let N=en.has(l)&&!ye.has(l),S=d[d.length-1]?.dropped??!1,k=p?.variables??s,{props:w,style:_,events:I,bindings:P,classes:E,inline:T,templated:R}=N||S?{props:{},style:{},events:{},bindings:{},classes:"",inline:{},templated:[]}:sn(l,x,n,{inheritedVariables:k,onVariables:(O)=>{k=O},rules:c});if(l==="html")k=s;let C=w["data-native"],j=l==="template"&&x.some(([O])=>[":for","x-for","@for"].includes(O)),A;if(j)A="View",w["data-stx-native-template"]=!0;else if(typeof C==="string"&&be.has(C))A=C,delete w["data-native"];else{if(A=ye.has(l)?"View":Gt(l),(l==="i"||l==="span")&&/(?:^|\s)i-[a-z0-9]+-[a-z0-9-]+(?:\s|$)/.test(E))A="Icon";else if(l==="i"&&x.some(([O])=>/^(?::|x-)class$/i.test(O)))A="Icon";if(l==="input"){let O=String(w.type??"text").toLowerCase();if(O==="checkbox")A="Checkbox",w.formValue=w.value??"on",w.checked=w.checked===""||w.checked===!0||w.checked==="true",w.value=w.checked;else if(O==="hidden")A="View",_.display="none",T.display="none";else if(O==="radio")A="View",w.accessibilityRole="radio",n.push({kind:"unsupported-control",tag:l,name:"input:radio"})}}if(!S&&A===l&&!be.has(A)&&!en.has(l)&&!tn.has(l)&&!g.has(l))g.add(l),n.push({kind:"unmapped-tag",tag:l});if((N||ye.has(l))&&!g.has(`drop:${l}`))g.add(`drop:${l}`),n.push({kind:"dropped-subtree",tag:l});if(A==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(E))A="ScrollView",w.horizontal=!0,w.showsHorizontalScrollIndicator??=!1;else if(A==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(E))A="ScrollView";if(l==="form")w["data-stx-form"]=!0;if(l==="button"&&w.type===void 0)w.type="submit";if(l==="textarea"&&A==="TextInput")w.multiline??=!0;if((A==="Video"||A==="Image")&&w.source===void 0&&w.src!==void 0)w.source=w.src,delete w.src;if(A==="Icon"){let O=ge(E).icon,M=String(w.symbol||w.name||O||""),B=ie(M,Boolean(w.symbol));if(M.trim()&&!B.known)n.push({kind:"unknown-icon",tag:l,name:M});if(w.symbol=B.symbol,B.iconify)w.iconify=B.iconify}if(A==="FlatList"||A==="SectionList"){let O=new Set([...Object.keys(w),...Object.keys(P)].map((M)=>M.toLowerCase()));for(let[M,B]of Vr)if(O.has(M))n.push({kind:"unsupported-list-prop",tag:A,name:B})}let L=H(A,w,_,I);L._inlineStyle=T,L._styleSource=Z(x.find(([O])=>O==="style")?.[1]??"");let z=w["data-stx-b"];if(typeof z==="number"&&Number.isInteger(z))L.bindingId=z;if(delete w["data-stx-b"],E)L._classes=E;if(Object.keys(P).length>0)L.bindings=P;if(R.length>0)L._templated=R;if(typeof w.key==="string")L.key=w.key,delete w.key;return{tag:l,node:L,variables:k,declaredNative:typeof C==="string"&&be.has(C),dropped:N||S||ye.has(l)||A==="Video",discard:N||S,unwrap:tn.has(l)&&!j&&A!=="ScrollView"&&!(typeof C==="string"&&be.has(C))}}function y(l,x,p){let N=p?.dropped??!1,S=We[l];if(N||!S){if(!N&&!g.has(`drop:${l}`))g.add(`drop:${l}`),n.push({kind:Xt.has(l)?"dropped-subtree":"unmapped-tag",tag:l});return{tag:l,node:H("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let k=p?.variables??s,{props:w,style:_,events:I,bindings:P,classes:E,inline:T,templated:R}=sn(l,x,n,{inheritedVariables:k,onVariables:(L)=>{k=L},rules:c});if(S==="Svg"){let L=Xe(w.viewBox);if(L)w.viewBox=L;else delete w.viewBox;for(let z of["width","height"]){if(typeof w[z]==="number"&&_[z]===void 0)_[z]=w[z];delete w[z]}}if(typeof w.strokeDasharray==="string"||typeof w.strokeDasharray==="number"){let L=String(w.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);w.strokeDasharray=L}let C=ze(S,w);if(C)w.geometry=C;if(S==="Animate")Ue(w);let j=H(S,w,_,I);j._inlineStyle=T,j._styleSource=Z(x.find(([L])=>L==="style")?.[1]??"");let A=w["data-stx-b"];if(typeof A==="number"&&Number.isInteger(A))j.bindingId=A;if(delete w["data-stx-b"],E)j._classes=E;if(Object.keys(P).length>0)j.bindings=P;if(R.length>0)j._templated=R;if(typeof w.key==="string")j.key=w.key,delete w.key;return{tag:l,node:j,variables:k,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(l){let x=l.tagName.toLowerCase(),p=m(x,[...l.attributes]),N=!0;try{l.onEndTag(()=>{if(d.pop(),p.discard)return;if(p.unwrap)b(p);else h(Fr(p,n))})}catch{N=!1}if(N)d.push(p);else if(!p.discard)h(p.node)},text(l){let x=d[d.length-1];if(!x||x.dropped)return;let p=zr(Z(l.text),x.inMustache===!0);x.inMustache=p.inside;let N=p.text;if(!N.trim())return;x.node.children.push(N)}}).transform(new Response(e)).text(),u.length===0)throw Error(`No element to translate in the rendered output of ${t.source??"unknown"}`);let v=u.length===1?u[0]:H("View",{},{},{},u);if(r.light.length||r.dark.length)v._stylesheetTheme=r;if(Object.keys(c).length)v._stylesheetRules=c;let f=(l)=>{Ur(l);let x=De(l.props,l.type);if(Object.keys(x).length)l._accessibilitySource=Object.fromEntries(Le.filter((p)=>(p in l.props)).map((p)=>[p,l.props[p]])),Object.assign(l.props,x);jt(l);for(let p of l.children)if(typeof p!=="string")f(p)};return f(v),on(v),{root:v,diagnostics:n}}function on(e){if(["ScrollView","FlatList","SectionList"].includes(e.type))return!e.props.horizontal&&(Number(e.style.flex)>0||Number(e.style.flexGrow)>0);if(!e.children.map((n)=>typeof n==="string"?!1:on(n)).some(Boolean)||!["View","SafeAreaView","KeyboardAvoidingView"].includes(e.type))return!1;if(e.style.height!==void 0||e.style.maxHeight!==void 0)return!1;if(e.style.flex===0||e.style.flexGrow===0||e.style.flexShrink===0)return!1;if(e.style.flex===void 0&&e.style.flexGrow===void 0)e._layoutDefaults={flex:1,flexGrow:1,flexShrink:1,flexBasis:0},e.style={...e._layoutDefaults,...e.style};return!0}function zr(e,t){let n="",r=0;while(r<e.length){if(!t&&e.startsWith("{{",r)){t=!0,n+="{{",r+=2;continue}if(t&&e.startsWith("}}",r)){t=!1,n+="}}",r+=2;continue}let s=e[r];if(!t&&/\s/.test(s)){if(!n.endsWith(" "))n+=" ";while(r<e.length&&/\s/.test(e[r]))r++;continue}n+=s,r++}return{text:n,inside:t}}function Ur(e){if(e.props["data-stx-native-template"])return;if(e.bindings?.text||e.children.length===0)return;let t=e.children.filter((r)=>typeof r==="string");if(t.length<e.children.length){let r=e.type==="Button"||e.type==="Text"?null:Je(t.join(""));if(!r)return;e.bindings={...e.bindings,text:r},e._templated=[...e._templated??[],"text"],e.children=e.children.filter((s)=>typeof s!=="string");return}let n=Je(e.children.join(""));if(!n)return;if(e.type!=="Button")e.bindings={...e.bindings,text:n},e._templated=[...e._templated??[],"text"],e.children=[];else{e.type="Pressable",e.props.role??="button";let r=H("Text",{},{},{},[]);r.bindings={text:n},r._templated=["text"],e.children=[r]}}async function an(e,t={}){let{root:n,diagnostics:r}=await Xr(e,t),s=t.script??{exports:{},functions:[],code:""};return{document:Zt(n,s,{source:t.source??"unknown"}),diagnostics:r}}async function oe(e){if(!/\bdata-native-exclude\b/i.test(e))return e;return new HTMLRewriter().on("[data-native-exclude]",{element(t){t.remove()}}).transform(new Response(e)).text()}var cn=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Hr=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,qr=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,ln=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function Qe(e){let t=[];cn.lastIndex=0;for(let o of e.matchAll(cn)){let c=o[1]??"";if(/\bserver\b/.test(c))continue;t.push(o[2].trim())}let n=t.filter(Boolean).join(`
4
4
 
5
5
  `),r=[];for(let o of[Hr,qr]){o.lastIndex=0;for(let c of n.matchAll(o))if(!r.includes(c[1]))r.push(c[1])}let s={};ln.lastIndex=0;for(let o of n.matchAll(ln)){let c=o[2];try{s[o[1]]=JSON.parse(c.replace(/^'(.*)'$/,'"$1"'))}catch{s[o[1]]=c}}return{exports:s,functions:r,code:n}}var ne="[data-native-chrome]";function Gr(e){let t=(e??"").trim().toLowerCase();return t==="tabs"||t==="bar"?t:""}function un(e,t){let n=ie(e);if(!n.known&&/^i-|:/.test(e))t?.(e);return n.known||/^i-|:/.test(e)?n.symbol:e}function Kr(e){let t=(e??"").trim();if(!t.startsWith("/")||t.startsWith("//"))return null;return t}function dn(e){return e.replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#0?39;/g,"'").replace(/\s+/g," ").trim()}async function fn(e,t){if(!/\bdata-native-chrome\b/i.test(e))return{html:e,chrome:null};let n=[],r=[],s=new Set,o=[],c=[],u=null,d=null,g=!1;if(await new HTMLRewriter().on(ne,{element(m){g=!0;let y=m.getAttribute("data-stx-scope");if(y)s.add(y);n.push(Gr(m.getAttribute("data-native-chrome"))),m.onEndTag(()=>{n.pop()})}}).on("[data-stx-component-wrapper]",{element(m){let y={scope:m.getAttribute("data-stx-scope")??"",children:0,chrome:0};o.push(y),m.onEndTag(()=>{if(o.pop(),y.scope&&y.children>0&&y.chrome===y.children)s.add(y.scope)})}}).on("[data-stx-component-wrapper] > *",{element(m){let y=o[o.length-1];if(!y)return;if(y.children++,m.hasAttribute("data-native-chrome"))y.chrome++}}).on(`${ne} [data-stx-scope]`,{element(m){let y=m.getAttribute("data-stx-scope");if(y)s.add(y)}}).on(`${ne} script[data-stx-component-factories]`,{element(m){let y=[...m.attributes].map(([v,f])=>f===""?v:`${v}="${f.replace(/"/g,"&quot;")}"`).join(" ");u="",m.onEndTag(()=>{c.push(`<script ${y}>${u}</script>`),u=null})},text(m){if(u!==null)u+=m.text}}).on(`${ne} a`,{element(m){let y=Kr(m.getAttribute("href")),v=n[n.length-1]??"";if(!y||!v)return;let f=m.getAttribute("data-native-icon")||Ge(m.getAttribute("class")??""),l={path:y,title:"",region:v,label:m.getAttribute("aria-label")||m.getAttribute("title")||"",...f?{symbol:un(f,t)}:{}};d=l,m.onEndTag(()=>{if(l.title=dn(l.title)||dn(l.label),r.push(l),d===l)d=null})},text(m){if(d)d.title+=m.text}}).on(`${ne} a *`,{element(m){if(!d||d.symbol)return;let y=m.getAttribute("data-native-icon")||Ge(m.getAttribute("class")??"");if(y)d.symbol=un(y,t)}}).transform(new Response(e)).text(),!g)return{html:e,chrome:null};let h=await new HTMLRewriter().on(ne,{element(m){m.remove()}}).on("script[data-stx-owner]",{element(m){if(s.has(m.getAttribute("data-stx-owner")??""))m.remove()}}).transform(new Response(e)).text(),b=(m)=>r.filter((y)=>y.region===m).map(({path:y,title:v,symbol:f})=>({path:y,title:v,...f?{symbol:f}:{}}));return{html:c.join(`
6
- `)+h,chrome:{tabs:b("tabs"),bar:b("bar")}}}var ve=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,pn=/function\s+(__stx_setup_[\w$]+)\s*\(/,Jr=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function Ze(e){ve.lastIndex=0;for(let t of e.matchAll(ve)){let n=t[2].trim(),r=pn.exec(n)?.[1];if(r)return{name:r,code:n}}return null}function gn(e){let t=[];ve.lastIndex=0;for(let n of e.matchAll(ve)){let r=n[1],s=n[2].trim(),o=Jr.exec(r)?.[1],c=/\bdata-stx-component-factories\b/i.test(r);if(!s||!o&&!c&&!pn.test(s))continue;t.push(o?{code:s,owner:o}:{code:s})}return t}function Qr(){let e=[K.join(import.meta.dir,"..","primitives"),K.join(import.meta.dir,"native","primitives")];for(let t of e)if(Yr(K.join(t,"View.stx")))return t;return e[0]}async function Zr(e,t,n={}){e=await oe(e);let r=n.root??K.dirname(t),s=await a(r),o=typeof s.root==="string"&&s.root?K.resolve(r,s.root):r,c=(T,R)=>T?K.isAbsolute(T)?T:K.resolve(o,T):K.join(o,R),u={root:r,layoutsDir:c(s.layoutsDir,"layouts"),partialsDir:c(s.partialsDir,"partials"),storesDir:c(s.storesDir,"stores"),componentsDir:n.componentsDir??(s.componentsDir?c(s.componentsDir,"components"):K.join(o,"components")),buildMode:"serve",cache:!1,_targetComponentDirs:[Qr()],_targetComponentFallbackNames:["Button","Checkbox","Switch","TextInput","Video"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[]},d={...n.context??{},__stx_inject_css:!1,__stx_native_screen:!0},g=new Set([t]),h=await i(e,d,t,u,g),b=[],{html:m,chrome:y}=await fn(await oe(h),(T)=>{b.push({kind:"unknown-icon",tag:"data-native-chrome",name:T})}),{html:v,manifest:f}=at(await oe(m)),l=await Mt(r),{document:x,diagnostics:p}=await an(l?`<style>${l}</style>${v}`:v,{source:t,script:Qe(e)});p.unshift(...b),ei(x.root,f);let N=d.__stx_runtime_head;if(typeof N?.title==="string"&&N.title.trim())x.title=N.title.trim();if(y)x.chrome=y;let S=Ze(v),k=gn(v);if(Qe(e).code.trim()){let T=await as(e,t,n.context,{forceClientSetup:!0}),R=Ze(T.setupCode??"");if(S=R??S,R&&!k.some((C)=>C.code===R.code))k.push({code:R.code})}let{buildModuleRegistryScript:w,registeredModuleIdsIn:_}=await import("./chunk-7fdw7p3e.js"),I=async()=>{let T=[],R=await w(_(...k.map((C)=>C.code)),{collectInputs:T});for(let C of T)g.add(C);return R},P=await I();if([...k.map((T)=>T.code),P??""].some((T)=>/\buseStore\s*\(/.test(T))&&/<script\b[^>]*\bdata-stx-stores\b/i.test(v)){let{getStoreScript:T}=await import("./chunk-6amq1fnc.js"),R=await T(u.storesDir);if(R){k.unshift({code:R});for(let C of new Bun.Glob("*.ts").scanSync({cwd:u.storesDir,absolute:!0}))g.add(C);P=await I()}}if(P)k.unshift({code:P});return{document:x,manifest:f,setup:S,scripts:k,diagnostics:p,html:v,dependencies:[...g]}}function ei(e,t){let n=new Map(t.entries.map((o)=>[o.id,o])),r=t.entries.reduce((o,c)=>Math.max(o,c.id),-1)+1,s=(o)=>{if(o._templated?.length&&o.bindings){if(o.bindingId===void 0||!n.has(o.bindingId)){let u={id:o.bindingId??r++,bindings:[]};o.bindingId=u.id,n.set(u.id,u),t.entries.push(u)}let c=n.get(o.bindingId);for(let u of o._templated){let d=`:${u}`,g=ke(d);if(g&&!c.bindings.some((h)=>h.name===d))c.bindings.push({name:d,value:o.bindings[u],kind:g})}}for(let c of o.children)if(typeof c!=="string")s(c)};s(e)}async function Se(e,t={}){return Zr(await Bun.file(e).text(),e,t)}var Bs=Symbol("stx.nativeWebStorage.raw");var ae="__app";async function si(e){try{let{loadCssEngineConfig:t}=await import("./chunk-zsqg1cy6.js");return yt(await t(e))}catch{return{}}}var we="__runtime",oi="__messages";function et(e){let n=[D.join(import.meta.dir,"..","runtime",`${e}.ts`),D.join(import.meta.dir,"..","runtime",`${e}.js`),D.join(import.meta.dir,"native","runtime",`${e}.js`)].find((r)=>nt(r));if(!n)throw Error(`Native runtime module ${e} is missing`);return n}async function tt(e,t,n,r,s){let o={name:"stx-screen-inputs",setup(u){u.onLoad({filter:/.*/,namespace:"file"},({path:d})=>{r.add(d);let g=s?.get(d);return g===void 0?void 0:{contents:g,loader:"js"}})}},c=await Bun.build({entrypoints:[e],target:"browser",format:"iife",minify:n,plugins:[o,...t],define:{"process.env.NODE_ENV":JSON.stringify(n?"production":"development")}});if(!c.success){let u=c.logs.map((d)=>String(d.message??d)).join(`
6
+ `)+h,chrome:{tabs:b("tabs"),bar:b("bar")}}}var ve=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,pn=/function\s+(__stx_setup_[\w$]+)\s*\(/,Jr=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function Ze(e){ve.lastIndex=0;for(let t of e.matchAll(ve)){let n=t[2].trim(),r=pn.exec(n)?.[1];if(r)return{name:r,code:n}}return null}function gn(e){let t=[];ve.lastIndex=0;for(let n of e.matchAll(ve)){let r=n[1],s=n[2].trim(),o=Jr.exec(r)?.[1],c=/\bdata-stx-component-factories\b/i.test(r);if(!s||!o&&!c&&!pn.test(s))continue;t.push(o?{code:s,owner:o}:{code:s})}return t}function Qr(){let e=[K.join(import.meta.dir,"..","primitives"),K.join(import.meta.dir,"native","primitives")];for(let t of e)if(Yr(K.join(t,"View.stx")))return t;return e[0]}async function Zr(e,t,n={}){e=await oe(e);let r=n.root??K.dirname(t),s=await a(r),o=typeof s.root==="string"&&s.root?K.resolve(r,s.root):r,c=(T,R)=>T?K.isAbsolute(T)?T:K.resolve(o,T):K.join(o,R),u={root:r,layoutsDir:c(s.layoutsDir,"layouts"),partialsDir:c(s.partialsDir,"partials"),storesDir:c(s.storesDir,"stores"),componentsDir:n.componentsDir??(s.componentsDir?c(s.componentsDir,"components"):K.join(o,"components")),buildMode:"serve",cache:!1,_targetComponentDirs:[Qr()],_targetComponentFallbackNames:["Button","Checkbox","Switch","TextInput","Video"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[]},d={...n.context??{},__stx_inject_css:!1,__stx_native_screen:!0},g=new Set([t]),h=await i(e,d,t,u,g),b=[],{html:m,chrome:y}=await fn(await oe(h),(T)=>{b.push({kind:"unknown-icon",tag:"data-native-chrome",name:T})}),{html:v,manifest:f}=at(await oe(m)),l=await Mt(r),{document:x,diagnostics:p}=await an(l?`<style>${l}</style>${v}`:v,{source:t,script:Qe(e)});p.unshift(...b),ei(x.root,f);let N=d.__stx_runtime_head;if(typeof N?.title==="string"&&N.title.trim())x.title=N.title.trim();if(y)x.chrome=y;let S=Ze(v),k=gn(v);if(Qe(e).code.trim()){let T=await as(e,t,n.context,{forceClientSetup:!0}),R=Ze(T.setupCode??"");if(S=R??S,R&&!k.some((C)=>C.code===R.code))k.push({code:R.code})}let{buildModuleRegistryScript:w,registeredModuleIdsIn:_}=await import("./chunk-jzqmq0hp.js"),I=async()=>{let T=[],R=await w(_(...k.map((C)=>C.code)),{collectInputs:T});for(let C of T)g.add(C);return R},P=await I();if([...k.map((T)=>T.code),P??""].some((T)=>/\buseStore\s*\(/.test(T))&&/<script\b[^>]*\bdata-stx-stores\b/i.test(v)){let{getStoreScript:T}=await import("./chunk-fvrcp1mr.js"),R=await T(u.storesDir);if(R){k.unshift({code:R});for(let C of new Bun.Glob("*.ts").scanSync({cwd:u.storesDir,absolute:!0}))g.add(C);P=await I()}}if(P)k.unshift({code:P});return{document:x,manifest:f,setup:S,scripts:k,diagnostics:p,html:v,dependencies:[...g]}}function ei(e,t){let n=new Map(t.entries.map((o)=>[o.id,o])),r=t.entries.reduce((o,c)=>Math.max(o,c.id),-1)+1,s=(o)=>{if(o._templated?.length&&o.bindings){if(o.bindingId===void 0||!n.has(o.bindingId)){let u={id:o.bindingId??r++,bindings:[]};o.bindingId=u.id,n.set(u.id,u),t.entries.push(u)}let c=n.get(o.bindingId);for(let u of o._templated){let d=`:${u}`,g=ke(d);if(g&&!c.bindings.some((h)=>h.name===d))c.bindings.push({name:d,value:o.bindings[u],kind:g})}}for(let c of o.children)if(typeof c!=="string")s(c)};s(e)}async function Se(e,t={}){return Zr(await Bun.file(e).text(),e,t)}var Bs=Symbol("stx.nativeWebStorage.raw");var ae="__app";async function si(e){try{let{loadCssEngineConfig:t}=await import("./chunk-vvk948z8.js");return yt(await t(e))}catch{return{}}}var we="__runtime",oi="__messages";function et(e){let n=[D.join(import.meta.dir,"..","runtime",`${e}.ts`),D.join(import.meta.dir,"..","runtime",`${e}.js`),D.join(import.meta.dir,"native","runtime",`${e}.js`)].find((r)=>nt(r));if(!n)throw Error(`Native runtime module ${e} is missing`);return n}async function tt(e,t,n,r,s){let o={name:"stx-screen-inputs",setup(u){u.onLoad({filter:/.*/,namespace:"file"},({path:d})=>{r.add(d);let g=s?.get(d);return g===void 0?void 0:{contents:g,loader:"js"}})}},c=await Bun.build({entrypoints:[e],target:"browser",format:"iife",minify:n,plugins:[o,...t],define:{"process.env.NODE_ENV":JSON.stringify(n?"production":"development")}});if(!c.success){let u=c.logs.map((d)=>String(d.message??d)).join(`
7
7
  `);throw Error(`Could not bundle ${e}:
8
8
  ${u}`)}return(await c.outputs[0].text()).trim()}var ai=/^[\w-]+(?:\/[\w-]+)*$/,ci=/^[\w-]+$/;async function li(e,t){let n=D.resolve(e,t.dir);if(!t.languages?.length)throw Error("messages.languages must name at least one language");let r=new Map,s=new Map;for(let o of t.languages){if(!ci.test(o))throw Error(`messages: "${o}" is not a language directory name`);let c=D.join(n,o);if(!nt(c))throw Error(`messages: ${D.relative(e,c)} does not exist`);let u=new Map;for(let d of[...new Bun.Glob("**/*.{ts,js,mjs,json}").scanSync({cwd:c})].sort()){if(/\.(?:test|spec|d)\.[^.]+$/.test(d))continue;let g=d.replace(/\.[^./]+$/,"").split(D.sep).join("/");if(!ai.test(g))throw Error(`messages: ${o}/${d} is not an area name`);if(u.has(g))throw Error(`messages: ${o}/${g} is defined twice`);let h=D.join(c,d),b=await import(h),m=Object.keys(b).filter((f)=>f!=="default");if(m.length)throw Error(`messages: ${o}/${d} exports ${m.join(", ")}; a message module exports its messages as default, and nothing else`);let y=b.default,v=y!==null&&typeof y==="object"&&!Array.isArray(y)?JSON.stringify(y):void 0;if(v===void 0||!Bun.deepEquals(JSON.parse(v),y,!0))throw Error(`messages: ${o}/${d} must export plain data (an object JSON can hold) as default`);u.set(g,v),r.set(h,{language:o,area:g})}s.set(o,u)}return{files:r,data:s}}function ui(e,t){return`export default globalThis.__stxNativeRuntime.messages(${JSON.stringify(e)}, ${JSON.stringify(t)});`}function di(e){let t=new Map;for(let[n,{language:r,area:s}]of e.files){let o=ui(r,s);t.set(n,o),t.set(ii(n),o)}return t}function fi(e){let t=new Set;for(let n of e.matchAll(/__stxNativeRuntime\.messages\(\s*"[\w-]+"\s*,\s*"([\w/-]+)"\s*\)/g))t.add(n[1]);return[...t].sort()}function pi(e,t){let n=D.isAbsolute(e.meta.source)?D.relative(t,e.meta.source).split(D.sep).join("/"):e.meta.source;return{...e,script:{exports:e.script.exports,functions:[],code:""},meta:{...e.meta,source:n,compiledAt:0}}}async function rt(e){let t=Object.keys(e.screens);if(t.length===0)throw Error("screens must name at least one .stx file");let n=e.routed??!0,r=e.initialScreen??t[0];if(!e.screens[r])throw Error(`Initial screen ${r} is not in screens`);let s=D.resolve(e.root??process.cwd());if(e.messages&&!e.routesDir)throw Error("messages ship a language at a time beside route files: they need routesDir");if(e.sharedRuntime&&!e.routesDir)throw Error("sharedRuntime is the route files' runtime: it needs routesDir");if(e.messages&&!e.sharedRuntime)throw Error("messages are read by the shared runtime: they need sharedRuntime");if(e.messages&&e.outFile)throw Error("messages leave the languages out of the screens' code, which the one-file bundle cannot read: build it without messages");let o=e.messages?await li(s,e.messages):null,c=e.styleConfig??await si(s),u=o?di(o):null,d=[],g=async()=>{for(let T of t){let R=D.resolve(s,e.screens[T]);if(!R.endsWith(".stx"))throw Error(`Screen ${T} must name a .stx file`);d.push({name:T,file:R,compiled:await Se(R,{root:s})})}};await mt(c,()=>u?ho(u,g):g());let h=et("jsc-globals"),b=et("shared-screen"),m=e.app?D.resolve(s,e.app):null;if(m&&!nt(m))throw Error(`The app script ${e.app} does not exist`);if(m&&!n)throw Error("An app script needs a routed bundle");if(m&&e.screens[ae])throw Error(`${ae} is the app script's route, not a screen name`);let y=e.browser;if(e.screens[we])throw Error(`${we} is the runtime prelude's file, not a screen name`);let v=gt();if(y&&e.routesDir)throw Error("A browser screen is one route; routesDir is for device hosts");let f=(T,R,C)=>{let j=n?`var routeName = g.__stxNativeRoute || ${JSON.stringify(r)};
9
9
  var isApp = ${m?`routeName === ${JSON.stringify(ae)}`:"false"};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ve,Ns,Jf,xh,Yf,Sh,Nt,p,V,Z,yn,xe,Zf,ai,Qf,kh,k,eg,_h,E,Ch}from"./chunk-6ph5jasj.js";import"./chunk-m5a8zgft.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{eg as applyFilters,Sh as clearCustomFilters,Zf as clientLoopScopes,Ns as defaultFilters,yn as escapeAttributeValue,p as escapeHtml,V as escapeHtmlValue,Z as escapeInterpolatedHtmlValue,E as evaluateExpression,ve as findMustacheEnd,Yf as getAllFilters,Qf as interpolateScriptAttributes,ai as interpolateScriptExpressions,kh as interpolateScriptsInTemplate,k as processExpressions,Jf as registerFilter,xh as registerFilters,Nt as replaceInterpolations,_h as resetRejectedExpressionWarnings,Ch as unescapeHtml,xe as usesSignalsInScript};
2
+ import{ve,Ns,Jf,xh,Yf,Sh,Nt,p,V,Z,yn,xe,Zf,ai,Qf,kh,k,eg,_h,E,Ch}from"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{eg as applyFilters,Sh as clearCustomFilters,Zf as clientLoopScopes,Ns as defaultFilters,yn as escapeAttributeValue,p as escapeHtml,V as escapeHtmlValue,Z as escapeInterpolatedHtmlValue,E as evaluateExpression,ve as findMustacheEnd,Yf as getAllFilters,Qf as interpolateScriptAttributes,ai as interpolateScriptExpressions,kh as interpolateScriptsInTemplate,k as processExpressions,Jf as registerFilter,xh as registerFilters,Nt as replaceInterpolations,_h as resetRejectedExpressionWarnings,Ch as unescapeHtml,xe as usesSignalsInScript};